@media (max-width: 1399.98px) {
  :root {
    --unit-size: 82px;
  }

  .site-header .container-fluid {
    grid-template-columns: minmax(158px, 204px) minmax(0, 1fr) minmax(126px, 176px);
    padding: 0 34px;
  }

  .shaagird-logo-link img {
    height: 58px;
  }

  .site-header .navbar-nav {
    gap: clamp(14px, 1.45vw, 22px);
  }

  .site-header .nav-link {
    font-size: 14.5px;
  }

  .shaagird-donate-btn {
    min-width: 122px;
    padding: 0 22px;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .toolbar-brand {
    min-width: 230px;
  }

  .tool-actions {
    margin-left: auto;
  }

  .bottom-info-card {
    grid-template-columns: 130px 1fr 100px 120px;
  }

  .sponsor-this {
    grid-column: span 2;
  }

}

@media (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-head {
    grid-template-columns: 1fr;
  }

  .gallery-search {
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  .custom-contribution-card {
    padding: 30px;
  }

  .custom-amount-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .custom-input-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .custom-security-badge {
    grid-column: 1 / -1;
    padding: 16px;
    border-left: 0;
    border-top: 1px solid rgba(42,62,79,.1);
    border-radius: 18px;
    background: rgba(255,255,255,.54);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card-arrow {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  .gallery-lightbox-panel {
    height: min(760px, calc(100vh - 28px));
    grid-template-rows: 52px minmax(0, 1fr) auto 88px;
  }

  .lightbox-stage {
    padding: 12px 64px;
  }
}

@media (max-width: 767.98px) {
  .custom-contribution-section {
    margin-top: 24px;
    padding: 0 8px;
  }

  .custom-contribution-card {
    overflow: hidden;
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(22,34,48,.11), inset 0 1px 0 rgba(255,255,255,.9);
  }

  .custom-contribution-card::before {
    border-radius: 23px;
  }

  .custom-contribution-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    text-align: center;
  }

  .custom-contribution-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    font-size: 32px;
  }

  .custom-contribution-head h2 {
    max-width: 90%;
    margin: 0 auto 8px;
    font-size: clamp(24px, 7.4vw, 32px);
    line-height: 1.18;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .custom-contribution-head p {
    max-width: 92%;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.58;
  }

  .custom-amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
  }

  .custom-amount-card {
    min-width: 0;
    min-height: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 15px;
    transform: translateZ(0);
  }

  .custom-amount-card strong {
    display: block;
    max-width: calc(100% - 22px);
    margin: 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .custom-amount-card i {
    top: 50%;
    right: 14px;
    transform: translate3d(0, -50%, 0) scale(.75);
  }

  .custom-amount-card.is-selected i {
    transform: translate3d(0, -50%, 0) scale(1);
  }

  .custom-amount-card:hover,
  .custom-amount-card:focus-visible {
    transform: translate3d(0, -2px, 0);
  }

  .custom-input-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px 14px;
    min-height: 0;
    margin-bottom: 6px;
    padding: 18px;
    border-radius: 20px;
  }

  .custom-input-symbol {
    align-self: end;
    padding-bottom: 5px;
    font-size: 38px;
  }

  .custom-input-wrap {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .custom-input-wrap small {
    margin-bottom: 5px;
    font-size: 12px;
  }

  .custom-input-wrap input {
    height: 42px;
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1;
  }

  .custom-security-badge {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 0;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    margin-top: 4px;
    padding: 16px;
    border: 1px solid rgba(218,228,236,.78);
    border-radius: 18px;
    background: rgba(255,255,255,.62);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
  }

  .custom-security-badge > i {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .custom-security-badge strong {
    font-size: 14px;
  }

  .custom-security-badge small {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .custom-amount-error {
    min-height: 18px;
    margin-bottom: 18px;
    text-align: center;
    font-size: 12.5px;
  }

  .support-matters-banner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    min-height: 0;
    padding: 20px;
    border-radius: 22px;
    text-align: center;
  }

  .support-icon {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

  .support-matters-banner h3 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.25;
  }

  .support-matters-banner p {
    max-width: 100%;
    font-size: 14.5px;
    line-height: 1.58;
  }

  .education-illustration {
    width: min(260px, 100%);
    min-height: 150px;
    margin-top: 2px;
  }

  .book-open {
    left: 50%;
    bottom: 16px;
    width: 138px;
    height: 40px;
    transform: translateX(-50%);
  }

  .book-stack-one,
  .book-stack-two {
    right: 16px;
    width: 92px;
  }

  .book-stack-one { bottom: 32px; }
  .book-stack-two { bottom: 12px; }

  .school-mark {
    right: 50%;
    bottom: 62px;
    width: 58px;
    height: 58px;
    transform: translateX(50%);
  }

  .leaf-one { right: 170px; top: 28px; }
  .leaf-two { right: 58px; top: 18px; }

  .custom-trust-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 24px;
  }

  .custom-trust-strip span {
    width: 100%;
    min-height: 86px;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 18px;
    text-align: center;
    font-size: 12px;
    line-height: 1.28;
  }

  .custom-trust-strip i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(22,182,174,.11);
    font-size: 20px;
  }

  .custom-contribute-btn {
    width: 100%;
    height: 58px;
    margin: 24px 0 20px;
    border-radius: 18px;
    gap: 12px;
    font-size: 18px;
    transform: translateZ(0);
  }

  .custom-contribute-btn:hover,
  .custom-contribute-btn:focus-visible {
    transform: translate3d(0, -2px, 0);
  }

  .gallery-updates {
    padding: 20px;
  }

  .gallery-head h2 {
    font-size: 22px;
  }

  .gallery-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .gallery-filter {
    flex: 0 0 auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-carousel {
    aspect-ratio: 1.55 / 1;
  }

  .gallery-meta {
    grid-template-columns: minmax(0, 1fr) 36px;
  }

  .gallery-meta span:nth-child(2) {
    display: none;
  }

  .gallery-load-more {
    width: 100%;
    min-width: 0;
  }

  .gallery-lightbox {
    padding: 0;
  }

  .gallery-lightbox-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
    grid-template-rows: 52px minmax(0, 1fr) auto 82px;
  }

  .lightbox-stage {
    padding: 10px 14px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    top: auto;
    bottom: 158px;
  }

  .lightbox-nav.prev { left: 16px; }
  .lightbox-nav.next { right: 16px; }

  .lightbox-caption {
    padding: 12px 16px 14px;
  }

  .lightbox-caption strong,
  .lightbox-caption span {
    display: block;
  }

  .lightbox-thumbs button {
    flex-basis: 70px;
    width: 70px;
    height: 56px;
  }
}

@media (max-width: 575.98px) {
  .gallery-updates {
    padding: 16px;
    border-radius: 18px;
  }

  .gallery-search {
    grid-template-columns: 22px 1fr 38px;
    min-height: 50px;
    padding-left: 14px;
  }

  .gallery-search input {
    font-size: 13px;
  }

  .gallery-filter {
    min-height: 42px;
    padding: 0 14px;
  }

  .gallery-card-body {
    padding: 15px;
  }

  .gallery-card-body p {
    min-height: 0;
  }

  .gallery-photo-badge {
    top: 10px;
    right: 10px;
  }

  .gallery-category,
  .gallery-card-counter {
    bottom: 10px;
  }

  .gallery-card-counter {
    right: 10px;
  }

  .gallery-card-arrow {
    width: 34px;
    height: 34px;
  }

  .lightbox-toolbar {
    padding-left: 14px;
  }

  .lightbox-actions button {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 1199.98px) {
  .site-header .container-fluid {
    grid-template-columns: minmax(150px, 198px) minmax(0, 1fr) minmax(124px, 168px);
    min-height: 82px;
    padding: 0 34px;
    width: min(96vw, 1160px);
  }

  .shaagird-logo-link img {
    height: 58px;
  }

  .site-header .navbar-nav {
    gap: clamp(16px, 1.55vw, 28px);
  }

  .site-header .nav-link {
    font-size: 14.5px;
  }

  .shaagird-donate-btn {
    min-width: 122px;
  }

  .hero-section {
    padding-top: 96px;
  }

  .hero-progress {
    max-width: 340px;
    margin-top: 28px;
  }

  .impact-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-strip article:nth-child(2) {
    border-right: 0;
  }

  .impact-strip article:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .right-panel,
  .recent-donors-card,
  .faq-card {
    max-width: none;
  }

  .footer-main {
    grid-template-columns: 120px minmax(190px, 1fr) minmax(220px, 1fr);
    max-width: 880px;
    row-gap: 34px;
  }

  .footer-efficiency {
    grid-column: 2 / 3;
  }

  .footer-social-column {
    grid-column: 3 / 4;
  }
}

@media (max-width: 991.98px) {
  .site-header,
  .shaagird-header {
    background: transparent;
  }

  .site-header {
    padding: 10px 0 0;
  }

  .site-header .container-fluid {
    display: flex;
    justify-content: space-between;
    border-radius: 28px;
    min-height: 82px;
    padding: 0 22px 0 28px;
    width: min(96vw, 900px);
  }

  .site-header .navbar-collapse {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 26px;
    margin-top: 0;
    padding: 16px;
    background:
      radial-gradient(circle at 12% 0, rgba(255,255,255,.92), transparent 42%),
      radial-gradient(circle at 86% 8%, rgba(22,182,174,.14), transparent 38%),
      linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.62));
    box-shadow: 0 28px 70px rgba(22,34,48,.17), inset 0 1px 0 rgba(255,255,255,.84);
    backdrop-filter: blur(28px) saturate(1.45);
    -webkit-backdrop-filter: blur(28px) saturate(1.45);
    max-height: calc(100vh - 116px);
    overflow-y: auto;
  }

  .site-header .navbar-nav {
    align-items: stretch !important;
    gap: 6px !important;
  }

  .site-header .nav-link {
    border-radius: 16px;
    padding: 14px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #0f2140;
  }

  .header-dropdown-menu {
    position: static;
    width: auto;
    min-width: 0;
    max-height: 0;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 18px;
    opacity: 0;
    pointer-events: none;
    filter: none;
    transform: translate3d(0, -6px, 0);
    visibility: hidden;
    overflow: hidden;
    background: rgba(255,255,255,.48);
    box-shadow: none;
    transition: max-height .25s ease, opacity .25s ease, transform .25s ease, padding .25s ease, margin .25s ease, visibility .25s ease;
  }

  .header-dropdown.is-open .header-dropdown-menu {
    max-height: 860px;
    margin: 4px 0 10px;
    padding: 10px;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  .header-dropdown:hover .header-dropdown-menu,
  .header-dropdown:focus-within .header-dropdown-menu {
    max-height: 0;
    margin: 0;
    padding: 0 10px;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -6px, 0);
    visibility: hidden;
  }

  .header-dropdown.is-open:hover .header-dropdown-menu,
  .header-dropdown.is-open:focus-within .header-dropdown-menu {
    max-height: 860px;
    margin: 4px 0 10px;
    padding: 10px;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  .mega-menu-panel::before {
    display: none;
  }

  .mega-menu-inner {
    display: block;
    padding: 0;
  }

  .mega-menu-list {
    gap: 6px;
    padding: 0;
    border-right: 0;
  }

  .mega-menu-link {
    min-height: 58px;
    grid-template-columns: 36px 1fr 16px;
    padding: 9px 8px;
    border-radius: 14px;
  }

  .mega-menu-link span {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 17px;
  }

  .mega-menu-link strong {
    font-size: 13px;
  }

  .mega-menu-link small {
    font-size: 11px;
  }

  .mega-menu-feature-wrap {
    display: none;
  }

  .nav-chevron {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .site-header .nav-link::after {
    display: none;
  }

  .site-header .icon-pill,
  .site-header .nav-donate,
  .site-header .shaagird-donate-btn {
    margin-top: 8px;
    width: 100%;
  }

  .site-header .navbar-toggler {
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translate3d(0, -50%, 0);
    width: 48px;
    height: 48px;
    display: inline-grid !important;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(15,143,135,.12);
    background: rgba(255,255,255,.82);
    opacity: 1;
    visibility: visible;
    z-index: 6;
  }

  .navbar-container {
    border-radius: 20px;
    min-height: 68px;
    width: 94%;
  }

  .navbar-links,
  .desktop-user-section {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-section {
    min-height: auto;
    padding: 92px 0 34px;
  }

  .hero-section .row {
    min-height: auto;
  }

  .hero-copy {
    max-width: 560px;
    padding: 8px 0 6px;
  }

  .hero-progress {
    width: min(100%, 420px);
    max-width: 420px;
    margin: 24px auto 0;
  }

  .hero-section .col-xl-3 {
    align-self: auto;
    padding-top: 0;
  }

  .left-panel {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 16px 28px;
  }

  .left-panel .progress-ring {
    grid-row: span 4;
    margin: 0 auto;
  }

  .stats-list,
  .sponsor-panel-btn,
  .left-panel .trust-line {
    grid-column: 1 / -1;
  }

  .wall-grid-wrap {
    height: 500px;
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 30px;
  }

  .timeline::before {
    display: none;
  }

  .sponsor-this {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
  }

  .footer-main {
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr);
    max-width: 680px;
    min-height: 0;
    padding: 38px 24px 34px;
  }

  .footer-logo-column {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .footer-efficiency,
  .footer-social-column {
    grid-column: auto;
  }
}

@media (max-width: 767.98px) {
  :root {
    --unit-size: 68px;
    --unit-gap: 6px;
  }

  .brand-lockup strong,
  .toolbar-brand strong {
    font-size: 15px;
  }

  .shaagird-logo-mark {
    font-size: 22px;
    height: 46px;
    width: 46px;
  }

  .brand-lockup small,
  .toolbar-brand small {
    font-size: 11px;
  }

  .hero-section {
    padding: 88px 0 30px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-actions .btn {
    flex: 1 1 190px;
  }

  .hero-progress {
    margin-top: 22px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics div:nth-child(odd),
  .hero-metrics div:nth-child(even) {
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .app-board {
    padding: 12px;
  }

  .toolbar-brand,
  .search-box,
  .filter-group,
  .tool-actions {
    width: 100%;
  }

  .filter-group,
  .tool-actions {
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .filter-chip,
  .soft-action {
    white-space: nowrap;
  }

  .left-panel {
    display: block;
  }

  .left-panel .progress-ring {
    margin: 12px auto 22px;
  }

  .wall-card {
    padding: 12px;
  }

  .wall-grid-wrap {
    height: 440px;
    padding: 12px;
  }

  .wall-grid {
    grid-auto-rows: 38px;
  }

  .pan-help {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bottom-info-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .smile-unit-gold {
    max-width: 180px;
  }

  .bottom-detail {
    border-left: 0;
    padding-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .sponsor-this {
    grid-column: auto;
    width: 100%;
  }

  .sponsor-this {
    max-width: none;
    min-width: 0;
    height: 58px;
    min-height: 58px;
  }

  .impact-strip {
    grid-template-columns: 1fr;
  }

  .impact-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 19px;
  }

  .impact-strip article:last-child {
    border-bottom: 0;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 460px;
    padding: 24px;
    column-gap: 16px;
    row-gap: 14px;
  }

  .footer-efficiency,
  .footer-social-column {
    grid-column: 1 / -1;
  }

  .footer-logo-column {
    grid-column: 1 / -1;
    justify-content: center;
    margin-bottom: 10px;
  }

  .footer-link-column {
    gap: 14px;
    min-width: 0;
    padding-top: 0;
  }

  .footer-link-column a {
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .footer-efficiency {
    margin-top: 10px;
    text-align: center;
  }

  .footer-efficiency h2 {
    text-align: center;
  }

  .efficiency-visual {
    justify-content: center;
  }

  .footer-donate-btn {
    margin-left: 0;
  }

  .footer-social-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    padding-top: 4px;
  }

  .footer-social-column a {
    align-items: center;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,255,255,.44));
    box-shadow: 0 10px 24px rgba(22,34,48,.1), inset 0 1px 0 rgba(255,255,255,.78);
    display: grid;
    gap: 9px;
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 48px;
    padding: 10px 12px;
    transform: none;
  }

  .footer-social-column a:active {
    transform: scale(.98);
  }

  .footer-social-column span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-social-column a:nth-child(2) {
    order: 3;
  }

  .footer-social-column a:nth-child(3) {
    order: 2;
  }

  .footer-social-column a:nth-child(4) {
    order: 5;
  }

  .footer-social-column a:nth-child(5) {
    order: 4;
  }

  .footer-copyright-bar {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-progress,
  .left-panel,
  .right-panel,
  .faq-card,
  .timeline-card {
    padding: 18px;
    border-radius: 18px;
  }

  .hero-progress {
    margin-top: 20px;
  }

  .progress-ring {
    width: 165px;
    height: 165px;
  }

  .progress-ring div {
    width: 112px;
    height: 112px;
  }

  .progress-ring strong {
    font-size: 32px;
  }

  .wall-grid-wrap {
    height: 390px;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .footer-main {
    padding-left: 24px;
    padding-right: 24px;
  }

  .efficiency-visual {
    align-items: center;
    flex-direction: row;
    gap: 14px;
    margin-bottom: 22px;
  }

  .footer-copyright-bar {
    font-size: 11.5px;
    min-height: 42px;
    font-family: 'POPPINS';
    FONT-WEIGHT: 100;
  }
}

@media (max-width: 767.98px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .header-dropdown[data-mega-menu]::after {
    display: none;
  }

  .site-header {
    padding-top: 8px;
    left: 0;
    right: 0;
    width: 100%;
  }

  .site-header .navbar {
    width: 100%;
  }

  .site-header .container-fluid {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin-left: auto;
    margin-right: auto;
    min-height: 74px;
    border-radius: 24px;
    padding: 0 14px 0 18px;
  }

  .site-header .container-fluid::before {
    border-radius: 23px;
  }

  .site-header.scrolled .container-fluid {
    min-height: 74px;
  }

  .shaagird-logo-link img {
    height: 54px;
  }

  .site-header .navbar-toggler {
    width: 44px;
    height: 44px;
    right: 14px;
    border-radius: 14px;
  }

  .site-header .navbar-collapse {
    top: calc(100% + 10px);
    border-radius: 22px;
    max-height: calc(100vh - 100px);
    padding: 12px;
  }

  .site-header .nav-link {
    min-height: 52px;
    padding: 14px 12px;
  }

  .header-dropdown-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }

  .header-dropdown.is-open .header-dropdown-menu,
  .header-dropdown.is-open:hover .header-dropdown-menu,
  .header-dropdown.is-open:focus-within .header-dropdown-menu {
    max-height: 680px;
  }

  .nav-chevron {
    transition: transform .25s ease;
  }

  .hero-section {
    min-height: auto;
    padding: 104px 0 24px;
    background:
      url("../images/Smile_school.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
  }

  .hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(180deg, rgba(247,249,252,.9) 0%, rgba(247,249,252,.68) 42%, rgba(247,249,252,.9) 100%),
      linear-gradient(90deg, rgba(247,249,252,.82), rgba(247,249,252,.42));
    backdrop-filter: brightness(.75) blur(.8px);
    -webkit-backdrop-filter: brightness(.75) blur(.8px);
    pointer-events: none;
  }

  .hero-section::after {
    z-index: 1;
    height: 80px;
  }

  .hero-section .container-fluid,
  .hero-section .row {
    position: relative;
    z-index: 2;
  }

  .hero-section .row {
    min-height: auto;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .hero-section .col-xl-4,
  .hero-section .col-xl-3 {
    width: 100%;
  }

  .hero-copy {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 0 0;
    text-align: center;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .hero-copy h1 {
    max-width: 11ch;
    margin: 0 auto 14px;
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero-copy h1 span {
    display: block;
  }

  .hero-copy p {
    max-width: 34ch;
    margin: 0 auto 20px;
    color: #344054;
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.62;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 56px;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 14px;
  }

  .hero-progress {
    width: 100%;
    max-width: none;
    margin: 20px auto 24px;
    padding: 20px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255,255,255,.84);
    box-shadow: 0 22px 56px rgba(22,34,48,.14), inset 0 1px 0 rgba(255,255,255,.82);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
  }

  .hero-progress h2 {
    line-height: 1.35;
  }

  .goal-value {
    font-size: clamp(22px, 7vw, 30px);
    word-break: break-word;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .hero-metrics div:nth-child(odd),
  .hero-metrics div:nth-child(even) {
    padding: 10px 8px;
    border-right: 0;
  }

  .hero-metrics strong {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .timeline-card {
    padding: 20px;
    border-radius: 24px;
  }

  .timeline-card h3 {
    margin-bottom: 18px;
    text-align: left;
  }

  .timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline-step {
    min-width: 0;
    min-height: 178px;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 16px 10px;
    border: 1px solid rgba(231,237,243,.9);
    border-radius: 18px;
    background:
      linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.5)),
      rgba(255,255,255,.72);
    box-shadow: 0 16px 36px rgba(22,34,48,.08), inset 0 1px 0 rgba(255,255,255,.84);
    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
  }

  .timeline-step span {
    width: 54px;
    height: 54px;
    font-size: 22px;
    box-shadow: 0 12px 26px rgba(22,34,48,.08);
  }

  .timeline-step strong {
    min-height: 34px;
    display: grid;
    place-items: center;
    font-size: 12.5px;
    line-height: 1.25;
  }

  .timeline-step small {
    font-size: 12px;
  }

  .timeline-step em {
    min-height: 26px;
    padding: 6px 10px;
    font-size: 9px;
  }

  .timeline-step.current em {
    background: rgba(255,216,102,.42);
    color: #7b5910;
  }
}

@media (max-width: 575.98px) {
  .custom-contribution-section {
    padding: 0;
  }

  .custom-contribution-card {
    padding: 20px;
  }

  .custom-contribution-head h2 {
    max-width: 94%;
    font-size: clamp(23px, 7.8vw, 30px);
  }

  .custom-contribution-head p {
    max-width: 96%;
  }

  .custom-amount-card {
    font-size: 14px;
  }

  .custom-input-card {
    padding: 16px;
  }

  .custom-trust-strip span {
    min-height: 92px;
  }

  .custom-contribute-btn {
    font-size: 17px;
  }

  .hero-section {
    padding-top: 98px;
  }

  .hero-copy h1 {
    font-size: clamp(32px, 10.8vw, 42px);
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-progress {
    padding: 20px;
    border-radius: 24px;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .timeline-step {
    min-height: 166px;
    padding: 14px 8px;
  }

  .timeline-step span {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Final mobile typography: compact, premium, and glass-friendly */
@media (max-width: 767.98px) {
  body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
  }

  .custom-contribution-card,
  .gallery-updates,
  .faq-card,
  .timeline-card,
  .left-panel,
  .right-panel,
  .hero-progress {
    border-radius: 20px;
  }

  .custom-contribution-card {
    padding: 18px;
  }

  .custom-contribution-head {
    gap: 12px;
    margin-bottom: 20px;
  }

  .custom-contribution-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    font-size: 26px;
  }

  .custom-contribution-head h2 {
    max-width: 300px;
    margin-bottom: 6px;
    font-size: clamp(20px, 6.1vw, 24px);
    line-height: 1.22;
    font-weight: 700;
  }

  .custom-contribution-head p {
    max-width: 300px;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 400;
  }

  .custom-amount-grid {
    gap: 10px;
    margin-bottom: 18px;
  }

  .custom-amount-card {
    height: 54px;
    min-height: 54px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 650;
  }

  .custom-input-card {
    min-height: 82px;
    border-radius: 18px;
    padding: 14px 16px;
  }

  .custom-input-symbol {
    font-size: 28px;
    font-weight: 700;
  }

  .custom-input-wrap small {
    font-size: 10.5px;
    font-weight: 650;
  }

  .custom-input-wrap input {
    font-size: clamp(26px, 8vw, 34px);
    font-weight: 700;
  }

  .gallery-updates {
    padding: 20px 16px;
  }

  .gallery-head {
    gap: 18px;
    margin-bottom: 20px;
  }

  .gallery-head h2 {
    max-width: 300px;
    font-size: clamp(20px, 6vw, 23px);
    line-height: 1.22;
    font-weight: 700;
  }

  .gallery-head p {
    max-width: 300px;
    font-size: 13.5px;
    line-height: 1.58;
    font-weight: 400;
  }

  .gallery-search {
    min-height: 50px;
    border-radius: 14px;
  }

  .gallery-search input {
    font-size: 13px;
  }

  .gallery-filter-row {
    gap: 10px;
    margin-bottom: 20px;
  }

  .gallery-filter {
    min-height: 42px;
    border-radius: 11px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 650;
  }

  .gallery-card-body h3 {
    font-size: 14.5px;
    line-height: 1.3;
    font-weight: 700;
  }

  .gallery-card-body p {
    font-size: 12.5px;
    line-height: 1.5;
    font-weight: 400;
  }
}
