.four-corner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  row-gap: 30px;
  column-gap: 55px;
}

.four-corner-grid .post-block {
  border-radius: 6px;
}

.four-corner-grid .middle-block {
  background: #ffffff;
  text-align: center;
  padding: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Mobile responsiveness */
@media (max-width:1024px) {
  .four-corner-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 420px;
  }
}

@media (max-width:768px) {
  .four-corner-grid {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
  
  .four-corner-grid .middle-block {
    padding: 15px;
  }
  
  .carousel-arrow {
    width: 36px;
    height: 36px;
  }
  
  .carousel-slide img {
    max-width: 100%;
    height: auto;
  }
}


/* Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.four-corner-grid .post-title {
  margin-bottom: 6px;
}

.four-corner-grid .content-area p {
  text-align: left;
}

/* Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  outline: none;
  background: transparent;
}

.carousel-arrow:hover {
  color: #1b1b1b;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-prev {
  left: 15px;
}

.carousel-arrow-next {
  right: 15px;
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
}

/* Indicators - Now outside/below the carousel */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  padding: 0;
}

.carousel-indicator {
  width: 12px;
  height: 2px;
  border-radius: 0;
  border: 0px solid #ccc;
  background: #f0f0f0;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.carousel-indicator:hover {
  background: #007cba;
  border-color: #007cba;
}

.carousel-indicator.active {
  background: #007cba;
  border-color: #007cba;
  transform: scale(1.2);
}

/* Dragging state */
.carousel-container.dragging {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

.carousel-container:not(.dragging) .carousel-wrapper {
  cursor: grab;
  cursor: -webkit-grab;
}

/* Responsive adjustments */
@media (max-width:768px) {
  .carousel-wrapper {
    height: 250px;
  }
  
  .carousel-arrow {
    width: 35px;
    height: 35px;
  }
  
  .carousel-arrow svg {
    width: 18px;
    height: 18px;
  }
  
  .carousel-arrow-prev {
    left: 10px;
  }
  
  .carousel-arrow-next {
    right: 10px;
  }
  
  .carousel-indicators {
    margin-top: 12px;
  }
  
  .carousel-indicator {
    width: 10px;
    height: 2px;
  }
}

@media (max-width:480px) {
  .carousel-wrapper {
    height: 200px;
  }
  
  .carousel-arrow {
    width: 30px;
    height: 30px;
  }
  
  .carousel-arrow svg {
    width: 16px;
    height: 16px;
  }
  
  .carousel-arrow-prev {
    left: 8px;
  }
  
  .carousel-arrow-next {
    right: 8px;
  }
  
  .carousel-indicators {
    gap: 6px;
    margin-top: 10px;
  }
  
  .carousel-indicator {
    width: 8px;
    height: 2px;
  }
}