.hero-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  background: #ffffff; /* Clean white background */
}

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Track ko ab flex ki jagah relative position denge taaki slides ek ke upar ek (stack) aa sakein */
.hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Har slide ab absolute position par hogi aur opacity se fade hogi */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height, 90px)); 
}

/* Active slide show hogi */
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-container-fluid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  width: 100%;
  max-width: 1350px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2.5rem;
  align-items: center;
}

/* Left Side Content */
.hero-content-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.hero-content-left .hero-title {
  font-family: var(--font-display, 'DM Serif Display', serif);
  font-size: 4rem;
  color: var(--text-primary, #0f172a);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero-content-left .text-teal {
  color: var(--primary, #176B87);
}

.hero-content-left .hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary, #334155);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 540px;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Bottom Stats Row */
.hero-stats-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light, #e0f2fe);
  color: var(--primary, #176B87);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-texts {
  display: flex;
  flex-direction: column;
}

.stat-texts strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.stat-texts span {
  font-size: 0.75rem;
  color: var(--text-secondary, #64748b);
}
/* Right Side: Code-generated Ulta 'U' (Arch / Capsule Shape Container) */
.doctor-visual-right {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-shape-container {
  width: 500px;
  height: 520px; /* Upar se lamba aur arch shape banane ke liye height zyada ki gayi hai */
  background-color: #176B87; /* Primary teal/blue tone */
  
  /* Ulta 'U' / Arch shape border-radius (Top corners fully rounded, bottom corners subtle) */
  border-radius: 100%; 
  
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(23, 107, 135, 0.2);
  position: relative;
}

.doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Emergency Support Floating Card */
.emergency-float-card {
  position: absolute;
  bottom: 90px;
  right: 30px;
  background: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3;
  border: 1px solid #e2e8f0;
}

.efc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light, #e0f2fe);
  color: var(--primary, #176B87);
  display: flex;
  align-items: center;
  justify-content: center;
}

.efc-text {
  display: flex;
  flex-direction: column;
}

.efc-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.efc-text span {
  font-size: 0.8rem;
  color: var(--text-secondary, #64748b);
}

/* Pagination Dots */
.hero-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

/* ==========================================
   MOBILE HERO — 600px AND BELOW
   ========================================== */

@media (max-width: 600px) {

  .hero-section {
    width: 100%;
    min-height: 760px;

    overflow: hidden;

    background: #ffffff;
  }

  .hero-slider-container {
    width: 100%;
    height: 760px;

    overflow: hidden;
  }

  .hero-track {
    width: 100%;
    height: 100%;
  }

  .hero-slide {
    width: 100%;
    height: 100%;
    min-height: 760px;

    padding: 88px 0 45px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    overflow: hidden;
  }

  .hero-container-fluid {
    width: 100%;
    max-width: 100%;

    height: 100%;

    padding: 1.5rem 1rem 3rem;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: flex-start;

    gap: 0;

    overflow: hidden;
  }


  /* ==========================================
     HERO CONTENT
     ========================================== */

  .hero-content-left {
    width: 100%;
    max-width: 100%;

    align-items: center;

    text-align: center;

    margin: 0;
  }

  .hero-content-left .badge-wrapper {
    width: 100%;

    display: flex;
    justify-content: center;

    margin-bottom: 0.8rem;
  }

  .hero-content-left .badge {
    max-width: 95%;

    font-size: 0.72rem;

    line-height: 1.4;

    padding: 0.45rem 0.75rem;

    text-align: center;

    white-space: normal;
  }

  .hero-content-left .hero-title {
    width: 100%;

    font-size: clamp(2.25rem, 10vw, 3rem);

    line-height: 1.08;

    margin: 0 0 0.9rem;

    letter-spacing: -0.02em;
  }

  .hero-content-left .hero-description {
    width: 100%;
    max-width: 350px;

    margin: 0 auto 1.25rem;

    font-size: 0.92rem;

    line-height: 1.55;

    font-weight: 500;
  }


  /* ==========================================
     BUTTONS
     ========================================== */

  .hero-cta-group {
    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 0.7rem;

    margin-bottom: 1.25rem;
  }

  .hero-cta-group .btn {
    width: min(100%, 280px);

    justify-content: center;

    text-align: center;
  }
/* ==========================================
   SMALL PHONES — 400px AND BELOW
   ========================================== */

@media (max-width: 400px) {

  .hero-section {
    min-height: 720px;
  }

  .hero-slider-container {
    height: 720px;
  }

  .hero-slide {
    min-height: 720px;
  }

  .hero-container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hero-content-left .hero-title {
    font-size: 2.15rem;
  }

  .hero-content-left .hero-description {
    font-size: 0.86rem;
    max-width: 320px;
  }

  .doctor-shape-container {
    width: 190px;
    height: 205px;
  }

  .hero-visual-right {
    min-height: 225px;
    height: 225px;
  }

  .stat-box {
    max-width: 300px;
  }
}

  /* ==========================================
     MOBILE STATS
     ========================================== */

  .hero-stats-row {
    width: 100%;

    display: grid;

    grid-template-columns: 1fr;

    gap: 0.6rem;

    margin: 0 auto;
  }

  .stat-box {
    width: 100%;

    max-width: 320px;

    margin: 0 auto;

    padding: 0.55rem 0.75rem;

    justify-content: flex-start;

    text-align: left;

    border-radius: 10px;
  }

  .stat-icon-wrap {
    width: 34px;
    height: 34px;

    min-width: 34px;

    font-size: 0.95rem;
  }

  .stat-texts strong {
    font-size: 0.9rem;
  }

  .stat-texts span {
    font-size: 0.68rem;
  }


  /* ==========================================
     DOCTOR IMAGE
     ========================================== */

  .hero-visual-right {
    width: 100%;

    min-height: 250px;

    height: 250px;

    margin-top: 1rem;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;
  }

  .doctor-shape-container {
    width: 220px;

    height: 235px;

    max-width: 65vw;

    border-radius: 50%;

    overflow: hidden;

    box-shadow:
      0 15px 35px rgba(23, 107, 135, 0.18);
  }

  .doctor-img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: top center;
  }


  /* ==========================================
     CALL US CARD
     ========================================== */

  .emergency-float-card {
    right: 50%;

    bottom: 0;

    transform: translateX(50%);

    padding: 0.6rem 0.85rem;

    border-radius: 12px;

    gap: 0.6rem;

    white-space: nowrap;

    box-shadow:
      0 12px 25px rgba(0, 0, 0, 0.12);
  }

  .efc-icon {
    width: 34px;
    height: 34px;

    min-width: 34px;
  }

  .efc-text strong {
    font-size: 0.85rem;
  }

  .efc-text span {
    font-size: 0.68rem;
  }


  /* ==========================================
     SLIDER DOTS
     ========================================== */

  .hero-dots {
    bottom: 12px;

    gap: 6px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  .hero-dot.active {
    width: 24px;
  }
}

/* Responsive Design */
/* ==========================================
   TABLET RESPONSIVE
   ========================================== */

@media (max-width: 992px) {

  .hero-section {
    width: 100%;
    height: auto;
    min-height: 760px;
    overflow: hidden;
  }

  .hero-slider-container {
    width: 100%;
    height: 760px;
    overflow: hidden;
  }

  .hero-track {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .hero-slide {
    width: 100%;
    height: 100%;
    min-height: 760px;

    padding-top: 90px;
    padding-bottom: 50px;

    align-items: flex-start;
  }

  .hero-container-fluid {
    width: 100%;
    max-width: 100%;

    grid-template-columns: 1fr;

    height: 100%;

    padding: 2rem 1.5rem 4rem;

    margin: 0 auto;

    text-align: center;

    align-items: center;

    overflow: hidden;
  }

  .hero-content-left {
    width: 100%;
    max-width: 650px;

    margin: 0 auto;

    align-items: center;
  }

  .hero-content-left .hero-title {
    font-size: 3rem;
    line-height: 1.12;

    margin-bottom: 1rem;
  }

  .hero-content-left .hero-description {
    max-width: 620px;

    font-size: 1rem;

    line-height: 1.65;

    margin-bottom: 1.5rem;
  }

  .hero-cta-group {
    justify-content: center;
    flex-wrap: wrap;

    margin-bottom: 2rem;
  }

  .hero-stats-row {
    width: 100%;

    justify-content: center;

    flex-wrap: wrap;

    gap: 0.75rem;
  }

  .stat-box {
    flex: 0 1 auto;
  }

  /* IMPORTANT:
     HTML me class hero-visual-right hai
  */

  .hero-visual-right {
    width: 100%;
    min-height: 320px;

    margin-top: 1rem;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
  }

  .doctor-shape-container {
    width: 320px;
    height: 340px;

    max-width: 80vw;
  }

  .doctor-img {
    width: 100%;
    height: 100%;

    object-fit: cover;
  }

  .emergency-float-card {
    right: 50%;
    bottom: 0;

    transform: translateX(50%);

    white-space: nowrap;
  }

  .hero-dots {
    bottom: 18px;
  }
}


/* ==========================================
   GLOBAL MOBILE OVERFLOW FIX
   ========================================== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}
