/* Treatment Page Carousel Styles */

/* Carousel Styles */
.carousel-container {
  position: relative;
  overflow: visible;
  margin: 0 auto;
  max-width: 100%;
  padding: 0 3rem;
  min-height: 600px;
  padding-bottom: 120px;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 1.5rem;
  padding: 1rem 0;
  will-change: transform;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.carousel-slide {
  min-width: 320px;
  max-width: 320px;
  height: 480px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 4px 15px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.02);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  transform: translateX(0) scale(1);
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--deep-clay) 0%, 
    rgba(126, 60, 61, 0.8) 50%, 
    var(--deep-clay) 100%);
  border-radius: 16px 16px 0 0;
}

.carousel-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%);
  pointer-events: none;
}

.carousel-slide:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(126, 60, 61, 0.15),
    0 8px 16px rgba(126, 60, 61, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Why Choose Carousel */
.why-choose-carousel {
  position: relative;
  overflow: visible;
  margin: 0 auto;
  max-width: 100%;
  padding: 0 2rem;
}

.why-choose-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 1.5rem;
  padding: 1rem 0;
  will-change: transform;
  align-items: stretch;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.why-choose-slide {
  min-width: 320px;
  max-width: 320px;
  height: auto;
  min-height: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 4px 15px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.02);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  transform: translateX(0) scale(1);
}

.why-choose-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--deep-clay) 0%, 
    rgba(126, 60, 61, 0.8) 50%, 
    var(--deep-clay) 100%);
  border-radius: 16px 16px 0 0;
}

.why-choose-slide:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(126, 60, 61, 0.15),
    0 8px 16px rgba(126, 60, 61, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Navigation */
.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.carousel-btn {
  background: linear-gradient(135deg, #7E3C3D 0%, #A04A4B 100%);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
}

.carousel-btn:hover {
  background: linear-gradient(135deg, #6a2f2f 0%, #8B3A3B 100%);
  border-color: #F0F0F0;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.carousel-btn:disabled {
  background: linear-gradient(135deg, #999999 0%, #BBBBBB 100%);
  color: #FFFFFF;
  border-color: #CCCCCC;
  cursor: not-allowed;
  transform: translateY(0) scale(1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0.7;
}

.carousel-dots {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(126, 60, 61, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.carousel-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease;
}

.carousel-dot:hover::before {
  background: rgba(126, 60, 61, 0.1);
}

.carousel-dot.active {
  background: var(--deep-clay);
  width: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(126, 60, 61, 0.3);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .carousel-container {
    padding: 0 1rem;
    min-height: auto;
    padding-bottom: 80px;
  }
  
  .carousel-slide {
    min-width: calc(100vw - 3rem);
    max-width: calc(100vw - 3rem);
    height: auto;
    min-height: 380px;
    padding: 1.5rem;
  }
  
  .carousel-slide h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  
  .carousel-slide p {
    font-size: 0.85rem;
    line-height: 1.4;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    margin-bottom: 0.75rem;
  }
  
  .carousel-slide a {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    margin-top: auto;
  }
  
  .carousel-track {
    gap: 1rem;
    padding: 0.5rem 0 1rem 0;
  }
  
  .why-choose-carousel {
    padding: 0 1rem;
    overflow: visible;
    margin-bottom: 2rem;
  }
  
  .why-choose-slide {
    min-width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    height: auto;
    min-height: 280px;
    padding: 1.5rem;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  .why-choose-slide h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--deep-clay);
    margin-bottom: 1.5rem;
    line-height: 1.3;
  }
  
  .why-choose-slide p {
    color: #4B5563;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
    text-align: center;
  }
  
  .why-choose-track {
    gap: 1rem;
    padding: 0.5rem 0 2rem 0;
  }
  
  .carousel-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .carousel-dots {
    gap: 0.5rem;
  }
  
  .carousel-dot {
    width: 6px;
    height: 6px;
  }
  
  .carousel-dot.active {
    width: 18px;
    border-radius: 9px;
  }
}

@media (max-width: 480px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border-width: 2px;
  }
  
  .carousel-track {
    gap: 0.75rem;
  }
  
  .why-choose-track {
    gap: 1rem;
    padding: 0.5rem 0 2rem 0;
  }
}
