/*
Theme Name: Kumarwarti
Author: Leaping Mahuri Pvt. Ltd.
Description: Custom theme for Kumarwarti Campus
Version: 1.0
*/

/* ===== Kumarwarti Multiple Campus — design tokens ===== */
:root {
  --primary: #2D3093;
  --primary-soft: #f6f6ff;
  --primary-dark: #1f2170;
  --primary-15: rgba(45, 48, 147, 0.15);
  --primary-08: rgba(45, 48, 147, 0.08);
  --accent: #ED2020;
  --accent-soft: #fff4f4;
  --accent-dark: #c91414;
  --ink: #0a0a14;
  --ink-2: #2a2a3a;
  --muted: #6b6b7c;
  --bg: #f5f5f5;
  --bg-2: #ffffff;
  --border: #e6e6ee;
  --line: rgba(0,0,0,0.08);

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --max: 1280px;
  --shadow-sm: 0 2px 8px rgba(45, 48, 147, 0.08);
  --shadow-md: 0 8px 28px rgba(45, 48, 147, 0.12);
  --shadow-lg: 0 18px 60px rgba(45, 48, 147, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --header-h: 100px;
  --topbar-h: 38px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

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

/* ===== Top bar ===== */
.topbar {
  background: var(--accent);
  color: #fff;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  font-size: 14px;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 36px;
  width: 100%;
}
.topbar a { display: inline-flex; align-items: center; gap: 8px; opacity: 0.95; transition: opacity 0.2s; }
.topbar a:hover { opacity: 1; }
.topbar svg { width: 14px; height: 14px; }

/* ===== Header / Nav ===== */
.header {
  background: #fff;
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s, height 0.3s;
}
.header.scrolled {
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  height: 80px;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { width: 56px; height: 56px; object-fit: contain; transition: transform 0.4s; }
.brand:hover img { transform: rotate(8deg) scale(1.05); }
.brand-text { line-height: 1.1; }
.brand-text .np {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}
.brand-text .en {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-item {
  position: relative;
  padding: 10px 8px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nav-item:hover, .nav-item.active, .nav-item:hover > .nav-link { color: var(--accent); }
.nav-item .nav-link { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.nav-item .chev {
  width: 10px; height: 10px;
  transition: transform 0.2s;
}
.nav-item:hover .chev { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  min-width: 240px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  border: 1px solid var(--border);
}
/* Direct-child selector so the rule does NOT cascade into nested fly-outs. */
.nav-item.has-dd:hover > .nav-dropdown,
.nav-item.has-dd:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:hover { background: var(--primary-soft); color: var(--primary); }

/* Sub-item with its own fly-out (e.g. About Us → Courses → BBS) */
.nav-sub-item { position: relative; }
.nav-sub-item.has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nav-sub-item .chev-right { flex-shrink: 0; opacity: 0.6; transition: opacity 0.15s, transform 0.15s; }
.nav-sub-item:hover .chev-right { opacity: 1; transform: translateX(2px); }

/* Fly-out (level-2) — appears to the right of the parent sub-item. */
.nav-dropdown.nav-flyout {
  top: -9px;            /* align with parent's row, offset for outer dropdown padding */
  left: calc(100% + 4px);
  transform: translateX(-6px) translateY(0);
}
.nav-sub-item.has-children:hover > .nav-dropdown.nav-flyout,
.nav-sub-item.has-children:focus-within > .nav-dropdown.nav-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 0;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(237,32,32,0.28);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(237,32,32,0.4); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost {
  background: var(--primary-soft);
  color: var(--primary);
}
.btn-ghost:hover { background: var(--primary); color: #fff; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--primary);
}
.menu-toggle:hover { background: var(--primary-soft); }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: var(--primary);
  color: #fff;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(237,32,32,0.18) 0%, transparent 50%);
  pointer-events: none;
}
/* Per-post background image variant — keeps the dark overlay for readability. */
.page-hero.has-bg-image {
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero.has-bg-image::before {
  background:
    linear-gradient(to bottom, rgba(10,10,20,0.45), rgba(10,10,20,0.62)),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(237,32,32,0.18) 0%, transparent 50%);
}
.page-hero-inner {
  position: relative;
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  font-size: 44px;
  margin-bottom: 14px;
}
.page-hero-subtitle {
  color: #fff;
  opacity: 0.9;
  font-size: 17px;
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto 18px;
}
.crumb {
  display: inline-flex;
  gap: 8px;
  font-size: 15px;
  opacity: 0.85;
  align-items: center;
}
.crumb a:hover { color: #ffd400; }
.crumb .sep { opacity: 0.6; }

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.footer h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 15px; opacity: 0.85; transition: opacity 0.2s, transform 0.2s; display: inline-block; }
.footer a:hover { opacity: 1; transform: translateX(4px); color: #ffd400; }
.footer-brand { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.footer-brand .np { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.footer-brand .en { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.05; }
.footer-brand .loc { font-size: 12px; opacity: 0.8; margin-top: 4px; }
.footer-about { font-size: 14px; opacity: 0.85; line-height: 1.6; }
.socials { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.socials .label { font-size: 14px; opacity: 0.9; font-weight: 600; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s, transform 0.2s;
}
.socials a:hover { background: var(--accent); transform: translateY(-2px); }
.contact-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; opacity: 0.9; }
.contact-row svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }

.copy {
  margin-top: 56px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 13px;
  opacity: 0.75;
}

/* ===== Section heading ===== */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-block;
}
.section-head h2 {
  font-size: 38px;
  margin-bottom: 8px;
}
.section-head .lede {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 16px;
}

/* ===== Course card (image-based) ===== */
.course-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 400 / 417;
  cursor: pointer;
  transition: transform 0.35s, box-shadow 0.35s;
  isolation: isolate;
  background: #fff;
  box-shadow: 0 6px 22px rgba(45,48,147,0.10);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-card .img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.course-card:hover .img { transform: scale(1.08); }

/* ===== Pagination (WP paginate_links) ===== */
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--ink-2); background: #fff; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pagination .page-numbers:hover { background: var(--primary-soft); border-color: var(--primary-15); color: var(--primary); }
.pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }
.course-card .read {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
  z-index: 2;
  pointer-events: none;
  display: flex; align-items: center; gap: 4px;
}
.course-card .read::after {
  content: "→";
  transition: transform 0.25s;
}
.course-card:hover .read::after { transform: translateX(4px); }

/* ===== Cards / chips ===== */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.chip.indigo { background: var(--primary-soft); color: var(--primary); }
.chip.red { background: var(--accent-soft); color: var(--accent); }
.chip.dark { background: var(--primary); color: #fff; }

/* Update card */
.update-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.update-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-15); }
.update-date {
  flex-shrink: 0;
  width: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  text-align: center;
  padding: 10px 0;
}
.update-date .day { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1; }
.update-date .mon { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; margin-top: 2px; }
.update-card h4 { font-size: 16px; margin-bottom: 6px; color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.update-card p { font-size: 13px; color: var(--muted); margin: 0; }
.update-card .new {
  margin-left: auto;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ===== Forms ===== */
.input, .textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-15);
}
.input.error, .textarea.error { border-color: var(--accent); }
.textarea { resize: vertical; min-height: 110px; }
.label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
}
.label .req { color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field-error { font-size: 12px; color: var(--accent); }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ===== Marquee for top news ===== */
.news-bar {
  background: #d9d9d9;
  height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.news-bar .label {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  margin: 0 18px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marq 35s linear infinite;
  font-size: 14px;
  color: var(--ink-2);
}
.marquee-track > span { font-weight: 500; }
.marquee-track .dot { color: var(--accent); }
@keyframes marq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Hero slider ===== */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--primary);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,48,147,0.78) 0%, rgba(45,48,147,0.55) 60%, rgba(31,33,112,0.7) 100%);
}
.hero-slide .photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  animation: kenburns 14s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.05) translateX(-1%); }
  to { transform: scale(1.18) translateX(1%); }
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 920px;
}
.hero-content .kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  margin-bottom: 22px;
}
.hero-content h1 {
  color: #fff;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.hero-content h1 .em { color: #ffd400; }
.hero-content p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero-cta .btn-outline:hover { background: #fff; color: var(--primary); }

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.hero-dots button {
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  transition: background 0.3s, width 0.3s;
}
.hero-dots button.active { background: #fff; width: 44px; }

/* Stats */
.stats {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -56px;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-md);
}
.stat { text-align: center; padding: 12px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .num .plus { color: var(--accent); }
.stat .lab { font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: 0.04em; }

/* About row */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-stack {
  position: relative;
  height: 480px;
}
.about-stack .img {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-stack .img img { width: 100%; height: 100%; object-fit: cover; }
.about-stack .a {
  width: 70%; height: 65%;
  top: 0; left: 0;
  z-index: 2;
}
.about-stack .b {
  width: 55%; height: 55%;
  bottom: 0; right: 0;
  border: 6px solid #fff;
  z-index: 3;
}
.about-stack .c {
  position: absolute;
  width: 130px; height: 130px;
  background: var(--accent);
  border-radius: var(--radius-md);
  bottom: 12%; left: 5%;
  z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
}
.about-stack .c .n { font-size: 36px; font-weight: 700; line-height: 1; }
.about-stack .c .t { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; opacity: 0.95; }

/* Certificate stack (UGC QAA) */
.cert-stack {
  position: relative;
  padding: 24px 24px 40px 24px;
}
.cert-stack::before {
  content: "";
  position: absolute;
  inset: 32px 0 0 32px;
  background: var(--primary);
  border-radius: var(--radius-md);
  z-index: 0;
}
.cert-frame {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform 0.45s ease;
}
.cert-stack:hover .cert-frame { transform: rotate(0deg) scale(1.02); }
.cert-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.cert-shine {
  position: absolute;
  top: -50%;
  left: -60%;
  width: 60%;
  height: 200%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: skewX(-20deg);
  transition: left 0.9s ease;
  pointer-events: none;
}
.cert-stack:hover .cert-shine { left: 130%; }
.cert-badge {
  position: absolute;
  bottom: -22px;
  right: 24px;
  z-index: 4;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  box-shadow: 0 12px 28px rgba(237,32,32,0.38);
  border: 3px solid #fff;
  white-space: nowrap;
}
.cert-badge-t { font-weight: 700; font-size: 14px; line-height: 1.1; white-space: nowrap; }
.cert-badge-s { font-size: 11px; opacity: 0.92; letter-spacing: 0.04em; margin-top: 3px; white-space: nowrap; }

/* Speaker (chief / chairman) */
.speaker {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
}
.speaker.alt { grid-template-columns: 1fr 380px; }
.speaker .photo-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--primary);
  height: 420px;
}
.speaker .photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.speaker .photo-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}
.speaker .name-tag {
  position: absolute;
  left: 12px; bottom: 12px; right: 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-display);
  z-index: 2;
}
.speaker .name-tag .nm { font-weight: 600; font-size: 15px; }
.speaker .name-tag .ti { font-size: 12px; opacity: 0.9; margin-top: 2px; }
.speaker .body { padding: 12px 6px; }
.speaker .body h2 { font-size: 32px; margin-bottom: 14px; }
.speaker .body .quote {
  position: relative;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  padding-left: 22px;
  border-left: 3px solid var(--accent);
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-15); }
.value-card .ico {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.value-card h3 { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0; }

/* Hex feature row (about page) */
.hex-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hex-card {
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  color: #fff;
}
.hex-card.indigo { background: var(--primary); }
.hex-card.red { background: var(--accent); }
.hex-card.indigo-2 { background: var(--primary); border: 2px solid rgba(255,255,255,0.12); }
.hex-card .hex {
  width: 88px; height: 100px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hex-card h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.hex-card p { font-size: 13.5px; line-height: 1.65; margin: 0; opacity: 0.93; }

/* Gallery grid + lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1.3 / 1;
  background: var(--primary);
}
.gallery-tile.tall { aspect-ratio: 0.85 / 1; grid-row: span 2; }
.gallery-tile.wide { grid-column: span 2; aspect-ratio: 2.6 / 1; }
.gallery-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-tile:hover img { transform: scale(1.06); }
.gallery-tile .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  transform: translateY(20%);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-tile:hover .cap { opacity: 1; transform: translateY(0); }
.gallery-tile .ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 2, 30, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
  animation: fade 0.25s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.lightbox .lb-cap {
  position: absolute;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  color: #fff; font-family: var(--font-display); font-weight: 500;
}
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { background: rgba(255,255,255,0.24); }

/* Testimonials */
.testimonial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}
.testimonial .qmark {
  position: absolute;
  top: 14px; right: 18px;
  font-family: 'Poppins';
  font-size: 80px;
  color: var(--primary-soft);
  line-height: 1;
}
.testimonial p { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 0 0 18px; position: relative; z-index: 1; }
.testimonial .who { display: flex; gap: 12px; align-items: center; }
.testimonial .av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
}
.testimonial .nm { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.testimonial .ro { font-size: 13px; color: var(--muted); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  align-items: stretch;
}
.contact-info, .contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.info-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-of-type { border-bottom: 0; }
.info-row .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-row .lbl { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.info-row .val { font-family: var(--font-display); font-weight: 600; color: var(--primary); font-size: 16px; }

/* Mobile */
@media (max-width: 1024px) {
  :root { --header-h: 84px; }
  .container { padding: 0 22px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .topbar .container { gap: 18px; font-size: 13px; }
  .hero-content h1 { font-size: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 28px; }
  .stat { border-right: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); padding-bottom: 18px; }
  .about-row { grid-template-columns: 1fr; gap: 36px; }
  .speaker { grid-template-columns: 1fr; }
  .speaker.alt { grid-template-columns: 1fr; }
  .speaker .photo-wrap { min-height: 320px; }
  .values-grid { grid-template-columns: 1fr; }
  .hex-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-tile.wide { grid-column: span 2; }
  .gallery-tile.tall { grid-row: auto; aspect-ratio: 1.2 / 1; }
}
@media (max-width: 640px) {
  .topbar { display: none; }
  .container { padding: 0 16px; }
  .hero { height: 480px; }
  .hero-content h1 { font-size: 32px; }
  .hero-content p { font-size: 16px; }
  .section-head h2 { font-size: 28px; }
  .page-hero h1 { font-size: 32px; }
  .stats { grid-template-columns: 1fr 1fr; padding: 22px; }
  .stat .num { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-tile.wide, .gallery-tile.tall { grid-column: auto; grid-row: auto; aspect-ratio: 1.3 / 1; }
  .news-bar .label { font-size: 11px; padding: 6px 12px; margin: 0 10px; }
  .marquee-track { font-size: 13px; gap: 36px; }
  .speaker { padding: 18px; gap: 18px; }
  .speaker .body h2 { font-size: 24px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
}

/* Mobile menu drawer */
.mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 320px;
  max-width: 88vw;
  background: #fff;
  z-index: 200;
  box-shadow: -10px 0 50px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 24px 22px;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mobile-nav .item {
  display: block;
  padding: 14px 12px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid var(--border);
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-nav .item:hover, .mobile-nav .item.active { background: var(--primary-soft); color: var(--primary); }
.mobile-nav .sub { padding-left: 24px; font-size: 14px; color: var(--muted); }
.mobile-nav .btn { margin-top: 24px; width: 100%; }
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* News & Events page filters */
.filter-btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.filter-btn:hover {
    border-color: var(--primary, #0066cc);
    color: var(--primary, #0066cc);
}
.filter-btn.active {
    background: var(--primary, #0066cc);
    border-color: var(--primary, #0066cc);
    color: #fff;
}

/* Type badge on cards */
.type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.type-badge.type-news {
    background: #e8f3ff;
    color: #0066cc;
}
.type-badge.type-event {
    background: #fff3e0;
    color: #e65100;
}

/* Pagination */
.page-link {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}
.page-link:hover {
    border-color: var(--primary, #0066cc);
    color: var(--primary, #0066cc);
}
.page-link.current {
    background: var(--primary, #0066cc);
    border-color: var(--primary, #0066cc);
    color: #fff;
}

/* Make whole card clickable */
.update-card-link:hover .update-card {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

/* Article body styling */
.article-body {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
}
.article-body h2 {
    font-size: 28px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #1a1a1a;
}
.article-body h3 {
    font-size: 22px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #1a1a1a;
}
.article-body p {
    margin-bottom: 18px;
}
.article-body ul, .article-body ol {
    margin-bottom: 18px;
    padding-left: 24px;
}
.article-body li {
    margin-bottom: 8px;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 24px 0;
}
.article-body a {
    color: var(--primary, #0066cc);
    text-decoration: underline;
}
.article-body blockquote {
    border-left: 4px solid var(--primary, #0066cc);
    padding-left: 20px;
    margin: 24px 0;
    color: #555;
    font-style: italic;
}

.back-link:hover {
    text-decoration: underline;
}