:root {
    --ink: #13201a;
    --muted: #66736d;
    --line: #d9e0db;
    --green: #0f7a4b;
    --green-dark: #075233;
    --yellow: #f7c948;
    --red: #d94b3d;
    --paper: #f8faf8;
    --white: #ffffff;
    --shadow: 0 18px 48px rgba(19, 32, 26, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 10px clamp(18px, 5vw, 72px);
    color: var(--white);
    background: var(--green-dark);
    font-size: 14px;
}

.topbar-links {
    display: flex;
    gap: 18px;
    white-space: nowrap;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 5vw, 72px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 800;
    letter-spacing: 0;
}

.brand img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.brand span {
    overflow-wrap: anywhere;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #2d3b35;
    font-weight: 700;
}

.nav-menu a.active {
    color: var(--green);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid var(--green);
    border-radius: 8px;
    color: var(--white);
    background: var(--green);
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 122, 75, 0.24);
}

.btn-small {
    min-height: 40px;
    padding: 9px 16px;
}

.btn-ghost {
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.82);
    box-shadow: none;
}

.hero {
    min-height: min(760px, calc(100vh - 90px));
    display: flex;
    align-items: center;
    padding: clamp(72px, 9vw, 128px) clamp(18px, 5vw, 72px) clamp(96px, 12vw, 150px);
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(7, 82, 51, 0.94) 0%, rgba(7, 82, 51, 0.72) 44%, rgba(7, 82, 51, 0.18) 100%),
        url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-content {
    width: min(720px, 100%);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--yellow);
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.intro h2,
.section-heading h2,
.excellence-copy h2,
.cta h2 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 740px;
    font-size: clamp(42px, 7vw, 78px);
}

.hero p:not(.eyebrow) {
    max-width: 640px;
    margin: 22px 0 0;
    font-size: 19px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.intro,
.majors,
.headmaster,
.staff-section,
.facilities-section,
.facilities-archive,
.gallery-archive,
.news-section,
.news-archive,
.testimonials,
.cta,
.feature-grid,
.excellence,
.footer,
.page-hero,
.post-detail {
    padding-inline: clamp(18px, 5vw, 72px);
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 42px;
    padding-top: 86px;
    padding-bottom: 48px;
    background: var(--white);
}

.intro h2,
.section-heading h2,
.excellence-copy h2,
.cta h2 {
    font-size: clamp(30px, 4vw, 52px);
}

.intro p:not(.eyebrow) {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 18px;
}

.intro a {
    color: var(--green);
    font-weight: 800;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding-top: 30px;
    padding-bottom: 86px;
    background: var(--white);
}

.feature-card,
.major-card,
.testimonial-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.feature-card {
    min-height: 210px;
    padding: 28px;
}

.feature-card h3,
.major-card h3,
.testimonial-card h3 {
    margin: 0 0 10px;
    line-height: 1.25;
}

.feature-card p,
.major-card p,
.staff-card p,
.facility-card p,
.testimonial-card p,
.excellence-copy p,
.excellence-copy li,
.cta p,
.footer p,
.footer a {
    color: var(--muted);
}

.majors {
    padding-top: 86px;
    padding-bottom: 96px;
}

.headmaster {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: center;
    padding-top: 92px;
    padding-bottom: 92px;
    background: #f1f5f2;
}

.headmaster-photo {
    position: relative;
}

.headmaster-photo::after {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    z-index: 0;
    border-radius: 8px;
    background: var(--yellow);
}

.headmaster-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.headmaster-copy h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.headmaster-copy span {
    display: inline-flex;
    margin: 14px 0 18px;
    color: var(--red);
    font-weight: 900;
}

.headmaster-copy p:not(.eyebrow),
.headmaster-message {
    max-width: 760px;
    color: var(--muted);
    font-size: 19px;
}

.headmaster-message h2,
.headmaster-message h3 {
    margin: 22px 0 10px;
    color: var(--ink);
    line-height: 1.2;
}

.headmaster-message p,
.headmaster-message ul,
.headmaster-message ol {
    margin: 0 0 14px;
}

.headmaster-message img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 8px;
}

.staff-section {
    padding-top: 86px;
    padding-bottom: 96px;
    background: var(--white);
}

.staff-slider {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.staff-track {
    display: flex;
    width: max-content;
    gap: 22px;
    animation: staff-slide 42s linear infinite;
}

.staff-slider:hover .staff-track {
    animation-play-state: paused;
}

.staff-card {
    position: relative;
    overflow: hidden;
    flex: 0 0 min(310px, calc(100vw - 44px));
    min-height: 360px;
    border-radius: 8px;
    color: var(--white);
    background: var(--green-dark);
    box-shadow: var(--shadow);
    isolation: isolate;
    transform: translateY(0);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.staff-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(7, 82, 51, 0.05), rgba(7, 82, 51, 0.88));
    transition: background 220ms ease;
}

.staff-card img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    transition: transform 360ms ease;
}

.staff-card div {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 22px;
    transform: translateY(8px);
    transition: transform 220ms ease;
}

.staff-card h3 {
    margin: 0 0 6px;
    line-height: 1.2;
}

.staff-card p {
    margin: 0;
    color: #eef7f2;
    font-weight: 800;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 70px rgba(19, 32, 26, 0.22);
}

.staff-card:hover img {
    transform: scale(1.08);
}

.staff-card:hover div {
    transform: translateY(0);
}

.staff-card:hover::after {
    background: linear-gradient(180deg, rgba(217, 75, 61, 0.12), rgba(7, 82, 51, 0.94));
}

.facilities-section,
.facilities-archive {
    padding-top: 86px;
    padding-bottom: 96px;
    background: #f1f5f2;
}

.facility-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.facility-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.facility-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.facility-card div {
    padding: 24px;
}

.facility-card h3 {
    margin: 0 0 10px;
    line-height: 1.25;
}

.news-section,
.news-archive {
    padding-top: 86px;
    padding-bottom: 96px;
    background: var(--paper);
}

.news-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.news-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.news-card div {
    padding: 24px;
}

.news-card span {
    color: var(--red);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-card h3 {
    margin: 10px 0;
    line-height: 1.25;
}

.news-card p {
    color: var(--muted);
}

.read-more,
.all-news {
    color: var(--green);
    font-weight: 900;
}

.all-news {
    display: inline-flex;
    margin-top: 28px;
}

.page-hero {
    padding-top: 86px;
    padding-bottom: 72px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(7, 82, 51, 0.92), rgba(7, 82, 51, 0.62)),
        url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.page-hero h1,
.post-detail h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.08;
}

.page-hero p:not(.eyebrow) {
    max-width: 720px;
    color: #eef7f2;
    font-size: 19px;
}

.gallery-hero {
    background:
        linear-gradient(90deg, rgba(7, 82, 51, 0.92), rgba(7, 82, 51, 0.56)),
        url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.gallery-archive {
    display: grid;
    gap: 72px;
    padding-top: 86px;
    padding-bottom: 96px;
    background: var(--white);
}

.gallery-album {
    display: grid;
    gap: 26px;
}

.gallery-album .section-heading p:not(.eyebrow) {
    color: var(--muted);
    font-size: 18px;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 16px;
}

.gallery-mosaic figure {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    margin: 0;
    border-radius: 8px;
    background: var(--green-dark);
    box-shadow: var(--shadow);
}

.gallery-mosaic figure.featured {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 456px;
}

.gallery-mosaic img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 320ms ease, filter 320ms ease;
}

.gallery-mosaic figcaption {
    position: absolute;
    inset: auto 12px 12px 12px;
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--white);
    background: rgba(19, 32, 26, 0.76);
    font-weight: 800;
}

.gallery-mosaic figure:hover img {
    filter: saturate(1.08);
    transform: scale(1.06);
}

.post-detail {
    padding-top: 72px;
    padding-bottom: 92px;
    background: var(--white);
}

.post-detail header {
    max-width: 980px;
    margin: 0 auto;
}

.post-detail header img {
    width: 100%;
    max-height: 560px;
    margin-top: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.post-body {
    max-width: 820px;
    margin: 38px auto 0;
    color: #2f3e37;
    font-size: 19px;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin: 30px 0 12px;
    color: var(--ink);
    line-height: 1.22;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote {
    margin: 0 0 18px;
}

.post-body img {
    width: 100%;
    height: auto;
    margin: 22px 0;
    border-radius: 8px;
}

.post-body blockquote {
    border-left: 4px solid var(--green);
    padding-left: 18px;
    color: var(--muted);
}

.post-detail .all-news {
    max-width: 820px;
    margin: 30px auto 0;
}

.section-heading {
    max-width: 740px;
    margin-bottom: 34px;
}

.major-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.major-card {
    overflow: hidden;
    box-shadow: var(--shadow);
}

.major-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.major-card div {
    padding: 24px;
}

.excellence {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 52px;
    align-items: center;
    padding-top: 94px;
    padding-bottom: 94px;
    color: var(--white);
    background: var(--green-dark);
}

.excellence-image img {
    width: 100%;
    min-height: 520px;
    object-fit: cover;
    border-radius: 8px;
}

.excellence-copy p,
.excellence-copy li {
    color: #dce9e2;
}

.excellence-copy ul {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding-left: 20px;
}

.testimonials {
    padding-top: 88px;
    padding-bottom: 94px;
    background: var(--white);
}

.testimonial-showcase {
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
        url("https://images.unsplash.com/photo-1577896851231-70ef18881754?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.testimonial-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.testimonial-track {
    display: flex;
    width: max-content;
    gap: 22px;
    animation: testimonial-slide 38s linear infinite;
}

.testimonial-marquee:hover .testimonial-track {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 min(520px, calc(100vw - 44px));
    min-height: 300px;
    padding: clamp(28px, 5vw, 56px);
    box-shadow: var(--shadow);
}

.testimonial-card p {
    max-width: 820px;
    margin: 0 0 22px;
    color: #2f3e37;
    font-size: clamp(20px, 3vw, 32px);
    line-height: 1.4;
}

.testimonial-card span {
    color: var(--red);
    font-weight: 800;
}

.testimonial-archive {
    padding: 86px clamp(18px, 5vw, 72px) 96px;
    background: var(--white);
}

.testimonial-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.testimonial-archive-grid .testimonial-card {
    flex: initial;
}

@keyframes testimonial-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 11px));
    }
}

@keyframes staff-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 11px));
    }
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 72px;
    padding-bottom: 72px;
    color: var(--white);
    background: var(--green);
}

.cta p {
    max-width: 650px;
    color: #eef7f2;
}

.cta .eyebrow {
    color: var(--yellow);
}

.cta .btn {
    flex: 0 0 auto;
    color: var(--ink);
    background: var(--yellow);
    border-color: var(--yellow);
    box-shadow: none;
}

.footer {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.4fr 1fr;
    gap: 34px;
    padding-top: 72px;
    padding-bottom: 62px;
    background: #f1f5f2;
}

.footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer a {
    display: block;
    margin-bottom: 10px;
}

.footer-brand {
    margin-bottom: 16px;
}

.copyright {
    padding: 18px clamp(18px, 5vw, 72px);
    color: #eef7f2;
    background: var(--green-dark);
    text-align: center;
}

@media (max-width: 980px) {
    .topbar,
    .intro,
    .headmaster,
    .excellence,
    .cta {
        grid-template-columns: 1fr;
    }

    .topbar {
        display: grid;
    }

    .feature-grid,
    .major-list,
    .facility-list,
    .news-list,
    .gallery-mosaic,
    .testimonial-archive-grid,
    .footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        inset: 100% 18px auto 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

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

    .nav-menu a {
        padding: 12px;
    }

    .excellence-image img {
        min-height: 360px;
    }
}

@media (max-width: 680px) {
    .topbar-links,
    .hero-actions,
    .cta {
        align-items: stretch;
        flex-direction: column;
    }

    .feature-grid,
    .major-list,
    .facility-list,
    .news-list,
    .gallery-mosaic,
    .testimonial-archive-grid,
    .footer {
        grid-template-columns: 1fr;
    }

    .gallery-mosaic figure,
    .gallery-mosaic figure.featured {
        grid-column: auto;
        grid-row: auto;
        min-height: 280px;
    }

    .hero {
        min-height: auto;
        padding-top: 74px;
        padding-bottom: 82px;
        background:
            linear-gradient(90deg, rgba(7, 82, 51, 0.94), rgba(7, 82, 51, 0.76)),
            url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1200&q=80") center/cover;
    }

    .hero h1 {
        font-size: 42px;
    }

    .btn {
        width: 100%;
    }
}


/* ===== Responsive hardening patch ===== */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img,
video,
iframe,
svg,
canvas {
    max-width: 100%;
    height: auto;
}

.topbar,
.navbar,
.hero,
.intro,
.feature-grid,
.majors,
.headmaster,
.staff-section,
.facilities-section,
.facilities-archive,
.gallery-archive,
.news-section,
.news-archive,
.testimonials,
.cta,
.excellence,
.footer,
.page-hero,
.post-detail,
.post-body,
.section-heading,
.major-list,
.facility-list,
.news-list,
.gallery-mosaic,
.testimonial-archive-grid {
    min-width: 0;
}

.brand,
.nav-menu,
.hero-content,
.intro > *,
.headmaster > *,
.excellence > *,
.cta > *,
.footer > *,
.major-card,
.facility-card,
.news-card,
.testimonial-card,
.gallery-mosaic figure,
.post-body > * {
    min-width: 0;
}

.brand span,
.topbar,
.topbar-links,
.nav-menu a,
.section-heading p,
.hero p,
.intro p,
.headmaster-copy p,
.post-body,
.footer a,
.footer p {
    overflow-wrap: anywhere;
}

.nav-menu a,
.topbar a,
.btn {
    touch-action: manipulation;
}

.btn,
.nav-toggle {
    font-size: 16px;
}

.hero-actions,
.topbar-links {
    flex-wrap: wrap;
}

.staff-card,
.testimonial-card,
.news-card,
.facility-card,
.major-card,
.feature-card {
    min-width: 0;
}

.post-detail {
    overflow-x: hidden;
}

.post-body {
    font-size: clamp(16px, 2.5vw, 19px);
}

.post-body table,
.post-body iframe,
.headmaster-message table,
.headmaster-message iframe {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.post-body pre,
.post-body code,
.headmaster-message pre,
.headmaster-message code {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

@media (max-width: 1180px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .major-list,
    .facility-list,
    .news-list,
    .testimonial-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 980px) {
    .site-header {
        position: sticky;
    }

    .topbar {
        gap: 10px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .navbar {
        position: relative;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .nav-menu {
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }

    .hero {
        min-height: auto;
        align-items: flex-end;
        padding-top: 88px;
        padding-bottom: 88px;
    }

    .intro,
    .headmaster,
    .excellence,
    .cta {
        display: grid;
        grid-template-columns: 1fr;
    }

    .headmaster-photo::after {
        inset: 14px -14px -14px 14px;
    }

    .excellence-image img {
        min-height: 320px;
    }
}

@media (max-width: 680px) {
    .topbar {
        padding-left: 16px;
        padding-right: 16px;
        font-size: 13px;
    }

    .topbar-links {
        gap: 10px;
        white-space: normal;
    }

    .navbar,
    .hero,
    .intro,
    .majors,
    .headmaster,
    .staff-section,
    .facilities-section,
    .facilities-archive,
    .gallery-archive,
    .news-section,
    .news-archive,
    .testimonials,
    .cta,
    .feature-grid,
    .excellence,
    .footer,
    .page-hero,
    .post-detail {
        padding-inline: 16px;
    }

    .hero {
        padding-top: 72px;
        padding-bottom: 76px;
    }

    .hero h1,
    .page-hero h1,
    .post-detail h1,
    .headmaster-copy h2,
    .intro h2,
    .section-heading h2,
    .excellence-copy h2,
    .cta h2 {
        word-break: break-word;
    }

    .hero h1 {
        font-size: clamp(34px, 10vw, 42px);
    }

    .hero p:not(.eyebrow),
    .page-hero p:not(.eyebrow),
    .intro p:not(.eyebrow),
    .headmaster-copy p:not(.eyebrow),
    .headmaster-message,
    .gallery-album .section-heading p:not(.eyebrow) {
        font-size: 16px;
    }

    .feature-grid,
    .major-list,
    .facility-list,
    .news-list,
    .gallery-mosaic,
    .testimonial-archive-grid,
    .footer {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .major-card div,
    .facility-card div,
    .news-card div,
    .testimonial-card {
        padding: 18px;
    }

    .headmaster {
        gap: 28px;
        padding-top: 72px;
        padding-bottom: 76px;
    }

    .headmaster-photo::after {
        display: none;
    }

    .staff-card {
        flex-basis: min(280px, calc(100vw - 32px));
        min-height: 320px;
    }

    .staff-card img {
        min-height: 320px;
    }

    .gallery-archive {
        gap: 48px;
        padding-top: 72px;
        padding-bottom: 76px;
    }

    .gallery-mosaic figure,
    .gallery-mosaic figure.featured {
        min-height: 220px;
    }

    .post-detail header img {
        margin-top: 22px;
        max-height: 320px;
    }

    .post-body {
        margin-top: 28px;
    }

    .cta {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .cta .btn,
    .hero-actions .btn,
    .hero-actions .btn-small {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .topbar,
    .navbar,
    .hero,
    .intro,
    .majors,
    .headmaster,
    .staff-section,
    .facilities-section,
    .facilities-archive,
    .gallery-archive,
    .news-section,
    .news-archive,
    .testimonials,
    .cta,
    .feature-grid,
    .excellence,
    .footer,
    .page-hero,
    .post-detail,
    .copyright {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .nav-toggle {
        padding: 9px 12px;
    }

    .nav-menu {
        inset: 100% 12px auto 12px;
        padding: 10px;
    }

    .hero-actions {
        gap: 10px;
    }

    .feature-card {
        min-height: 0;
    }

    .testimonial-card {
        flex-basis: min(320px, calc(100vw - 24px));
    }

    .staff-card {
        flex-basis: min(260px, calc(100vw - 24px));
    }
}
