:root {
    --ink: #17211d;
    --green: #12372a;
    --green-2: #2f6f4e;
    --gold: #f4cf72;
    --clay: #b7791f;
    --wine: #7a263f;
    --blue: #17324d;
}

html {
    scroll-behavior: smooth;
}

[x-cloak] {
    display: none !important;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a,
button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

.site-shell {
    min-height: 100vh;
    overflow-x: hidden;
}

.nav-link {
    border-radius: 6px;
    color: #263930;
    font-size: 0.875rem;
    font-weight: 800;
    padding: 0.65rem 0.85rem;
    transition: background-color .2s ease, color .2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: #eef3ec;
    color: var(--green);
}

.btn-primary,
.btn-secondary,
.btn-light {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 900;
    gap: .5rem;
    justify-content: center;
    min-height: 2.75rem;
    padding: .75rem 1rem;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    white-space: normal;
}

.btn-primary {
    background: var(--green);
    box-shadow: 0 16px 34px rgba(18, 55, 42, .24);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    border: 1px solid rgba(18, 55, 42, .16);
    color: var(--green);
}

.btn-light {
    background: rgba(255,255,255,.9);
    color: var(--green);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
    transform: translateY(-1px);
}

.icon-button {
    align-items: center;
    background: #eef3ec;
    border-radius: 6px;
    color: var(--green);
    display: inline-flex;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.brand-mark {
    align-items: center;
    background: #12372a;
    border-radius: 6px;
    color: #f4cf72;
    display: inline-flex;
    font-size: .86rem;
    font-weight: 950;
    height: 2.9rem;
    justify-content: center;
    overflow: hidden;
    width: 2.9rem;
}

.brand-mark img {
    background: #fff;
    height: 100%;
    object-fit: contain;
    padding: .2rem;
    width: 100%;
}

.footer-brand-mark {
    align-items: center;
    background: #fff;
    border-radius: 6px;
    color: #12372a;
    display: inline-flex;
    font-size: .86rem;
    font-weight: 950;
    height: 2.9rem;
    justify-content: center;
    overflow: hidden;
    width: 2.9rem;
}

.footer-brand-mark img {
    height: 100%;
    object-fit: contain;
    padding: .2rem;
    width: 100%;
}

.icon-button svg,
.portal-card svg,
.school-icon svg,
.mini-icon svg {
    height: 1.25rem;
    width: 1.25rem;
}

.hero {
    min-height: 780px;
    position: relative;
}

.home-hero {
    min-height: min(820px, 100svh);
    overflow: hidden;
    position: relative;
}

.home-hero::before {
    background-image:
        linear-gradient(90deg, rgba(9, 23, 18, .90) 0%, rgba(18, 55, 42, .78) 37%, rgba(18, 55, 42, .30) 68%, rgba(18, 55, 42, .14) 100%),
        url('../images/theoedu-campus-hero.png');
    background-position: center;
    background-size: cover;
    content: "";
    inset: 0;
    position: absolute;
}

.home-hero::after {
    background: linear-gradient(180deg, transparent 0%, rgba(246, 241, 231, .98) 100%);
    bottom: 0;
    content: "";
    height: 140px;
    inset-inline: 0;
    position: absolute;
}

.hero-logo-lockup {
    align-items: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(8, 22, 17, .18);
    display: inline-flex;
    gap: 1rem;
    padding: .85rem 1rem;
    backdrop-filter: blur(16px);
}

.hero-logo-mark {
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(0,0,0,.2);
    color: var(--green);
    display: inline-flex;
    font-size: 1.25rem;
    font-weight: 950;
    height: 5rem;
    justify-content: center;
    overflow: hidden;
    width: 5rem;
}

.hero-logo-mark img {
    height: 100%;
    object-fit: contain;
    padding: .35rem;
    width: 100%;
}

.hero-kicker {
    background: rgba(244, 207, 114, .14);
    border: 1px solid rgba(244, 207, 114, .36);
    border-radius: 6px;
    color: #ffe69a;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .18em;
    padding: .7rem .9rem;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    max-width: 100%;
}

.hero-panel {
    background: rgba(255, 252, 245, .91);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    box-shadow: 0 28px 90px rgba(8, 22, 17, .28);
    color: var(--ink);
    backdrop-filter: blur(18px);
}

.hero-dashboard {
    align-self: center;
}

.hero-link-row {
    align-items: center;
    background: #f8f1e3;
    border: 1px solid #e6dcc8;
    border-radius: 6px;
    color: #263930;
    display: flex;
    font-size: .9rem;
    font-weight: 900;
    gap: .75rem;
    min-height: 3.25rem;
    padding: .8rem .9rem;
    transition: background-color .2s ease, transform .2s ease;
}

.hero-link-row:hover {
    background: #fff7e8;
    transform: translateY(-1px);
}

.hero-link-row svg {
    color: #7a263f;
    height: 1.1rem;
    width: 1.1rem;
}

.legacy-portal-link {
    align-items: center;
    background: #12372a;
    border: 1px solid rgba(18, 55, 42, .18);
    border-radius: 8px;
    color: #fff;
    display: flex;
    gap: .9rem;
    padding: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.legacy-portal-link:hover {
    box-shadow: 0 18px 40px rgba(18,55,42,.18);
    transform: translateY(-1px);
}

.legacy-portal-link strong,
.legacy-portal-link small {
    display: block;
}

.legacy-portal-link strong {
    font-size: .95rem;
    font-weight: 950;
}

.legacy-portal-link small {
    color: rgba(255,255,255,.72);
    font-size: .78rem;
    font-weight: 800;
    margin-top: .15rem;
    word-break: break-word;
}

.metric-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.95), rgba(247,241,229,.88));
    border: 1px solid #e6dcc8;
    border-radius: 8px;
}

.home-stat-band {
    margin-top: -2.4rem;
    position: relative;
    z-index: 20;
}

.stat-note {
    align-items: center;
    color: #263930;
    display: flex;
    font-size: .9rem;
    font-weight: 900;
    gap: .75rem;
    min-height: 4rem;
    padding: .5rem .75rem;
}

.stat-note svg {
    color: #7a263f;
    height: 1.25rem;
    width: 1.25rem;
}

.hero::before {
    background-image:
        linear-gradient(90deg, rgba(10, 20, 16, .84) 0%, rgba(18, 55, 42, .70) 34%, rgba(18, 55, 42, .16) 68%, rgba(18, 55, 42, .05) 100%),
        url('../images/theoedu-campus-hero.png');
    background-position: center;
    background-size: cover;
    content: "";
    inset: 0;
    position: absolute;
}

.section-band {
    padding: 5.5rem 1rem;
}

.glass-panel {
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(27, 35, 31, .12);
    backdrop-filter: blur(18px);
}

.stat-tile,
.school-card,
.portal-card,
.office-panel,
.suite-card,
.news-card,
.event-row,
.programme-row,
.programme-card,
.timeline-row,
.dashboard-tile,
.contact-tile {
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(31, 55, 45, .10);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(28,39,34,.08);
}

.elevated-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88));
}

.school-card,
.portal-card,
.role-chip,
.news-card,
.programme-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.school-card:hover,
.portal-card:hover,
.role-chip:hover,
.news-card:hover,
.programme-card:hover {
    box-shadow: 0 22px 58px rgba(28,39,34,.14);
    transform: translateY(-2px);
}

.school-icon,
.mini-icon {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.eyebrow {
    color: #9a6b15;
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.heading-xl {
    font-size: clamp(2.65rem, 6vw, 6.25rem);
    font-weight: 950;
    line-height: .96;
}

.heading-lg {
    font-size: clamp(2rem, 3.6vw, 3.9rem);
    font-weight: 950;
    line-height: 1.04;
}

.soft-grid {
    background-image:
        linear-gradient(rgba(18, 55, 42, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 55, 42, .06) 1px, transparent 1px);
    background-size: 44px 44px;
}

.clamp-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.field-control {
    background: #fff;
    border: 1px solid #d9decf;
    border-radius: 6px;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 700;
    min-height: 3rem;
    outline: none;
    padding: .75rem .9rem;
    width: 100%;
}

.field-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(18, 55, 42, .10);
}

.form-label {
    color: var(--green);
    font-size: .9rem;
    font-weight: 900;
}

.info-pill,
.info-box {
    background: #f7f1e5;
    border: 1px solid #e5dccb;
    border-radius: 6px;
    color: #324139;
    font-size: .82rem;
    font-weight: 900;
    min-height: 2.75rem;
    padding: .75rem;
}

.programme-card {
    overflow: hidden;
    position: relative;
}

.programme-card::before {
    background: linear-gradient(180deg, #f4cf72, #7a263f);
    content: "";
    inset: 0 auto 0 0;
    position: absolute;
    width: 5px;
}

.timeline-row {
    position: relative;
}

.admission-step {
    align-items: center;
    background: #f9f4ea;
    border: 1px solid #e5dccb;
    border-radius: 8px;
    color: #17211d;
    display: flex;
    gap: .85rem;
}

.admission-step span {
    align-items: center;
    background: #12372a;
    border-radius: 6px;
    color: #f4cf72;
    display: inline-flex;
    font-weight: 950;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.office-panel {
    background:
        linear-gradient(145deg, rgba(255,255,255,.92), rgba(247,241,229,.82));
}

.role-chip {
    align-items: center;
    background: #fff;
    border: 1px solid #e1d8c9;
    border-radius: 6px;
    color: #17211d;
    display: flex;
    font-size: .88rem;
    font-weight: 900;
    gap: .6rem;
    min-height: 3rem;
    padding: .7rem .8rem;
}

.role-chip svg {
    color: #7a263f;
    height: 1rem;
    width: 1rem;
}

.suite-card {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.16);
    box-shadow: none;
    backdrop-filter: blur(16px);
}

.tone-green {
    background: #12372a;
    color: #f4cf72;
}

.tone-blue {
    background: #17324d;
    color: #ffffff;
}

.tone-wine {
    background: #7a263f;
    color: #ffffff;
}

.tone-gold {
    background: #f4cf72;
    color: #12372a;
}

.data-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 720px;
    width: 100%;
}

.data-table th {
    background: #12372a;
    color: #f4cf72;
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .12em;
    padding: 1rem;
    text-align: left;
    text-transform: uppercase;
}

.data-table td {
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid #e5dccb;
    color: #263930;
    font-size: .9rem;
    font-weight: 750;
    padding: 1rem;
    vertical-align: top;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 1120px) {
    .nav-link {
        font-size: .82rem;
        padding-inline: .6rem;
    }

    .brand-mark {
        height: 2.65rem;
        width: 2.65rem;
    }
}

@media (max-width: 1024px) {
    .home-hero {
        min-height: auto;
    }

    .hero-dashboard {
        align-self: stretch;
    }

    .heading-xl {
        max-width: 820px;
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero::before {
        background-image:
            linear-gradient(180deg, rgba(9, 23, 18, .90) 0%, rgba(18, 55, 42, .74) 50%, rgba(18, 55, 42, .38) 100%),
            url('../images/theoedu-campus-hero.png');
        background-position: 58% center;
    }

    .home-stat-band {
        margin-top: -1rem;
    }

    .hero-logo-lockup {
        align-items: flex-start;
        display: flex;
        gap: .8rem;
        width: 100%;
    }

    .hero-logo-mark {
        height: 4.25rem;
        width: 4.25rem;
    }

    .hero {
        min-height: 720px;
    }

    .hero::before {
        background-image:
            linear-gradient(180deg, rgba(10, 20, 16, .84) 0%, rgba(18, 55, 42, .70) 48%, rgba(18, 55, 42, .16) 100%),
            url('../images/theoedu-campus-hero.png');
        background-position: 61% center;
    }

    .section-band {
        padding: 3.5rem 1rem;
    }
}

@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary,
    .btn-light {
        min-height: 3rem;
        width: 100%;
    }

    .heading-xl {
        font-size: clamp(2.3rem, 14vw, 3.25rem);
        line-height: 1;
    }

    .heading-lg {
        font-size: clamp(1.85rem, 10vw, 2.6rem);
    }

    .hero-kicker {
        display: flex;
        font-size: .68rem;
        letter-spacing: .12em;
        line-height: 1.5;
        text-wrap: balance;
    }

    .hero-logo-lockup {
        padding: .75rem;
    }

    .hero-logo-lockup span:last-child {
        min-width: 0;
    }

    .hero-logo-mark {
        height: 3.8rem;
        width: 3.8rem;
    }

    .hero-panel {
        box-shadow: 0 18px 48px rgba(8,22,17,.22);
    }

    .metric-card p:first-child {
        font-size: 1.9rem;
    }

    .stat-note {
        min-height: 3.3rem;
    }

    .programme-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .school-card,
    .portal-card,
    .programme-card,
    .news-card,
    .event-row,
    .office-panel,
    .glass-panel,
    .contact-tile {
        box-shadow: 0 12px 30px rgba(28,39,34,.08);
    }
}

@media (max-width: 420px) {
    .brand-mark {
        height: 2.45rem;
        width: 2.45rem;
    }

    .hero-logo-lockup {
        align-items: center;
    }

    .hero-logo-lockup .block.text-lg {
        font-size: .95rem;
        line-height: 1.3;
    }

    .hero-logo-lockup .block.text-sm {
        font-size: .65rem;
        letter-spacing: .12em;
    }

    .section-band {
        padding-inline: .85rem;
    }

    .field-control {
        font-size: .9rem;
    }
}
