/* Instagram Carousel Styles */
.work-banner {
  padding: 60px 0;
  background: #f8f9fa;
}

.work-header {
  text-align: center;
  margin-bottom: 40px;
}

.work-carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.carousel-btn {
  position: absolute;
  top: auto;
  bottom: -10px;
  min-width: 50px;
  max-width: 50px;
  height: 50px;
  background: white;
  border: none;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #f18d01;
  color: white;
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.3);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.carousel-btn i {
  font-size: 20px;
}

/* Swiper Carousel */
.work-carousel-container .swiper {
  width: 100%;
  height: 560px;
  padding: 20px 0 40px;
}

.work-item {
  height: 100%;
  padding: 10px;
}

.work-card {
  background: white;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.instagram-media {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 400px !important;
  border-radius: 2px !important;
  overflow: hidden !important;
}

/* Swiper Pagination */
.swiper-pagination {
  position: relative;
  margin-top: 30px;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ddd;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #f18d01;
  width: 40px;
  border-radius: 20px;
}

/* Instagram fallback if embed fails */
.instagram-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(
    45deg,
    #405de6,
    #5851db,
    #833ab4,
    #c13584,
    #e1306c,
    #fd1d1d
  );
  color: white;
  text-decoration: none;
  padding: 20px;
  text-align: center;
}

.instagram-fallback i {
  font-size: 40px;
  margin-bottom: 15px;
}

.instagram-fallback span {
  font-size: 14px;
  display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .work-carousel-container .swiper {
    height: 450px;
  }
}

@media (max-width: 992px) {
  .work-carousel-container .swiper {
    height: 420px;
  }

  .work-carousel-container {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .work-carousel-container .swiper {
    height: 550px;
  }

  .work-carousel-container {
    padding: 0 20px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .section_title__large.center {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .work-carousel-container .swiper {
    height: 550px;
  }

  .work-banner {
    padding: 40px 0;
  }
}
