/* ═══════════════════════════════════════════════════
   TRICHARDT SCHOOL — GLOBAL STYLESHEET
   Redesigned 2025 · Mobile-first · Modern UI
═══════════════════════════════════════════════════ */


/* ── DESIGN TOKENS ─────────────────────────────── */

:root {
    --navy: #03224a;
    --navy-light: #0a3d7a;
    --accent: #000046;
    --gold: #d4af37;
    --gold-light: #f0d060;
    --light-gold: #fdf6dc;
    --white: #ffffff;
    --off-white: #f9fafc;
    --light-bg: #f2f5f9;
    --border: #e2e8f0;
    --text: #1a202c;
    --text-body: #4a5568;
    --muted: #718096;
    --success: #38a169;
    --danger: #e53e3e;
    --max-width: 1200px;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --pad: clamp(16px, 4vw, 24px);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
    --shadow: 0 4px 16px rgba(3, 34, 74, .08);
    --shadow-md: 0 8px 32px rgba(3, 34, 74, .12);
    --shadow-lg: 0 20px 60px rgba(3, 34, 74, .15);
    --shadow-gold: 0 8px 24px rgba(212, 175, 55, .25);
    --transition: all 0.28s cubic-bezier(.4, 0, .2, 1);
    --transition-slow: all 0.5s cubic-bezier(.4, 0, .2, 1);
}


/* ── RESET & BASE ──────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
    padding: 0;
}

button {
    font-family: inherit;
}


/* ── TYPOGRAPHY ────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: clamp(28px, 5vw, 48px);
}

h2 {
    font-size: clamp(22px, 3.5vw, 36px);
}

h3 {
    font-size: clamp(18px, 2.5vw, 24px);
}

h4 {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

p {
    line-height: 1.75;
}

.lead-text {
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.7;
    color: var(--text-body);
}

.supporting-text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--muted);
}

.small {
    font-size: 13px;
    line-height: 1.6;
}


/* ── LAYOUT ────────────────────────────────────── */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.section {
    padding: clamp(56px, 8vw, 100px) 0;
}

.section+.section {
    padding-top: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Split layout */

.split {
    display: flex;
    gap: 60px;
    align-items: center;
}

.split .text {
    flex: 1 1 50%;
}

.split .media {
    flex: 1 1 50%;
}

.split img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.split img:hover {
    transform: scale(1.02) translateY(-4px);
}


/* ── SECTION TITLES ─────────────────────────────── */

.section-title {
    font-size: clamp(24px, 3.5vw, 38px);
    text-align: center;
    color: var(--text);
    margin-bottom: 56px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
}

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

.section-title.left::after {
    left: 0;
    transform: none;
}


/* Page hero banner */

.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, var(--accent) 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
}

.page-hero p {
    color: rgba(255, 255, 255, .82);
    max-width: 600px;
    margin: 0 auto;
    font-size: 17px;
    position: relative;
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    position: relative;
}

.page-hero-breadcrumb a {
    color: var(--gold);
    transition: var(--transition);
}

.page-hero-breadcrumb a:hover {
    color: var(--gold-light);
}


/* ── HEADER ─────────────────────────────────────── */

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px var(--pad);
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.top-header.scrolled {
    padding: 10px var(--pad);
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo {
    height: 52px;
    width: auto;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.04);
}

.brand-text h1 {
    font-family: 'Georgia', serif;
    font-size: clamp(13px, 2vw, 17px);
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 2px;
}

.brand-text .tag {
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}


/* ── NAV ─────────────────────────────────────────── */

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 4px;
    padding: 0;
}

.nav-links a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .01em;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gold);
    bottom: 2px;
    left: 50%;
    border-radius: 1px;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
    left: 20%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy);
    background: var(--light-gold);
}


/* Hamburger */

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: var(--light-bg);
}

/* ── NAV TOGGLE — SVG icon ───────────────────────── */
.nav-toggle {
    display: none; /* hidden on desktop */
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}
.nav-toggle:hover { background: var(--light-gold); }

/* Animate SVG lines to X when open */
#nav-icon line {
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}
.nav-toggle.open #nav-icon .line-top {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open #nav-icon .line-mid {
    opacity: 0;
}
.nav-toggle.open #nav-icon .line-bot {
    transform: translateY(-7px) rotate(-45deg);
}


/* Admin pill in header */

.admin-login {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.admin-btn {
    background: var(--navy);
    color: var(--white);
    border: 2px solid var(--gold);
    padding: 10px 18px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .03em;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(3, 34, 74, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-btn:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}


/* ── BUTTONS ─────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .03em;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    background: var(--gold);
    color: var(--navy);
}

.btn.primary:hover {
    background: var(--gold-light);
    box-shadow: var(--shadow-gold);
}

.btn.dark {
    background: var(--navy);
    color: var(--white);
}

.btn.dark:hover {
    background: var(--navy-light);
    box-shadow: var(--shadow-md);
}

.btn.ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .5);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .8);
}

.btn.outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn.outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn.sm {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn.danger {
    background: var(--danger);
    color: var(--white);
    border: none;
}

.btn.danger:hover {
    background: #c53030;
}

input[type=submit].btn {
    appearance: none;
}


/* ── HERO SLIDER ─────────────────────────────────── */

.hero {
    margin: 28px 0 0;
}

.hero-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: clamp(500px, 70vh, 650px);
    box-shadow: var(--shadow-lg);
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.1s ease;
}

.slide.active {
    opacity: 1;
    position: relative;
    min-height: clamp(500px, 70vh, 650px);
}

.slide-bg {
    position: absolute;
    inset: 0;
    background: var(--navy);
    overflow: hidden;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    opacity: .72;
    transition: transform 6s ease;
}

.slide.active .slide-bg img {
    transform: scale(1.06);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(3, 34, 74, .88) 0%, rgba(3, 34, 74, .42) 46%, rgba(3, 34, 74, .66) 100%),
        radial-gradient(ellipse 92% 74% at 50% 46%, rgba(3, 34, 74, .34) 0%, transparent 72%);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 780px;
    padding: 48px 32px;
    animation: fadeSlideUp .8s ease forwards;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h2 {
    font-family: 'Georgia', serif;
    font-size: clamp(26px, 5vw, 48px);
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
    color: var(--white);
}

.slide-content p {
    font-size: clamp(15px, 2vw, 18px);
    margin-bottom: 32px;
    color: rgba(255, 255, 255, .9);
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-controls button {
    background: rgba(255, 255, 255, .85);
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-controls button:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}


/* ── CARDS ───────────────────────────────────────── */

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

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.card h3 {
    color: var(--navy);
    font-size: 17px;
    margin-bottom: 8px;
}

.card p {
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.65;
}


/* Icon Card */

.icon-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.icon-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.icon-card .icon {
    width: 64px;
    height: 64px;
    background: var(--light-gold);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: var(--transition);
}

.icon-card:hover .icon {
    background: var(--gold);
}

.icon-card .icon i {
    font-size: 26px;
    color: var(--navy);
}

.icon-card h4 {
    color: var(--navy);
    margin-bottom: 10px;
}

.icon-card p {
    color: var(--text-body);
    font-size: 14px;
}


/* ── FORMS ───────────────────────────────────────── */

.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-row {
    margin-bottom: 22px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text);
}

input[type=text],
input[type=email],
input[type=tel],
input[type=date],
input[type=password],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .18);
}

input.error,
select.error,
textarea.error {
    border-color: var(--danger);
}

textarea {
    resize: vertical;
    min-height: 120px;
}


/* Success message */

.form-success {
    display: none;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: var(--radius);
    padding: 24px 28px;
    text-align: center;
    color: #276749;
}

.form-success i {
    font-size: 36px;
    color: var(--success);
    margin-bottom: 12px;
}

.form-success h3 {
    color: #276749;
    margin-bottom: 8px;
}


/* ── FOOTER ──────────────────────────────────────── */

.footer {
    background: linear-gradient(160deg, var(--navy) 0%, #021a3a 100%);
    color: var(--white);
    padding: 72px 0 24px;
    margin-top: 80px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.logo-sm {
    height: 44px;
    margin-bottom: 18px;
    opacity: .9;
}

.footer .small {
    color: rgba(255, 255, 255, .65);
    line-height: 1.7;
}

.footer h4 {
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    padding: 5px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 6px;
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    transition: var(--transition);
}

.socials a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.socials i {
    font-size: 16px;
    color: var(--white);
}

.site-credits {
    text-align: center;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .4);
    font-size: 13px;
}


/* ── STATS ───────────────────────────────────────── */

.stats-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    flex: 1;
    min-width: 140px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-box strong {
    display: block;
    font-size: 36px;
    color: var(--navy);
    font-family: 'Georgia', serif;
    margin-bottom: 6px;
}

.stat-box span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}


/* ── TESTIMONIALS ────────────────────────────────── */

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
    
    /* 1. Make the card a flex column */
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 80px;
    color: var(--light-gold);
    font-family: 'Georgia', serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card blockquote {
    font-style: italic;
    color: var(--text-body);
    line-height: 1.75;
    margin: 20px 0 20px;
    padding-top: 32px;
    
    /* 2. Allow the blockquote to grow and push the footer down */
    flex: 1; 
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    
    /* Optional safety: ensures author doesn't shrink if text is long */
    flex-shrink: 0; 
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--light-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-avatar i {
    font-size: 20px;
    color: var(--gold);
}

.testimonial-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}

.testimonial-role {
    font-size: 12px;
    color: var(--muted);
}



/* ── ABOUT PAGE ──────────────────────────────────── */

.leadership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.staff-card {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.staff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    background: var(--white);
}

.staff-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 3px solid var(--gold);
    background: var(--light-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-photo i {
    font-size: 36px;
    color: var(--navy);
}

.staff-card h4 {
    color: var(--navy);
    font-size: 15px;
    margin-bottom: 4px;
}

.staff-card .role {
    font-size: 12px;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 10px;
    display: block;
}

.staff-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.value-card h4 {
    color: var(--navy);
    margin-bottom: 8px;
}

.value-card p {
    color: var(--text-body);
    font-size: 14px;
}

.feature-list {
    padding: 0;
}

.feature-list li {
    padding: 9px 0 9px 28px;
    position: relative;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
    border-bottom: 0;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}


/* ── CURRICULUM PAGE ─────────────────────────────── */

.level-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.level-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.level-card-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    padding: 28px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 16px;
}

.level-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.level-icon i {
    font-size: 22px;
    color: var(--gold);
}

.level-card-header h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 4px;
}

.level-card-header p {
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
}

.level-card-body {
    padding: 28px;
}

.subject-tag {
    display: inline-block;
    background: var(--light-gold);
    color: var(--navy);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 4px 3px;
    transition: var(--transition);
}

.subject-tag:hover {
    background: var(--gold);
}


/* Activity categories */

.activity-section {
    margin-bottom: 64px;
}

.activity-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.activity-section-header .cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-section-header .cat-icon i {
    font-size: 22px;
    color: var(--gold);
}

.activity-section-header h3 {
    color: var(--navy);
    font-size: 22px;
    margin: 0;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

.activity-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.activity-img {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--light-bg), var(--border));
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.activity-img .placeholder-icon {
    font-size: 52px;
    color: var(--gold);
    opacity: .6;
}

.activity-body {
    padding: 16px;
}

.activity-body h5 {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.activity-body p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}


/* endar */

.calendar-section {
    background: linear-gradient(135deg, var(--light-gold) 0%, #fff9e6 100%);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, .3);
}

.calendar-img-frame {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 28px auto;
    max-width: 800px;
}

.calendar-img-frame img {
    width: 100%;
    display: block;
}

.calendar-placeholder {
    padding: 80px 40px;
    color: var(--muted);
    font-size: 15px;
}

.calendar-placeholder i {
    font-size: 64px;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
}


/* ── ADMISSIONS PAGE ─────────────────────────────── */

.steps-row {
    display: flex;
    gap: 0;
    position: relative;
    margin: 48px 0;
    counter-reset: step;
}

.steps-row::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 72px;
    right: 72px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--border));
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 72px;
    height: 72px;
    background: var(--white);
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    font-family: 'Georgia', serif;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.step:hover .step-num {
    background: var(--gold);
    color: var(--white);
    transform: scale(1.1);
}

.step h4 {
    color: var(--navy);
    font-size: 15px;
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: var(--muted);
}


/* Info cards */

.admissions-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.info-card i {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 14px;
    display: block;
}

.info-card h4 {
    color: var(--navy);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: var(--muted);
}


/* ── CONTACT PAGE ────────────────────────────────── */

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: 0;
}

.contact-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background: var(--light-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    color: var(--navy);
    font-size: 18px;
}

.contact-item h5 {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-body);
    font-size: 14px;
}

.map-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 440px;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 46px;
    height: 46px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.social-links i {
    color: var(--white);
    font-size: 18px;
}


/* ── ALUMNI SECTION ──────────────────────────────── */

.alumni-section {
    background: linear-gradient(160deg, var(--navy) 0%, #021a3a 100%);
    padding: 80px 0;
    color: var(--white);
}

.alumni-section .section-title {
    color: var(--white);
}

.alumni-section .section-title::after {
    background: var(--gold);
}

.alumni-card {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.alumni-card:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateY(-4px);
}

.alumni-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--light-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 3px solid var(--gold);
    overflow: hidden;
}

.alumni-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alumni-avatar i {
    font-size: 28px;
    color: var(--navy);
}

.alumni-card blockquote {
    font-style: italic;
    color: rgba(255, 255, 255, .85);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 18px;
}

.alumni-name {
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
}

.alumni-year {
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
}

.alumni-achievement {
    display: inline-block;
    background: rgba(212, 175, 55, .2);
    color: var(--gold-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    border: 1px solid rgba(212, 175, 55, .3);
}


/* ── NEWS EVENTS (HOME) ──────────────────────────── */

.news-events-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.news-article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.news-article-card h3 {
    color: var(--navy);
    margin-bottom: 14px;
    font-size: 20px;
}

.news-article-card .meta {
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    margin: 14px 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.events-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-item {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 18px 20px;
    border-left: 3px solid var(--gold);
    transition: var(--transition);
}

.event-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.event-item h5 {
    color: var(--navy);
    font-size: 14px;
    margin-bottom: 6px;
}

.event-item p {
    font-size: 13px;
    color: var(--muted);
}


/* ── ADMIN MODAL ─────────────────────────────────── */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 420px;
    position: relative;
    animation: modalIn .28s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 22px;
    cursor: pointer;
    color: var(--muted);
    transition: var(--transition);
    background: none;
    border: none;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text);
}

.modal h2 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 28px;
}

.modal-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-logo img {
    height: 48px;
}


/* ── ADMIN DASHBOARD ─────────────────────────────── */

.admin-dashboard {
    display: none;
    position: fixed;
    inset: 0;
    background: #f1f5f9;
    z-index: 3000;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
}

.admin-header {
    background: var(--navy);
    color: var(--white);
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.admin-header h2 {
    color: var(--white);
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-header h2 i {
    color: var(--gold);
}

.admin-nav {
    background: var(--white);
    padding: 0 24px;
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.admin-nav-link {
    padding: 14px 18px;
    border-radius: 0;
    transition: var(--transition);
    color: var(--text-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: var(--navy);
    border-bottom-color: var(--gold);
}

.admin-main {
    padding: 32px;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-section>h3 {
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 6px;
}

.admin-description {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.admin-card h4 {
    color: var(--navy);
    margin-bottom: 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card h4 i {
    color: var(--gold);
}


/* Upload zone */

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--gold);
    background: var(--light-gold);
}

.upload-zone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-zone i {
    font-size: 36px;
    color: var(--muted);
    margin-bottom: 12px;
    display: block;
}

.upload-zone p {
    color: var(--muted);
    font-size: 14px;
}

.upload-zone span {
    color: var(--gold);
    font-weight: 600;
}


/* Admin table */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--off-white);
    color: var(--text);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.admin-table tr:hover td {
    background: #fafbfc;
}

.news-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
}

.news-item h5 {
    color: var(--navy);
    margin-bottom: 6px;
}

.news-item p {
    font-size: 13px;
    color: var(--text-body);
    margin-bottom: 8px;
}

.news-item .meta {
    font-size: 12px;
    color: var(--muted);
}

.news-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.news-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.news-images img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}


/* Image preview grid (news upload) */

#image-previews {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.image-preview-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(229, 62, 62, .9);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    transition: var(--transition);
}

.remove-image:hover {
    background: var(--danger);
    transform: scale(1.1);
}

.image-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: var(--white);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.image-upload-btn:hover {
    background: var(--navy-light);
}

.image-input {
    display: none;
}

.image-name {
    font-size: 13px;
    color: var(--muted);
    margin-left: 8px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--muted);
    font-style: italic;
}


/* ── ANIMATIONS & SCROLL ─────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}


/* Delay helpers */

.delay-1 {
    transition-delay: .1s;
}

.delay-2 {
    transition-delay: .2s;
}

.delay-3 {
    transition-delay: .3s;
}

.delay-4 {
    transition-delay: .4s;
}


/* Gold divider */

.gold-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 60px 0;
    border: none;
}


/* Chip / badge */

.chip {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.chip-gold {
    background: var(--light-gold);
    color: var(--navy);
}

.chip-navy {
    background: var(--navy);
    color: var(--white);
}

.chip-green {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}


/* ── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 1100px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .split {
        flex-direction: column;
        gap: 32px;
    }
    .split img {
        height: 280px;
    }
    .steps-row {
        flex-direction: column;
        gap: 20px;
    }
    .steps-row::before {
        display: none;
    }
    .step {
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 20px;
        padding: 0;
    }
    .step-num {
        flex-shrink: 0;
        width: 52px;
        height: 52px;
        font-size: 18px;
        margin: 0;
    }
    .admissions-info-grid {
        grid-template-columns: 1fr;
    }
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    .news-events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .nav-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 76px;
        background: var(--white);
        padding: 16px var(--pad);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .main-nav.open {
        display: block;
    }
    .nav-links {
        flex-direction: column;
        gap: 4px;
    }
    .nav-links a {
        display: block;
        padding: 10px 14px;
    }
    .top-header {
        align-items: flex-start;
    }
    .brand-text h1 {
        font-size: 13px;
    }
    .brand-text .tag {
        display: none;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .hero-slider {
        min-height: 420px;
        border-radius: var(--radius);
    }
    .slide.active {
        min-height: 420px;
    }
    .slide-content {
        padding: 32px 20px;
    }
    .foot-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    .form-card {
        padding: 24px 20px;
    }
    .admin-login {
        bottom: 16px;
        right: 16px;
    }
    .calendar-section {
        padding: 28px 20px;
    }
    .stats-row {
        flex-direction: column;
    }
    .admin-nav {
        gap: 0;
    }
    .admin-main {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .activity-grid {
        grid-template-columns: 1fr;
    }
}



/* ══════════════════════════════════════════════════════
   MOBILE — final clean version
══════════════════════════════════════════════════════ */

/* Show hamburger toggle only on mobile */
@media (max-width: 767px) {
  .nav-toggle { display: flex !important; }
}

@media (max-width: 767px) {

  html, body { overflow-x: hidden; width: 100%; }
  *, *::before, *::after { box-sizing: border-box; }

  /* ── CONTAINER ───────────────────────────────────── */
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  /* ── HEADER ──────────────────────────────────────── */
  .top-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    padding: 12px 20px !important;
  }
  .brand-text .tag { display: none; }
  .brand-text h1   { font-size: 13px !important; line-height: 1.3; }
  .logo            { height: 36px !important; }

  /* ── NAV OVERLAY ─────────────────────────────────── */
  .main-nav {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 150 !important;
    overflow-y: auto !important;
    padding-top: 80px !important;
    padding-bottom: 40px !important;
  }

  .main-nav.open {
    display: block !important;
  }

  /* ── NAV LINKS ───────────────────────────────────── */
  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    width: 100% !important;
  }

  .nav-links li {
    width: 100% !important;
    border-bottom: 1px solid #eeeeee !important;
  }

  .nav-links li:last-child { border-bottom: none !important; }

  .nav-links a {
    display: block !important;
    padding: 20px 28px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #03224a !important;
    background: transparent !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    min-height: unset !important;
  }

  .nav-links a::after { display: none !important; }

  .nav-links a:hover,
  .nav-links a.active {
    background: #fdf8e7 !important;
    color: #b8860b !important;
    padding-left: 36px !important;
  }

  .nav-links a[href="portal.html"] { color: #D4AF37 !important; }

  /* ── HERO ────────────────────────────────────────── */
  .hero-slider, .slide.active { min-height: 360px; }
  .slide-content  { padding: 24px 20px; }
  .slide-content h2 { font-size: clamp(20px, 5.5vw, 28px); margin-bottom: 10px; }
  .slide-content p  { font-size: 14px; margin-bottom: 20px; }

  .hero-ctas {
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 48px !important;
  }
  .hero-ctas .btn {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
  }

  /* ── SLIDER DOTS ─────────────────────────────────── */
  .slider-dot {
    width: 7px !important;
    height: 7px !important;
    min-height: unset !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
  .slider-dot.active {
    width: 18px !important;
    border-radius: 4px !important;
  }
  .slider-controls button {
    width: 32px !important;
    height: 32px !important;
    min-height: unset !important;
    font-size: 14px !important;
  }

  /* ── PAGE HERO ───────────────────────────────────── */
  .page-hero { padding: 56px 20px 40px !important; text-align: center; }
  .page-hero h1 { font-size: clamp(24px, 7vw, 36px); margin-bottom: 14px; }
  .page-hero p  { font-size: 15px; line-height: 1.7; }

  /* ── GRIDS → SINGLE COLUMN ───────────────────────── */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .split { flex-direction: column; gap: 24px; }

  /* ── STATS ───────────────────────────────────────── */
  .stats-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  /* ── FORMS ───────────────────────────────────────── */
  .form-row-2 { grid-template-columns: 1fr !important; gap: 16px !important; }
  input, select, textarea { font-size: 16px !important; }

  /* ── CONTACT CARDS ───────────────────────────────── */
  .contact-quick-cards {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* ── FOOTER ──────────────────────────────────────── */
  .foot-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* ── ADMIN NAV ───────────────────────────────────── */
  .admin-nav {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .admin-nav::-webkit-scrollbar { display: none; }

  /* ── MAP ─────────────────────────────────────────── */
  .map-frame, .map-frame iframe { height: 240px !important; }
}

/* ── TABLET ──────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── TINY ≤380px ─────────────────────────────────── */
@media (max-width: 380px) {
  .brand-text h1 { font-size: 10px !important; }
  .stats-row     { grid-template-columns: 1fr !important; }
  .nav-links a   { font-size: 16px !important; padding: 18px 24px !important; }
}

/* ── contact-quick-cards desktop ────────────────── */
.contact-quick-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

/* ══ CAMPUS SWITCH BADGE ══ */
.campus-switch-link {
    display: none; /* hidden on desktop where header has room */
}
@media (max-width: 900px) {
    .campus-switch-link {
        display: inline-flex !important;
        align-items: center;
    }
}
/* Always show on all sizes — override above */
.campus-switch-link {
    display: inline-flex !important;
    align-items: center;
}

/* ══ CAMPUS TOP BAR ══ */
#campus-bar {
    background: var(--navy);
    border-bottom: 1px solid rgba(212, 175, 55, .18);
    padding: 6px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    line-height: 1.5;
    position: sticky;
    top: 0;
    z-index: 300;
    letter-spacing: .04em;
}
#campus-bar .campus-name {
    color: rgba(255, 255, 255, .55);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#campus-bar .campus-name i {
    color: var(--gold);
    font-size: 11px;
}
#campus-bar .campus-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, .1);
    border: 1px solid rgba(212, 175, 55, .28);
    color: var(--gold-light);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 11px;
    transition: var(--transition);
}
#campus-bar .campus-btn:hover {
    background: rgba(212, 175, 55, .22);
    border-color: rgba(212, 175, 55, .45);
    color: var(--gold);
    transform: translateY(-1px);
}
#campus-bar .campus-btn i {
    font-size: 10px;
}

/* Offset sticky header when campus bar is present */
#campus-bar + .top-header,
#campus-bar + header.top-header {
    top: 30px;
}
@media (max-width: 600px) {
    #campus-bar + .top-header,
    #campus-bar + header.top-header {
        top: 34px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   SECURITY & UX ENHANCEMENTS
   Added: Scroll Progress · Toasts · Cookie Banner ·
          Back-to-Top · Focus Improvements · Reduced Motion
═══════════════════════════════════════════════════════════════════ */

/* ── SCROLL PROGRESS BAR ─────────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── BACK TO TOP ─────────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  border: 2px solid var(--gold);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(3, 34, 74, 0.3);
}
#back-to-top:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}
@media (max-width: 700px) {
  #back-to-top { bottom: 80px; right: 20px; width: 42px; height: 42px; }
}

/* ── TOAST NOTIFICATIONS ─────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--navy);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: auto;
  border-left: 4px solid var(--gold);
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast-success { border-left-color: var(--success); }
.toast-error   { border-left-color: var(--danger); }
.toast-info    { border-left-color: #3490dc; }

/* ── COOKIE CONSENT BANNER ───────────────────────────────────────── */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #020617, #0f172a);
  color: var(--white);
  z-index: 9998;
  padding: 18px 24px;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid rgba(212,175,55,0.25);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}
#cookie-consent.hide {
  transform: translateY(100%);
}
.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-inner p {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
#cookie-accept {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(212,175,55,0.3);
}
#cookie-accept:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212,175,55,0.4);
}
#cookie-accept:active {
  transform: translateY(0);
}
@media (max-width: 600px) {
  .cookie-inner { 
    flex-direction: column; 
    text-align: center;
    gap: 16px;
  }
  .cookie-inner p { text-align: center; }
}

/* ── FOCUS IMPROVEMENTS (Accessibility) ──────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}
.nav-links a:focus-visible {
  outline-offset: -3px;
}

/* ── REDUCED MOTION ──────────────────────────────────────────────── */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ── SKELETON LOADING ────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--light-bg) 25%, var(--border) 50%, var(--light-bg) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── IMAGE LAZY LOAD BLUR-UP ─────────────────────────────────────── */
img[data-src] {
  filter: blur(8px);
  transition: filter 0.4s ease;
}
img[data-src].loaded,
img.loaded {
  filter: blur(0);
}

/* ── PAGE TRANSITION OVERLAY ─────────────────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#page-transition.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── SEARCH OVERLAY ──────────────────────────────────────────────── */
#search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 34, 74, 0.95);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
#search-overlay.open {
  display: flex;
}
.search-box {
  width: 90%;
  max-width: 600px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 18px 24px 18px 52px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold);
  background: var(--white);
  font-size: 18px;
  color: var(--navy);
}
.search-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 18px;
}
.search-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

/* ── MICRO-INTERACTIONS ──────────────────────────────────────────── */
.card, .icon-card, .activity-card, .testimonial-card,
.staff-card, .value-card, .info-card, .support-card,
.alumni-card, .launcher-card, .feature-card {
  will-change: transform;
}

/* ── MOBILE NAV IMPROVEMENTS ─────────────────────────────────────── */
@media (max-width: 700px) {
  .main-nav.open {
    display: block !important;
    animation: navSlideIn 0.25s ease;
  }
  @keyframes navSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ── PRINT STYLES ────────────────────────────────────────────────── */
@media print {
  .top-header, .footer, .admin-login, #back-to-top,
  #scroll-progress, #cookie-consent,
  .slider-controls, .slider-dots, .btn {
    display: none !important;
  }
  body { background: white; color: black; }
  a { text-decoration: underline; color: black; }
  .page-hero { background: white !important; color: black !important; padding: 20px 0; }
  .page-hero h1, .page-hero p { color: black !important; }
  .card, .icon-card, .level-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}
