/* ============================================
   WNA University — Oxford Style
   ============================================ */

:root {
    --oxford: #002147;
    --oxford-light: #003366;
    --accent: #a51c30;       /* 牛津类似深红 accent */
    --gold: #b38b2d;
    --white: #fff;
    --off-white: #f5f5f0;
    --border: #d9d5cc;
    --text: #1a1a1a;
    --text-light: #585858;
    --font-heading: Georgia, 'Times New Roman', 'Songti SC', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --max: 1180px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.25;
    color: var(--oxford);
}

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

/* ============ Top Utility Bar ============ */
.top-bar {
    background: var(--oxford);
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    padding: 5px 0;
    position: relative;
    z-index: 1001;
}

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

.top-bar-left { display: flex; gap: 18px; }
.top-bar-left span { display: flex; align-items: center; gap: 5px; }

.top-bar-right { display: flex; align-items: center; gap: 14px; }

.top-link {
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.top-link:hover { color: #fff; }

/* ============ Language Switcher ============ */
.lang-switcher { position: relative; }

.lang-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.85);
    padding: 2px 10px;
    font-size: 0.78rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
}

.lang-btn:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.15s;
    z-index: 9999;
}

.lang-dropdown.show { opacity: 1; visibility: visible; transform: translateY(6px); }

.lang-option {
    display: block;
    padding: 9px 14px;
    font-size: 0.85rem;
    color: var(--text);
    transition: background 0.15s;
}

.lang-option:hover { background: var(--off-white); }
.lang-option.active { background: var(--oxford); color: #fff; }

/* ============ Header ============ */
.main-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon img { width: 46px; height: 46px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--oxford);
    letter-spacing: 2px;
    font-weight: 700;
    line-height: 1.1;
}
.logo-full { font-size: 0.68rem; color: var(--text-light); letter-spacing: 0.2px; text-transform: uppercase; }

/* Nav Links */
.nav-menu { display: flex; align-items: center; gap: 0; height: 100%; }

.nav-links { display: flex; align-items: center; gap: 0; height: 100%; }
.nav-links li { height: 100%; display: flex; align-items: center; }

.nav-links a {
    padding: 0 14px;
    font-size: 0.88rem;
    color: var(--text);
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    transition: all 0.15s;
}

.nav-links a:hover { color: var(--oxford); border-bottom-color: var(--oxford); }
.nav-links a.active { color: var(--oxford); border-bottom-color: var(--oxford); font-weight: 600; }

.nav-cta {
    background: var(--oxford);
    color: #fff !important;
    padding: 7px 18px !important;
    font-size: 0.82rem;
    font-weight: 600;
    margin-left: 14px;
    height: auto !important;
    border-bottom: none !important;
    transition: background 0.15s;
}

.nav-cta:hover { background: var(--oxford-light); }

/* Mobile */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span { width: 20px; height: 2px; background: var(--text); }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ============ Hero ============ */
.hero {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #111;
}

.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,33,71,0.82) 0%, rgba(0,33,71,0.4) 60%, rgba(0,33,71,0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    padding: 40px 0;
}

.hero-badge {
    display: inline-block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 2.6rem;
    color: #fff;
    font-weight: 400;
    margin-bottom: 14px;
    line-height: 1.2;
}

.hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.btn-primary { background: var(--oxford); color: #fff; }
.btn-primary:hover { background: var(--oxford-light); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.45); }
.btn-outline:hover { border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--oxford); border: 1.5px solid var(--oxford); }
.btn-outline-dark:hover { background: var(--oxford); color: #fff; }
.btn-dark { background: var(--oxford); color: #fff; }
.btn-dark:hover { background: var(--oxford-light); }

/* ============ Stats Bar ============ */
.stats-row {
    background: var(--oxford);
}

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

.stat-item {
    text-align: center;
    padding: 28px 16px;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    line-height: 1;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============ Sections ============ */
.section { padding: 64px 0; }
.section-alt { background: var(--off-white); }

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 6px;
}

.section-header h2 {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
}

/* ============ Content Grid ============ */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

.content-text h2 { font-size: 1.7rem; margin-bottom: 14px; }
.content-text p { color: var(--text-light); font-size: 0.95rem; line-height: 1.75; margin-bottom: 12px; }

.content-image { overflow: hidden; }
.content-image img { width: 100%; height: 340px; object-fit: cover; }

/* ============ Programs ============ */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.program-card {
    background: #fff;
    padding: 28px 22px;
    transition: background 0.15s;
    display: block;
}

.program-card:hover { background: var(--off-white); }

.program-icon {
    font-size: 1.1rem;
    color: var(--oxford);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    width: 36px;
}

.program-card h3 { font-size: 1rem; margin-bottom: 6px; font-family: var(--font-heading); }
.program-card p { color: var(--text-light); font-size: 0.85rem; line-height: 1.6; }

/* ============ News List ============ */
.news-list { border-top: 1px solid var(--border); }

.news-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.news-row:hover { background: var(--off-white); padding-left: 10px; padding-right: 10px; }

.news-row-date {
    flex-shrink: 0;
    width: 110px;
    font-size: 0.78rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding-top: 2px;
}

.news-row-body { flex: 1; }
.news-row-body h3 { font-size: 0.95rem; margin-bottom: 3px; font-family: var(--font-heading); }
.news-row-body p { color: var(--text-light); font-size: 0.85rem; line-height: 1.6; margin: 0; }

.news-row-arrow {
    flex-shrink: 0;
    color: var(--oxford);
    font-size: 1rem;
    padding-top: 2px;
    opacity: 0;
    transition: opacity 0.15s;
}

.news-row:hover .news-row-arrow { opacity: 1; }

/* ============ Image Banner ============ */
.image-banner {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.image-banner img { width: 100%; height: 100%; object-fit: cover; }

.image-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,33,71,0.8) 0%, rgba(0,33,71,0.3) 100%);
    display: flex;
    align-items: center;
}

.image-banner-content { padding: 32px 48px; max-width: 460px; }
.image-banner-content h2 { color: #fff; font-size: 1.8rem; margin-bottom: 10px; }
.image-banner-content p { color: rgba(255,255,255,0.75); margin-bottom: 20px; font-size: 0.95rem; }

/* ============ CTA ============ */
.cta-section {
    background: var(--off-white);
    border-top: 1px solid var(--border);
    padding: 48px 0;
    text-align: center;
}

.cta-section h2 { font-size: 1.7rem; margin-bottom: 10px; }
.cta-section p { color: var(--text-light); max-width: 480px; margin: 0 auto 20px; font-size: 0.95rem; }

/* ============ Page Hero ============ */
.page-hero {
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--oxford);
    overflow: hidden;
}

.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }

.page-hero-content { position: relative; z-index: 2; padding: 40px 20px; }
.page-hero h1 { font-size: 2.2rem; color: #fff; font-weight: 400; margin-bottom: 8px; }
.page-hero p { font-size: 0.95rem; color: rgba(255,255,255,0.65); max-width: 480px; margin: 0 auto; }

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.78rem;
}

.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.25); }
.breadcrumb .current { color: rgba(255,255,255,0.75); }

/* ============ Values ============ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.value-card {
    padding: 28px 22px;
    background: #fff;
    transition: background 0.15s;
}

.value-card:hover { background: var(--off-white); }

.value-icon {
    font-size: 1.3rem;
    color: var(--oxford);
    margin-bottom: 12px;
}

.value-card h3 { font-size: 1rem; margin-bottom: 6px; font-family: var(--font-heading); }
.value-card p { color: var(--text-light); font-size: 0.85rem; }

/* ============ Timeline ============ */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--oxford); }

.timeline-item { position: relative; margin-bottom: 28px; padding-left: 20px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--oxford);
}

.timeline-year { font-size: 0.82rem; color: var(--oxford); font-weight: 700; margin-bottom: 2px; }
.timeline-item h3 { font-size: 0.95rem; margin-bottom: 3px; }
.timeline-item p { color: var(--text-light); font-size: 0.88rem; }

/* ============ Leadership ============ */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.leader-card { text-align: center; background: #fff; }

.leader-photo {
    height: 220px;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-photo i { font-size: 2.5rem; color: #ccc; }

.leader-info { padding: 14px; }
.leader-info h3 { font-size: 0.95rem; margin-bottom: 2px; font-family: var(--font-heading); }
.leader-info .title { color: var(--gold); font-size: 0.78rem; }

/* ============ Facilities ============ */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.facility-card {
    display: flex;
    gap: 14px;
    padding: 22px;
    background: #fff;
    transition: background 0.15s;
}

.facility-card:hover { background: var(--off-white); }

.facility-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--oxford);
}

.facility-card h3 { font-size: 0.95rem; margin-bottom: 4px; font-family: var(--font-heading); }
.facility-card p { color: var(--text-light); font-size: 0.82rem; }

/* ============ Gallery ============ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.gallery-item {
    position: relative;
    height: 240px;
    overflow: hidden;
    cursor: pointer;
    background: var(--off-white);
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,33,71,0.75) 100%);
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: flex-end;
    padding: 14px;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay h3 { color: #fff; font-size: 0.9rem; }
.gallery-item-overlay p { color: rgba(255,255,255,0.7); font-size: 0.75rem; }

/* ============ Steps ============ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step-card { text-align: center; padding: 24px 16px; }

.step-number {
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    background: var(--oxford);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
}

.step-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.step-card p { color: var(--text-light); font-size: 0.82rem; }

/* ============ Requirements ============ */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.requirement-card {
    padding: 24px;
    background: #fff;
}

.requirement-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.requirement-card li {
    padding: 5px 0 5px 18px;
    position: relative;
    color: var(--text-light);
    font-size: 0.85rem;
}

.requirement-card li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--oxford);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ============ Scholarships ============ */
.scholarship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.scholarship-card {
    padding: 22px;
    background: #fff;
    border-left: 3px solid var(--oxford);
}

.scholarship-card h3 { font-size: 0.95rem; margin-bottom: 4px; font-family: var(--font-heading); }
.scholarship-amount { font-size: 1.1rem; color: var(--oxford); font-weight: 700; margin-bottom: 8px; font-family: var(--font-heading); }
.scholarship-card p { color: var(--text-light); font-size: 0.82rem; }

/* ============ Two-col List ============ */
.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two-col-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 0.85rem; }
.two-col-list li i { color: var(--oxford); width: 12px; font-size: 0.7rem; }

/* ============ Tabs ============ */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.15s;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--oxford);
    transform: scaleX(0);
    transition: transform 0.15s;
}

.tab-btn:hover, .tab-btn.active { color: var(--oxford); }
.tab-btn.active::after { transform: scaleX(1); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============ Contact ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.contact-info-cards { display: grid; gap: 12px; }

.contact-info-card {
    display: flex;
    gap: 12px;
    padding: 18px;
    background: var(--off-white);
}

.contact-info-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--oxford);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
}

.contact-info-card h3 { font-size: 0.9rem; margin-bottom: 2px; font-family: var(--font-heading); }
.contact-info-card p { color: var(--text-light); font-size: 0.82rem; }

/* ============ Forms ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-weight: 500; font-size: 0.82rem; margin-bottom: 3px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: border-color 0.15s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--oxford);
}

.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { text-align: center; margin-top: 6px; }

/* ============ Map ============ */
.map-container { height: 320px; border: 1px solid var(--border); }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ============ Footer ============ */
.main-footer {
    background: var(--oxford);
    color: rgba(255,255,255,0.6);
}

.footer-main { padding: 40px 0 28px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 28px;
}

.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-logo img { width: 32px; height: 32px; object-fit: contain; }
.footer-logo span { font-family: var(--font-heading); font-size: 1.05rem; color: #fff; letter-spacing: 2px; }

.footer-desc { font-size: 0.82rem; line-height: 1.65; margin-bottom: 12px; }

.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    transition: color 0.15s;
}

.footer-social a:hover { color: #fff; }

.footer-col h3 { color: #fff; font-size: 0.9rem; margin-bottom: 14px; font-family: var(--font-heading); }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul a { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-col ul a:hover { color: #fff; }

.newsletter-input { display: flex; border: 1px solid rgba(255,255,255,0.15); }
.newsletter-input input {
    flex: 1;
    padding: 7px 11px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: #fff;
    font-size: 0.82rem;
}

.newsletter-input input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-input input:focus { outline: none; }
.newsletter-input button { padding: 7px 12px; background: var(--accent); border: none; color: #fff; cursor: pointer; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 14px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 14px; }
.footer-bottom-links a { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-bottom-links a:hover { color: #fff; }

/* ============ Back to Top ============ */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--oxford);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s;
    z-index: 999;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--oxford-light); }

/* ============ Loading ============ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.3s;
}

.loading-overlay.hidden { opacity: 0; pointer-events: none; }

.loader-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #eee;
    border-top-color: var(--oxford);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; gap: 28px; }
    .content-grid.reverse { direction: ltr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 68px 20px 20px;
        box-shadow: -2px 0 12px rgba(0,0,0,0.1);
        transition: right 0.25s;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.open { right: 0; }

    .nav-links { flex-direction: column; align-items: stretch; height: auto; }
    .nav-links li { height: auto; }
    .nav-links a { padding: 11px 0; height: auto; border-bottom: 1px solid #eee; border-left: 3px solid transparent; }
    .nav-links a:hover, .nav-links a.active { border-bottom: 1px solid #eee; border-left-color: var(--oxford); }
    .nav-cta { margin: 14px 0 0; text-align: center; display: block; }

    .top-bar-left { display: none; }
    .top-bar .container { justify-content: flex-end; }

    .hero { height: 380px; }
    .hero h1 { font-size: 1.9rem; }
    .hero p { font-size: 0.92rem; }

    .page-hero { height: 180px; }
    .page-hero h1 { font-size: 1.7rem; }

    .section { padding: 40px 0; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header { margin-bottom: 28px; }

    .programs-grid, .values-grid, .facilities-grid, .requirements-grid, .scholarship-grid, .leadership-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .two-col-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }

    .image-banner { height: 260px; }
    .image-banner-content { padding: 20px; }
    .image-banner-content h2 { font-size: 1.4rem; }

    .footer-bottom .container { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 480px) {
    .hero { height: 320px; }
    .hero h1 { font-size: 1.5rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .stat-item:last-child { border-bottom: none; }
    .steps-grid { grid-template-columns: 1fr; }
}
