@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@300;400;500;600;700;800;900&display=swap");

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

:root {
    --navy: #0d274f;
    --navy-mid: #0e2766;
    --navy-light: #143c85;
    --accent: #2563eb;
    --accent-bg: #dbeafe;
    --gold: #f59e0b;
    --gold-bg: #fef3c7;
    --ink: #0f172a;
    --muted: #64748b;
    --subtle: #94a3b8;
    --line: #e2e8f0;
    --surface: #ffffff;
    --bg: #f8fafc;
    --soft: #f1f5f9;
    --green: #22c55e;
    --sh-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --sh: 0 4px 20px rgba(15, 23, 42, 0.08), 0 1px 4px rgba(15, 23, 42, 0.04);
    --sh-lg: 0 20px 50px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    --r: 14px;
    --r-sm: 8px;
    --max: 1200px;
    --font: "Manrope", system-ui, sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
}


/* ── RESET ───────────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
    cursor: pointer;
}

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

a {
    color: inherit;
}


/* ── TOPBAR ──────────────────────────────────────────────── */

.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.65);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.025em;
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 7px 20px;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.3s ease;
    max-height: 40px;
    overflow: hidden;
}

.topbar.hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}


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

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-sm);
}

.navbar {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    border: none;
    background: transparent;
    flex-shrink: 0;
    padding: 0;
    text-decoration: none;
}

.brand img {
    width: 200px;
    height: 120px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    flex-shrink: 0;
}

.brand strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.brand small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.nav-links button {
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 8px 11px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.18s, background 0.18s;
}

.nav-links button:hover {
    color: var(--ink);
    background: var(--soft);
}

.nav-links button.active {
    color: var(--accent);
    background: var(--accent-bg);
    font-weight: 700;
}

.nav-apply {
    flex-shrink: 0;
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}

.nav-apply:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.menu-btn {
    display: none;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    padding: 9px;
    color: var(--navy);
    transition: border-color 0.18s;
}

.menu-btn:hover {
    border-color: var(--navy);
}


/* ── PAGE ENTER ──────────────────────────────────────────── */

main {
    animation: pageIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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


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

.section {
    max-width: var(--max);
    margin: 20px auto;
    padding: clamp(28px, 4vw, 52px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--sh-sm);
}

.section.tinted {
    background: linear-gradient(135deg, #f0f5ff 0%, #fafbff 100%);
    border-color: #dde8ff;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px;
}

.section-head>div {
    flex: 1;
    min-width: 0;
}

.sh-text {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 400;
    max-width: 580px;
}


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

.kicker {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.kicker.light {
    color: rgba(255, 255, 255, 0.5);
}

.kicker.gold {
    color: var(--gold);
}

h1 {
    font-size: clamp(36px, 5vw, 66px);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--navy);
}

h3 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 6px;
}

h4 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}


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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    border-radius: 999px;
    padding: 11px 22px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    white-space: nowrap;
}

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

.btn.primary {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 4px 16px rgba(10, 22, 40, 0.22);
}

.btn.primary:hover {
    background: var(--accent);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

.btn.light {
    background: #fff;
    color: var(--navy);
    box-shadow: var(--sh);
}

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

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

.btn.outline-white {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn.outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn.ghost-light {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn.ghost-light:hover {
    background: rgba(255, 255, 255, 0.18);
}


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

.hero-slider {
    position: relative;
    max-width: var(--max);
    margin: 20px auto;
    height: 580px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--navy);
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: clamp(36px, 6vw, 80px);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 5.5s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.slide-content {
    max-width: 660px;
    position: relative;
    z-index: 2;
}

.slide-content h1 {
    color: #fff;
    margin-top: 8px;
}

.slide-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    line-height: 1.75;
    margin-top: 16px;
    max-width: 520px;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.slider-info {
    position: absolute;
    right: 28px;
    bottom: 80px;
    z-index: 3;
    width: 280px;
    padding: 20px;
    background: rgba(10, 22, 40, 0.78);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.slider-info img {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    object-fit: contain;
}

.slider-info strong {
    display: block;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    margin-top: 12px;
    letter-spacing: -0.02em;
}

.slider-info span {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
}

.slider-info p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
    line-height: 1.6;
    margin-top: 10px;
    font-weight: 400;
}

.slider-ctrl {
    position: absolute;
    left: clamp(28px, 5vw, 80px);
    right: 28px;
    bottom: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sarrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 22px;
    display: grid;
    place-items: center;
    backdrop-filter: blur(8px);
    transition: background 0.2s;
    line-height: 1;
    padding-bottom: 2px;
}

.sarrow:hover {
    background: rgba(255, 255, 255, 0.18);
}

.sdots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.sdot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    padding: 0;
    transition: background 0.3s, width 0.3s;
}

.sdot.active {
    width: 22px;
    border-radius: 3px;
    background: #fff;
}


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

.stats-band {
    max-width: var(--max);
    margin: 20px auto;
    background: var(--navy);
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    overflow: hidden;
}

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

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

.stat-num {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 30px;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-item span {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 4px;
}


/* ── ANNOUNCEMENT ────────────────────────────────────────── */

.announcement {
    max-width: var(--max);
    margin: 20px auto;
    padding: 13px 20px;
    background: var(--gold-bg);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
}

.announcement svg {
    flex-shrink: 0;
    color: var(--gold);
}

.announcement strong {
    color: var(--navy);
    font-weight: 800;
    white-space: nowrap;
}

.announcement span {
    color: #78350f;
    flex: 1;
    font-weight: 400;
}

.announcement button {
    border: none;
    background: var(--gold);
    color: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.announcement button:hover {
    background: #d97706;
}


/* ── SECTION HEAD ────────────────────────────────────────── */

.section h2 {
    margin-top: 4px;
    max-width: 700px;
}


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

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

.dept-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh);
    border-color: #c7d9ff;
}

.dept-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.dept-num {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.08em;
}

.tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: var(--soft);
    padding: 3px 10px;
    border-radius: 999px;
}

.dept-card p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
    font-weight: 400;
    margin-top: 6px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.chips span {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    background: var(--soft);
    border: 1px solid var(--line);
    padding: 4px 10px;
    border-radius: 999px;
}


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

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

.notice-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

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

.notice-type {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.notice-card h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.notice-card p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
    font-weight: 400;
}


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

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

.news-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

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

.news-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ntag {
    font-size: 10px;
    font-weight: 800;
    background: var(--accent-bg);
    color: var(--accent);
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ndate {
    font-size: 12px;
    color: var(--subtle);
    font-weight: 500;
}

.news-card h3 {
    font-size: 15px;
    line-height: 1.35;
}

.news-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    flex: 1;
    font-weight: 400;
}

.read-more {
    border: none;
    background: transparent;
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 700;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 8px;
}


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

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

.teacher-card {
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--surface);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh);
}

.tc-head {
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tc-init {
    font-family: var(--serif);
    font-style: italic;
    font-size: 54px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1;
    font-weight: 400;
}

.tc-role {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-align: center;
    max-width: 90%;
}

.tc-body {
    padding: 18px;
}

.tc-body h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.tc-body p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 400;
}


/* ── PRINCIPAL / DIRECTOR ────────────────────────────────── */

.principal-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
}

.director-card {
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(200px, 0.4fr) 1fr;
}

.director-img {
    position: relative;
    min-height: 280px;
    background-size: cover;
    background-position: center;
}

.director-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, transparent 40%, rgba(10, 22, 40, 0.75));
}

.director-img span {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11.5px;
    font-weight: 700;
}

.director-text {
    padding: 28px;
}

.director-text h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.director-text p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 400;
}

.director-text strong {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: var(--navy);
    font-weight: 700;
}

.quick-links {
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 22px;
    background: var(--soft);
    display: grid;
    gap: 8px;
    align-content: start;
}

.quick-links button {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--navy);
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.quick-links button:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
    transform: translateX(4px);
}


/* ── PAGE HERO ───────────────────────────────────────────── */

.page-hero {
    max-width: var(--max);
    margin: 20px auto;
    padding: clamp(36px, 6vw, 72px);
    border-radius: 20px;
    background: var(--navy);
    display: grid;
    grid-template-columns: 1fr 200px;
    align-items: center;
    gap: 28px;
    min-height: 360px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 70%);
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    color: #fff;
    margin-top: 8px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
    line-height: 1.75;
    margin-top: 14px;
    max-width: 580px;
    font-weight: 400;
}

.page-hero-mark {
    display: grid;
    place-items: center;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.page-hero-mark img {
    width: 120px;
    opacity: 0.85;
}


/* ── SCHEDULE TABLE ──────────────────────────────────────── */

.schedule-tbl {
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--surface);
}

.srow {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
    align-items: center;
    transition: background 0.16s;
}

.srow:last-child {
    border-bottom: none;
}

.srow:hover {
    background: var(--soft);
}

.srow strong {
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.srow span {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 400;
}


/* ── INFO TABLE ──────────────────────────────────────────── */

.info-tbl {
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--surface);
}

.trow {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.trow:last-child {
    border-bottom: none;
}

.trow-key {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

.trow-val {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.55;
}


/* ── TIMELINE ────────────────────────────────────────────── */

.timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.tstep {
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    transition: transform 0.25s, box-shadow 0.25s;
}

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

.tstep-num {
    display: inline-flex;
    width: 34px;
    height: 34px;
    place-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--navy);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.tstep h3 {
    font-size: 14.5px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.tstep p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 400;
}


/* ── TWO COLUMN ──────────────────────────────────────────── */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    min-height: 280px;
}

.panel.dark {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.panel.dark h2 {
    color: #fff;
}

.panel.dark p {
    color: rgba(255, 255, 255, 0.65);
}

.panel ul {
    margin-top: 16px;
    padding-left: 18px;
}

.panel li {
    font-size: 14px;
    line-height: 1.85;
    color: var(--muted);
    font-weight: 400;
}

.panel.dark li {
    color: rgba(255, 255, 255, 0.62);
}

.panel h2 {
    margin-top: 8px;
}

.panel p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
}


/* ── PHOTO STRIP ─────────────────────────────────────────── */

.photo-strip {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 10px;
}

.photo-strip div {
    position: relative;
    height: 270px;
    border-radius: var(--r);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.photo-strip div:first-child {
    height: 340px;
}

.photo-strip div::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, transparent 40%, rgba(10, 22, 40, 0.75));
}

.photo-strip span {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 1;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}


/* ── ACHIEVEMENTS SLIDER ─────────────────────────────────── */

.ach-wrap {
    position: relative;
}

.ach-outer {
    overflow: hidden;
    border-radius: var(--r);
}

.ach-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.ach-slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 32px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    align-items: center;
}

.ach-badge {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: 48px;
    font-weight: 400;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.18);
    letter-spacing: -0.02em;
}

.ach-exam {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.ach-name {
    font-size: 22px;
    margin-bottom: 4px;
}

.ach-detail {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 16px;
}

.ach-quote {
    font-family: var(--serif);
    font-style: italic;
    font-size: 15.5px;
    color: var(--ink);
    line-height: 1.7;
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    font-weight: 400;
}

.ach-ctrl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.ach-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--navy);
    font-size: 20px;
    display: grid;
    place-items: center;
    transition: border-color 0.2s, background 0.2s;
    line-height: 1;
    padding-bottom: 1px;
}

.ach-nav:hover {
    border-color: var(--navy);
    background: var(--soft);
}

.ach-dots {
    display: flex;
    gap: 6px;
}

.adot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: var(--line);
    padding: 0;
    transition: background 0.3s, width 0.3s;
}

.adot.active {
    width: 22px;
    border-radius: 3px;
    background: var(--navy);
}


/* ── PIIMA CARD ──────────────────────────────────────────── */

.piima-card {
    margin-top: 20px;
    padding: 28px;
    background: var(--soft);
    border-radius: var(--r);
    text-align: center;
}

.piima-card svg {
    margin: 0 auto 12px;
    color: var(--navy);
}

.piima-card h3 {
    margin-bottom: 6px;
    font-size: 18px;
}

.piima-card p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 18px;
    font-weight: 400;
}


/* ── CONTACT LIST ────────────────────────────────────────── */

.contact-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
}

.contact-list li svg {
    flex-shrink: 0;
    opacity: 0.55;
}

.contact-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
}


/* ── MAP SECTION ─────────────────────────────────────────── */

.map-wrap {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    min-height: 380px;
}

.map-info {
    padding: 4px 0;
}

.map-info h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.map-info p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
}

.map-info .contact-list li {
    color: var(--muted);
}

.map-info .contact-list li svg {
    color: var(--accent);
    opacity: 1;
}

.map-iframe-wrap {
    border-radius: var(--r);
    overflow: hidden;
    min-height: 380px;
    border: 1px solid var(--line);
}

.map-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
}


/* ── FINAL CTA ───────────────────────────────────────────── */

.final-cta {
    max-width: var(--max);
    margin: 20px auto;
    padding: clamp(28px, 4vw, 52px);
    border-radius: 18px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.final-cta h2 {
    color: #fff;
    margin-top: 6px;
    max-width: 600px;
}

.cta-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


/* ── FILTER ROW ──────────────────────────────────────────── */

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-row button {
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.18s;
}

.filter-row button:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.filter-row button.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}


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

.footer {
    max-width: var(--max);
    margin: 20px auto 24px;
    border-radius: 18px;
    background: var(--navy);
    overflow: hidden;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 36px 32px;
}

.footer-about img {
    width: 46px;
    height: 46px;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    object-fit: contain;
}

.footer-about h3 {
    color: #fff;
    font-size: 15px;
    margin: 14px 0 8px;
    letter-spacing: -0.02em;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
    line-height: 1.65;
    font-weight: 400;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.footer button {
    display: block;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13.5px;
    font-weight: 500;
    padding: 5px 0;
    text-align: left;
    transition: color 0.18s;
}

.footer button:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.28);
}


/* ── REVEAL ──────────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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


/* ── RESPONSIVE 1024px ───────────────────────────────────── */

@media (max-width: 1040px) {
    .nav-apply {
        display: none;
    }
    .menu-btn {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--r);
        box-shadow: var(--sh-lg);
        padding: 12px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s, transform 0.2s;
        z-index: 300;
    }
    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-links button {
        justify-content: center;
        text-align: center;
    }
    .stats-band {
        grid-template-columns: repeat(3, 1fr);
    }
    .dept-grid,
    .notice-grid,
    .news-grid,
    .teacher-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .photo-strip {
        grid-template-columns: 1fr 1fr;
    }
    .photo-strip div:first-child {
        height: 270px;
    }
    .timeline {
        grid-template-columns: repeat(3, 1fr);
    }
    .two-col,
    .principal-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .director-card {
        grid-template-columns: 1fr;
    }
    .director-img {
        min-height: 220px;
    }
    .map-wrap {
        grid-template-columns: 1fr;
    }
    .map-iframe-wrap {
        min-height: 320px;
    }
    .page-hero {
        grid-template-columns: 1fr;
    }
    .page-hero-mark {
        display: none;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}


/* ── RESPONSIVE 680px ────────────────────────────────────── */

@media (max-width: 680px) {
    .topbar {
        display: none;
    }
    .brand strong {
        font-size: 14px;
    }
    .brand small {
        font-size: 9px;
    }
    .brand img {
        width: 38px;
        height: 38px;
    }
    .section,
    .stats-band,
    .announcement,
    .final-cta,
    .footer,
    .page-hero,
    .hero-slider {
        width: calc(100% - 20px);
    }
    .hero-slider {
        height: 520px;
        border-radius: 14px;
    }
    .slide {
        padding: 24px;
    }
    .slide-content h1 {
        font-size: clamp(30px, 9vw, 48px);
    }
    .slider-info {
        left: 12px;
        right: 12px;
        bottom: 76px;
        width: auto;
    }
    .slider-ctrl {
        left: 12px;
        right: 12px;
    }
    .stats-band {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item:nth-child(2n) {
        border-right: none;
    }
    .stat-item:nth-child(3) {
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }
    .dept-grid,
    .notice-grid,
    .news-grid,
    .teacher-grid,
    .timeline,
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .photo-strip {
        grid-template-columns: 1fr;
    }
    .nav-links {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .announcement {
        flex-wrap: wrap;
    }
    .final-cta {
        flex-direction: column;
    }
    .ach-slide {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 22px;
    }
    .ach-badge {
        margin: 0 auto;
        width: 120px;
        height: 120px;
        font-size: 40px;
    }
    .ach-quote {
        text-align: left;
    }
    .srow,
    .trow {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 4px;
    }
    .map-wrap {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}