@media (max-width: 1040px) {
    h1 {
        font-size: 3.25rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-grid,
    .two-column,
    .event-detail-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .card-grid.four,
    .card-grid.five,
    .event-grid,
    .team-grid,
    .package-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .header-inner {
        min-height: 76px;
    }

    .brand {
        width: 186px;
    }

    .brand img {
        width: 186px;
        height: 66px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.9rem 20px 1.2rem;
        background: var(--charcoal);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-nav.open {
        display: flex;
    }

    /* Ensure action pills are inside the collapsed mobile menu and stack vertically */
    .nav-actions {
        position: static;
        right: auto;
        margin-left: 0;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 0.6rem;
    }

    .site-nav .nav-pill {
        width: 100%;
        justify-content: center;
    }

    .site-nav a,
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0.35rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: grid;
    }

    .hero,
    .page-hero {
        padding-top: 4rem;
    }

    .section,
    .final-cta {
        padding: 4rem 0;
    }

    .content-grid,
    .cta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .container,
    .narrow {
        width: min(100% - 28px, 1120px);
    }

    h1 {
        font-size: 2.55rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-lead,
    .page-hero p,
    .text-block,
    .article-body {
        font-size: 1rem;
    }

    .hero-image-grid,
    .card-grid.three,
    .card-grid.four,
    .card-grid.five,
    .event-grid,
    .team-grid,
    .package-grid,
    .gallery-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-grid img:first-child {
        grid-column: auto;
        aspect-ratio: 1.38;
    }

    .button,
    .button-row .button {
        width: 100%;
    }

    .whatsapp-bar {
        align-items: stretch;
        text-align: center;
    }

    .whatsapp-bar strong,
    .whatsapp-bar a {
        flex: 1 1 100%;
    }

    .whatsapp-bar span {
        display: none;
    }

    .section-heading {
        text-align: left;
    }

    .center-cta {
        align-items: stretch;
    }

    .center-cta .button {
        width: 100%;
    }

    .admin-header {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    h1 {
        font-size: 2.15rem;
    }

    .brand,
    .brand img,
    .footer-brand img,
    .login-card img {
        width: 168px;
        height: 60px;
    }

    .hero,
    .page-hero {
        padding: 3.2rem 0;
    }

    .section,
    .final-cta {
        padding: 3.2rem 0;
    }

    .info-card,
    .support-card,
    .package-card,
    .team-card,
    .contact-panel,
    .bank-card,
    .form-card {
        padding: 1.05rem;
    }
}

@media (max-width: 1040px) {
    .template-hero h1 {
        font-size: 3.8rem;
    }

    .template-about-grid,
    .impact-heading,
    .template-register-grid {
        grid-template-columns: 1fr;
    }

    .template-about-copy {
        max-width: 760px;
    }

    .impact-heading {
        gap: 1.2rem;
        align-items: start;
    }

    .green-cta-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .template-hero {
        min-height: 560px;
    }

    .template-hero-content {
        padding-bottom: 2.5rem;
    }

    .template-hero h1 {
        font-size: 3rem;
    }

    .template-intro-cards {
        margin-top: -54px;
    }

    .intro-card-row,
    .story-card-row {
        grid-template-columns: 1fr;
    }

    .intro-card-row article {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .intro-card-row article:last-child {
        border-bottom: 0;
    }

    .impact-stat-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.4rem 0;
    }

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

@media (max-width: 680px) {
    .template-hero {
        min-height: 520px;
    }

    .template-hero h1 {
        font-size: 2.35rem;
    }

    .template-hero p:not(.eyebrow) {
        font-size: 1rem;
    }

    .template-hero .button-row .button {
        width: 100%;
    }

    .template-intro-cards,
    .template-about,
    .template-impact,
    .template-green-cta,
    .template-register,
    .template-stories,
    .template-locations {
        padding-bottom: 3.4rem;
    }

    .template-about,
    .template-impact,
    .template-register,
    .template-stories {
        padding-top: 3.4rem;
    }

    .image-collage {
        grid-template-columns: 1fr;
    }

    .image-collage img,
    .image-collage .collage-large,
    .image-collage .collage-tall,
    .template-register-grid > img {
        aspect-ratio: 1.35;
    }

    .impact-stat-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .impact-stat-row article,
    .impact-stat-row article:nth-child(2n) {
        padding: 1rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

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

    .green-cta-inner {
        padding: 1.4rem;
    }

    .class-detail-list div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

@media (max-width: 430px) {
    .template-hero h1 {
        font-size: 2.05rem;
    }

    .intro-card-row article,
    .story-card-row div {
        padding: 1.15rem;
    }

    .impact-heading h2,
    .template-about-copy h2,
    .template-register-grid h2 {
        font-size: 2rem;
    }
}

@media (max-width: 1040px) {
    .classes-hero-grid,
    .program-overview,
    .class-details-layout,
    .registration-grid,
    .why-grid,
    .soft-support-panel,
    .classes-final-inner {
        grid-template-columns: 1fr;
    }

    .classes-home-hero h1 {
        font-size: 3.35rem;
    }

    .classes-summary-panel,
    .registration-card {
        position: static;
    }

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

    .section-heading.align-left {
        max-width: 720px;
    }

    .soft-support-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .classes-home-hero {
        padding: 3.5rem 0 3rem;
    }

    .classes-hero-grid,
    .registration-grid,
    .why-grid {
        gap: 2rem;
    }

    .classes-home-hero h1 {
        font-size: 2.55rem;
    }

    .classes-home-hero .hero-lead {
        font-size: 1rem;
    }

    .hero-quick-list span {
        flex: 1 1 100%;
        justify-content: center;
    }

    .summary-whatsapp,
    .program-stat-grid,
    .class-fact-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .program-overview {
        padding: 1.2rem;
    }

    .class-profile-row {
        grid-template-columns: 1fr;
    }

    .class-profile-row div:first-child {
        padding-bottom: 0.25rem;
    }

    .class-profile-row div:last-child {
        padding-top: 0.25rem;
    }

    .class-details-section,
    .registration-section,
    .why-section,
    .soft-support-section,
    .classes-final-cta {
        padding: 3.2rem 0;
    }

    .class-fact-card {
        min-height: auto;
    }

    .step-card {
        grid-template-columns: 1fr;
    }

    .soft-support-panel {
        padding: 1.2rem;
    }

    .soft-support-actions .button,
    .classes-final-inner .button {
        width: 100%;
    }

    .classes-final-inner h2 {
        font-size: 2rem;
    }
}

@media (max-width: 430px) {
    .classes-home-hero h1 {
        font-size: 2.2rem;
    }

    .classes-summary-panel,
    .registration-card,
    .class-fact-card {
        padding: 1.1rem;
    }
}

@media (max-width: 1180px) {
    .brand,
    .brand img {
        width: 224px;
    }

    .brand img {
        height: 78px;
    }

    .site-nav {
        gap: 0.75rem;
    }

    .home-hero h1 {
        font-size: 3.9rem;
    }

    .highlight-item,
    .class-item {
        padding-inline: 0.9rem;
    }
}

@media (max-width: 1040px) {
    .home-hero {
        min-height: auto;
        padding: 5rem 0 7rem;
    }

    .home-hero::before {
        background:
            linear-gradient(90deg, rgba(8, 13, 12, 0.96) 0%, rgba(8, 13, 12, 0.84) 58%, rgba(8, 13, 12, 0.48) 100%),
            radial-gradient(circle at 18% 42%, rgba(64, 148, 37, 0.18), transparent 34%);
    }

    .hero-photo {
        width: 100%;
        opacity: 0.62;
    }

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

    .hero-spacer {
        display: none;
    }

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

    .highlight-item:nth-child(2n),
    .class-item:nth-child(2n) {
        border-right: 0;
    }

    .highlight-item:nth-child(-n+2),
    .class-item:nth-child(-n+3) {
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--line);
    }

    .home-about-grid {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .home-about-copy {
        max-width: 760px;
    }

    .footer-grid > div:not(:first-child) {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 860px) {
    .header-inner {
        min-height: 84px;
    }

    .brand,
    .brand img {
        width: 190px;
    }

    .brand img {
        height: 66px;
    }

    .site-nav {
        top: 84px;
        gap: 0.15rem;
        background:
            radial-gradient(circle at 12% 0%, rgba(64, 148, 37, 0.14), transparent 36%),
            linear-gradient(90deg, #07100e 0%, #0c1311 100%);
    }

    .site-nav a,
    .nav-dropdown-toggle {
        padding: 0.75rem 0;
    }

    .site-nav a::after,
    .nav-dropdown-toggle::after {
        bottom: 2px;
        transform-origin: left;
    }

    .contribute-button {
        justify-content: center !important;
        width: 100%;
        margin-top: 0.35rem;
    }

    .home-hero {
        padding-top: 4.1rem;
    }

    .home-hero h1 {
        font-size: 3.2rem;
    }

    .home-hero .hero-lead {
        font-size: 1.02rem;
    }

    .whatsapp-bar {
        width: 100%;
    }

    .whatsapp-bar strong,
    .whatsapp-bar a {
        flex: 1 1 100%;
        justify-content: center;
        border-left: 0;
        border-top: 1px solid rgba(8, 13, 12, 0.14);
    }

    .whatsapp-bar strong {
        border-top: 0;
    }

    .home-highlights {
        margin-top: -56px;
    }

    .footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .home-hero {
        padding: 3.5rem 0 6rem;
    }

    .home-hero::after {
        right: -24%;
        width: 112%;
        height: 150px;
        border-top-width: 14px;
    }

    .home-hero h1 {
        font-size: 2.72rem;
    }

    .home-highlights {
        margin-top: -46px;
        padding-bottom: 1.8rem;
    }

    .highlight-strip,
    .class-strip {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .highlight-item,
    .class-item,
    .highlight-item:nth-child(2n),
    .class-item:nth-child(2n) {
        padding: 1rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .highlight-item:first-child,
    .class-item:first-child {
        padding-top: 0;
    }

    .highlight-item:last-child,
    .class-item:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .home-about-section,
    .home-classes-section,
    .home-support-section {
        padding-block: 2.7rem;
    }

    .home-about-copy h2,
    .final-cta .section-heading h2 {
        font-size: 2rem;
    }

    .support-panel {
        padding: 1.25rem;
    }

    .home-support-section .support-card {
        grid-template-columns: auto 1fr;
        min-height: auto;
    }

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

    .cta-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-icon {
        margin: 0 auto;
    }

    .footer-grid {
        gap: 2rem;
    }
}

@media (max-width: 430px) {
    .home-hero h1 {
        font-size: 2.25rem;
    }

    .feature-icon {
        width: 46px;
        height: 46px;
    }

    .feature-icon::before {
        width: 34px;
        height: 34px;
    }

    .highlight-item,
    .class-item,
    .home-support-section .support-card {
        gap: 0.8rem;
    }

    .footer-brand img {
        width: 190px;
        height: 66px;
    }
}

@media (max-width: 1040px) {
    .classes-page-hero-grid,
    .class-page-details-grid,
    .class-register-grid,
    .class-help-grid,
    .class-support-panel {
        grid-template-columns: 1fr;
    }

    .classes-page-hero h1 {
        font-size: 3.35rem;
    }

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

    .class-hero-panel,
    .registration-card {
        position: static;
    }

    .class-support-panel .soft-support-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .classes-page-hero {
        min-height: auto;
        padding: 4.2rem 0 4rem;
    }

    .classes-page-overlay {
        background:
            linear-gradient(180deg, rgba(8, 13, 12, 0.92) 0%, rgba(8, 13, 12, 0.82) 100%),
            linear-gradient(90deg, rgba(8, 13, 12, 0.62), rgba(8, 13, 12, 0.62));
    }

    .classes-page-hero-grid,
    .class-page-details-grid,
    .class-register-grid,
    .class-help-grid {
        gap: 2rem;
    }

    .classes-page-hero h1 {
        font-size: 2.55rem;
    }

    .classes-page-hero p:not(.eyebrow) {
        font-size: 1rem;
    }

    .class-page-details,
    .subjects-section,
    .class-register-section,
    .class-help-section,
    .faq-section,
    .class-support-section {
        padding: 3.2rem 0;
    }

    .subject-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .subject-grid article {
        min-height: auto;
    }

    .class-hero-panel,
    .class-help-card,
    .class-support-panel {
        padding: 1.2rem;
    }

    .classes-page-hero .button,
    .class-help-section .button,
    .class-support-panel .button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .classes-page-hero h1 {
        font-size: 2.2rem;
    }

    .class-hero-panel li,
    .faq-grid article,
    .subject-grid article {
        padding: 1rem;
    }
}

@media (max-width: 1180px) {
    .brand,
    .brand img {
        width: 210px;
    }

    .brand img {
        height: 58px;
    }

    .site-nav {
        gap: 1rem;
    }
}

@media (max-width: 1040px) {
    .home-redesign-hero {
        min-height: auto;
        padding: 82px 0 72px;
    }

    .home-hero-inner,
    .home-about-inner {
        grid-template-columns: 1fr;
    }

    .home-hero-copy {
        max-width: 760px;
    }

    .home-redesign-hero h1 {
        font-size: 3.45rem;
    }

    .home-about-inner {
        gap: 3rem;
    }

    .home-class-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-register-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .home-quick-card {
        display: none;
    }

    .home-step-grid,
    .home-proof-grid {
        grid-template-columns: 1fr;
    }

    .home-step-card {
        padding: 2rem;
    }
}

@media (max-width: 860px) {
    .header-inner {
        min-height: 76px;
    }

    .brand,
    .brand img {
        width: 188px;
    }

    .brand img {
        height: 52px;
    }

    .site-nav {
        top: 76px;
        gap: 0;
        padding: 1rem 20px 1.25rem;
        background: rgba(15, 26, 16, 0.98);
    }

    .site-nav a,
    .nav-dropdown-toggle {
        min-height: 46px;
        padding: 0.4rem 0;
    }

    .nav-cta {
        justify-content: center !important;
        width: 100%;
        margin-top: 0.5rem;
    }

    .home-redesign-hero {
        padding-top: 64px;
    }

    .home-section-heading,
    .home-section-heading.centered {
        text-align: left;
        margin-right: 0;
        margin-left: 0;
    }

    .home-section-heading.centered .home-section-eyebrow {
        justify-content: flex-start;
    }

    .home-section-heading.centered .home-section-eyebrow::before {
        content: "";
    }
}

@media (max-width: 680px) {
    .home-redesign-hero {
        padding: 52px 0 62px;
    }

    .home-redesign-hero h1 {
        font-size: 2.5rem;
    }

    .home-hero-sub {
        font-size: 1rem;
    }

    .home-hero-actions,
    .home-register-actions {
        width: 100%;
        align-items: stretch;
    }

    .home-steps,
    .home-about-band,
    .home-classes,
    .home-proof {
        padding: 3.4rem 0;
    }

    .home-section-heading {
        margin-bottom: 2.2rem;
    }

    .home-section-heading h2,
    .home-about-copy h2,
    .home-register-inner h2 {
        font-size: 2.05rem;
    }

    .home-about-images {
        grid-template-columns: 1fr;
    }

    .home-about-images .home-about-image-large,
    .home-about-images img {
        grid-column: auto;
        aspect-ratio: 1.35;
    }

    .home-about-stats,
    .home-class-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-register-cta {
        padding: 3.5rem 0;
    }

    .home-proof-card {
        min-height: auto;
        padding: 1.5rem;
    }

    .home-areas-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}

@media (max-width: 430px) {
    .brand,
    .brand img,
    .footer-brand img {
        width: 168px;
    }

    .brand img,
    .footer-brand img {
        height: 48px;
    }

    .home-redesign-hero h1 {
        font-size: 2.16rem;
    }

    .home-step-card,
    .home-class-card {
        padding: 1.2rem;
    }

    .home-step-number {
        font-size: 3.2rem;
    }
}

@media (max-width: 1120px) {
    .nav-toggle {
        display: block;
        justify-self: end;
    }

    .site-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 20px 1.25rem;
        background: rgba(15, 26, 16, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-nav.open {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .site-nav a,
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        min-height: 46px;
        padding: 0.4rem 0;
    }

    .nav-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
        margin: 0.65rem 0 0;
        width: 100%;
    }

    .site-nav .nav-pill {
        width: 100%;
        justify-content: center;
        min-height: 46px;
        padding: 0.65rem 0.85rem;
    }
}

@media (max-width: 1040px) {
    .subpage-hero {
        min-height: auto;
        padding: 88px 0 74px;
    }

    .contact-bank-hero {
        min-height: auto;
        padding: 82px 0 70px;
    }

    .contact-bank-hero .subpage-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .subpage-hero-inner,
    .subpage-split,
    .split-heading,
    .contact-bank-grid,
    .bank-support-grid,
    .contribution-grid,
    .loyalty-grid,
    .sports-support-box,
    .sports-slide-layout,
    .academic-project-card {
        grid-template-columns: 1fr;
    }

    .subpage-hero h1 {
        font-size: 3.35rem;
    }

    .area-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .subject-card-grid,
    .contact-detail-grid,
    .online-support-grid,
    .sponsorship-tier-grid,
    .flow-grid,
    .people-grid,
    .way-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-tab-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .official-bank-row {
        grid-template-columns: 210px 1fr;
    }

    .senior-member-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .support-option-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .academic-project-media {
        min-height: 290px;
    }

    .academic-project-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .subpage-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .subpage-hero {
        padding: 58px 0 62px;
    }

    .contact-bank-hero {
        padding: 52px 0 48px;
    }

    .subpage-hero-card {
        display: none;
    }

    .contact-bank-hero-card {
        display: none;
        padding: 1.2rem;
    }

    .subpage-hero h1 {
        font-size: 2.55rem;
    }

    .contact-bank-hero h1 {
        font-size: 2.32rem;
        line-height: 1.08;
    }

    .subpage-hero p {
        font-size: 1rem;
    }

    .contact-bank-hero .subpage-badge {
        align-items: flex-start;
        white-space: normal;
        line-height: 1.35;
    }

    .contact-bank-hero .subpage-actions {
        margin-top: 1.35rem;
    }

    .subpage-section {
        padding: 3.5rem 0;
    }

    .class-overview-section {
        padding-bottom: 2rem;
    }

    .class-subjects-section {
        padding-top: 2rem;
    }

    .class-enquiry-cta {
        padding-top: 2.5rem;
    }

    .subpage-title,
    .subpage-cta h2 {
        font-size: 2.08rem;
    }

    .subpage-heading,
    .subpage-heading.centered {
        margin-right: 0;
        margin-left: 0;
        text-align: left;
    }

    .centered .subpage-eyebrow {
        justify-content: flex-start;
    }

    .centered .subpage-eyebrow::before {
        content: "";
    }

    .subpage-image-stack,
    .area-grid,
    .subject-card-grid,
    .contact-detail-grid,
    .online-support-grid,
    .sponsorship-tier-grid,
    .flow-grid,
    .way-grid,
    .people-grid,
    .role-grid,
    .senior-member-gallery {
        grid-template-columns: 1fr;
    }

    .subpage-image-stack .image-stack-large,
    .subpage-image-stack img {
        grid-column: auto;
        aspect-ratio: 1.35;
    }

    .subpage-actions {
        width: 100%;
        align-items: stretch;
    }

    .teacher-grid article {
        padding: 1.35rem;
    }

    .teacher-card h3 {
        min-height: 0;
    }

    .subpage-actions .button {
        width: 100%;
    }

    .mission-list article,
    .numbered-list article,
    .benefit-list article {
        grid-template-columns: 1fr;
    }

    .bank-detail-card dl div,
    .contact-bank-hero-card dl div,
    .contact-bank-mini-list div,
    .official-bank-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .contact-bank-mini-list {
        gap: 0.65rem;
    }

    .contact-bank-mini-list div {
        min-height: auto;
        padding: 0.85rem;
    }

    .official-bank-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .support-tab-list {
        grid-template-columns: 1fr;
    }

    .support-tab-panel,
    .tab-action-card {
        padding: 1.2rem;
    }

    .online-payment-fields {
        grid-template-columns: 1fr;
    }

    .online-payment-fields label:last-child {
        grid-column: auto;
    }

    .tab-action-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .academic-project-content {
        padding: 1.75rem 1.35rem;
    }

    .academic-support-item,
    .academic-project-total {
        align-items: flex-start;
        flex-direction: column;
    }

    .academic-support-item strong {
        white-space: normal;
    }

    .loyalty-card-mock {
        min-height: 280px;
    }

    .mock-card {
        width: min(340px, 86%);
    }

    .sports-slide-layout {
        min-height: auto;
    }

    .sports-slide-media {
        padding: 1rem;
    }

    .sports-main-image {
        min-height: 220px;
        aspect-ratio: 1.25;
    }

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

    .sports-slide-content {
        padding: 1.5rem;
    }

    .sports-slide-content h3 {
        font-size: 2rem;
    }

    .sports-slider-controls {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .nav-actions {
        grid-template-columns: 1fr;
    }

    .subpage-hero h1 {
        font-size: 2.18rem;
    }

    .subpage-hero {
        padding-top: 48px;
    }

    .area-grid article,
    .subject-card-grid article,
    .flow-grid article,
    .way-grid article,
    .project-grid article,
    .people-grid article,
    .support-option-grid article,
    .academic-project-cta,
    .subpage-info-box,
    .bank-detail-card,
    .impact-card {
        padding: 1.2rem;
    }
}

.brand {
    width: auto;
    min-width: 0;
}

.brand .brand-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
}

.footer-logo .brand-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
}

@media (max-width: 860px) {
    .brand {
        max-width: calc(100vw - 96px);
    }

    .brand .brand-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .brand-title {
        font-size: 0.98rem;
    }

    .brand-subtitle {
        font-size: 0.58rem;
    }
}

@media (max-width: 430px) {
    .brand .brand-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .brand-title {
        font-size: 0.92rem;
    }

    .brand-subtitle {
        font-size: 0.55rem;
    }

    .footer-logo .brand-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }
}
