@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

:root {
  --navy:       #1d3461;
  --navy-dark:  #142242;
  --navy-mid:   #274690;
  --gold:       #b8860b;
  --gold-light: #d4a017;
  --gold-bg:    #fdf6e3;
  --white:      #ffffff;
  --bg:         #f4f6fb;
  --bg-card:    #ffffff;
  --border:     #d6dce8;
  --border-dark:#b0bbd0;
  --text:       #1e2d45;
  --text-mid:   #3d5170;
  --text-muted: #6b7fa0;
  --green:      #1a6e3c;
  --red:        #c0392b;

  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans:  'Source Sans 3', system-ui, sans-serif;
  --font-body:  'Source Serif 4', Georgia, serif;

  --shadow-sm:  0 1px 4px rgba(29,52,97,0.08);
  --shadow-md:  0 4px 16px rgba(29,52,97,0.10);
  --shadow-lg:  0 8px 32px rgba(29,52,97,0.13);
  --radius:     6px;
  --radius-lg:  10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #e8ecf4; }
::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 3px; }

/* ============ TOPBAR ============ */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  font-family: var(--font-sans);
  padding: 6px 0;
  border-bottom: 2px solid var(--gold);
}

.topbar-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.topbar a { color: rgba(255,255,255,0.75); text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }

/* ============ NAVBAR ============ */
nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo-emblem {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gold);
  flex-shrink: 0;
  overflow: hidden;
}

.nav-logo-emblem svg {
  width: 28px;
  height: 28px;
}

.nav-logo-text .site-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
  display: block;
  line-height: 1.1;
}

.nav-logo-text .site-tagline {
  font-size: 0.68rem;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 400;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-links a.active { color: var(--gold-light); border-bottom-color: var(--gold-light); background: rgba(255,255,255,0.06); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }

/* ============ LAYOUT ============ */
.wrapper {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 2rem;
}

.wrapper-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============ PAGE BANNER ============ */
.page-banner {
  background: var(--navy);
  padding: 3rem 0 2.2rem;
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1509062522246-3755977927d7?w=1400&q=50') center/cover;
  opacity: 0.07;
}

.page-banner .wrapper { position: relative; }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.8rem;
  font-family: var(--font-sans);
}

.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.page-banner h1 em {
  color: var(--gold-light);
  font-style: normal;
}

.page-banner p {
  color: rgba(255,255,255,0.68);
  font-size: 0.96rem;
  max-width: 620px;
  font-family: var(--font-sans);
}

/* ============ SECTION ============ */
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin-bottom: 0.6rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.section-title em { color: var(--navy-mid); font-style: normal; }

.section-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 600px;
}

.section-header { margin-bottom: 2.5rem; }
.section-header.center { text-align: center; }
.section-header.center .section-label { justify-content: center; }
.section-header.center .section-desc { margin: 0 auto; }

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ============ HERO ============ */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  border-bottom: 4px solid var(--gold);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1600&q=60') center/cover;
  opacity: 0.09;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,0.015) 60px,
    rgba(255,255,255,0.015) 61px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 80px,
    rgba(255,255,255,0.015) 80px,
    rgba(255,255,255,0.015) 81px
  );
}

.hero .wrapper { position: relative; }

.hero-eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 1.4rem;
  font-family: var(--font-sans);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  max-width: 680px;
}

.hero h1 span {
  color: var(--gold-light);
  display: block;
}

.hero-desc {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============ EXAM BADGES ============ */
.exam-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.exam-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 4px;
  font-family: var(--font-sans);
  letter-spacing: 0.3px;
}

/* ============ DROPDOWN USEFUL LINKS ============ */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  min-width: 250px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  z-index: 1000;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 8px;
  text-align: left;
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.2s ease;
}

.dropdown-content a {
  color: var(--navy);
  padding: 14px 18px;
  text-decoration: none;
  display: block;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: var(--bg);
  color: var(--navy-mid);
}

.dropdown-up .dropdown-content {
  bottom: 100%;
  margin-bottom: 8px;
  margin-top: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: 0.2px;
}

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

.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 16px rgba(184,134,11,0.35);
  transform: translateY(-1px);
}

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

.btn-white:hover { background: #e8edf6; transform: translateY(-1px); }

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover { background: var(--navy-dark); transform: translateY(-1px); }

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

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

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

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

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============ STATS ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2.5rem 0;
}

.stat-cell {
  padding: 1.8rem 1.2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

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

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============ CARDS ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--gold);
  filter: saturate(0.75);
  transition: filter 0.3s;
}

.card:hover .card-img { filter: saturate(1); }

.card-body { padding: 1.5rem; }

.card-tag {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 0.8rem;
  font-family: var(--font-sans);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card-text {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ============ FEATURE BOXES ============ */
.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.feature-box:hover {
  border-left-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  display: block;
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============ NOTICE BAR ============ */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
  line-height: 1.55;
}

.notice-info {
  background: #eaf0fb;
  border-left: 4px solid var(--navy-mid);
  color: var(--text);
}

.notice-gold {
  background: var(--gold-bg);
  border-left: 4px solid var(--gold);
  color: var(--text);
}

.notice-green {
  background: #eaf5ef;
  border-left: 4px solid var(--green);
  color: var(--text);
}

/* ============ EXAM TABLE ============ */
.exam-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.exam-table thead {
  background: var(--navy);
  color: #fff;
}

.exam-table th {
  padding: 0.9rem 1.2rem;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

.exam-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: top;
}

.exam-table tbody tr:last-child td { border-bottom: none; }
.exam-table tbody tr:nth-child(even) { background: #f7f9fd; }
.exam-table tbody tr:hover { background: #edf1fb; }
.exam-table td:first-child { font-weight: 700; color: var(--navy); }

/* ============ FOOTER ============ */
footer {
  background: var(--navy-dark);
  border-top: 4px solid var(--gold);
  padding: 3.5rem 0 0;
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.7rem;
}

.footer-brand-tag {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.footer-brand p { font-size: 0.84rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: rgba(255,255,255,0.58); text-decoration: none; font-size: 0.84rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1260px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); font-family: var(--font-sans); }
.footer-bottom span { color: var(--gold-light); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); border-top: 1px solid rgba(255,255,255,0.1); padding: 0.5rem 0; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 13px 2rem; }
  .nav-links a.active { border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.07); }
  .hamburger { display: flex; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .dropdown-content { left: 0; transform: none; min-width: 100%; }
}
