:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --navy-light: #13345e;
  --gold: #d9a441;
  --gold-dark: #b7852c;
  --ink: #1c2530;
  --muted: #5b6b7d;
  --bg: #f6f8fb;
  --card: #ffffff;
  --border: #e3e8ef;
  --success: #1e8e5a;
  --danger: #c0392b;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(11, 37, 69, 0.08);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--gold-dark); }

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

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

/* ---------- Top bar ---------- */
.site-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: transform 0.32s ease;
}
.site-nav-wrapper.nav-hidden {
  transform: translateY(-100%);
}
.topbar {
  background: var(--navy-dark);
  color: #cfe0f5;
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #cfe0f5; }
.topbar .contact-bits span { margin-right: 18px; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.logo { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: var(--navy); }
.brand .names { line-height: 1.2; }
.brand .names .full { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 19px; color: var(--navy); }
.brand .names .tag { font-size: 12.5px; color: var(--gold-dark); font-weight: 600; letter-spacing: .3px; }

nav.main-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
nav.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  padding: 10px 14px;
  border-radius: 7px;
  position: relative;
}
nav.main-nav a:hover, nav.main-nav a.active { background: rgba(11,37,69,0.06); color: var(--navy); }
nav.main-nav .dropdown { position: relative; }
nav.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 6px;
  z-index: 60;
}
nav.main-nav .dropdown:hover .dropdown-menu { display: block; }
nav.main-nav .dropdown-menu a { display: block; padding: 9px 12px; font-size: 14px; border-radius: 6px; }
.nav-cta { background: var(--gold); color: var(--navy-dark) !important; padding: 10px 18px !important; border-radius: 24px !important; }
.nav-cta:hover { background: var(--gold-dark); }

.mobile-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, var(--navy-light));
  color: #fff;
  padding: 70px 24px 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -60px; top: -60px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(217,164,65,0.25), transparent 70%);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero .eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 12.5px; margin-bottom: 12px; }
.hero h1 { color: #fff; font-size: 40px; margin-bottom: 16px; }
.hero p.lead { color: #d7e2f0; font-size: 16.5px; max-width: 560px; }
.hero-actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 26px; font-weight: 700; font-size: 14.5px;
  border: 2px solid transparent; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); }
.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(3px);
}
.hero-card h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.hero-card ul { margin: 0; padding-left: 18px; color: #d7e2f0; font-size: 14.5px; }
.hero-card li { margin-bottom: 6px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .eyebrow { color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 1.3px; font-size: 12.5px; }
.section-head h2 { font-size: 30px; margin-top: 8px; }
.section-head p { color: var(--muted); }
.alt-bg { background: #fff; }

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 18px; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(11,37,69,0.08);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; color: var(--navy);
}

.program-card { display: flex; flex-direction: column; height: 100%; }
.program-card .level-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(217,164,65,0.18); color: var(--gold-dark); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; width: fit-content;
}
.program-card .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.program-card .spacer { flex: 1; }

.person-card { text-align: center; }
.person-card .avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px; background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 26px; overflow: hidden;
}
.person-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-card h4 { margin: 4px 0 2px; font-size: 15.5px; }
.person-card .role { color: var(--gold-dark); font-weight: 600; font-size: 13px; }
.person-card .field { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.notice-list li:last-child { border-bottom: none; }
.notice-list .date { color: var(--muted); font-size: 13px; white-space: nowrap; }

.quicklinks { display: flex; flex-wrap: wrap; gap: 12px; }
.quicklinks a { background: #fff; border: 1px solid var(--border); padding: 10px 16px; border-radius: 24px; font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow); }

table.fee-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
table.fee-table th, table.fee-table td { border: 1px solid var(--border); padding: 10px 14px; text-align: center; font-size: 14px; }
table.fee-table th { background: var(--navy); color: #fff; }

.tab-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 30px; border-bottom: 1px solid var(--border); }
.tab-nav a { padding: 10px 16px; font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; }
.tab-nav a.active { color: var(--navy); border-color: var(--gold); }

.list-links { list-style: none; padding: 0; margin: 0; }
.list-links li { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.list-links a { font-weight: 600; }

.breadcrumb { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.breadcrumb a { font-weight: 600; }

.page-hero {
  background: var(--navy-dark); color: #fff; padding: 48px 0; text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 6px; }
.page-hero p { color: #cfe0f5; }

.content-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.content-block + .content-block { margin-top: 24px; }

.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }

.badge-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badge-list li { background: rgba(11,37,69,0.06); border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--navy); }

/* ---------- Hero Slider (photo banner) ---------- */
.hero-slider { position: relative; overflow: hidden; min-height: 480px; display: flex; align-items: center; }
.hero-slider .hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease; z-index: 0;
}
.hero-slide.active { opacity: 1; }
.hero-slider::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(7,26,51,0.82) 0%, rgba(7,26,51,0.55) 40%, rgba(7,26,51,0.18) 75%, rgba(7,26,51,0.05) 100%);
}
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; padding: 0;
  transition: all .2s ease;
}
.hero-dots button.active { background: var(--gold); width: 24px; border-radius: 5px; }

/* ---------- Notice Marquee ---------- */
.marquee-bar { background: var(--navy-dark); border-bottom: 1px solid rgba(255,255,255,0.12); }
.marquee-inner { display: flex; align-items: center; gap: 18px; max-width: var(--maxw); margin: 0 auto; padding: 9px 24px; }
.marquee-label {
  background: var(--gold); color: var(--navy-dark); font-weight: 700; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .4px; padding: 6px 14px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.marquee-track-outer { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-track { display: flex; gap: 60px; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { color: #d7e2f0; font-size: 13.5px; font-weight: 600; }
.marquee-item a { color: #fff; }
.marquee-item .date { color: #8ca4c2; font-weight: 500; margin-left: 6px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats strip / gallery preview ---------- */
.stats-strip { background: var(--navy); }
.stats-strip .grid-4 { padding: 0; }
.stat-item { text-align: center; color: #fff; padding: 30px 10px; }
.stat-item .num { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 700; color: var(--gold); }
.stat-item .label { font-size: 13px; color: #cfe0f5; margin-top: 4px; }
.gallery-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-preview-grid img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }

/* ---------- Homepage announcement / notice banner ---------- */
.announcement-banner {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; align-items: stretch;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.announcement-banner img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.announcement-content { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }
.announcement-content h2 { margin-bottom: 10px; }
.announcement-content p { color: var(--muted); margin-bottom: 18px; }
.announcement-content .btn { width: fit-content; }
@media (max-width: 720px) {
  .announcement-banner { grid-template-columns: 1fr; }
  .announcement-content { padding: 22px; }
}

/* ---------- Fee note ---------- */
.section { }
/* ---------- Homepage notice popup modal ---------- */
.notice-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(7, 26, 51, 0.72);
  align-items: center; justify-content: center;
  padding: 24px;
}
.notice-modal-overlay.open { display: flex; }
.notice-modal-box {
  background: #fff; border-radius: 10px; overflow: hidden;
  max-width: 560px; width: 100%; max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: noticeModalIn 0.22s ease;
}
@keyframes noticeModalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.notice-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.notice-modal-header span { font-weight: 700; color: var(--navy); font-size: 15px; }
.notice-modal-header button {
  background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer;
  color: var(--muted); padding: 0 4px;
}
.notice-modal-header button:hover { color: var(--navy); }
.notice-modal-body { overflow-y: auto; }
.notice-modal-body img { width: 100%; display: block; }
.notice-modal-content { padding: 20px 22px 24px; }
.notice-modal-content h3 { margin-bottom: 8px; }
.notice-modal-content p { color: var(--muted); margin-bottom: 14px; }

footer.site-footer { background: var(--navy-dark); color: #cfe0f5; padding: 50px 0 20px; margin-top: 40px; }
footer .grid-4 { margin-bottom: 30px; }
footer h4 { color: #fff; font-size: 15px; }
footer a { color: #cfe0f5; font-size: 13.5px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; text-align: center; font-size: 12.5px; color: #9fb3cc; }

/* ---------- Forms (contact / admin) ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--navy); }
.form-group input[type=text], .form-group input[type=email], .form-group input[type=password],
.form-group input[type=number], .form-group input[type=date], .form-group input[type=url],
.form-group textarea, .form-group select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px; font-size: 14px; font-family: inherit;
  background: #fff; color: var(--ink);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-actions { margin-top: 20px; display: flex; gap: 12px; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: #e6f6ee; color: var(--success); border: 1px solid #b9e6cf; }
.alert-error { background: #fbeceb; color: var(--danger); border: 1px solid #f3c8c4; }

.contact-info-card .contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-info-card .contact-row:last-child { margin-bottom: 0; }
.contact-info-card .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.contact-info-card .contact-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--gold-dark); margin-bottom: 3px; }
.contact-info-card .contact-value { font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.contact-info-card .contact-value a { color: var(--navy); font-weight: 600; }

/* ---------- Admin ---------- */
body.admin { background: #eef1f6; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: var(--navy-dark); color: #cfe0f5; padding: 24px 14px; flex-shrink: 0;
}
.admin-sidebar .brand-mini { color: #fff; font-weight: 700; font-family: 'Poppins', sans-serif; padding: 0 10px 20px; font-size: 16px; }
.admin-sidebar a { display: block; padding: 10px 12px; border-radius: 8px; color: #cfe0f5; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-main { flex: 1; padding: 30px 34px; max-width: 1100px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-topbar h1 { font-size: 22px; margin: 0; }
.admin-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 22px; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
table.admin-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.row-actions a, .row-actions button { font-size: 13px; font-weight: 700; margin-right: 10px; background: none; border: none; cursor: pointer; padding: 0; }
.row-actions .delete-link { color: var(--danger); }
.thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--border); }
.bulk-preview-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bulk-preview-grid img.thumb { width: 64px; height: 64px; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy-dark); }
.login-card { background: #fff; border-radius: var(--radius); padding: 40px; width: 360px; box-shadow: var(--shadow); }
.login-card h2 { text-align: center; }
.helper-text { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.tag-pill { display: inline-block; background: rgba(11,37,69,0.08); color: var(--navy); border-radius: 20px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .admin-main { padding: 20px; }
}
@media (max-width: 720px) {
  nav.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px; box-shadow: var(--shadow); }
  nav.main-nav.open { display: flex; }
  nav.main-nav .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 10px; display: block; }
  .mobile-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; flex-wrap: wrap; gap: 4px; padding: 14px; }
  .hero h1 { font-size: 30px; }
}
