/* ==========================================================================
   HERO AUTO-SLIDE BANNER SYSTEM (Mediso + Curely 1:1 Pixel-Perfect Replica)
   Crystal-Clear Doctor Portrait Visibility on Desktop & Mobile
   ========================================================================== */

/* Outer Section Wrapper */
.hero-slider-section {
  position: relative;
  width: 100%;
  background-color: #f6f8fc;
  padding-top: 130px;
  padding-bottom: 70px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* Slider Viewport & Track: Hardware-Accelerated Sliding Track */
.hero-slider-track {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 560px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Each Slide: Side-by-side with Zero Ghosting / Overlapping */
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  position: relative;
  opacity: 0.3;
  transform: scale(0.985);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   SLIDE 1: Mediso Hero Adjustments (Seamless Integration)
   -------------------------------------------------------------------------- */
.hero-slide-mediso {
  width: 100%;
}

.hero-slide-mediso .mediso-hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-slide-mediso .mediso-hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
  min-height: 540px;
}

/* Staggered micro-entrance for Slide 1 elements */
.hero-slide.is-active .mediso-hero-title {
  animation: heroTextReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-slide.is-active .mediso-hero-subtitle {
  animation: heroTextReveal 0.65s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-slide.is-active .mediso-button-group {
  animation: heroTextReveal 0.65s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-slide.is-active .mediso-visual-box {
  animation: heroVisualReveal 0.75s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --------------------------------------------------------------------------
   SLIDE 2: Curely Style Hero Banner (https://curely.framer.website/)
   -------------------------------------------------------------------------- */
.hero-slide-curely {
  width: 100%;
}

.curely-hero-banner-container {
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Main Framer-Style Rounded Hero Card */
.curely-hero-card {
  position: relative;
  width: 100%;
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  background-color: #dbe0e6;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: center;
}

/* Responsive Image Media Holder */
.curely-hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.curely-picture {
  width: 100%;
  height: 100%;
  display: block;
}

/* Desktop: Dr. Ananda Kumari is on the right, crystal clear with zero haze */
.curely-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 16%;
  display: block;
}

/* Gradient Overlay: only covers the text zone on the left (0 to 38%), leaving the doctor's entire face & body 100% crystal clear */
.curely-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(220, 225, 231, 0.94) 0%,
    rgba(220, 225, 231, 0.85) 34%,
    rgba(220, 225, 231, 0) 48%
  );
}

/* Curely Content Overlay (Left on desktop) */
.curely-hero-content {
  position: relative;
  z-index: 3;
  padding: 56px 52px;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Curely Trust / Rating Badge */
.curely-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 8px 18px 8px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  margin-bottom: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curely-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.curely-badge-star-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0553f0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(5, 83, 240, 0.35);
}

.curely-badge-star-circle svg {
  width: 13px;
  height: 13px;
  fill: #ffffff;
}

.curely-badge-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

/* Curely Display H1 Title */
.curely-hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 58px;
  font-weight: 800;
  line-height: 1.08;
  color: #111827;
  letter-spacing: -0.03em;
  margin: 0 0 20px 0;
}

/* Curely Subtitle Description */
.curely-hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 17.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 34px 0;
  max-width: 480px;
}

/* Dual Button Group */
.curely-button-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Primary Button (Curely Signature Royal Blue) */
.curely-btn-primary {
  background: #0553f0;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(5, 83, 240, 0.32);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.curely-btn-primary:hover {
  background: #0b43c2;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 83, 240, 0.42);
}

/* Secondary Button (Clean White Pill) */
.curely-btn-secondary {
  background: #ffffff;
  color: #111827;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.curely-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Staggered micro-entrance for Slide 2 elements */
.hero-slide.is-active .curely-badge {
  animation: heroTextReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-slide.is-active .curely-hero-title {
  animation: heroTextReveal 0.65s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-slide.is-active .curely-hero-subtitle {
  animation: heroTextReveal 0.65s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-slide.is-active .curely-button-group {
  animation: heroTextReveal 0.65s 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Keyframe Animations */
@keyframes heroTextReveal {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroVisualReveal {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --------------------------------------------------------------------------
   SLIDER CONTROLS: Floating Arrows & Modern Pill Pagination
   -------------------------------------------------------------------------- */

/* Circular Floating Navigation Arrows */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0f172a;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.hero-slider-prev {
  left: 20px;
}

.hero-slider-next {
  right: 20px;
}

.hero-slider-arrow:hover {
  background: #ffffff;
  color: #ed008c;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.hero-slider-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

/* Modern Pill Pagination Container */
.hero-slider-pagination {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

/* Hide 01 / 02 numbers */
.hero-pagination-label {
  display: none !important;
}

/* Pagination Bullet */
.hero-pagination-bullet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
  outline: none;
}

.hero-pagination-bullet:hover {
  color: #0f172a;
}

.hero-pagination-bar {
  display: block;
  width: 22px;
  height: 4px;
  border-radius: 9999px;
  background: #cbd5e1;
  overflow: hidden;
  position: relative;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-pagination-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #ed008c;
  border-radius: 9999px;
}

/* Active Bullet Styling */
.hero-pagination-bullet.is-active {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.04);
}

.hero-pagination-bullet.is-active .hero-pagination-bar {
  width: 38px;
  background: rgba(237, 0, 140, 0.2);
}

.hero-pagination-bullet.is-active .hero-pagination-fill {
  animation: progressFill 5s linear forwards;
}

/* Pause animation on hover */
.hero-slider-section:hover .hero-pagination-bullet.is-active .hero-pagination-fill {
  animation-play-state: paused;
}

@keyframes progressFill {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS (Mobile & Tablet Precision)
   -------------------------------------------------------------------------- */

@media screen and (max-width: 1200px) {
  .hero-slider-prev {
    left: 10px;
  }
  .hero-slider-next {
    right: 10px;
  }
  .curely-hero-title {
    font-size: 50px;
  }
}

@media screen and (max-width: 991px) {
  .hero-slider-section {
    padding-top: 110px;
    padding-bottom: 60px;
  }
  .curely-hero-content {
    padding: 44px 36px;
    max-width: 480px;
  }
  .curely-hero-title {
    font-size: 42px;
  }
  .curely-hero-subtitle {
    font-size: 16px;
  }
}

/* Tablet & Mobile Screens */
@media screen and (max-width: 860px) {
  .hero-slider-section {
    padding-top: 96px;
    padding-bottom: 50px;
  }

  /* Slide 1 Mobile Layout (Mediso) */
  .hero-slide-mediso .mediso-hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 0 20px;
    min-height: auto;
  }

  /* Slide 2 Mobile Layout (Curely Hero Mobile with hero mobile.png) */
  .curely-hero-banner-container {
    padding: 0 16px;
  }

  .curely-hero-card {
    min-height: 800px;
    border-radius: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    position: relative;
  }

  /* In mobile view, align hero mobile.png to top so the open backdrop holds the text, and doctor's face sits unobstructed below */
  .curely-hero-img {
    object-position: center top;
  }

  /* Subtle fade only behind the top text, 100% clear above her hair */
  .curely-media-overlay {
    background: linear-gradient(
      180deg,
      rgba(220, 225, 231, 0.95) 0%,
      rgba(220, 225, 231, 0.82) 26%,
      rgba(220, 225, 231, 0) 36%
    );
  }

  .curely-hero-content {
    position: relative;
    z-index: 3;
    padding: 36px 20px 0;
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .curely-badge {
    margin-bottom: 14px;
    padding: 6px 14px 6px 8px;
  }

  .curely-badge-text {
    font-size: 13px;
  }

  .curely-hero-title {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .curely-hero-subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 22px;
    max-width: 330px;
  }

  .curely-button-group {
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
  }

  .curely-btn-primary,
  .curely-btn-secondary {
    padding: 12px 24px;
    font-size: 14.5px;
  }

  /* Slider controls adjustments for mobile */
  .hero-slider-arrow {
    display: none; /* Mobile users swipe with touch */
  }

  .hero-slider-pagination {
    bottom: 16px;
    padding: 4px 10px;
  }

  .hero-pagination-label {
    display: none;
  }

  .hero-pagination-bar {
    width: 20px;
  }

  .hero-pagination-bullet.is-active .hero-pagination-bar {
    width: 32px;
  }
}

/* Compact Smartphones */
@media screen and (max-width: 480px) {
  .hero-slider-section {
    padding-top: 86px;
    padding-bottom: 36px;
  }

  .curely-hero-card {
    min-height: 780px;
    border-radius: 22px;
  }

  .curely-hero-content {
    padding: 30px 16px 0;
  }

  .curely-hero-title {
    font-size: 32px;
    line-height: 1.12;
    margin-bottom: 10px;
  }

  .curely-hero-subtitle {
    font-size: 14px;
    line-height: 1.45;
    max-width: 290px;
    margin-bottom: 18px;
  }

  .curely-badge-text {
    font-size: 12px;
  }

  .curely-button-group {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    gap: 10px;
    margin-bottom: 20px;
  }

  .curely-btn-primary,
  .curely-btn-secondary {
    flex: 1 1 auto;
    padding: 11px 16px;
    font-size: 13.5px;
    white-space: nowrap;
  }
}
