/* Customer Case Carousel Styles */
.customer-case-section {
  padding: 80px 0 20px;
  background-color: #f8fafc;
  overflow: hidden;
  border-radius: 16px;
}

.customer-case-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.customer-case-header {
  text-align: center;
  margin-bottom: 50px;
}

.customer-case-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #00476b;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-case-header h3 .section-indicator {
  display: inline-block;
  width: 40px;
  height: 3px;
  background-color: #00476b;
  margin: 0 15px;
}

.customer-case-header p {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 70px 20px 20px; /* Reduced left padding for control button overlay */
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
  width: fit-content;
}

.case-card {
  flex: 0 0 350px !important;
  width: 350px !important;
  background: white !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  aspect-ratio: unset !important;
}

.case-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.case-card-image {
  height: 200px !important;
  overflow: hidden !important;
  aspect-ratio: unset !important;
}

.case-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s ease !important;
}

.case-card:hover .case-card-image img {
  transform: scale(1.05);
}

.case-card-content {
  padding: 20px;
}

.case-card-category {
  display: inline-block;
  padding: 5px 12px;
  background-color: rgba(0, 71, 107, 0.1);
  color: #00476b;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.case-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  line-height: 1.4;
}

.case-card-description {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 15px;
}

.case-card-link {
  display: inline-flex;
  align-items: center;
  color: #00476b;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.case-card-link:hover {
  color: #003350;
}

.case-card-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.case-card-link:hover i {
  transform: translateX(3px);
}

/* Control Buttons */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #00476b;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background-color: #003350;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 35px; /* Position to overlay on the first card */
}

.carousel-control.next {
  right: 10px;
}

.carousel-control i {
  font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .customer-case-section {
        padding: 80px 0 15px;
    }
    
    .case-card {
        flex: 0 0 280px !important;
        width: 280px !important;
    }
    
    .carousel-control.prev {
        left: 20px; /* Adjusted for smaller screens */
    }
    
    .carousel-control.next {
        right: 20px; /* Adjusted for smaller screens */
    }
}

@media (max-width: 992px) {
    .customer-case-section {
        padding: 60px 0 10px;
    }
    
    .case-card {
        flex: 0 0 260px !important;
        width: 260px !important;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control i {
        font-size: 16px;
    }
    
    .carousel-control.prev {
        left: 15px; /* Adjusted for medium screens */
    }
    
    .carousel-control.next {
        right: 15px; /* Adjusted for medium screens */
    }
}

@media (max-width: 768px) {
    .customer-case-section {
        padding: 50px 0 8px;
    }
    
    .case-card {
        flex: 0 0 280px !important;
        width: 280px !important;
    }
    
    .customer-case-header h3 {
        font-size: 1.8rem;
    }
    
    .carousel-container {
        padding: 20px 60px;
    }
    
    .carousel-control.prev {
        left: 10px; /* Adjusted for tablet screens */
    }
    
    .carousel-control.next {
        right: 10px; /* Adjusted for tablet screens */
    }
}

@media (max-width: 576px) {
    .case-card {
        flex: 0 0 240px !important;
        width: 240px !important;
    }
    
    .carousel-control {
        width: 36px;
        height: 36px;
    }
    
    .carousel-control i {
        font-size: 14px;
    }
    
    .carousel-control.prev {
        left: 8px; /* Adjusted for small mobile screens */
    }
    
    .carousel-control.next {
        right: 8px; /* Adjusted for small mobile screens */
    }
}

@media (max-width: 480px) {
    .case-card {
        flex: 0 0 240px !important;
        width: 240px !important;
    }
    
    .carousel-container {
        padding: 20px 50px;
    }
    
    .carousel-control {
        width: 35px;
        height: 35px;
    }
    
    .carousel-control i {
        font-size: 14px;
    }
    
    .carousel-control.prev {
        left: 5px; /* Adjusted for very small screens */
    }
    
    .carousel-control.next {
        right: 5px; /* Adjusted for very small screens */
    }
}