/* =========================================================
   RCI Marine — global stylesheet
   Brand tokens derived from the existing site design
   ========================================================= */

:root {
  /* Colors */
  --navy-900: #0b2440;
  --navy-800: #0d2b4d;
  --navy-700: #123a63;
  --navy-tint: #eef2f6;
  --gold-600: #c9982f;
  --gold-500: #dcae45;
  --gold-100: #f6e9c8;
  --bg-page: #f7f6f2;
  --bg-card: #ffffff;
  --border: #e4e1d8;
  --text-body: #45505c;
  --text-muted: #7c8794;
  --text-dark: #14202c;
  --white: #ffffff;
  --olive-600: #7c7a3f;

  /* Type */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-card: 0 2px 10px rgba(13, 43, 77, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

h1, h2, h3, h4 {
  --tw-text-opacity: 1;
  font-family: var(--font-display);
  color: rgb(0 61 102 / var(--tw-text-opacity, 1));
  font-weight: 100;
  line-height: 1.0;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--gold-600); }

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

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-outline-navy:hover { background: var(--navy-tint); }

.btn-outline-gold {
  background: transparent;
  border-color: var(--gold-600);
  color: var(--navy-800);
}
.btn-outline-gold:hover { background: var(--gold-100); }

.btn-olive {
  background: var(--olive-600);
  color: var(--white);
}
.btn-olive:hover { opacity: 0.9; }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* -------------------- Header / Nav -------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand-logo-img {
  height: 56px;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
}
.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--navy-800);
  border-bottom-color: var(--gold-600);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.signin-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-800);
}
.mobile-nav-actions { display: none; }

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy-800);
  margin: 2.5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--navy-900);
  color: #b9c2cd;
  padding: 56px 0 0;
}
.footer-logo-img {
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  height: 52px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 14px;
}
.footer-grid p { font-size: 14px; color: #93a1af; margin-top: 12px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; }
.footer-grid ul li a:hover { color: var(--gold-500); }
.footer-anchor {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-500);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: #7c8794;
}

/* -------------------- Page header band -------------------- */
.page-header {
  background: var(--bg-page);
  padding: 64px 0 40px;
}
.page-header h1 {
  font-size: 44px;
  margin: 10px 0 16px;
}
.page-header p {
  max-width: 640px;
  font-size: 16px;
  color: var(--text-body);
}

/* Dark hero band (used on batch detail page) */
.hero-dark {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #cfd8e2;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.hero-dark h1 { color: var(--white); font-size: 40px; margin: 10px 0 16px; }
.hero-dark .eyebrow { color: var(--gold-500); }
.hero-watermark {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 520px;
  max-width: 55%;
  opacity: 0.08;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 0;
}
.hero-dark .container { position: relative; z-index: 1; }

.hero-home h1,
.hero-home .eyebrow,
.hero-home > .container > p {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Home hero — real photo background with dark overlay for legibility */
.hero-home {
  background-image: linear-gradient(90deg, #003d66f0, #003d66c7 45%, #003d6640), url(../images/hero-bg.jpg);
  background-size: cover;
  background-position: center 60%;
}

/* Standalone stats section, sitting cleanly below the hero (no overlap) */
.stats-section {
  background: var(--cream, #f7f4ef);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stats-section .stats-bar {
  transform: none;
  box-shadow: none;
  margin-top: 0;
  border-top: 3px solid var(--gold-600);
}
.back-link {
  font-size: 13px;
  color: var(--gold-500);
  display: inline-block;
  margin-bottom: 18px;
}
.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 26px;
}
.hero-meta div .meta-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b98a6;
}
.hero-meta div .meta-value {
  font-size: 14px;
  color: var(--white);
  font-weight: 600;
  margin-top: 4px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* -------------------- Cards: batch list -------------------- */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head h2 { font-size: 39px; line-height: 1.25; }
.section-head p { max-width: 480px; font-size: 15px; }

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

.batch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.batch-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.batch-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.batch-card .anchor-icon { color: var(--gold-600); font-size: 16px; }
.badge-coming-soon {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #a15c1a;
  background: #fdf0e3;
  border: 1px solid #f3c98c;
  padding: 3px 10px;
  border-radius: 20px;
}
.batch-card h3 { font-size: 22px; margin: 10px 0 10px; }
.batch-card .desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  min-height: 60px;
}
.card-meta {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 6px;
}
.card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
}
.card-subjects {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.card-subjects .label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}
.card-subjects li {
  font-size: 14px;
  color: var(--text-body);
  padding: 4px 0 4px 16px;
  position: relative;
}
.card-subjects li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  background: var(--gold-600);
  transform: rotate(45deg);
}
.card-cta {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-800);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge-soon {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 4px;
}
.flag-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-600);
}

/* -------------------- Next live class card -------------------- */
.live-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  border-top: 3px solid var(--gold-500);
  box-shadow: var(--shadow-card);
}
.live-card .meta-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.live-card h3 { color: var(--navy-800); font-size: 20px; margin: 8px 0 18px; }
.live-card .btn { margin-bottom: 10px; }
.live-card .hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}
.live-card .hint a { color: var(--navy-800); font-weight: 600; }

/* -------------------- Subject enroll cards -------------------- */
.subject-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.subject-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 20px;
}
.subject-card .subj-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.subject-card h4 { font-size: 19px; color: var(--navy-800); }
.subject-card .price { color: var(--gold-600); font-weight: 700; font-size: 16px; }
.price-strike { color: var(--text-muted); font-weight: 400; text-decoration: line-through; font-size: 13px; margin-right: 6px; }
.discount-badge {
  display: inline-block;
  background: #eaf6ea;
  color: #1e6b23;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin: -8px 0 12px;
}
.subject-card p { font-size: 14px; color: var(--text-muted); margin: 10px 0 14px; }
.subject-card .row {
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.row-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  color: var(--gold-600);
  flex-shrink: 0;
}
.row-icon svg { width: 100%; height: 100%; display: block; }
.subject-card .actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.subject-card .actions .btn { flex: 1; }

.combo-card {
  background: var(--navy-900);
  color: #cfd8e2;
  border-radius: var(--radius-md);
  padding: 24px;
}
.combo-card .eyebrow { color: #8b98a6; }
.combo-card p { color: var(--white); font-size: 14px; margin: 10px 0 18px; }
.combo-card p strong { color: var(--gold-500); }
.combo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.combo-row label { display: flex; align-items: center; gap: 10px; }
.combo-card .btn { margin-top: 16px; }

/* -------------------- Course content / library -------------------- */
.library-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.search-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  width: 260px;
  background: var(--white);
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.tabs button {
  background: none;
  border: none;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: var(--gold-600);
  border-bottom-color: var(--gold-600);
}
.content-item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.content-open-btn {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--navy-800);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.content-open-btn:hover { background: var(--navy-900); }
.content-item .icon {
  width: 40px; height: 40px;
  background: var(--navy-tint);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800);
  flex-shrink: 0;
}
.content-item .tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--navy-tint);
  color: var(--navy-800);
  margin-right: 8px;
}
.content-item .cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-600);
}
.content-item h5 { font-size: 16px; color: var(--navy-800); margin: 6px 0 4px; }
.content-item p { font-size: 13px; color: var(--text-muted); }

/* -------------------- Whatsapp float -------------------- */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 52px; height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 60;
}

/* -------------------- Seat availability alerts -------------------- */
.seat-alert {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  margin-top: 10px;
}
.seat-ok { background: var(--navy-tint); color: var(--navy-800); }
.seat-low { background: #fdf0e3; color: #a15c1a; border: 1px solid #f3c98c; }
.seat-full { background: #fdecea; color: #a8271f; border: 1px solid #f2b8b5; }

/* -------------------- Enrollment-gate modal -------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 31, 56, 0.55);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none; border: none;
  font-size: 16px; color: var(--text-muted);
  cursor: pointer;
}
.modal-icon { font-size: 32px; margin-bottom: 10px; }
.modal-box h3 { font-size: 20px; margin-bottom: 10px; }
.modal-box p { color: var(--text-body); font-size: 14px; line-height: 1.6; }

/* -------------------- Public Class Calendar page -------------------- */
.empty-calendar-note {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.empty-calendar-note a { color: var(--navy-800); font-weight: 600; }
.calendar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.calendar-nav h3 { margin: 0; font-family: var(--font-display); font-size: 20px; }
.pub-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pub-cal-head { margin-bottom: 8px; }
.pub-cal-head div { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--text-muted); text-transform: uppercase; padding-bottom: 6px; }
.pub-cal-cell {
  min-height: 92px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}
.pub-cal-empty { background: #fafbfc; border-style: dashed; }
.pub-cal-daynum { font-size: 12px; font-weight: 700; color: var(--navy-800); }
.pub-cal-chip {
  display: block;
  margin-top: 4px;
  background: var(--navy-tint);
  border: 1px solid var(--border);
  color: var(--navy-800);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.pub-cal-chip:hover { background: var(--gold-100); border-color: var(--gold-500); }

@media (max-width: 760px) {
  .pub-cal-grid { grid-template-columns: repeat(7, minmax(0,1fr)); gap: 3px; }
  .pub-cal-cell { min-height: 60px; padding: 4px; }
  .pub-cal-chip { font-size: 9px; padding: 2px 3px; }
}

/* -------------------- Faculty page -------------------- */
.faculty-profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
}
.faculty-photo { display: flex; justify-content: center; }
.faculty-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border: 4px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--gold-500);
  flex-shrink: 0;
}
.faculty-avatar-photo {
  object-fit: cover;
  background: none;
  font-size: 0;
}
.faculty-info h2 { font-size: 32px; margin: 8px 0 4px; }
.faculty-role { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.qual-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.qual-badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--navy-tint);
  border: 1px solid var(--border);
  color: var(--navy-800);
  font-size: 12px;
  font-weight: 600;
}
.hero-about { padding-bottom: 0; }
.hero-about .eyebrow { color: #8b98a6; }
.hero-about h1 {
  color: var(--white);
  font-size: 46px;
  margin: 14px 0 18px;
  font-weight: 500;
}
.hero-about h1 em {
  font-style: italic;
  color: var(--gold-500);
}
.hero-about p {
  max-width: 620px;
  font-size: 16px;
  margin-bottom: 20px;
}
.hero-about .footnote {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-500);
  font-weight: 600;
}

.stats-bar {
  background: var(--white);
  border-top: 3px solid var(--gold-500);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 10px 30px rgba(11, 36, 64, 0.18);
  /*transform: translateY(50%);*/
  margin-top: 44px;
}
.stats-bar div {
  text-align: center;
  padding: 6px 0;
  border-right: 1px solid var(--border);
}
.stats-bar div:last-child { border-right: none; }
.stat-icon {
  color: var(--gold-600);
  margin: 0 auto 10px;
  width: 26px;
  height: 26px;
}
.stat-icon svg { width: 100%; height: 100%; display: block; }
.stats-bar .num {
  --tw-text-opacity: 1;
    font-family: var(--font-display);
    font-size: 25px;
    color: rgb(0 61 102 / var(--tw-text-opacity, 1));
    font-weight: 100;
}
.stats-bar .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* -------------------- Timeline cards (Our Story) -------------------- */
.section-story { padding-top: 130px; }
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 28px;
}
.timeline-card .year {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold-600);
  margin-bottom: 6px;
}
.timeline-card h3 { font-size: 19px; margin-bottom: 10px; }
.timeline-card p { font-size: 14px; color: var(--text-muted); }

/* -------------------- Mentor section -------------------- */
.mentor-section {
  background: var(--navy-900);
  padding: 64px 0;
}
.mentor-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.mentor-grid .eyebrow { color: #8b98a6; }
.mentor-grid h2 { color: var(--white); font-size: 34px; margin: 12px 0 18px; }
.mentor-grid h2 .gold { color: var(--gold-500); }
.mentor-grid p { color: #b9c2cd; font-size: 15px; margin-bottom: 16px; }

/* -------------------- Platform features (home page "Inside the Platform") -------------------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 40px;
}
.platform-feature {
  border-left: 1px solid rgba(220, 174, 69, 0.35);
  padding-left: 20px;
}
.platform-icon {
  color: var(--gold-500);
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
}
.platform-icon svg { width: 100%; height: 100%; display: block; }
.platform-feature h4 { color: #fff; font-size: 17px; margin-bottom: 6px; font-weight: 600; }
.platform-feature p { color: #b9c2cd; font-size: 14px; margin-bottom: 0; }

.credentials-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 28px;
}
.credentials-card .eyebrow { color: #8b98a6; margin-bottom: 18px; display: block; }
.cred-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #dbe1e8;
  font-size: 14px;
}
.cred-item:last-child { border-bottom: none; }
.cred-item .cred-icon {
  width: 34px; height: 34px;
  background: rgba(220,174,69,0.12);
  border: 1px solid rgba(220,174,69,0.3);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-500);
  flex-shrink: 0;
  font-size: 15px;
}
.cred-item .cred-icon svg { width: 18px; height: 18px; display: block; }

/* -------------------- Centered CTA -------------------- */
.cta-center {
  text-align: center;
  padding: 72px 0;
}
.cta-center h2 { font-size: 30px; margin-bottom: 12px; }
.cta-center p {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 15px;
}
.cta-center .btn-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* -------------------- Auth pages (login / signup) -------------------- */
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-visual {
  background:
    linear-gradient(160deg, rgba(11,36,64,0.88), rgba(11,36,64,0.72)),
    radial-gradient(circle at 30% 20%, #1b4569, #0b2440 70%);
  color: #cfd8e2;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.auth-visual .brand { margin-bottom: 0; }
.auth-visual .brand-text .brand-name { color: var(--white); }
.auth-quote {
  max-width: 480px;
}
.auth-quote .footnote {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-500);
  font-weight: 600;
  margin-bottom: 14px;
}
.auth-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
}
.auth-quote cite {
  font-style: normal;
  font-size: 14px;
  color: #9aa7b3;
}
.auth-quote .accent { color: var(--gold-500); }

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.auth-form-inner { width: 100%; max-width: 400px; }
.auth-form-inner .eyebrow { margin-bottom: 10px; display: block; }
.auth-form-inner h1 { font-size: 32px; margin-bottom: 8px; }
.auth-form-inner .sub { font-size: 14px; color: var(--text-muted); margin-bottom: 30px; }

.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.form-group input,
.form-group select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 2px;
  font-size: 15px;
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-body);
}
.form-group input:focus,
.form-group select:focus { outline: none; border-bottom-color: var(--gold-600); }
.form-group input:disabled { color: var(--text-muted); }
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-body);
  resize: vertical;
}
.form-group textarea:focus { outline: none; border-color: var(--gold-600); }

/* Star rating input — 5 radio buttons rendered right-to-left so CSS ~ sibling selectors can highlight hovered/selected stars */
.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  font-size: 30px;
}
.star-rating-input input { display: none; }
.star-rating-input label { color: var(--border); cursor: pointer; transition: color 0.1s ease; }
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: var(--gold-500); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-error {
  background: #fdecea;
  border: 1px solid #f2b8b5;
  color: #611a15;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.form-success {
  background: #eaf6ea;
  border: 1px solid #b9dfb9;
  color: #1e4620;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.auth-switch { font-size: 14px; color: var(--text-muted); margin-top: 18px; text-align: center; }
.auth-switch a { color: var(--navy-800); font-weight: 600; }

.form-check { margin-bottom: 22px; }
.form-group .check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold-600);
}
.check-label a { color: var(--navy-800); font-weight: 600; text-decoration: underline; }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}

/* -------------------- Reviews page -------------------- */
.review-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.review-tabs button {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--navy-800);
}
.review-tabs button.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--white);
  font-size: 14px;
}
.stars { color: var(--gold-500); letter-spacing: 2px; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.review-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.review-card .r-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.r-top .r-name { font-family: var(--font-display); font-size: 16px; color: var(--navy-800); }
.r-top .r-role { font-size: 11px; letter-spacing: 0.06em; color: var(--text-muted); text-transform: uppercase; }
.r-top .quote-mark { position: absolute; right: 0; top: 0; font-size: 32px; color: var(--gold-100); font-family: var(--font-display); }
.review-card .stars { color: var(--gold-500); margin-bottom: 14px; display: block; }
.review-card p.r-text {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 18px;
}
.review-card .r-tag {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--navy-tint);
  color: var(--navy-800);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 4px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}
.review-card.video-review { padding: 0; overflow: hidden; }
.review-card.video-review .video-thumb {
  aspect-ratio: 16/9;
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 40px;
  position: relative;
}
.review-card.video-review .video-body { padding: 20px 26px 26px; }

/* -------------------- Blog -------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.blog-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.blog-card .cover {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  background-size: cover;
  background-position: center;
}
.blog-card .body { padding: 22px; }
.blog-card .meta { font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em; margin-bottom: 10px; }
.blog-card h3 { font-size: 19px; margin-bottom: 10px; }
.blog-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.blog-card .read-more { font-size: 13px; font-weight: 600; color: var(--navy-800); }

.blog-detail-body { max-width: 760px; margin: 0 auto; }
.blog-detail-body img { border-radius: var(--radius-md); margin: 20px 0; }
.blog-detail-body h2 { font-size: 26px; margin: 32px 0 14px; }
.blog-detail-body h3 { font-size: 20px; margin: 24px 0 12px; }
.blog-detail-body p { font-size: 16px; margin-bottom: 16px; color: var(--text-body); }
.blog-detail-body iframe { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); margin: 20px 0; border: none; }
.blog-detail-body ul, .blog-detail-body ol { margin: 0 0 16px 22px; }
.blog-cover-hero {
  width: 100%;
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  background-size: cover;
  background-position: center;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-grid, .subject-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 84px;
    transform: translateY(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    z-index: 40;
  }
  .main-nav.open {
    transform: translateY(0);
  }
  .main-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .main-nav a.active { background: var(--navy-tint); }
  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 24px 22px;
  }
  .mobile-nav-actions .signin-link { padding: 8px 0; }
  .nav-toggle { display: flex; position: relative; z-index: 60; }
  body.nav-open { overflow: hidden; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); transform: none; margin-top: 24px; }
  .stats-bar div { border-bottom: 1px solid var(--border); }
  .section-story { padding-top: 56px; }
  .timeline-grid { grid-template-columns: 1fr; }
  .mentor-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; gap: 28px; }
  .faculty-profile { grid-template-columns: 1fr; text-align: center; padding: 28px; }
  .qual-badges { justify-content: center; }
  .cta-center .btn-row { flex-direction: column; align-items: center; }
  .review-grid, .blog-grid { grid-template-columns: 1fr; }
  .brand-logo-img { height: 44px; }
  .header-actions { gap: 12px; }
  .header-actions .signin-link { display: none; }

  /* Section heading + intro paragraph: stack instead of squeezing side-by-side */
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head h2 { font-size: 26px; line-height: 1.3; }
  .section-head p { max-width: 100%; font-size: 14px; }

  /* Big hero / page headings: shrink so words don't wrap one-per-line */
  .hero-home h1 { font-size: 30px; }
  .hero-about h1 { font-size: 30px; }
  .hero-dark h1 { font-size: 28px; }
  .page-header h1 { font-size: 30px; }
  .mentor-grid h2 { font-size: 26px; }
  .cta-center h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .brand-logo-img { height: 36px; }
  .header-actions .btn { padding: 9px 14px; font-size: 13px; }
}



.stats-bar .stat-icon { display: none !important; } 

.stats-bar > div { position: relative; padding-top: 60px !important; }

.stats-bar > div::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 46px;
  background-color: var(--gold-600, #c99a3d);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

/* 1st box — Years of Heritage (award ribbon) */
.stats-bar > div:nth-child(1)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%225%22%3E%3C/circle%3E%3Cpath%20d%3D%22M8.5%2012.5%207%2021l5-2.5L17%2021l-1.5-8.5%22%3E%3C/path%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%225%22%3E%3C/circle%3E%3Cpath%20d%3D%22M8.5%2012.5%207%2021l5-2.5L17%2021l-1.5-8.5%22%3E%3C/path%3E%3C/svg%3E");
}

/* 2nd box — Officers Placed (people) */
.stats-bar > div:nth-child(2)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%228.5%22%20cy%3D%228%22%20r%3D%223%22%3E%3C/circle%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%229%22%20r%3D%222.4%22%3E%3C/circle%3E%3Cpath%20d%3D%22M3%2020c0-3.3%202.5-6%205.5-6s5.5%202.7%205.5%206%22%3E%3C/path%3E%3Cpath%20d%3D%22M14.5%2014.3c2.6.3%204.5%202.7%204.5%205.7%22%3E%3C/path%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%228.5%22%20cy%3D%228%22%20r%3D%223%22%3E%3C/circle%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%229%22%20r%3D%222.4%22%3E%3C/circle%3E%3Cpath%20d%3D%22M3%2020c0-3.3%202.5-6%205.5-6s5.5%202.7%205.5%206%22%3E%3C/path%3E%3Cpath%20d%3D%22M14.5%2014.3c2.6.3%204.5%202.7%204.5%205.7%22%3E%3C/path%3E%3C/svg%3E");
}

/* 3rd box — Pass Percentage (graduation cap) */
.stats-bar > div:nth-child(3)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203%202%208l10%205%2010-5-10-5Z%22%3E%3C/path%3E%3Cpath%20d%3D%22M6%2010.5V16c0%201.7%202.7%203%206%203s6-1.3%206-3v-5.5%22%3E%3C/path%3E%3Cpath%20d%3D%22M22%208v6%22%3E%3C/path%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203%202%208l10%205%2010-5-10-5Z%22%3E%3C/path%3E%3Cpath%20d%3D%22M6%2010.5V16c0%201.7%202.7%203%206%203s6-1.3%206-3v-5.5%22%3E%3C/path%3E%3Cpath%20d%3D%22M22%208v6%22%3E%3C/path%3E%3C/svg%3E");
}

/* 4th box — Certificate (compass/seal) */
.stats-bar > div:nth-child(4)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%3E%3C/circle%3E%3Cpath%20d%3D%22M14.8%209.2%2013%2013l-3.8%201.8L11%2011l3.8-1.8Z%22%3E%3C/path%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%3E%3C/circle%3E%3Cpath%20d%3D%22M14.8%209.2%2013%2013l-3.8%201.8L11%2011l3.8-1.8Z%22%3E%3C/path%3E%3C/svg%3E");
}

@media (max-width: 960px) {
  .stats-bar > div { padding-top: 54px !important; }
}