@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────── */
:root {
  --navy:        #0C1B45;
  --navy-mid:    #162257;
  --navy-light:  #1E3080;
  --navy-pale:   #EEF2FF;
  --gold:        #C9922A;
  --gold-light:  #F5E6C8;
  --gold-pale:   #FDFAF4;
  --ink:         #111827;
  --ink-2:       #1F2937;
  --ink-3:       #374151;
  --muted:       #6B7280;
  --border:      #E5E7EB;
  --bg:          #F9FAFB;
  --white:       #FFFFFF;
  --green:       #059669;
  --red:         #DC2626;
  --amber:       #D97706;
  --card-shadow: 0 2px 16px rgba(12,27,69,0.08);
  --card-hover:  0 8px 32px rgba(12,27,69,0.14);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
img { max-width: 100%; display: block; }

/* ── TOP UTILITY BAR ───────────────────────────────── */
.top-bar {
  background: var(--navy);
  padding: 8px 5%;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: rgba(255,255,255,.65);
}
.top-bar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-item { display: flex; align-items: center; gap: 6px; }
.top-bar-right { display: flex; gap: 14px; align-items: center; }
.top-bar-right a {
  color: rgba(255,255,255,.75); text-decoration: none;
  font-size: .75rem; font-weight: 500;
  transition: color .2s;
}
.top-bar-right a:hover { color: var(--gold); }
.lang-btn {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.15); border-radius: 4px;
  padding: 2px 8px; font-size: .72rem; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  transition: background .2s;
}
.lang-btn:hover { background: rgba(255,255,255,.18); }

/* ── MAIN NAV ──────────────────────────────────────── */
.nav {
  background: var(--white);
  border-bottom: 2px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(12,27,69,0.08);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.school-identity { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.school-crest {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 8px rgba(12,27,69,0.2);
}
.school-name-wrap { }
.school-name {
  font-family: 'Playfair Display', serif;
  font-weight: 800; font-size: 1.05rem;
  color: var(--navy); line-height: 1.15;
}
.school-tagline { font-size: .68rem; color: var(--muted); font-style: italic; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 8px 14px; border-radius: 6px;
  font-size: .88rem; font-weight: 500; color: var(--ink-3);
  text-decoration: none; transition: all .2s;
  position: relative;
}
.nav-link:hover { color: var(--navy); background: var(--navy-pale); }
.nav-link.active { color: var(--navy); font-weight: 600; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -2px; left: 14px; right: 14px;
  height: 2px; background: var(--gold); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-portal {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 8px;
  background: var(--navy); color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: .85rem;
  font-weight: 600; text-decoration: none;
  transition: all .2s;
  box-shadow: 0 2px 10px rgba(12,27,69,0.25);
}
.btn-portal:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-outline-nav {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 8px;
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--navy);
  font-family: 'DM Sans', sans-serif; font-size: .85rem; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.btn-outline-nav:hover { background: var(--navy-pale); }

/* Hamburger */
.ham-btn { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.ham-line { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; transition: all .2s; }

/* ── SECTION LAYOUTS ───────────────────────────────── */
.section { padding: 80px 5%; }
.section-sm { padding: 56px 5%; }
.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 900px; margin: 0 auto; }

/* Section headings */
.s-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-light); color: var(--gold);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 20px;
  margin-bottom: 12px; border: 1px solid rgba(201,146,42,.2);
}
.s-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800; color: var(--navy); margin-bottom: 14px;
}
.s-sub { font-size: 1rem; color: var(--muted); max-width: 560px; line-height: 1.75; }

/* ── CARDS ─────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--card-hover); transform: translateY(-3px); }

/* ── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 9px;
  font-family: 'DM Sans', sans-serif; font-size: .9rem; font-weight: 600;
  cursor: pointer; text-decoration: none; border: none;
  transition: all .2s;
}
.btn-navy {
  background: var(--navy); color: #fff;
  box-shadow: 0 3px 14px rgba(12,27,69,0.28);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-gold {
  background: var(--gold); color: #fff;
  box-shadow: 0 3px 14px rgba(201,146,42,0.3);
}
.btn-gold:hover { background: #B8821E; transform: translateY(-1px); }
.btn-outline-navy {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy-pale); }
.btn-lg { padding: 13px 28px; font-size: .95rem; border-radius: 10px; }

/* ── FORMS ─────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px; border-radius: 9px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-family: 'DM Sans', sans-serif; font-size: .93rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(12,27,69,0.08);
  background: var(--white);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ── BADGE ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: .72rem; font-weight: 700;
}
.badge-navy  { background: var(--navy-pale); color: var(--navy); }
.badge-gold  { background: var(--gold-light); color: #92400E; }
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-red   { background: #FEE2E2; color: #991B1B; }

/* ── DIVIDER ───────────────────────────────────────── */
.divider {
  border: none; border-top: 1px solid var(--border); margin: 32px 0;
}
.divider-gold {
  border: none; border-top: 2px solid var(--gold); margin: 32px 0; opacity: .4;
}

/* ── NOTICE CARD ───────────────────────────────────── */
.notice-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 22px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border);
  transition: border-color .2s, background .2s;
}
.notice-item:hover { background: var(--bg); border-left-color: var(--gold); }
.notice-item:last-child { border-bottom: none; }
.notice-dot {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; margin-top: 2px;
}
.notice-date { font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: var(--muted); margin-bottom: 5px; }
.notice-title { font-family: 'DM Sans', sans-serif; font-size: .93rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.notice-preview { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.notice-tag { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }

/* ── STAT CARD ─────────────────────────────────────── */
.stat-card {
  background: var(--white); border-radius: 14px;
  border: 1px solid var(--border); padding: 24px 22px;
  box-shadow: var(--card-shadow); text-align: center;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; font-weight: 800; color: var(--navy);
  line-height: 1;
}
.stat-label { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.stat-icon { font-size: 1.4rem; margin-bottom: 8px; }

/* ── FOOTER ────────────────────────────────────────── */
.footer { background: var(--navy); padding: 64px 5% 0; }
.footer-top {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-school { }
.footer-logo-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.footer-crest {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  border: 1px solid rgba(255,255,255,.2);
}
.footer-school-name {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  font-weight: 700; color: #fff;
}
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 260px; margin-bottom: 16px; }
.powered-by {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: 5px 10px;
  font-size: .72rem; color: rgba(255,255,255,.5);
}
.powered-by strong { color: rgba(255,255,255,.8); }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif; font-size: .82rem; font-weight: 700;
  color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: .85rem; color: rgba(255,255,255,.65);
  text-decoration: none; margin-bottom: 10px; transition: color .2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: rgba(255,255,255,.35);
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ── PAGE HERO ─────────────────────────────────────── */
.page-hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 60%, #1A307A 100%);
  padding: 60px 5% 56px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(201,146,42,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(201,146,42,.15); border: 1px solid rgba(201,146,42,.25);
  color: var(--gold); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  color: #fff; margin-bottom: 10px; line-height: 1.15;
}
.page-hero p { font-size: .97rem; color: rgba(255,255,255,.65); max-width: 540px; line-height: 1.7; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; color: rgba(255,255,255,.5);
  margin-bottom: 18px; flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(255,255,255,.3); }

/* ── ANIMATIONS ────────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px);} to{opacity:1;transform:translateY(0);} }
@keyframes float  { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
@keyframes pulse  { 0%,100%{opacity:1;} 50%{opacity:.4;} }
.anim-1 { animation: fadeUp .6s ease both; }
.anim-2 { animation: fadeUp .6s .12s ease both; }
.anim-3 { animation: fadeUp .6s .24s ease both; }
.anim-4 { animation: fadeUp .6s .36s ease both; }

/* ── UTILITIES ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.text-gold  { color: var(--gold); }
.text-muted { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.mt-2{margin-top:8px;} .mt-4{margin-top:16px;} .mt-6{margin-top:24px;} .mt-8{margin-top:32px;}
.mb-4{margin-bottom:16px;} .mb-6{margin-bottom:24px;} .mb-8{margin-bottom:32px;}
.fw-bold { font-weight: 700; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media(max-width:1024px){
  .grid-4{grid-template-columns:repeat(2,1fr);}
  .footer-top{grid-template-columns:1fr 1fr;}
}
@media(max-width:768px){
  .nav-links, .nav-actions { display:none; }
  .ham-btn { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .top-bar-right { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media(max-width:480px){
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 5%; }
}
</style>
