/* =========================================================
   ST. MARY'S SCHOOL, DAHOD — style.css
   ========================================================= */

/* ---------- CSS RESET & CUSTOM PROPERTIES ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Brand colours (design.md) ─────────────────────── */
  --primary: #174C2E;
  /* Dark Green  — header, nav, titles, buttons  */
  --accent: #8E2A2A;
  /* School Red  — CTA, hover, alerts             */
  --secondary: #294876;
  /* Royal Blue  — cards, links, feature boxes    */
  --white: #FFFFFF;
  --off-white: #f5f7f4;
  --text-dark: #1a1a2e;
  --text-muted: #4a5568;

  /* legacy aliases kept so old selectors don't break */
  --navy: var(--secondary);
  --navy-dark: #1a2e50;
  --navy-mid: var(--secondary);
  --gold: #C9A227;
  --gold-light: #e6ba36;
  --feature-bg: var(--secondary);
  --sm-green: var(--primary);
  --sm-red: var(--accent);
  --sm-navy: var(--secondary);

  --sm-nav-h: 44px;
  --sm-identity-h: 110px;
  --header-total: calc(var(--sm-identity-h) + var(--sm-nav-h));

  /* ── Typography (design.md) ────────────────────────── */
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Font sizes */
  --fs-h1: 52px;
  --fs-h2: 42px;
  --fs-h3: 32px;
  --fs-h4: 24px;
  --fs-body: 18px;
  --fs-small: 16px;
  --fs-btn: 16px;

  /* ── Layout (design.md) ─────────────────────────────── */
  --max-w: 1320px;

  /* ── Cards (design.md) ──────────────────────────────── */
  --card-radius: 0;
  --card-pad: 32px;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, .08);

  /* ── Buttons (design.md) ────────────────────────────── */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;

  /* ── Animation (design.md) ──────────────────────────── */
  --transition: 0.4s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: var(--fs-body);
  /* 18px — design.md */
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   HEADER — ST. MARY'S SCHOOL, DAHOD
   Row 1 : white identity bar (logo + school info, centred)
   Row 2 : dark navy navigation bar (links centred)
   ========================================================= */

/* Outer wrapper — static, full-width, stacks both rows (not sticky) */
.site-header {
  position: relative;
  width: 100%;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ── ROW 1 : White identity bar ───────────────────────── */
.header-identity {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  width: 100%;
}

.header-identity-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 110px;
}

/* Logo — crop logo3-2 1.png to show only the left circular icon */
.header-logo-link {
  flex-shrink: 0;
  display: block;
  width: 90px;
  height: 90px;
  overflow: hidden;
  /* clips everything outside the element box */
  border-radius: 50%;
  /* makes the crop circular */
}

.header-logo-img {
  /* The full image is ~1010 × 248 px.
     The circle occupies the leftmost ≈248 px.
     We set height: 90px  → scale = 90/248 ≈ 0.363
     At that scale the circle portion is 248×0.363 ≈ 90px wide  → fits perfectly.
     object-fit + object-position pins the left edge inside the container. */
  width: auto;
  height: 90px;
  max-width: none;
  /* allow image to be wider than container */
  display: block;
  object-fit: cover;
  object-position: left center;
}

/* School info text */
.header-school-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.school-name {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--primary);
  /* #174C2E — dark green */
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.school-affil {
  font-size: clamp(12px, 1.3vw, var(--fs-small));
  font-weight: 500;
  color: var(--accent);
  /* #8E2A2A — school red */
  font-style: italic;
  line-height: 1.3;
}

.school-cbse {
  font-size: clamp(12px, 1.2vw, var(--fs-small));
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
}

.school-trust {
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 400;
  color: var(--accent);
  line-height: 1.3;
}

/* ── ROW 2 : Dark navy navigation bar ─────────────────── */
.header-nav {
  background: var(--primary);
  /* #174C2E — design.md: nav = primary green */
  width: 100%;
  position: relative;
}

.header-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Nav links */
.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  padding: 0 28px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
  transition: background var(--transition);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px 2px 0 0;
  transition: transform var(--transition);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ── Hamburger (mobile only) ──────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--off-white);
}

/* ---------- Slides ---------- */
.slides-wrapper {
  position: relative;
  width: 100%;
  display: grid;
}

.slide {
  grid-area: 1 / 1;
  position: relative;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Background image area (right 60%) --- */
.slide-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  overflow: hidden;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Curved mask — colour MUST match the hero background so there's no white stripe */
.slide-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 220px;
  height: 100%;
  background: var(--off-white);
  /* same blueish tint as hero background */
  clip-path: ellipse(220px 120% at 0% 50%);
  z-index: 2;
}

/* Semi-transparent gradient over image */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(248, 249, 252, 0.0) 0%,
      rgba(248, 249, 252, 0.0) 100%);
  z-index: 1;
}

/* --- Hero Content (left side) --- */
.hero-content {
  position: relative;
  width: 50%;
  display: flex;
  flex-direction: column;
  /* flex-start ensures EVERY slide's eyebrow starts at the EXACT same Y position.
     padding-bottom reserves a clear zone above the progress bar. */
  justify-content: flex-start;
  padding-top: 76px;
  padding-bottom: 126px;
  padding-left: max(5vw, 40px);
  padding-right: 60px;
  z-index: 5;
}

/* Spacer that pushes buttons away from the progress bar */
.hero-content-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

/* Eyebrow line */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 32px;
  /* ↑ more breathing room below eyebrow */
  text-transform: uppercase;
}

.eyebrow-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Headings */
.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.2vw, var(--fs-h1));
  /* 52px max — design.md */
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  /* #174C2E — design.md */
  margin-bottom: 28px;
  letter-spacing: -0.01em;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  white-space: nowrap;
}

.hero-heading-gold {
  color: var(--accent);
  /* #8E2A2A — school red accent */
  font-style: normal;
}

.hero-desc {
  font-size: var(--fs-small);
  /* 16px — design.md small */
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 600px;
  min-height: 84px;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 0;
  /* progress bar clearance handled by padding-bottom */
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  /* #174C2E — design.md primary button */
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-btn);
  /* 16px */
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  /* 12px */
  border: 2px solid var(--primary);
  transition: background var(--transition), transform 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--secondary);
  /* #294876 — design.md hover */
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.btn-video {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: color var(--transition);
  white-space: nowrap;
}

.btn-video:hover {
  color: var(--navy);
}

.play-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(26, 42, 94, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(26, 42, 94, 0.12);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.btn-video:hover .play-circle {
  border-color: var(--navy);
  box-shadow: 0 4px 18px rgba(26, 42, 94, 0.2);
}

/* =========================================================
   SLIDER ARROWS
   ========================================================= */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(26, 42, 94, 0.12);
  transition: box-shadow var(--transition), transform 0.2s ease;
}

.slider-arrow:hover {
  box-shadow: 0 6px 28px rgba(26, 42, 94, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.arrow-prev {
  left: 24px;
}

.arrow-next {
  right: 24px;
}

/* =========================================================
   SLIDE PROGRESS
   ========================================================= */
.slide-progress {
  position: absolute;
  /* buttons always end at the same Y (fixed by min-heights above).
     This bottom value gives a clean, constant ~48px gap below the buttons. */
  bottom: 36px;
  left: max(5vw, 40px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-current,
.progress-total {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  min-width: 24px;
}

.progress-total {
  color: var(--text-muted);
}

.progress-track {
  width: 140px;
  height: 2px;
  background: rgba(26, 42, 94, 0.15);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.5s ease;
  width: 33.33%;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about-section {
  background: var(--white);
  padding: 80px 0 40px;
}

.about-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Top header row ─────────────────────────────────────── */
.about-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-end;
  margin-bottom: 48px;
}

.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.about-eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  /* #8E2A2A */
  flex-shrink: 0;
}

.about-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  /* 42px — design.md H2 */
  font-weight: 700;
  color: var(--primary);
  /* #174C2E */
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.about-intro {
  font-size: var(--fs-small);
  /* 16px */
  color: var(--text-muted);
  line-height: 1.85;
  text-align: justify;
}

/* ── Main panel row ─────────────────────────────────────── */
.about-panel-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: stretch;
}

/* ── Left dark card ─────────────────────────────────────── */
.about-card {
  background: var(--secondary);
  /* #294876 — royal blue for card */
  border-radius: var(--card-radius);
  /* 20px */
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  position: relative;
}

.about-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.about-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.about-card:hover .about-card-img {
  transform: scale(1.04);
}

.about-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(30, 50, 100, 0) 0%,
      rgba(30, 50, 100, 0.55) 100%);
}

.about-card-body {
  padding: 44px 36px 44px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.about-card-body.fading {
  opacity: 0;
}

.about-card-heading {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  text-align: justify;
}

/* ── Right numbered tiles ───────────────────────────────── */
.about-tiles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-tile {
  background: var(--navy-dark);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: background var(--transition), transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex: 1;
}

.about-tile:hover,
.about-tile.active {
  background: var(--secondary);
  /* #294876 */
  transform: translateX(-4px);
  box-shadow: 4px 0 0 0 var(--accent) inset;
  /* #8E2A2A accent bar */
}

.about-tile-number {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: rgba(201, 162, 39, 0.35);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
  transition: color var(--transition);
}

.about-tile:hover .about-tile-number,
.about-tile.active .about-tile-number {
  color: var(--gold-light);
  /* keep gold for the large number */
}

.about-tile-content {
  min-width: 0;
}

.about-tile-title {
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 5px;
  line-height: 1.3;
  transition: color var(--transition);
}

.about-tile:hover .about-tile-title,
.about-tile.active .about-tile-title {
  color: var(--white);
}

.about-tile-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.6;
  display: none;
}

.about-tile.active .about-tile-desc {
  display: block;
}

/* =========================================================
   EVENTS / ACTIVITIES SECTION
   ========================================================= */
.events-section {
  background: var(--white);
  padding: 40px 0 80px;
  border-top: 1px solid rgba(26, 42, 94, 0.08);
}

.events-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Header ─────────────────────────────────────────────── */
.events-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.events-eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  /* #8E2A2A */
  flex-shrink: 0;
}

.events-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  /* 42px — design.md H2 */
  font-weight: 700;
  color: var(--primary);
  /* #174C2E */
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.events-subtitle {
  font-size: var(--fs-small);
  /* 16px */
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

/* ── Filter tabs row ────────────────────────────────────── */
.events-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.events-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.events-tab {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid rgba(26, 42, 94, 0.15);
  border-radius: 50px;
  padding: 6px 18px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.events-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.events-tab.active {
  background: var(--primary);
  /* #174C2E */
  color: var(--white);
  border-color: var(--primary);
}

.events-view-all {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: color var(--transition);
}

.events-view-all:hover {
  color: var(--accent);
}

/* ── Cards grid ─────────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.events-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e0e0e0;
  cursor: pointer;
}

.events-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.events-card:hover .events-card-img {
  transform: scale(1.05);
}

/* Overlay: transparent by default, dark gradient bottom-to-top on hover */
.events-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.5) 45%,
      rgba(0, 0, 0, 0) 75%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.events-card:hover .events-card-overlay {
  opacity: 1;
}

/* Badge stays on top always */
.events-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(40, 40, 40, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
  z-index: 3;
}

/* Info block slides up from bottom on hover */
.events-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.events-card:hover .events-card-info {
  transform: translateY(0);
  opacity: 1;
}

.events-card-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.events-card-desc {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin: 0;
}

.events-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-top: 4px;
  align-self: flex-start;
  transition: background 0.2s ease;
}

.events-card-link:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* =========================================================
   MESSAGE FROM LEADERS SECTION
   ========================================================= */
.leaders-section {
  background: var(--accent);
  /* #8E2A2A — School Red */
  padding: 40px 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaders-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title & subtitle */
.leaders-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  /* 42px — design.md H2 */
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.15;
}

.leaders-subtitle {
  font-size: var(--fs-small);
  /* 16px */
  color: rgba(255, 255, 255, 0.80);
  text-align: center;
  line-height: 1.75;
  margin-bottom: 24px;
}

/* ── Carousel wrap ──────────────────────────────────────── */
.leaders-carousel-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  margin-bottom: 32px;
}

/* Arrow buttons */
.leaders-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease;
  z-index: 10;
  position: absolute;
}

.leaders-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.leaders-prev {
  left: 0;
}

.leaders-next {
  right: 0;
}

/* ── Cards track — 3 cards, fanned layout ───────────────── */
.leaders-track {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 340px;
}

.leaders-card {
  position: absolute;
  width: 240px;
  height: 320px;
  border-radius: var(--card-radius);
  /* 20px */
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s ease,
    box-shadow 0.5s ease;
}

/* Default (inactive side) state */
.leaders-card {
  opacity: 0.55;
  transform: scale(0.82) translateX(0) rotate(0deg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Active / centre card */
.leaders-card.lc-center {
  opacity: 1;
  transform: scale(1) translateX(0) rotate(0deg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  z-index: 5;
}

/* Left card */
.leaders-card.lc-left {
  opacity: 0.6;
  transform: scale(0.82) translateX(-190px) rotate(-6deg);
  z-index: 3;
}

/* Right card */
.leaders-card.lc-right {
  opacity: 0.6;
  transform: scale(0.82) translateX(190px) rotate(6deg);
  z-index: 3;
}

/* Hidden extras */
.leaders-card.lc-hidden {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.leaders-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.leaders-card-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(120, 16, 32, 0) 0%,
      rgba(120, 16, 32, 0.18) 100%);
}

/* ── Bottom panel ───────────────────────────────────────── */
.leaders-panel {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  width: 100%;
  max-width: 1136px;
  padding-top: 8px;
}

.leaders-quote {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  /* 32px — design.md H3 */
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  transition: opacity 0.4s ease;
}

.leaders-desc {
  font-size: var(--fs-small);
  /* 16px */
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 16px;
  transition: opacity 0.4s ease;
}

.leaders-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.leaders-role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   FEATURE BAR
   ========================================================= */
.feature-bar {
  background: var(--feature-bg);
  position: relative;
  z-index: 10;
}

.feature-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  padding: 4px 20px;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 38px;
  height: 38px;
}

.feature-text {
  min-width: 0;
}

.feature-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  white-space: nowrap;
}

.feature-desc {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.feature-divider {
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav-link {
    font-size: 13px;
    padding: 0 16px;
  }

  .school-name {
    font-size: clamp(18px, 2.5vw, 30px);
  }

  .hero-content {
    padding-right: 40px;
  }

  .slide-bg {
    width: 58%;
  }
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .header-nav-inner {
    justify-content: flex-start;
    padding-right: 60px;
  }

  /* Mobile: nav links collapse into dropdown */
  .header-nav-inner {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 12px 20px;
    gap: 4px;
  }

  .header-nav-inner.open {
    display: flex;
  }

  .nav-link {
    font-size: 15px;
    padding: 10px 12px;
    height: auto;
    width: 100%;
  }

  .slide-bg {
    width: 100%;
  }

  .slide-bg::before {
    display: none;
  }

  .hero-content {
    width: 100%;
    padding-top: calc(var(--header-total) + 16px);
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 86px;
    background: linear-gradient(to bottom,
        rgba(248, 249, 252, 0.95) 0%,
        rgba(248, 249, 252, 0.85) 70%,
        rgba(248, 249, 252, 0) 100%);
  }

  .slide-img {
    object-position: 70% center;
  }

  .header-identity-inner {
    padding: 8px 20px;
  }

  .header-logo-img {
    height: 70px;
  }

  .header-logo-link {
    width: 70px;
    height: 70px;
  }

  .feature-bar-inner {
    flex-wrap: wrap;
    gap: 16px;
  }

  .feature-divider {
    display: none;
  }

  .feature-item {
    flex: 0 0 calc(50% - 8px);
  }

  .about-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-panel-row {
    grid-template-columns: 1fr;
  }

  .about-card {
    min-height: 280px;
  }

  .about-tiles {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .about-tile {
    flex: 1 1 calc(50% - 5px);
  }
}

@media (max-width: 600px) {
  .hero-heading {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .feature-item {
    flex: 0 0 100%;
  }

  .slide-progress {
    left: 24px;
  }

  .hero-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .school-name {
    font-size: 18px;
  }

  .header-identity-inner {
    gap: 12px;
  }
}

/* =========================================================
   ABOUT US PAGE (LEO9 INSPIRED)
   ========================================================= */

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

.about-us-eyebrow {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

/* -- Hero ----------------------------------------------- */
.about-us-hero {
  padding: 120px 0 80px;
  background: var(--off-white);
}

.about-us-headline {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* -- Description ---------------------------------------- */
.about-us-description {
  padding: 100px 0;
  background: var(--white);
}

.about-us-lead {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 48px;
  max-width: 900px;
}

.about-us-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.7;
}

/* -- History (Timeline) --------------------------------- */
.about-us-history {
  padding: 100px 0;
  background: var(--off-white);
  overflow: hidden;
}

.history-timeline-wrap {
  width: 100%;
  padding-left: max(32px, calc((100vw - var(--max-w)) / 2 + 32px));
  margin-top: 48px;
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
}

.history-timeline-wrap::-webkit-scrollbar {
  display: none;
}

.history-track {
  display: flex;
  gap: 32px;
  padding-right: 32px;
}

.history-card {
  min-width: 320px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border-bottom: 4px solid var(--accent);
}

.history-year {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
}

.history-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
}

.history-text {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.6;
}

/* -- Vision / Mission / Values Vertical Tabs ------------*/
.vmv-section {
  padding: 100px 0;
  background: var(--primary);
  /* #174C2E — design.md */
  color: var(--white);
}

.vmv-container {
  max-width: var(--max-w);
  /* 1320px */
  margin: 0 auto;
  padding: 0 32px;
}

.vmv-heading {
  margin-bottom: 60px;
}

.vmv-title {
  font-family: var(--font-heading);
  /* Poppins 700 */
  font-size: var(--fs-h2);
  /* 42px */
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-top: 12px;
}

/* ── 2-column layout: tabs left, panel right ── */
.vmv-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── LEFT: Tab buttons ── */
.vmv-tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.vmv-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 32px 24px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: background 0.25s ease;
  width: 100%;
}

.vmv-tab:last-child {
  border-bottom: none;
}

.vmv-tab-number {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  min-width: 22px;
  transition: color 0.25s ease;
}

.vmv-tab-label {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  /* 24px */
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  flex: 1;
  transition: color 0.25s ease;
}

.vmv-tab-arrow {
  flex-shrink: 0;
  color: transparent;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

/* Active tab state */
.vmv-tab.active {
  background: rgba(255, 255, 255, 0.07);
}

.vmv-tab.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--white);
}

.vmv-tab.active .vmv-tab-number {
  color: var(--white);
}

.vmv-tab.active .vmv-tab-label {
  color: var(--white);
}

.vmv-tab.active .vmv-tab-arrow {
  color: var(--white);
  opacity: 1;
  transform: translateX(0);
}

.vmv-tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.04);
}

.vmv-tab:not(.active):hover .vmv-tab-label {
  color: rgba(255, 255, 255, 0.65);
}

/* ── RIGHT: Content panels ── */
/* KEY FIX: use display:none / display:block — no absolute stacking */
.vmv-panels {
  position: relative;
}

.vmv-panel {
  display: none;
}

.vmv-panel.active {
  display: block;
  animation: vmvFadeIn 0.35s ease;
}

@keyframes vmvFadeIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.vmv-panel-inner {
  padding: 52px 56px;
}

.vmv-panel-icon {
  margin-bottom: 24px;
  opacity: 0.9;
}

.vmv-panel-title {
  font-family: var(--font-heading);
  /* Poppins 700 */
  font-size: var(--fs-h3);
  /* 32px */
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.vmv-panel-text {
  font-family: var(--font-body);
  /* Inter */
  font-size: var(--fs-body);
  /* 18px */
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 580px;
}

.vmv-panel-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vmv-highlight {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  /* #C9A227 */
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 6px 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Mobile: tabs become horizontal row ── */
@media (max-width: 768px) {
  .vmv-layout {
    grid-template-columns: 1fr;
  }

  .vmv-tabs {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .vmv-tabs::-webkit-scrollbar {
    display: none;
  }

  .vmv-tab {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 16px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    gap: 4px;
    flex: 1;
    min-width: 90px;
  }

  .vmv-tab:last-child {
    border-right: none;
  }

  .vmv-tab.active::before {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 4px;
  }

  .vmv-tab-arrow {
    display: none;
  }

  .vmv-panel-inner {
    padding: 36px 24px;
  }
}



/* -- Leadership ----------------------------------------- */
.about-us-leadership {
  padding: 100px 0;
  background: var(--white);
}

.leadership-profile {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.leadership-image {
  flex: 0 0 40%;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.leadership-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leadership-info {
  flex: 1;
}

.leadership-name {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.leadership-role {
  font-size: var(--fs-h4);
  color: var(--accent);
  margin-bottom: 32px;
  font-weight: 500;
}

.leadership-quote {
  font-size: 20px;
  line-height: 1.8;
  color: var(--text-dark);
  font-style: italic;
  position: relative;
}

/* -- Mobile adjustments ---------------------------------- */
@media (max-width: 992px) {

  .about-us-body,
  .leadership-profile {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .sticky-container {
    flex-direction: column;
  }

  .sticky-sidebar {
    width: 100%;
    position: static;
    margin-bottom: 48px;
  }

  .sticky-tabs {
    display: flex;
    overflow-x: auto;
  }

  .sticky-tab {
    border-left: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    white-space: nowrap;
  }

  .sticky-tab.active {
    border-left: none;
    border-bottom-color: var(--accent);
  }

  .sticky-content {
    width: 100%;
    gap: 60px;
    padding-bottom: 0;
  }

  .sticky-block {
    min-height: auto;
  }
}

/* =========================================================
   FOOTER
   Background : #294876 (Royal Blue — design.md Secondary)
   Text       : White
   Font       : Poppins (headings), Inter (body)
   ========================================================= */
.site-footer {
  background: var(--white);
  color: var(--secondary);
  /* #294876 — Royal Blue */
}

/* ── TOP: Logo + tagline dots ── */
.footer-top {
  padding: 52px 0 40px;
}

.footer-top-inner {
  max-width: var(--max-w);
  /* 1320px */
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  max-width: 100%;
}

.footer-logo-img {
  width: auto;
  height: 80px;
  /* Adjust height to fit the full logo well */
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.footer-tagline-dots {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-body);
  /* Inter */
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(41, 72, 118, 0.65);
  /* var(--secondary) with opacity */
}

.footer-dot {
  color: var(--gold);
  /* #C9A227 */
  font-size: 8px;
  margin-right: 6px;
}

/* ── DIVIDER ── */
.footer-divider {
  height: 1px;
  background: rgba(41, 72, 118, 0.12);
  margin: 0;
}

/* ── MIDDLE: Nav + Socials ── */
.footer-mid {
  padding: 36px 0;
}

.footer-mid-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Nav links */
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.footer-nav-link {
  font-family: var(--font-body);
  /* Inter */
  font-size: var(--fs-small);
  /* 16px */
  font-weight: 500;
  color: rgba(41, 72, 118, 0.75);
  padding: 6px 22px;
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
}

.footer-nav-link::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(41, 72, 118, 0.18);
}

.footer-nav-link:last-child::after {
  display: none;
}

.footer-nav-link:hover {
  color: var(--secondary);
}

/* Social icon buttons */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  color: var(--secondary);
  border: 1px solid rgba(41, 72, 118, 0.18);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.footer-social-btn:hover {
  background: var(--primary);
  /* #174C2E — green */
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* ── BOTTOM: Legal + Copyright ── */
.footer-bottom {
  padding: 24px 0;
}

.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(41, 72, 118, 0.6);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-legal-link:hover {
  color: var(--secondary);
}

.footer-legal-sep {
  color: rgba(41, 72, 118, 0.25);
  font-size: 14px;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(41, 72, 118, 0.4);
  letter-spacing: 0.02em;
}

/* ── Footer Responsive ── */
@media (max-width: 768px) {
  .footer-top {
    padding: 40px 0 28px;
  }

  .footer-school-name {
    font-size: 16px;
  }

  .footer-tagline-dots {
    gap: 16px;
    font-size: 11px;
  }

  .footer-nav-link {
    font-size: 14px;
    padding: 6px 14px;
  }

  .footer-social-btn {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    flex-direction: column;
    gap: 4px;
  }

  .footer-nav-link::after {
    display: none;
  }
}

/* =========================================================
   CONTACT US PAGE
   ========================================================= */
.contact-page {
  background-color: var(--white);
  color: var(--text-dark);
}

.contact-main {
  padding: 80px 0 100px;
}

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

.contact-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 60px;
  color: var(--primary);
  /* Deep Green */
}

/* Split Card */
.contact-split-card {
  display: flex;
  background: #F8F9FA;
  overflow: hidden;
  margin-bottom: 80px;
}

.contact-image-col {
  flex: 1;
  min-height: 500px;
  position: relative;
}

.contact-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form-col {
  flex: 1;
  padding: 60px;
  background: #F8F9FA;
}

.contact-form-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  /* #212529 */
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid #E0E0E0;
  /* Added subtle border since card and group might blend */
}

.contact-input-group.align-top {
  align-items: flex-start;
}

.contact-icon {
  position: absolute;
  left: 16px;
  color: #A0A0A0;
}

.contact-input-group.align-top .contact-icon {
  top: 16px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  outline: none;
  box-shadow: none;
  /* remove default glow */
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #A0A0A0;
}

.contact-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
}

.contact-checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.contact-checkbox-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: #6c757d;
}

.contact-submit-btn {
  background: var(--primary);
  /* #174C2E */
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border: none;
  padding: 16px 32px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-submit-btn:hover {
  background: #113A22;
  /* slightly darker green */
}

/* Info Row */
.contact-info-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 50px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-info-item:last-child {
  border-right: none;
}

.contact-info-icon {
  color: var(--primary);
  /* Deep green icons */
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-text h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary);
  /* Deep green text */
}

.contact-info-text p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  /* Dark gray text */
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-title {
    font-size: 40px;
  }

  .contact-form-col {
    padding: 40px;
  }

  .contact-info-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .contact-info-item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .contact-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .contact-split-card {
    flex-direction: column;
  }

  .contact-image-col {
    min-height: 300px;
  }

  .contact-info-row {
    grid-template-columns: 1fr;
    border-top: none;
    padding-top: 0;
  }

  .contact-info-item {
    border-right: none;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .contact-info-item:last-child {
    border-bottom: none;
  }
}

/* =========================================================
   OUR OFFICES SECTION
   ========================================================= */
.contact-offices-section {
  background-color: var(--primary);
  /* Deep green */
  padding: 100px 0;
  color: var(--white);
}

.contact-offices-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 80px;
  align-items: center;
}

.contact-offices-content {
  flex: 1;
}

.offices-title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

.offices-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 60px;
  max-width: 420px;
}

.offices-locations {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.office-location-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.office-icon-wrapper {
  background-color: rgba(255, 255, 255, 0.1);
  /* Slight white tint */
  color: var(--white);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  /* Force circle despite global override */
  flex-shrink: 0;
}

.office-location-text h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.office-location-text p {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.contact-offices-image-col {
  flex: 1;
  border-radius: 0 !important;
  /* Force slight curve if desired by design, or keep sharp. I'll keep sharp to match global */
  overflow: hidden;
  height: 550px;
}

.contact-offices-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 992px) {
  .contact-offices-container {
    flex-direction: column;
    gap: 60px;
  }

  .contact-offices-image-col {
    width: 100%;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .contact-offices-section {
    padding: 60px 0;
  }

  .offices-title {
    font-size: 40px;
  }

  .office-icon-wrapper {
    width: 40px;
    height: 40px;
  }
}

/* =========================================================
   BLOG HERO BANNER
   ========================================================= */
.blog-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
}

.blog-slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.blog-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.blog-slide.active {
  opacity: 1;
  z-index: 1;
}

.blog-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 16px 20px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  transition: background 0.3s;
}

.blog-slider-btn.prev {
  left: 20px;
}

.blog-slider-btn.next {
  right: 20px;
}

.blog-slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.blog-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.blog-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.blog-hero-content {
  text-align: center;
  color: #fff;
  z-index: 1;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 16px 6px 6px;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.badge-tag {
  background: #fff;
  color: #000;
  padding: 4px 10px;
  margin-right: 12px;
}

.badge-text {
  color: #fff;
}

.blog-hero-title {
  font-family: var(--font-heading);
  font-size: 80px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 40px;
  letter-spacing: -2px;
}

.blog-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.blog-hero-btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-hero-btn-primary:hover {
  background: #113A22;
  /* darker green */
}


@media (max-width: 768px) {
  .blog-hero-title {
    font-size: 48px;
  }

  .blog-hero-badge {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
  }

  .badge-tag {
    margin-right: 0;
  }

  .blog-hero-actions {
    flex-direction: column;
    width: 100%;
  }
}

/* =========================================================
   FEATURED BLOGS SECTION
   ========================================================= */
.featured-blogs {
  padding: 80px 20px;
  background-color: #f2f4f6;
  /* Matching the light gray background from the image */
  max-width: 100%;
}

.featured-blogs-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 60px;
  color: #000;
  text-transform: uppercase;
}

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  /* Default to light */
  /* Border radius is omitted to follow global rule */
}

.blog-card-light {
  background: #fff;
  color: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.blog-card-dark,
.blog-card-light:hover {
  background: var(--secondary);
  color: #fff;
}

.blog-card-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 24px;
  overflow: hidden;
}

.blog-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-tag {
  background: #f0f0f0;
  color: #333;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.blog-tag.dark-tag,
.blog-card-light:hover .blog-tag {
  background: #1a2d4a;
  /* Darker blue to contrast with secondary */
  color: #fff;
}

.blog-card-heading {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.blog-card-dark .blog-card-desc,
.blog-card-light:hover .blog-card-desc {
  color: #aaa;
}

.blog-card-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: auto;
  transition: color 0.3s ease;
}

.blog-card-light .blog-card-link {
  color: #000;
}

.blog-card-dark .blog-card-link,
.blog-card-light:hover .blog-card-link {
  color: #fff;
}

.featured-blogs-footer {
  text-align: center;
  margin-top: 60px;
}

.btn-see-all {
  display: inline-block;
  background: #174C2E;
  color: #fff;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.btn-see-all:hover {
  opacity: 0.8;
}

/* =========================================================
   BLOG DETAIL PAGE
   ========================================================= */
.bd-main-container {
  background-color: #f9f9fa;
  min-height: 80vh;
}

.bd-hero-banner {
  background: linear-gradient(135deg, #2b144d 0%, var(--secondary) 100%);
  width: 100%;
  height: 490px;
  padding: 40px 20px 40px 20px;
  position: relative;
}

.bd-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  position: relative;
  z-index: 10;
}

.bd-hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.bd-hero-right {
  flex: 1.2;
}

.bd-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.bd-category,
.bd-date-box {
  background: #fff;
  color: #333;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.bd-main-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.2;
  color: #fff;
  margin-bottom: 60px;
}

.bd-social-block {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 490px;
  left: 0;
}

.bd-social-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: #000;
}

.bd-social-icons {
  display: flex;
  gap: 10px;
}

.bd-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f4ecfb;
  /* light purple tint */
  color: #000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.bd-social-btn:hover {
  background: var(--primary);
  color: #fff;
}

.bd-featured-image {
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  margin-top: 80px;
}

.bd-featured-image img {
  width: 100%;
  height: 490px;
  object-fit: cover;
  display: block;
}

.bd-inner-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: transparent;
  padding: 160px 20px 80px 20px;
  /* Space for the overlapping elements */
}

.bd-rich-text {
  font-family: var(--font-body);
  color: #444;
  line-height: 1.8;
  font-size: 18px;
}

.bd-rich-text p {
  margin-bottom: 24px;
}

.bd-rich-text h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  color: #000;
  margin-top: 40px;
  margin-bottom: 20px;
}

.bd-rich-text blockquote {
  font-size: 24px;
  font-style: italic;
  font-weight: 600;
  color: #222;
  border-left: 4px solid var(--primary);
  padding-left: 24px;
  margin: 40px 0;
}

@media (max-width: 991px) {
  .bd-hero-inner {
    flex-direction: column;
  }

  .bd-social-block {
    position: relative;
    top: 40px;
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  .bd-inner-wrapper {
    padding: 100px 20px 40px 20px;
  }

  .bd-main-title {
    font-size: 32px;
  }

  .bd-social-block {
    flex-direction: column;
    text-align: center;
  }
}

/* Global override for sharp edges */
* {
  border-radius: 0 !important;
}