/* =========================================================
   Institute of Computer - Duhok
   Colours taken from the institute logo: navy + gold
   ========================================================= */
:root {
    --navy: #1b2a7b;
    --navy-700: #15216a;
    --navy-900: #0e1650;
    --navy-50: #eef1fb;
    --navy-100: #dde3f6;
    --gold: #f9b81b;
    --gold-600: #e2a10a;
    --gold-50: #fff7e3;
    --ink: #1c2240;
    --muted: #5d6585;
    --line: #e3e7f2;
    --bg: #f6f8fc;
    --white: #ffffff;
    --success: #13854e;
    --success-bg: #e6f6ee;
    --danger: #c0332b;
    --danger-bg: #fdecea;
    --info-bg: #eaf0ff;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 10px 30px rgba(27, 42, 123, .08);
    --shadow-lg: 0 20px 50px rgba(27, 42, 123, .14);
    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--navy-900); }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; vertical-align: middle; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.hide-sm { }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: 999px; border: 2px solid transparent;
    font: 600 14px/1.2 var(--font); cursor: pointer; transition: .2s ease;
    background: var(--navy); color: #fff; white-space: nowrap;
}
.btn:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-600); color: var(--navy-900); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-light { background: var(--navy-50); color: var(--navy); }
.btn-light:hover { background: var(--navy-100); color: var(--navy); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #9e2720; }
.btn-danger-ghost { background: transparent; color: var(--danger); padding: 7px 9px; }
.btn-danger-ghost:hover { background: var(--danger-bg); color: var(--danger); transform: none; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; border-left: 4px solid; }
.alert-success { background: var(--success-bg); border-color: var(--success); color: #0c5a35; }
.alert-error { background: var(--danger-bg); border-color: var(--danger); color: #8a221c; }
.alert-info { background: var(--info-bg); border-color: var(--navy); color: var(--navy-900); }
.alert-warning { background: var(--gold-50); border-color: var(--gold); color: #7a5600; }
.flash-wrap { padding-top: 18px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px); border-bottom: 3px solid var(--gold);
    box-shadow: 0 4px 18px rgba(14, 22, 80, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-900); }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; color: var(--navy); }
.brand-text small { color: var(--gold-600); font-weight: 600; font-size: 12px; letter-spacing: .4px; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a:not(.btn) {
    padding: 8px 11px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 14px; position: relative;
}
.main-nav a:not(.btn):hover { color: var(--navy); background: var(--navy-50); }
.main-nav a.active { color: var(--navy); font-weight: 600; }
.main-nav a.active::after {
    content: ''; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--gold);
}
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 8px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(circle at 10% 90%, rgba(255,255,255,.08), transparent 35%),
        linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 60%, #26389a 100%);
}
.hero::before {
    content: ''; position: absolute; inset: 0; opacity: .07;
    background-image: linear-gradient(rgba(255,255,255,1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
    background-size: 44px 44px;
}
/* a small, soft yellow light drifts slowly behind the words of the hero */
.hero::after {
    content: ''; position: absolute; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(249,184,27,.24), rgba(249,184,27,.08) 45%, transparent 70%);
    left: 12%; top: 30%; animation: hero-light 22s ease-in-out infinite;
}
@keyframes hero-light {            /* the text column: left half of the box */
    0%, 100% { left: 12%; top: 30%; }
    25%      { left: 38%; top: 42%; }
    50%      { left: 22%; top: 70%; }
    75%      { left: 44%; top: 24%; }
}
@media (max-width: 980px) {
    .hero::after { width: 220px; height: 220px; margin: -110px 0 0 -110px; animation-name: hero-light-phone; }
    @keyframes hero-light-phone {   /* the words are under the logo, centred */
        0%, 100% { left: 30%; top: 58%; }
        25%      { left: 70%; top: 66%; }
        50%      { left: 45%; top: 82%; }
        75%      { left: 60%; top: 52%; }
    }
}
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: center; padding: 90px 20px 110px; }
.hero-badge {
    /* official line: a short gold bar, then the text in small capitals with wide spacing */
    display: inline-flex; align-items: center; gap: 12px; color: var(--gold); font-size: 12.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .14em; margin-bottom: 20px;
}
.hero-badge::before { content: ''; flex: none; width: 34px; height: 3px; border-radius: 2px; background: var(--gold); }
@media (max-width: 980px) {
    /* centred hero: a gold bar on each side */
    .hero-badge { letter-spacing: .08em; font-size: 11px; gap: 8px; }
    .hero-badge::before, .hero-badge::after { content: ''; flex: none; width: 18px; height: 2px; border-radius: 2px; background: var(--gold); }
}
.hero h1 { color: #fff; font-size: clamp(30px, 4.5vw, 50px); font-weight: 700; margin-bottom: 18px; }
.hero h1 span { color: var(--gold); }
.hero p.lead { font-size: 17px; color: #d6dcf6; max-width: 580px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-logo { position: relative; display: flex; justify-content: center; }
.hero-logo::before {
    content: ''; position: absolute; width: 115%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%);
    border-radius: 50%; background: radial-gradient(circle, rgba(249,184,27,.35), transparent 65%);
}
.hero-logo img { position: relative; width: 100%; height: auto; aspect-ratio: 1; max-width: 340px; border-radius: 50%; background: #fff; padding: 8px; box-shadow: 0 25px 60px rgba(0,0,0,.35); }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; }

/* ---------- Stats ---------- */
.stats { margin-top: -55px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-size: 34px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: 14px; }
.stat .icon { color: var(--gold-600); margin-bottom: 6px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg); }
.section-head { text-align: center; max-width: 650px; margin: 0 auto 46px; }
.section-head .eyebrow, .eyebrow {
    display: inline-block; color: var(--gold-600); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-head p { color: var(--muted); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); }

.page-hero {
    background: linear-gradient(135deg, var(--navy-900), var(--navy)); color: #fff; padding: 56px 0 50px; position: relative; overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
    border: 40px solid rgba(249,184,27,.18);
}
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.page-hero p { color: #cdd4f3; margin: 0; max-width: 640px; }
.breadcrumb { font-size: 13px; color: #aab4e6; margin-bottom: 10px; }
.breadcrumb a { color: var(--gold); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid > *, .hero-inner > *, .about-grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
    box-shadow: 0 2px 6px rgba(27,42,123,.03); transition: .25s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--navy-100); }
.card h3 { font-size: 19px; }
.card-icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
    background: var(--navy); color: var(--gold);
}
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; margin-top: 6px; }

.dept-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.dept-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--gold)); }
.dept-card p { color: var(--muted); flex: 1; }
.dept-meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.dept-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* News */
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy), #2c3ea8); position: relative; display: grid; place-items: center; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-img img.placeholder { width: 90px; height: 90px; object-fit: contain; opacity: .95; }
.news-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-size: 18px; margin-bottom: 8px; }
.news-body h3 a { color: var(--navy-900); }
.news-body h3 a:hover { color: var(--navy); }
.news-body p { color: var(--muted); font-size: 14px; flex: 1; }
.news-meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.tag {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: var(--navy-50); color: var(--navy);
}
.tag-gold { background: var(--gold-50); color: #8a6100; }
.tag-green { background: var(--success-bg); color: var(--success); }
.tag-red { background: var(--danger-bg); color: var(--danger); }
.tag-gray { background: #eef0f4; color: #555c70; }
.news-img .tag { position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--navy-900); }

.announcements { list-style: none; margin: 0; padding: 0; }
.announcements li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.announcements li:last-child { border-bottom: 0; }
.date-box {
    flex-shrink: 0; width: 56px; text-align: center; border-radius: 10px; background: var(--navy); color: #fff; padding: 6px 0; line-height: 1.15;
}
.date-box b { display: block; font-size: 20px; color: var(--gold); }
.date-box small { font-size: 11px; text-transform: uppercase; }
.announcements a { font-weight: 600; color: var(--navy-900); }
.announcements a:hover { color: var(--navy); }

/* Article */
.article { max-width: 820px; margin: 0 auto; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow); background: var(--bg, #f6f7fb); text-align: center; }
/* the news page shows the whole image, never cropped */
.article-cover img { display: block; width: auto; max-width: 100%; height: auto; max-height: 85vh; margin: 0 auto; object-fit: contain; }
.article-body { font-size: 16px; }
.article-body p { margin-bottom: 1.2em; }

/* Teachers */
.teacher-card { text-align: center; }
.teacher-photo {
    width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--navy), #33449f); color: var(--gold); font-size: 34px; font-weight: 700;
    border: 4px solid #fff; box-shadow: 0 0 0 3px var(--gold);
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card h3 { font-size: 17px; margin-bottom: 4px; }
.teacher-card .role { color: var(--gold-600); font-weight: 600; font-size: 13px; }
.teacher-card .spec { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-visual { position: relative; background: var(--navy); border-radius: 24px; padding: 40px; display: grid; place-items: center; }
.about-visual img { width: 100%; height: auto; aspect-ratio: 1; max-width: 280px; background: #fff; border-radius: 50%; padding: 8px; }
.about-visual .year-badge {
    position: absolute; bottom: -20px; right: -10px; background: var(--gold); color: var(--navy-900); padding: 16px 22px; border-radius: 16px;
    font-weight: 700; box-shadow: var(--shadow); text-align: center; line-height: 1.2;
}
.year-badge b { display: block; font-size: 28px; }
.check-list { list-style: none; padding: 0; margin: 20px 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.check-list .icon { color: #fff; background: var(--gold-600); border-radius: 50%; padding: 3px; margin-top: 2px; }

.mv-card { border-top: 4px solid var(--gold); }
.quote { background: var(--navy); color: #e7eafa; border-radius: var(--radius); padding: 36px; position: relative; }
.quote::before { content: '\201C'; position: absolute; top: -10px; left: 20px; font-size: 110px; color: var(--gold); line-height: 1; font-family: Georgia, serif; }
.quote p { font-size: 17px; font-style: italic; position: relative; }
.quote strong { color: var(--gold); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--gold) 0%, #ffcf4d 100%); border-radius: 22px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; color: var(--navy-900); }
.cta-band p { margin: 0; color: #4a3b00; }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; align-items: center; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
[hidden] { display: none !important; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; font-size: 13.5px; color: var(--navy-900); }
.field small { color: var(--muted); font-size: 12.5px; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number],
.field input[type=date], .field input[type=time], .field input[type=url], .field input[type=tel], .field input[type=search],
.field select, .field textarea, select.input {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: 14px var(--font);
    color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,123,.12);
}
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--navy); }
.search-box { display: flex; gap: 8px; flex-wrap: wrap; }   /* the button moves under the box on narrow screens */
.search-box .input { flex: 1 1 180px; }
.search-box .input { min-width: 220px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--navy-50); color: var(--navy-900); font-weight: 600; font-size: 13px; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbff; }
.table .num { text-align: center; }

/* Timetable */
.timetable .day { font-weight: 700; color: var(--navy); background: var(--navy-50); width: 120px; }
.slot { display: inline-block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 10px 12px; margin: 4px 6px 4px 0; min-width: 190px; vertical-align: top; }
.slot b { display: block; color: var(--navy-900); font-size: 14px; }
.slot small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.slot.lab { border-left-color: var(--navy); }

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.tabs a { padding: 10px 18px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; display: inline-flex; gap: 8px; align-items: center; }
.tabs a.active { color: var(--navy); border-color: var(--gold); }
.exam-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 17px; color: var(--navy); margin: 26px 0 10px; }
.exam-group:first-child { margin-top: 0; }
.exam-group small { font-weight: 400; font-size: 13px; }
.shift-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; margin-bottom: 18px; }
.shift-switch a { padding: 8px 18px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.shift-switch a.active { background: var(--navy); color: #fff; }

/* Contact */
.contact-info { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .card-icon { width: 46px; height: 46px; margin: 0; border-radius: 12px; }
.contact-item strong { display: block; color: var(--navy-900); }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); }

/* Login */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.auth-side {
    background: linear-gradient(150deg, var(--navy-900), var(--navy)); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.auth-side::after { content: ''; position: absolute; width: 420px; height: 420px; right: -140px; bottom: -140px; border-radius: 50%; border: 60px solid rgba(249,184,27,.15); }
.auth-side img { width: 150px; background: #fff; border-radius: 50%; padding: 6px; margin-bottom: 28px; }
.auth-side h2 { color: #fff; font-size: 32px; }
.auth-side h2 span { color: var(--gold); }
.auth-side p { color: #cdd4f3; max-width: 420px; }
.auth-form-wrap { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; padding: 40px; border-radius: 20px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 26px; margin-bottom: 4px; }
.auth-card .field { margin-bottom: 16px; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon input { padding-left: 42px !important; }
.role-hint { display: flex; gap: 8px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; background: #fff; }
.pagination a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .gap { min-width: 24px; height: 40px; display: grid; place-items: center; color: var(--muted, #667); }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .icon { color: var(--navy-100); margin-bottom: 10px; }


/* Admission fees */
.fee-card h3 { margin-bottom: 14px; }
.fee-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px dashed var(--line); }
.fee-row span { display: flex; flex-direction: column; }
.fee-row small { color: var(--muted); font-size: 13px; }
.fee-row b { color: var(--navy); font-size: 20px; white-space: nowrap; text-align: right; }
.fee-row b .per-year { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
/* home page: every line of Study & fees in bold */
.fee-group { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; }
.fee-title { font-weight: 700; color: var(--navy); font-size: 16px; }
.fee-group .fee-row { border-top: 0; padding: 8px 0; }
.fee-group .fee-row span { font-weight: 700; color: var(--text, inherit); }
.fee-group .fee-row b .per-year { font-weight: 700; }
/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c1e6; margin-top: 0; border-top: 4px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding: 60px 20px 40px; }
/* quiet login button in the footer */
.footer-login { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; padding: 6px 14px; font-size: 13px; font-weight: 500;
                border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: #d6dbf3 !important; transition: border-color .2s, color .2s; }
/* the dean's card: highlighted and first */
.teacher-card.is-dean { border: 2px solid var(--gold); background: linear-gradient(180deg, #fff8e6 0%, #fff 55%); box-shadow: 0 10px 30px rgba(245, 184, 28, .25); }
.teacher-card.is-dean .teacher-photo { border-color: var(--gold); }
.teacher-card.is-dean h3 { font-size: 20px; }
.dean-badge { display: inline-flex; align-items: center; gap: 5px; align-self: center; margin-bottom: 8px; padding: 4px 12px; border-radius: 999px;
              background: var(--gold); color: var(--navy-900, #0f1a5a); font-size: 12px; font-weight: 700; }
.dean-row { display: flex; justify-content: center; margin: 4px 0 40px; }
.dean-row .teacher-card { width: 100%; max-width: 320px; }
.dean-profile { display: flex; justify-content: center; }
.dean-profile .teacher-card { width: 100%; max-width: 380px; }
.footer-login:hover { border-color: var(--gold); color: var(--gold) !important; }
/* designer credit: a yellow rectangle (the whole rectangle is the link) with the name in indigo, lightly underlined */
.footer-credit { display: inline-block; margin-left: 4px; padding: 6px 16px; background: var(--gold); border-radius: 6px;
                 color: var(--navy) !important; transition: background .2s, transform .2s; }
.footer-bottom .footer-credit strong { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(27, 42, 123, .45);
                                       text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-credit:hover { background: #ffc93c; transform: translateY(-1px); }
/* home page: admission requirements and fees side by side */
.home-admission { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; max-width: 960px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { background: #fff; border-radius: 50%; padding: 3px; }
.footer-brand strong { color: #fff; display: block; line-height: 1.3; }
.footer-brand small { color: var(--gold); }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--gold); border-radius: 3px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: 14px; }
.site-footer a { color: #b9c1e6; }
.site-footer a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; text-align: center; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.footer-bottom-inner strong { color: var(--gold); font-weight: 600; }
@media (max-width: 640px) { .footer-bottom-inner { justify-content: center; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .main-nav a:not(.btn) { padding: 8px 8px; font-size: 13.5px; }
}
@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
        padding: 12px 20px 20px; box-shadow: var(--shadow-lg); display: none; border-top: 1px solid var(--line);
    }
    .main-nav.open { display: flex; }
    .main-nav a:not(.btn) { padding: 12px 10px; font-size: 15px; }
    .main-nav a.active::after { display: none; }
    .main-nav a.active { background: var(--navy-50); }
    .nav-cta { margin: 10px 0 0; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 60px 20px 100px; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-logo { order: -1; }
    .hero-logo img { max-width: 200px; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-side { padding: 40px 24px; text-align: center; align-items: center; }
    .auth-side img { width: 100px; }
}
@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .hide-sm { display: none !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .brand-text strong { font-size: 15px; }
    .brand img { width: 46px; height: 46px; }
    .cta-band { padding: 30px 24px; }
    .auth-card { padding: 28px 22px; }
    .search-box .input { min-width: 0; }
}

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, .no-print, .sidebar, .panel-top, .btn { display: none !important; }
    body { background: #fff; }
}

/* ---------- Home page motion (with reduced motion: soft fades only, nothing moves) ---------- */
/* hero: the words come up one after the other (the logo stays still) */
.hero-inner > div:first-child > * { animation: rise-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-inner > div:first-child > :nth-child(2) { animation-delay: .12s; }
.hero-inner > div:first-child > :nth-child(3) { animation-delay: .24s; }
.hero-inner > div:first-child > :nth-child(4) { animation-delay: .36s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
/* sections and cards appear as they scroll into view (the class is added by main.js, so without it nothing is hidden) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.stat svg { transition: transform .3s ease; }
.stat:hover svg { transform: translateY(-3px) scale(1.12); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    /* the phone or computer asks for less motion: nothing moves, but things still fade in gently */
    .hero-inner > div:first-child > * { animation-name: fade-in; }
    .reveal { transform: none; transition: opacity .8s ease; }
}
