/* Final client-requested homepage and donation hero corrections. */

/* Move the donation heading slightly left only on desktop. */
@media (min-width: 992px) {
  .hospital-campaign-hero .donate-hero-inner {
    transform: translateX(-34px) !important;
  }
}

@media (max-width: 1199.98px) {
  /* Use the same clean, original hospital portrait on both mobile heroes. */
  #home .hero-hospital-bg,
  .hospital-campaign-hero .donate-hero-bg {
    background-image: url('../assets/images/mobile-hero-clean-client.png') !important;
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-color: #dbeaf5 !important;
    filter: none !important;
    transform: none !important;
    transform-origin: center top !important;
    animation: none !important;
  }

  /* Keep the original bright hospital background in the upper half and
     introduce blue only gradually in the lower half for readable text. */
  #home .hero-hospital-bg::after,
  .hospital-campaign-hero .donate-hero-bg::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    background: linear-gradient(
      to bottom,
      rgba(13, 42, 78, 0) 0%,
      rgba(13, 42, 78, 0) 43%,
      rgba(13, 42, 78, 0.24) 55%,
      rgba(13, 42, 78, 0.82) 72%,
      #0d2a4e 100%
    ) !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    filter: none !important;
    z-index: 1 !important;
  }

  #home.hero-v2 {
    height: max(760px, 100svh) !important;
    min-height: 760px !important;
    padding-top: 0 !important;
    background: #0d2a4e !important;
  }

  #home .hero-layout-container {
    z-index: 3 !important;
  }

  #home .hero-clean-content {
    width: 100% !important;
    max-width: 620px !important;
    min-height: 100% !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 auto !important;
    padding: clamp(390px, 56vh, 520px) 12px 32px !important;
    text-align: center !important;
  }

  #home .hero-title,
  #home .hero-doctor-line,
  #home .hero-doctor-quals {
    width: 100% !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  #home .hero-title {
    font-size: clamp(1.34rem, 5.8vw, 1.72rem) !important;
    line-height: 1.18 !important;
  }

  #home .hero-doctor-line {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    gap: 4px !important;
  }

  #home .hero-doctor-line > span:first-child {
    font-size: clamp(1.05rem, 4.7vw, 1.28rem) !important;
  }

  #home .hero-doctor-quals {
    padding: 0 !important;
    font-size: clamp(.72rem, 2.75vw, .86rem) !important;
    line-height: 1.38 !important;
  }

  #home.hero-v2 .hero-actions {
    width: min(100%, 420px) !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 11px auto 0 !important;
  }

  #home.hero-v2 .hero-actions .btn {
    width: 100% !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 18px !important;
    margin: 0 auto !important;
    font-size: clamp(.76rem, 3.1vw, .9rem) !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .donate-hero-wrap.hospital-campaign-hero {
    min-height: max(760px, 100svh) !important;
    background: #0d2a4e !important;
  }

  .hospital-campaign-hero .donate-hero-overlay {
    background: transparent !important;
  }

  .hospital-campaign-hero .donate-hero-body {
    position: relative !important;
    z-index: 3 !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: clamp(410px, 58vh, 540px) 18px 38px !important;
  }

  .hospital-campaign-hero .donate-hero-inner {
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    transform: none !important;
    text-align: center !important;
  }

  .hospital-campaign-hero .donate-hero-title {
    width: 100% !important;
    margin: 0 auto 14px !important;
    font-size: clamp(2.25rem, 11vw, 3.15rem) !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  .hospital-campaign-hero .donate-hero-subtitle {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .hospital-campaign-note,
  .hospital-campaign-hero .donate-hero-actions {
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 390px) {
  #home .hero-clean-content {
    padding-bottom: 24px !important;
  }

  #home.hero-v2 .hero-actions {
    width: min(100%, 350px) !important;
  }
}

/* Client-polished mobile hero: centered portrait and professional typography. */
@media (max-width: 1199.98px) {
  #home .hero-hospital-bg,
  .hospital-campaign-hero .donate-hero-bg {
    background-image: url('../assets/images/mobile-hero-clean-client-centered.png') !important;
    background-position: center top !important;
    background-size: cover !important;
  }

  #home .hero-clean-content {
    padding-top: clamp(405px, 57vh, 525px) !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  #home .hero-title {
    max-width: 360px !important;
    font-family: 'Inter', Arial, Helvetica, sans-serif!important;
    font-size: clamp(1.42rem, 5.9vw, 1.82rem) !important;
    font-weight: 700 !important;
    line-height: 1.16 !important;
    letter-spacing: -0.025em !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28) !important;
  }

  #home .hero-title .title-left {
    display: block !important;
    color: #e32636 !important;
    font-weight: 800 !important;
  }

  #home .hero-title .title-right {
    display: block !important;
    margin-top: 3px !important;
    color: #ffffff !important;
    font-weight: 650 !important;
  }

  #home .hero-doctor-line > span:first-child {
    color: #ffffff !important;
    font-family: 'Inter', Arial, Helvetica, sans-serif!important;
    font-size: clamp(1.08rem, 4.8vw, 1.34rem) !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em !important;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.26) !important;
  }

  #home .hero-doctor-quals {
    max-width: 350px !important;
    white-space: normal !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
    font-size: clamp(.74rem, 2.8vw, .88rem) !important;
    font-weight: 450 !important;
    line-height: 1.45 !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.24) !important;
  }

  #home.hero-v2 .hero-actions {
    width: min(100%, 360px) !important;
    gap: 11px !important;
    margin-top: 14px !important;
  }

  #home.hero-v2 .hero-actions .btn {
    min-height: 48px !important;
    border-radius: 999px !important;
    font-family: 'Inter', Arial, Helvetica, sans-serif!important;
    font-size: clamp(.82rem, 3.25vw, .94rem) !important;
    font-weight: 650 !important;
    letter-spacing: .01em !important;
    box-shadow: 0 8px 22px rgba(3, 20, 42, 0.18) !important;
  }

  #home.hero-v2 .hero-btn-primary {
    color: #0d2a4e !important;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.92) !important;
  }

  #home.hero-v2 .hero-btn-secondary {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
  }

  /* No decorative icons in either CTA. */
  #home.hero-v2 .hero-actions .btn::before,
  #home.hero-v2 .hero-actions .btn::after {
    content: none !important;
    display: none !important;
  }
}

/* =============================================================
   FINAL CLIENT MOBILE HERO OVERRIDES — 24 JULY 2026
   Desktop/tablet styling remains unchanged.
   ============================================================= */
@media (max-width: 575.98px) {
  /* INDEX: render the approved mobile composition exactly below the navbar. */
  #home.hero-v2 {
    position: relative !important;
    width: 100% !important;
    height: calc(100vw * 2.16106) !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #06264c !important;
  }

  #home .hero-hospital-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('../assets/images/index-mobile-client-approved.png') !important;
    background-position: center top !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-color: #06264c !important;
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  #home .hero-hospital-bg::before,
  #home .hero-hospital-bg::after,
  #home .hero-mobile-gradient,
  #home .hero-mobile-photo,
  #home .hero-mobile-visual,
  #home .gemini-star-cover {
    display: none !important;
    content: none !important;
  }

  #home .hero-layout-container,
  #home .hero-layout-container > .site-container,
  #home .hero-layout-row,
  #home .hero-text-col {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #home .hero-clean-content {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  /* The approved artwork already contains all visible typography. */
  #home .hero-title,
  #home .hero-doctor-line {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Keep the two artwork buttons fully functional without redrawing them. */
  #home.hero-v2 .hero-actions {
    position: absolute !important;
    left: 11.4% !important;
    right: 11.4% !important;
    bottom: 3.55% !important;
    width: auto !important;
    height: 14.15% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 8.5% !important;
    z-index: 5 !important;
  }

  #home.hero-v2 .hero-actions .btn {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    opacity: 1 !important;
  }

  /* DONATE: image begins below navbar with deliberate head clearance. */
  .donate-hero-wrap.hospital-campaign-hero {
    position: relative !important;
    min-height: max(690px, calc(100svh - 68px)) !important;
    margin-top: 0 !important;
    overflow: hidden !important;
    background: #0d2a4e !important;
  }

  .hospital-campaign-hero .donate-hero-bg {
    position: absolute !important;
    inset: 0 !important;
    background-image: url('../assets/images/mobile-hero-clean-client-centered.png') !important;
    background-position: center 34px !important;
    background-size: 91% auto !important;
    background-repeat: no-repeat !important;
    background-color: #dceaf5 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
  }

  .hospital-campaign-hero .donate-hero-bg::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
      to bottom,
      rgba(13,42,78,0) 0%,
      rgba(13,42,78,0) 42%,
      rgba(13,42,78,.25) 54%,
      rgba(13,42,78,.88) 70%,
      #0d2a4e 100%
    ) !important;
    z-index: 1 !important;
  }

  .hospital-campaign-hero .donate-hero-overlay {
    display: none !important;
  }

  .hospital-campaign-hero .donate-hero-body {
    position: relative !important;
    z-index: 3 !important;
    min-height: max(690px, calc(100svh - 68px)) !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 18px 54px !important;
    text-align: center !important;
  }

  .hospital-campaign-hero .donate-hero-inner {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    transform: none !important;
    text-align: center !important;
  }

  .hospital-campaign-hero .donate-hero-title {
    width: 100% !important;
    margin: 0 auto !important;
    font-family: 'Inter', Arial, Helvetica, sans-serif!important;
    font-size: clamp(2.18rem, 10.8vw, 3rem) !important;
    font-weight: 750 !important;
    line-height: 1.04 !important;
    letter-spacing: -.035em !important;
    text-align: center !important;
    text-shadow: 0 3px 12px rgba(0,0,0,.28) !important;
  }
}
