:root {
  --navy: #132a55;
  --navy-dark: #0c1c3c;
  --navy-light: #eef2f9;
  --accent: #f2a300;
  --cyan: #14a4c4;
  --ink: #12203d;
  --muted: #5c6b82;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --border: #e5e9f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 42, 85, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1,h2,h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; display: block; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .78rem; color: var(--cyan); margin: 0 0 .6em; }

/* Preloader */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  opacity: 1; visibility: visible;
  transition: opacity .5s ease, visibility 0s linear 0s;
}
#preloader .preloader-logo {
  width: 84px; height: 84px;
  animation: preloaderPulse 1.1s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { opacity: .55; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1); }
}
body.is-loading { overflow: hidden; }
body:not(.is-loading) #preloader { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }

/* Skip the full preloader on repeat page views within the same browser session */
html.returning-visit #preloader { display: none; }
html.returning-visit body.is-loading { overflow: visible; }

/* Page fade transition */
body { opacity: 0; transition: opacity .35s ease; }
body.page-ready { opacity: 1; }
body.page-leaving { opacity: 0; }
html.returning-visit body { transition: opacity .2s ease; }

/* Topbar */
.topbar { background: var(--navy-dark); color: #cfdcf5; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar-left span { margin-right: 18px; }
.topbar-right a { color: #cfdcf5; margin-left: 16px; font-weight: 600; }
.topbar-right a:hover { color: var(--accent); }
.link-btn { background: none; border: none; color: #cfdcf5; font: inherit; font-weight: 600; cursor: pointer; margin-left: 16px; padding: 0; }
.link-btn:hover { color: var(--accent); }
.inline-form { display: inline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink); }
.brand-logo { width: 46px; height: 46px; object-fit: contain; }
.brand-text { font-size: 1rem; line-height: 1.2; }
.brand-text small { font-weight: 600; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { color: var(--ink); font-weight: 700; font-size: .95rem; }
.main-nav a:hover { color: var(--cyan); }
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: .93rem; border: 2px solid transparent; cursor: pointer; transition: all .2s ease; }
.btn-primary { background: var(--accent); color: #1a1204; }
.btn-primary:hover { background: #d99000; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* Hero slider */
.hero-slider { position: relative; overflow: hidden; height: 560px; background: var(--navy); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.hero-slider.dragging { cursor: grabbing; }
.hero-slider img, .hero-slider a { -webkit-user-drag: none; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease; background-size: cover; background-position: center; display: flex; align-items: center; }
.slide.active { opacity: 1; visibility: visible; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,28,60,.88) 0%, rgba(12,28,60,.55) 55%, rgba(12,28,60,.25) 100%); }
.slide .container { position: relative; z-index: 2; width: 100%; }
.slide-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; max-width: 620px; color: #fff; }
.slide-content h1 { font-size: clamp(1.9rem, 4vw, 3rem); color: #fff; }
.slide-content p { color: #d7e0f2; font-size: 1.08rem; max-width: 540px; }
.hero-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: #fff; text-align: center; }
.slider-dots { position: absolute; bottom: 26px; left: 0; right: 0; z-index: 3; display: flex; gap: 8px; justify-content: center; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0; }
.slider-dots button.active { background: var(--accent); width: 26px; border-radius: 6px; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.section-head-text { max-width: 620px; }
.section-more { font-weight: 700; color: var(--cyan); white-space: nowrap; }

/* Stats */
.stats-row { padding: 50px 0; background: var(--navy); }
.stats-row .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; color: #fff; }
.stat-num { display: block; font-size: 2.1rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: .85rem; color: #cfdcf5; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.value-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pill { background: var(--navy-light); color: var(--navy); padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.about-cards { display: grid; gap: 18px; }
.mini-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.mini-icon { font-size: 1.6rem; margin-bottom: 8px; }
.mini-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.mini-card p { margin: 0; font-size: .92rem; }

/* Card grids (announcements/events/news) */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-image { width: 100%; height: 170px; object-fit: cover; background: var(--navy-light); }
.card-image-placeholder { width: 100%; height: 170px; background: linear-gradient(135deg, var(--navy), var(--navy-dark)); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-meta { font-size: .78rem; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: .9rem; margin-bottom: 14px; flex: 1; }
.card-link { font-weight: 700; font-size: .88rem; color: var(--navy); }

/* Event card variant */
.event-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.event-date { flex: none; width: 60px; height: 60px; border-radius: 12px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; }
.event-date .d { font-size: 1.25rem; line-height: 1; }
.event-date .m { font-size: .68rem; text-transform: uppercase; }
.event-loc { font-size: .8rem; color: var(--navy); font-weight: 700; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; text-align: center; }
.step-num { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #1a1204; display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 14px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-dark)); color: #fff; padding: 70px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfdcf5; max-width: 560px; margin-inline: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* Auth cards */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 60px 24px; background: var(--bg-alt); }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 1.5rem; text-align: center; }
.auth-card .sub { text-align: center; margin-bottom: 24px; }
.auth-links { text-align: center; margin-top: 18px; font-size: .9rem; }

/* Form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  font-family: inherit; font-size: .95rem; background: var(--bg-alt); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.field-error { color: #b3261e; font-size: .82rem; }
.status-msg { background: #e8f6ec; color: #1a7a3e; border: 1px solid #bfe6cb; border-radius: 10px; padding: 12px 16px; font-size: .9rem; margin-bottom: 20px; }
.error-summary { background: #fdecea; color: #b3261e; border: 1px solid #f6c6c1; border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; font-size: .88rem; }
.error-summary ul { margin: 0; padding-left: 18px; }

/* Profile */
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.profile-side { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow); }
.profile-avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid var(--navy-light); background: var(--navy-light); }
.profile-role { display: inline-block; margin-top: 6px; background: var(--navy-light); color: var(--navy); padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.profile-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); margin-bottom: 24px; }
.profile-panel h2 { font-size: 1.15rem; }

/* Page header */
.page-header { background: var(--navy); color: #fff; padding: 70px 0 50px; }
.page-header h1 { color: #fff; margin-bottom: 6px; }
.page-header p { color: #cfdcf5; margin: 0; }

.pagination-wrap { margin-top: 30px; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* Detail article */
.article { max-width: 780px; margin: 0 auto; }
.article-image { width: 100%; border-radius: var(--radius); margin-bottom: 30px; }
.article-meta { font-size: .85rem; color: var(--cyan); font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.article-body { font-size: 1.02rem; color: var(--ink); }
.article-body p { color: var(--ink); }

/* Photo grid + lightbox */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-thumb {
  padding: 0; border: none; border-radius: 10px; overflow: hidden; cursor: pointer;
  aspect-ratio: 1 / 1; background: var(--navy-light); position: relative;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.photo-thumb:hover img { transform: scale(1.06); }

.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10, 18, 38, .94);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
  padding: 24px;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: min(90vw, 1000px); max-height: 76vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-caption { color: #d7e0f2; margin-top: 16px; font-size: .95rem; text-align: center; max-width: 700px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.1); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 720px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.1rem; }
}

/* Footer */
.site-footer { background: var(--navy-dark); color: #a9bdda; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.footer-col a { color: #a9bdda; font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: .88rem; margin-top: 8px; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: .82rem; }

/* Responsive */
@media (max-width: 960px) {
  .about-grid, .profile-grid { grid-template-columns: 1fr; }
  .cards-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-row .container { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav, .nav-cta { display: none; }
  .burger { display: flex; }
  .main-nav.open { display: flex; position: absolute; top: 80px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--border); z-index: 50;}
  .cards-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-slider { height: 460px; }
  .section { padding: 56px 0; }
  .topbar-left span:last-child { display: none; }
}
