/* ============================================================
   IPELO – TTU  |  Design System
   Palette: Deep Navy #0a2463 · Gold #e9c46a · Teal #2ec4b6
            Slate #1d2d44 · Cream #fafaf8 · White #ffffff
   Type: Plus Jakarta Sans (UI) · DM Serif Display (headings)
   Signature: Animated globe meridian lines on hero
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0a2463;
  --navy-dark: #061539;
  --navy-mid:  #1d3461;
  --gold:      #e9c46a;
  --gold-dark: #c8a84b;
  --teal:      #2ec4b6;
  --teal-dark: #21a89b;
  --slate:     #1d2d44;
  --cream:     #fafaf8;
  --grey-50:   #f8f9fc;
  --grey-100:  #eef0f5;
  --grey-200:  #dde0e8;
  --grey-400:  #9aa3b5;
  --grey-600:  #5a6478;
  --grey-800:  #2c3344;
  --white:     #ffffff;
  --success:   #2d9e6b;
  --error:     #e55050;
  --info:      #3a86ff;

  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif:'DM Serif Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(10,36,99,.06), 0 1px 2px rgba(10,36,99,.04);
  --shadow:    0 4px 12px rgba(10,36,99,.10), 0 2px 4px rgba(10,36,99,.06);
  --shadow-lg: 0 16px 40px rgba(10,36,99,.14), 0 4px 8px rgba(10,36,99,.08);
  --shadow-xl: 0 32px 64px rgba(10,36,99,.18);

  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.55s cubic-bezier(0.4,0,0.2,1);

  --header-h: 72px;
  --topbar-h: 40px;
  --total-header: calc(var(--header-h) + var(--topbar-h));
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  color: var(--grey-800);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Utilities ── */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.container--wide { max-width: 1440px; }
.container--narrow { max-width: 800px; }

.section { padding-block: 96px; }
.section--sm { padding-block: 64px; }
.section--lg { padding-block: 128px; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block; width: 24px; height: 2px;
  background: var(--gold); border-radius: 2px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--navy);
}
.section-title em { font-style: italic; color: var(--teal-dark); }

.section-lead {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--grey-600);
  max-width: 600px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-lead { margin-inline: auto; }
.text-center .section-label { justify-content: center; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; letter-spacing: .04em;
}
.badge--gold  { background: rgba(233,196,106,.15); color: var(--gold-dark); }
.badge--teal  { background: rgba(46,196,182,.12); color: var(--teal-dark); }
.badge--navy  { background: rgba(10,36,99,.08); color: var(--navy); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-size: 0.9rem; font-weight: 700; letter-spacing: .02em;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background var(--transition);
}
.btn:hover::before { background: rgba(255,255,255,.1); }

.btn--primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(10,36,99,.35);
}
.btn--primary:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,36,99,.4); }

.btn--gold {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 4px 16px rgba(233,196,106,.4);
}
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); }

.btn--teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(46,196,182,.35);
}
.btn--teal:hover { background: var(--teal-dark); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.4);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); transform: translateY(-2px); }

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

.btn--sm { padding: 10px 20px; font-size: 0.825rem; }
.btn--lg { padding: 18px 36px; font-size: 1rem; }
.btn i { font-size: 0.9em; }

/* ── Loader ── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s, visibility .5s;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-globe { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.loader-globe span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold);
  animation: loaderBounce 1.2s infinite ease-in-out;
}
.loader-globe span:nth-child(2) { animation-delay: .2s; background: var(--teal); }
.loader-globe span:nth-child(3) { animation-delay: .4s; }
.loader-text { color: rgba(255,255,255,.6); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
@keyframes loaderBounce {
  0%, 80%, 100% { transform: scale(0); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--navy); color: var(--white);
  padding: 8px 16px; border-radius: var(--radius); z-index: 10000;
}
.skip-link:focus { top: 8px; }

/* ── Topbar ── */
.topbar {
  background: var(--navy-dark);
  height: var(--topbar-h);
  display: flex; align-items: center;
  position: sticky; top: 0; z-index: 1000;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.topbar-left { display: flex; align-items: center; gap: 24px; }
.topbar-left span, .topbar-right a {
  font-size: .75rem; color: rgba(255,255,255,.75); font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.topbar-left span i { color: var(--gold); font-size: .7rem; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-right a { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.08); justify-content: center; transition: background var(--transition), color var(--transition); }
.topbar-right a:hover { background: var(--gold); color: var(--navy-dark); }

/* ── Header ── */
.site-header {
  position: sticky; top: var(--topbar-h); z-index: 999;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--grey-100);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-lg); }
.site-header .container { display: flex; align-items: center; gap: 32px; height: 100%; }

.site-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-emblem {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.2rem;
  flex-shrink: 0;
}
.logo-title { display: block; font-size: 1.1rem; font-weight: 800; color: var(--navy); line-height: 1; }
.logo-sub { display: block; font-size: .65rem; color: var(--grey-600); letter-spacing: .04em; font-weight: 500; margin-top: 2px; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; color: var(--grey-800);
  transition: all var(--transition);
}
.nav-list > li > a:hover,
.nav-list > li > a.active { color: var(--navy); background: var(--grey-50); }
.nav-list > li > a.active { color: var(--navy); font-weight: 700; }
.nav-list > li > a i { font-size: .65rem; transition: transform var(--transition); }
.nav-list > li.has-dropdown:hover > a i { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--grey-100);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 500; color: var(--grey-700);
  transition: all var(--transition);
}
.dropdown a:hover { background: var(--grey-50); color: var(--navy); padding-left: 20px; }

.btn-apply {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: var(--radius-full);
  font-size: .825rem; font-weight: 700;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-apply:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(233,196,106,.5); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--grey-800); border-radius: 2px; transition: all var(--transition); display: block; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--total-header));
  background: var(--navy-dark);
  display: flex; align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/bg.webp');
  background-size: cover; background-position: center;
  opacity: .18;
  transform: scale(1.05);
  animation: heroBgSlow 20s ease-in-out infinite alternate;
}
@keyframes heroBgSlow { to { transform: scale(1); } }

/* Animated meridian globe overlay */
.hero-globe-svg {
  position: absolute; right: -5%; top: 50%;
  transform: translateY(-50%);
  width: min(600px, 55vw);
  opacity: .07;
  animation: globeSpin 40s linear infinite;
  transform-origin: center center;
}
@keyframes globeSpin { to { transform: translateY(-50%) rotate(360deg); } }

/* Accent shapes */
.hero-accent {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.hero-accent-1 {
  width: 500px; height: 500px;
  background: rgba(46,196,182,.12);
  top: -100px; right: 10%;
  animation: accentFloat 8s ease-in-out infinite alternate;
}
.hero-accent-2 {
  width: 300px; height: 300px;
  background: rgba(233,196,106,.08);
  bottom: -50px; left: 5%;
  animation: accentFloat 10s ease-in-out infinite alternate-reverse;
}
@keyframes accentFloat { to { transform: translateY(-30px); } }

.hero-content {
  position: relative; z-index: 2;
  padding-block: 80px;
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px; border-radius: var(--radius-full);
  border: 1px solid rgba(233,196,106,.3);
  background: rgba(233,196,106,.08);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 24px;
  animation: fadeSlideUp .8s ease both;
}
.hero-eyebrow i { font-size: .8rem; }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeSlideUp .9s .1s ease both;
}
.hero-title em { font-style: italic; color: var(--gold); }

.hero-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.78);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 580px;
  animation: fadeSlideUp 1s .2s ease both;
}

.hero-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  animation: fadeSlideUp 1s .3s ease both;
}

/* Hero Stats Strip */
.hero-stats {
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  animation: fadeSlideUp 1s .4s ease both;
}
.hero-stat-item { text-align: center; }
.hero-stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem; font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label { font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.6); letter-spacing: .05em; text-transform: uppercase; margin-top: 4px; }

/* Hero Floating Card */
.hero-card {
  position: absolute; right: 5%; bottom: 10%;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  animation: fadeSlideUp 1s .5s ease both;
  z-index: 2;
  max-width: 300px;
}
.hero-card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gold); display: flex; align-items: center; justify-content: center; color: var(--navy-dark); font-size: 1.3rem; flex-shrink: 0; }
.hero-card-text strong { display: block; color: var(--white); font-size: .95rem; font-weight: 700; }
.hero-card-text span { color: rgba(255,255,255,.6); font-size: .8rem; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Partners Strip ── */
.partners-strip {
  background: var(--grey-50);
  border-block: 1px solid var(--grey-100);
  padding-block: 28px;
  overflow: hidden;
}
.partners-strip .container { display: flex; align-items: center; gap: 24px; }
.partners-label { font-size: .75rem; font-weight: 700; color: var(--grey-400); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.partners-scroll { display: flex; align-items: center; gap: 48px; animation: scroll 25s linear infinite; white-space: nowrap; }
.partner-logo-item { font-size: .9rem; font-weight: 700; color: var(--grey-400); display: flex; align-items: center; gap: 8px; transition: color var(--transition); flex-shrink: 0; }
.partner-logo-item:hover { color: var(--navy); }
.partner-logo-item .country-code {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 22px; border-radius: 4px;
  background: var(--navy); color: var(--gold);
  font-size: .6rem; font-weight: 800; letter-spacing: .05em;
  font-family: var(--font-mono); flex-shrink: 0;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── Feature Cards (Home) ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 56px; }

.feature-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::after { transform: scaleX(1); }
.feature-card:hover .fc-icon { background: var(--navy); color: var(--gold); }

.fc-icon {
  width: 64px; height: 64px; border-radius: var(--radius);
  background: var(--grey-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--navy);
  margin-bottom: 24px;
  transition: all var(--transition);
}
.fc-number {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-mono);
  font-size: .75rem; font-weight: 500;
  color: var(--grey-200);
}
.fc-title { font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); margin-bottom: 12px; }
.fc-text { font-size: .9rem; color: var(--grey-600); line-height: 1.7; }
.fc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: .85rem; font-weight: 700; color: var(--teal-dark); transition: gap var(--transition); }
.fc-link:hover { gap: 10px; }

/* ── About Section ── */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.about-img-main:hover img { transform: scale(1.04); }
.about-img-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold);
  border-radius: var(--radius-lg);
  padding: 20px 24px; text-align: center;
  box-shadow: var(--shadow-lg);
  color: var(--navy-dark);
}
.about-img-badge strong { display: block; font-family: var(--font-serif); font-size: 2.5rem; line-height: 1; }
.about-img-badge span { font-size: .8rem; font-weight: 700; letter-spacing: .04em; }

.about-checklist { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.about-check { display: flex; align-items: flex-start; gap: 12px; }
.about-check-icon { width: 24px; height: 24px; border-radius: 50%; background: rgba(46,196,182,.15); display: flex; align-items: center; justify-content: center; color: var(--teal-dark); font-size: .7rem; flex-shrink: 0; margin-top: 2px; }
.about-check-text { font-size: .9rem; color: var(--grey-600); line-height: 1.6; }

/* ── Stats Counter ── */
.stats-section { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); position: relative; overflow: hidden; }
.stats-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2px; position: relative; }
.stat-block { text-align: center; padding: 56px 24px; border-right: 1px solid rgba(255,255,255,.06); position: relative; }
.stat-block:last-child { border-right: none; }
.stat-block::before { content: ''; position: absolute; top: 0; left: 50%; width: 40px; height: 2px; background: var(--gold); transform: translateX(-50%) scaleX(0); transition: transform var(--transition); }
.stat-block.visible::before { transform: translateX(-50%) scaleX(1); }
.stat-num { font-family: var(--font-serif); font-size: 3.5rem; color: var(--gold); display: block; line-height: 1; }
.stat-suffix { font-family: var(--font-serif); font-size: 2rem; color: var(--teal); }
.stat-label { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .1em; margin-top: 10px; }
.stat-icon { font-size: 1.5rem; color: rgba(255,255,255,.15); margin-bottom: 12px; }

/* ── Partnerships ── */
.partnerships-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; margin-top: 48px; }

.partner-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  display: flex; flex-direction: column; gap: 16px;
}
.partner-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.partner-card-head { display: flex; align-items: flex-start; gap: 16px; }
.partner-flag {
  flex-shrink: 0;
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.partner-flag i { font-size: 1.3rem; }
.partner-flag .cc {
  font-size: .65rem; font-weight: 800; letter-spacing: .04em;
  font-family: var(--font-mono); color: var(--gold); line-height: 1;
}
.partner-meta { flex: 1; }
.partner-name { font-weight: 700; font-size: 1rem; color: var(--navy); line-height: 1.3; }
.partner-country { font-size: .8rem; color: var(--grey-400); margin-top: 4px; }
.partner-type { margin-top: 8px; }
.partner-desc { font-size: .875rem; color: var(--grey-600); line-height: 1.65; }
.partner-mou { font-size: .75rem; color: var(--grey-400); display: flex; align-items: center; gap: 6px; margin-top: auto; }

/* ── News & Events ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; margin-top: 48px; }

.news-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.news-card-img { position: relative; overflow: hidden; aspect-ratio: 16/9; flex-shrink: 0; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-cat { position: absolute; top: 16px; left: 16px; }
.news-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.news-card-date { font-size: .75rem; color: var(--grey-400); font-weight: 500; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.news-card-title { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 12px; line-height: 1.4; transition: color var(--transition); }
.news-card:hover .news-card-title { color: var(--teal-dark); }
.news-card-excerpt { font-size: .875rem; color: var(--grey-600); line-height: 1.65; flex: 1; }
.news-card-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--grey-100); display: flex; align-items: center; justify-content: space-between; }
.news-card-views { font-size: .75rem; color: var(--grey-400); display: flex; align-items: center; gap: 4px; }
.news-read-more { font-size: .8rem; font-weight: 700; color: var(--teal-dark); display: flex; align-items: center; gap: 5px; transition: gap var(--transition); }
.news-read-more:hover { gap: 9px; }

/* Events list */
.events-list { display: flex; flex-direction: column; gap: 20px; margin-top: 48px; }
.event-item {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex; align-items: center; gap: 28px;
  transition: all var(--transition);
}
.event-item:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: var(--teal); }
.event-date-box {
  text-align: center; flex-shrink: 0;
  width: 72px; padding: 10px 8px;
  background: var(--navy); border-radius: var(--radius);
  color: var(--white);
}
.event-date-day { font-family: var(--font-serif); font-size: 2rem; line-height: 1; }
.event-date-mon { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.event-body { flex: 1; }
.event-title { font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.event-meta { font-size: .8rem; color: var(--grey-400); display: flex; flex-wrap: wrap; gap: 12px; }
.event-meta span { display: flex; align-items: center; gap: 5px; }
.event-type-tag { font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-full); background: rgba(46,196,182,.1); color: var(--teal-dark); flex-shrink: 0; }

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 48px; }
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,36,99,.7), transparent);
  opacity: 0; transition: opacity var(--transition);
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: var(--white); font-size: .8rem; font-weight: 600; }
.gallery-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: var(--white); font-size: 1.8rem; opacity: 0; transition: opacity var(--transition); }
.gallery-item:hover .gallery-icon { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 9000; background: rgba(10,36,99,.95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--transition); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: var(--white); font-size: 1.5rem; cursor: pointer; padding: 8px; }
.lightbox-caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .85rem; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: var(--white); font-size: 1.5rem; cursor: pointer; padding: 12px; background: rgba(255,255,255,.1); border-radius: 50%; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── CTA Banner ── */
.cta-section { background: var(--teal); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--teal-dark), var(--navy)); }
.cta-layout { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-text .cta-title { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--white); }
.cta-text .cta-sub { font-size: 1rem; color: rgba(255,255,255,.75); margin-top: 8px; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Staff Cards ── */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; margin-top: 48px; }
.staff-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  text-align: center;
}
.staff-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.staff-photo { aspect-ratio: 1; overflow: hidden; position: relative; }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform var(--transition-slow); }
.staff-card:hover .staff-photo img { transform: scale(1.05); }
.staff-body { padding: 24px 20px; }
.staff-name { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); margin-bottom: 6px; }
.staff-role { font-size: .8rem; font-weight: 600; color: var(--teal-dark); letter-spacing: .04em; margin-bottom: 14px; }
.staff-bio { font-size: .85rem; color: var(--grey-600); line-height: 1.65; margin-bottom: 18px; }
.staff-links { display: flex; justify-content: center; gap: 10px; }
.staff-link { width: 36px; height: 36px; border-radius: 50%; background: var(--grey-50); display: flex; align-items: center; justify-content: center; color: var(--grey-600); font-size: .85rem; transition: all var(--transition); }
.staff-link:hover { background: var(--navy); color: var(--white); }

/* ── Mission/Vision Cards ── */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.mv-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-xl); padding: 48px 40px; position: relative; overflow: hidden; }
.mv-card-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--teal)); }
.mv-card-icon { width: 56px; height: 56px; border-radius: var(--radius); background: var(--navy); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.4rem; margin-bottom: 24px; }
.mv-card-title { font-family: var(--font-serif); font-size: 1.6rem; color: var(--navy); margin-bottom: 16px; }
.mv-card-text { color: var(--grey-600); line-height: 1.75; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  padding: 80px 0 60px;
  position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: url('../images/bg-01.jpg') center/cover; opacity: .08; }
.page-hero-content { position: relative; z-index: 1; }
.page-hero-eyebrow { color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.page-hero-title { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); margin-bottom: 16px; line-height: 1.15; }
.page-hero-sub { font-size: 1rem; color: rgba(255,255,255,.7); max-width: 550px; line-height: 1.7; }
.breadcrumb-nav { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-size: .8rem; color: rgba(255,255,255,.5); flex-wrap: wrap; }
.breadcrumb-nav a { color: var(--gold); font-weight: 600; }
.breadcrumb-nav a:hover { color: var(--white); }
.breadcrumb-nav span { color: rgba(255,255,255,.3); }

/* ── Contact ── */
.contact-layout { display: grid; grid-template-columns: 5fr 4fr; gap: 56px; align-items: start; }
.contact-form-card, .contact-info-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-xl); padding: 48px 40px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: .85rem; font-weight: 700; color: var(--grey-800); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  font-size: .9rem; font-family: var(--font-sans); color: var(--grey-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  outline: none;
}
.form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,36,99,.1); }
.form-control::placeholder { color: var(--grey-400); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.contact-info-list { display: flex; flex-direction: column; gap: 24px; margin-top: 28px; }
.ci-item { display: flex; align-items: flex-start; gap: 16px; }
.ci-icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--grey-50); display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 1rem; flex-shrink: 0; }
.ci-label { font-size: .75rem; font-weight: 700; color: var(--grey-400); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.ci-value { font-size: .9rem; color: var(--grey-800); font-weight: 500; }
.ci-value a { color: var(--navy); }
.ci-value a:hover { color: var(--teal-dark); }

/* ── Apply / Enquiry Form ── */
.apply-steps { display: flex; gap: 0; margin-bottom: 48px; }
.apply-step { flex: 1; padding: 16px 20px; text-align: center; position: relative; }
.apply-step:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 50%; width: 1px; height: 40%; background: var(--grey-200); transform: translateY(-50%); }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--grey-100); color: var(--grey-400); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; transition: all var(--transition); }
.apply-step.active .step-num { background: var(--navy); color: var(--white); }
.apply-step.done .step-num { background: var(--teal); color: var(--white); }
.step-label { font-size: .75rem; font-weight: 600; color: var(--grey-400); }
.apply-step.active .step-label { color: var(--navy); }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--grey-800); color: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: .875rem; font-weight: 500;
  animation: toastIn .3s ease;
  max-width: 320px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast.info { background: var(--info); }
.toast i { font-size: 1rem; }
@keyframes toastIn { from { opacity:0; transform: translateX(100%); } to { opacity:1; transform:none; } }

/* ── WhatsApp FAB ── */
.whatsapp-fab {
  position: fixed; bottom: 80px; right: 24px; z-index: 999;
  display: flex; align-items: center; gap: 0;
  opacity: 0; transform: translateY(12px) scale(.92);
  transition: all .35s cubic-bezier(.34,1.56,.64,1); pointer-events: none;
}
.whatsapp-fab.visible { opacity: 1; transform: none; pointer-events: auto; }
.whatsapp-fab-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: all var(--transition); flex-shrink: 0; text-decoration: none;
}
.whatsapp-fab-btn:hover { background: #1EBE5A; transform: scale(1.08); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
.whatsapp-fab-label {
  background: var(--navy); color: var(--white);
  font-size: .78rem; font-weight: 700; border-radius: var(--radius-full);
  padding: 8px 14px; white-space: nowrap;
  box-shadow: var(--shadow-md); margin-right: 10px;
  opacity: 0; transform: translateX(8px);
  transition: all .25s ease; pointer-events: none;
  position: relative;
}
.whatsapp-fab-label::after {
  content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: var(--navy); border-right: none;
}
.whatsapp-fab:hover .whatsapp-fab-label { opacity: 1; transform: translateX(0); }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,.8), 0 0 0 8px rgba(37,211,102,.12); }
}
.whatsapp-fab.visible .whatsapp-fab-btn { animation: wa-pulse 2.5s ease-in-out infinite; }
.whatsapp-fab.visible .whatsapp-fab-btn:hover { animation: none; }

/* ── Back to Top ── */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 998;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px);
  transition: all var(--transition); pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--teal); transform: translateY(-2px); }

/* ── Filter Tabs ── */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-tab {
  padding: 9px 20px; border-radius: var(--radius-full);
  font-size: .825rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--grey-200);
  color: var(--grey-600); background: var(--white);
  transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--navy); color: var(--navy); }
.filter-tab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ── Map embed ── */
.map-embed { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16/7; border: 1px solid var(--grey-100); }
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ── Footer ── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); }
.footer-top { padding-block: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 48px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo .logo-emblem { background: rgba(255,255,255,.08); }
.footer-logo .logo-title { color: var(--white); }
.footer-logo .logo-sub { color: rgba(255,255,255,.5); }
.footer-about { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.6); margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: .85rem; transition: all var(--transition); }
.footer-social a:hover { background: var(--gold); color: var(--navy-dark); }

.footer-heading { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 8px; transition: all var(--transition); }
.footer-links a i { font-size: .65rem; color: var(--gold); transition: transform var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; font-size: .85rem; }
.footer-contact-item i { color: var(--gold); font-size: .9rem; margin-top: 3px; flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,.6); }
.footer-contact-item a:hover { color: var(--white); }

.footer-newsletter p { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.newsletter-form { display: flex; gap: 0; border-radius: var(--radius-full); overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.newsletter-form input { flex: 1; padding: 10px 16px; background: rgba(255,255,255,.06); border: none; color: var(--white); font-size: .85rem; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form button { padding: 10px 16px; background: var(--gold); color: var(--navy-dark); font-weight: 700; cursor: pointer; transition: background var(--transition); flex-shrink: 0; }
.newsletter-form button:hover { background: var(--gold-dark); }

.footer-bottom { padding-block: 20px; border-top: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-bottom a { color: var(--gold); }

/* ── Animations (scroll-triggered) ── */
[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
[data-animate="fade-left"] { transform: translateX(-30px); }
[data-animate="fade-right"] { transform: translateX(30px); }
[data-animate="scale"] { transform: scale(.95); }
[data-animate].is-visible { opacity: 1; transform: none; }
[data-delay="100"] { transition-delay: .1s; }
[data-delay="200"] { transition-delay: .2s; }
[data-delay="300"] { transition-delay: .3s; }
[data-delay="400"] { transition-delay: .4s; }
[data-delay="500"] { transition-delay: .5s; }
[data-delay="600"] { transition-delay: .6s; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-layout { gap: 48px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--total-header); left: 0; right: 0; bottom: 0;
    background: var(--white);
    transform: translateX(100%); transition: transform var(--transition);
    overflow-y: auto; z-index: 998;
    padding: 24px;
  }
  .main-nav.open { transform: none; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-list > li > a { padding: 14px 16px; border-radius: var(--radius); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 24px; margin-top: 4px; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .btn-apply { display: none; }
  .about-layout { grid-template-columns: 1fr; }
  .about-img-badge { right: 16px; bottom: -16px; }
  .mv-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-left span:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-block { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .topbar-left { gap: 12px; }
  .topbar-left span:nth-child(2) { display: none; }
  .partners-strip .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-layout { flex-direction: column; }
  .hero-stats { gap: 28px; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .partnerships-grid { grid-template-columns: 1fr; }
}

/* ── Print ── */
@media print {
  .topbar, .site-header, .site-footer, .back-to-top, .whatsapp-fab, #page-loader { display: none; }
  body { color: #000; }
}

/* ── Admin Dashboard ── */
.admin-layout { display: flex; min-height: 100vh; background: var(--grey-50); }
.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--navy-dark); color: rgba(255,255,255,.85);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 12px; }
.admin-logo .logo-emblem { background: rgba(255,255,255,.1); }
.admin-logo .logo-title { color: var(--white); font-size: .95rem; }
.admin-logo .logo-sub { color: rgba(255,255,255,.4); font-size: .6rem; }
.admin-nav-section { padding: 16px 12px 8px; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: var(--radius); color: rgba(255,255,255,.65); font-size: .875rem; font-weight: 500; transition: all var(--transition); margin-bottom: 2px; }
.admin-nav a i { width: 18px; text-align: center; font-size: .9rem; }
.admin-nav a:hover { background: rgba(255,255,255,.07); color: var(--white); }
.admin-nav a.active { background: rgba(233,196,106,.15); color: var(--gold); }
.admin-nav a .badge-count { margin-left: auto; background: var(--error); color: var(--white); font-size: .65rem; font-weight: 700; padding: 2px 6px; border-radius: var(--radius-full); }

.admin-main { flex: 1; overflow: hidden; }
.admin-topbar { background: var(--white); border-bottom: 1px solid var(--grey-100); padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 10; }
.admin-page-title { font-weight: 700; color: var(--grey-800); font-size: 1rem; }
.admin-user-info { display: flex; align-items: center; gap: 12px; font-size: .875rem; }
.admin-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }

.admin-content { padding: 32px; }

.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.admin-stat-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 24px; display: flex; align-items: center; gap: 16px; }
.admin-stat-icon { width: 52px; height: 52px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.admin-stat-icon.navy { background: rgba(10,36,99,.1); color: var(--navy); }
.admin-stat-icon.gold { background: rgba(233,196,106,.15); color: var(--gold-dark); }
.admin-stat-icon.teal { background: rgba(46,196,182,.12); color: var(--teal-dark); }
.admin-stat-icon.green { background: rgba(45,158,107,.12); color: var(--success); }
.admin-stat-num { font-family: var(--font-serif); font-size: 2rem; color: var(--navy); line-height: 1; }
.admin-stat-label { font-size: .75rem; color: var(--grey-400); font-weight: 600; }

.admin-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.admin-card-header { padding: 20px 24px; border-bottom: 1px solid var(--grey-100); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-card-title { font-weight: 700; font-size: .95rem; color: var(--grey-800); }
.admin-card-body { padding: 24px; }

/* Admin Table */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-400); padding: 12px 16px; border-bottom: 1px solid var(--grey-100); white-space: nowrap; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--grey-50); font-size: .875rem; color: var(--grey-700); vertical-align: middle; }
.admin-table tr:hover td { background: var(--grey-50); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table-img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; }

.admin-actions { display: flex; gap: 6px; }
.admin-btn { padding: 7px 14px; border-radius: var(--radius-sm); font-size: .775rem; font-weight: 600; transition: all var(--transition); display: inline-flex; align-items: center; gap: 5px; }
.admin-btn-edit { background: rgba(10,36,99,.08); color: var(--navy); }
.admin-btn-edit:hover { background: var(--navy); color: var(--white); }
.admin-btn-delete { background: rgba(229,80,80,.1); color: var(--error); }
.admin-btn-delete:hover { background: var(--error); color: var(--white); }
.admin-btn-view { background: rgba(46,196,182,.1); color: var(--teal-dark); }
.admin-btn-view:hover { background: var(--teal); color: var(--white); }
.admin-btn-primary { background: var(--navy); color: var(--white); }
.admin-btn-primary:hover { background: var(--navy-dark); }
.admin-btn-success { background: var(--success); color: var(--white); }

/* Status pill */
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-full); font-size: .7rem; font-weight: 700; }
.status-pill.active { background: rgba(45,158,107,.12); color: var(--success); }
.status-pill.inactive { background: rgba(229,80,80,.1); color: var(--error); }
.status-pill.read { background: rgba(10,36,99,.08); color: var(--navy); }
.status-pill.unread { background: rgba(233,196,106,.15); color: var(--gold-dark); }

/* Form in admin */
.admin-form .form-group { margin-bottom: 20px; }
.admin-form .form-label { font-size: .825rem; font-weight: 700; color: var(--grey-700); margin-bottom: 6px; display: block; }
.admin-form .form-control { padding: 11px 14px; border: 1.5px solid var(--grey-200); border-radius: var(--radius); font-size: .875rem; width: 100%; transition: border-color var(--transition), box-shadow var(--transition); outline: none; }
.admin-form .form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,36,99,.08); }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l3 3 3-3' stroke='%239aa3b5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,36,99,.5); z-index: 5000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--transition); padding: 20px; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box { background: var(--white); border-radius: var(--radius-xl); width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl); transform: scale(.96); transition: transform var(--transition); }
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-header { padding: 24px 28px; border-bottom: 1px solid var(--grey-100); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-weight: 700; color: var(--grey-800); }
.modal-close { width: 32px; height: 32px; border-radius: 50%; background: var(--grey-100); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--grey-600); transition: all var(--transition); }
.modal-close:hover { background: var(--error); color: var(--white); }
.modal-body { padding: 28px; }
.modal-footer { padding: 16px 28px; border-top: 1px solid var(--grey-100); display: flex; justify-content: flex-end; gap: 12px; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 24px; }
.page-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; color: var(--grey-600); background: var(--white); border: 1px solid var(--grey-200); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ── Image Upload Widget ── */
.img-upload-wrap { margin-bottom: 4px; }

.img-drop-zone {
  border: 2px dashed var(--grey-200);
  border-radius: var(--radius-lg);
  background: var(--grey-50);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
}
.img-drop-zone:hover,
.img-drop-zone.dragover {
  border-color: var(--navy);
  background: rgba(10,36,99,.04);
}
.img-drop-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.img-drop-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--grey-100);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 1.4rem; color: var(--grey-300);
  transition: all .2s;
}
.img-drop-zone:hover .img-drop-icon { border-color: var(--navy); color: var(--navy); }
.img-drop-title { font-weight: 700; font-size: .9rem; color: var(--grey-700); }
.img-drop-sub { font-size: .78rem; color: var(--grey-400); margin-top: 4px; }
.img-drop-sub strong { color: var(--navy); }

/* Preview panel — shown after file chosen / existing image */
.img-preview-panel {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  background: var(--white);
  margin-top: 10px;
}
.img-preview-panel.visible { display: flex; }
.img-preview-thumb {
  width: 80px; height: 60px; border-radius: var(--radius);
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--grey-100);
  background: var(--grey-50);
}
.img-preview-info { flex: 1; min-width: 0; }
.img-preview-name {
  font-size: .85rem; font-weight: 700; color: var(--grey-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.img-preview-size { font-size: .75rem; color: var(--grey-400); margin-top: 2px; }
.img-preview-status {
  font-size: .75rem; font-weight: 600; margin-top: 4px;
  display: flex; align-items: center; gap: 5px;
}
.img-preview-status.uploading { color: var(--teal-dark); }
.img-preview-status.done { color: var(--success); }
.img-preview-status.error { color: var(--error); }
.img-preview-clear {
  width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grey-100); color: var(--grey-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .8rem; transition: all .15s;
}
.img-preview-clear:hover { background: var(--error); color: var(--white); }

/* Progress bar */
.img-upload-progress {
  height: 3px; border-radius: 2px; background: var(--grey-100);
  overflow: hidden; margin-top: 8px; display: none;
}
.img-upload-progress.active { display: block; }
.img-upload-bar {
  height: 100%; background: var(--teal); width: 0%;
  transition: width .25s ease; border-radius: 2px;
}
