/* ============================================================
   THE HERITAGE SCHOOL, ROHINI — MAIN STYLESHEET
   Version: 1.0.0  |  Author: 5Pixls
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
   --primary:   #8B5E2A;
  --accent:    #8B5E2A;
  --highlight: /*#F68537*/ #2E2210;
  --text-dark: #2E2210;
  --text-body: /*#4a3a2a*/ #2E2210;
  --bg-ivory:  #FDF8F2;
  --bg-cream:  #FAF5EE;
  --bg-sand:   #F2E8D9;
  --white:     #FFFFFF;
  --font-h:    'Playfair Display', Georgia, serif;
  --font-b:    'Lato', 'Open Sans', sans-serif;
  --r:         8px;
  --tr:        0.3s ease;
  --sh:        0 4px 20px rgba(74,44,10,0.09);
  --sh-lg:     0 8px 36px rgba(74,44,10,0.15);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; max-width: 100%; }
body { font-family: var(--font-b); color: var(--text-body); background: var(--white); line-height: 1.72; overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; height: auto; display: block; }
table { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-b); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── UTILITY ── */
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

.sec-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
  margin-bottom: 3px;
  margin-right: 5px;
}

.sec-label { font-family: var(--font-b); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #5F87AA; display: block; margin-bottom: .5rem; }
.sec-title { font-family: var(--font-h); font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; color:/*#2f2a24*/ #4A2C0A; line-height: 1.22; }
.sec-sub { font-size: .96rem; color: var(--text-body); margin-top: .75rem; line-height: 1.78;}
.page-main .sec-sub { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── BUTTONS ── */
.btn { display: inline-block; padding: .72rem 1.8rem; font-family: var(--font-b); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: var(--r); transition: var(--tr); border: 2px solid transparent; text-align: center; }
.btn-primary { background:var(--primary); color:#fff; }
.btn-primary:hover { background: #8B5E2A;transform: translateY(-2px); box-shadow: var(--sh); color: var(--white); }
.btn-outline { background: var(--primary); color: #fff;}
.btn-outline:hover {transform: translateY(-2px); background:#8B5E2A; }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: .52rem 1.2rem; font-size: .72rem; }

/* ── SCROLL ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

/* ============================================================
   TOP BAR
   ============================================================ */

.topbar { background: var(--primary);display: flex; flex-direction: column !important; position: relative;z-index: 200;}
.topbar_row {display: flex;justify-content: space-between;align-items: center;width: 100%;min-height: 36px;}
.topbar__mq-wrap {
   width: 100%;
   height: 45px;
   display: block; /* IMPORTANT change */
   position: relative;
   overflow: hidden;
   overflow-x: hidden;
   border-top: 1px solid rgba(255,255,255,.12);
   background: #FDF8F2;
   max-width: 100%;
 }
.topbar__mq a {color:#F68537;font-weight: 600;}
.topbar__mq a:hover {text-decoration: underline;}
/* Single copy, positioned off the right edge and animated (via `left`, which is
   relative to the container) fully past the left edge — only one instance of
   the text is ever on screen at a time, no duplicate. */
.topbar__mq {
  position: absolute;
  top: 0;
  left: 100%;
  height: 100%;
  padding: 0 50px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: mq-ticker 22s linear infinite;
}
.topbar__mq:hover { animation-play-state: paused; }
.topbar__mq span { padding: 0px 20px; font-size: .7rem; color:#2E2210; border-right: 1px solid rgba(255,255,255,.14); }
.topbar__mq span strong { color: var(--highlight); }
@keyframes mq-ticker { 0% { left: 100%; } 100% { left: -100%; } }
.topbar__links { display: flex; align-items: center; flex-shrink: 0; height: 100%; padding-left: 20px; }
.topbar__links a, .topbar__links button {font-weight: 600; padding: 0 .9rem; height: 100%; display: flex; align-items: center; font-size: .7rem; color:#fff; border: none; background: none; transition: background var(--tr); white-space: nowrap; }
.topbar__links a:hover,
.topbar__links button:hover { color: var(--white); }
.topbar__dropdown { position: relative; height: 100%; display: flex; align-items: center; cursor: pointer; }
.topbar__dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.topbar__dropdown > .dropdown { top: calc(100% + 1px); }

/* Topbar right-side group (search + social) */
.topbar__right { display: flex; align-items: center; height: 100%; flex-shrink: 0; }

/* Topbar search */
.topbar__search { position: relative; display: flex; align-items: center; height: 100%; margin-right: .6rem; }
.topbar__search #hs-search-toggle { background: none; border: none; color: #fff; font-size: .8rem; padding: 0 .6rem; height: 100%; display: flex; align-items: center; cursor: pointer; }
.topbar__search-box { position: absolute; top: calc(100% + 1px); right: 0; display: flex; align-items: center; background: #fff; border: 1px solid rgba(74,44,10,.1); border-radius: 20px; box-shadow: 0 12px 40px rgba(44,26,14,.13); padding: .3rem .3rem .3rem 1rem; width: 240px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; pointer-events: none; z-index: 200; }
.topbar__search-box.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.topbar__search-box input[type="search"] { flex: 1; border: none; outline: none; font-size: .82rem; font-family: var(--font-b); color: var(--text-dark); background: transparent; }
.topbar__search-box button[type="submit"] { background: var(--primary); color: #fff; border: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; cursor: pointer; flex-shrink: 0; }
.topbar__social {
   display: flex;
   align-items: center;
   padding: 0 35px;
   gap: 20px;
   /* border-left: 1px solid rgba(255, 255, 255, .18); */
   height: 100%;
}
.topbar__social a { color: #fff; font-size: .85rem; transition: color var(--tr); }
.topbar__social a:hover { color: var(--highlight); }

/* ============================================================
   MAIN NAVIGATION
   ============================================================ */
.site-header { background: var(--white); border-bottom: 1px solid rgba(74,44,10,.09); position: sticky; top: 0; z-index: 190; box-shadow: 0 2px 14px rgba(74,44,10,.07); }
.mainnav__inner { display: flex; align-items: center; height: auto; gap: .5rem; }
.nav-logo { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.nav-logo img { height: auto; width: auto; max-width: 85%; }
.nav-logo .custom-logo { height: 46px; width: auto; }

/* WordPress custom logo wrapper */
.custom-logo-link { display: flex; align-items: center; }

.nav-menu { display: flex; align-items: center; gap: 0; margin-left: auto; height: 100%; padding: 0; list-style: none; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link { font-family: var(--font-b); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dark); padding: 0 .7rem; height: 100%; display: flex; align-items: center; gap: .22rem; white-space: nowrap; transition: color var(--tr); position: relative; }
.nav-link::after { content: none; }
.nav-link:hover { color: var(--primary); }
.nav-link.active,
.current-menu-item > .nav-link,
.current-menu-ancestor > .nav-link { color: var(--primary); font-weight: 700; }
.nav-link i,
.menu-item-has-children > a > .nav-arrow { font-size: .58rem; transition: transform var(--tr); margin-left: .15rem; }
.nav-item:hover .nav-link i,
.nav-item:hover > a > .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown,
.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  border: 1px solid rgba(74,44,10,.1);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(44,26,14,.13);
  padding: .6rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  pointer-events: none;
  z-index: 200;
  list-style: none;
}
.nav-item:hover > .dropdown,
.nav-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Bridge the gap so mouse movement doesn't lose hover */
.nav-item > .dropdown::before,
.nav-item > .sub-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.dropdown a,
.sub-menu a {
  display: flex;
  width: 100%;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-dark);
  padding: .62rem 1.4rem;
  border-left: 3px solid transparent;
  transition: color .18s, background .18s, border-color .18s, padding-left .18s;
  text-transform: none;
  box-sizing: border-box;
}
.dropdown a:hover,
.sub-menu a:hover,
.sub-menu .current-menu-item > a,
.sub-menu .current-menu-ancestor > a {
  color: var(--primary);
  background: #FDF5EA;
  border-left-color: var(--primary);
  padding-left: 1.7rem;
}
.sub-menu li { border-bottom: 1px solid rgba(74,44,10,.06); position: relative; }
.sub-menu li:last-child { border-bottom: none; }

/* Nested sub-submenu — appears to the right */
.sub-menu .sub-menu {
  top: 0;
  left: 100%;
  transform: translateX(6px);
}
.sub-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.sub-menu .menu-item-has-children > a::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .6rem;
  margin-left: auto;
  color: rgba(74,44,10,.4);
}

.nav-cta { margin-left: .5rem; flex-shrink: 0; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: .4rem; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--tr); }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mob-nav { position: fixed; inset: 0; z-index: 999; background: #2C1A0E; transform: translateX(100%); transition: transform .38s ease; overflow-y: auto; padding: 1.6rem; }
.mob-nav.open { transform: translateX(0); }
.mob-nav__close {
   position: absolute;
   top: 15px;
   right: 110px;
   z-index: 10;
 }
 .mob-nav__close button {
   background: none;
   border: none;
   color: var(--white);
   font-size: 2.0rem;
   line-height: 1;
 }
.mob-nav__logo img { height: 48px; margin-bottom: 1.5rem; }
.mob-nav__links { display: flex; flex-direction: column; }
.mob-nav__search { display: flex; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 24px; padding: .25rem .25rem .25rem 1.1rem; margin-bottom: 1.2rem; }
.mob-nav__search input[type="search"] { flex: 1; border: none; outline: none; background: transparent; color: #fff; font-size: .88rem; font-family: var(--font-b); }
.mob-nav__search input[type="search"]::placeholder { color: rgba(255,255,255,.55); }
.mob-nav__search button[type="submit"] { background: var(--highlight); color: #fff; border: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .78rem; flex-shrink: 0; }

/* Top-level list */
.mob-nav__list { list-style: none; padding: 0; margin: 0; }
.mob-nav__list > .menu-item > a,
.mob-nav__links > a {
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  font-weight: 600;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: color .2s;
}
.mob-nav__list > .menu-item > a:hover,
.mob-nav__links > a:hover { color: #D4A96A; }

/* Chevron toggle button */
.mob-sub-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  padding: .2rem .4rem;
  cursor: pointer;
  font-size: .8rem;
  transition: transform .25s, color .2s;
  flex-shrink: 0;
}
.mob-sub-toggle.is-open { transform: rotate(180deg); color: #D4A96A; }

/* Sub-menu */
.mob-nav__list .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: rgba(0,0,0,.2);
  border-radius: 0 0 8px 8px;
}
.mob-nav__list .sub-menu.is-open { max-height: 800px; }

/* Depth 2 items (e.g. Co-curricular under Beyond Academics) */
.mob-nav__list .sub-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  padding: .65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
  transition: color .18s, padding-left .18s;
}
.mob-nav__list .sub-menu > li:last-child > a { border-bottom: none; }
.mob-nav__list .sub-menu > li > a:hover { color: #D4A96A; padding-left: 1.3rem; }

/* Depth 3 items (e.g. Digital Literacy under Co-curricular) */
.mob-nav__list .sub-menu .sub-menu {
  background: rgba(0,0,0,.25);
}
.mob-nav__list .sub-menu .sub-menu > li > a {
  padding: .55rem 1.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}
.mob-nav__list .sub-menu .sub-menu > li > a:hover { color: #D4A96A; padding-left: 1.8rem; }

/* Hide the old position:absolute desktop sub-menu rules inside mob-nav */
.mob-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-radius: 0; pointer-events: auto; }

.mob-nav__links ul,
.mob-nav__links li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mob-nav__cta { margin-top: 2rem; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero { position: relative; width: 100%; height: 88vh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; transform: scale(1.04); animation: hzoom 18s ease-in-out infinite alternate; }
@keyframes hzoom { from { transform: scale(1.04); } to { transform: scale(1); } }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(30,18,5,.12) 0%, rgba(30,18,5,.28) 40%, rgba(30,18,5,.72) 100%); }
.hero__content { position: relative; z-index: 2; width: 100%; padding: 0 0 4.5rem; }
.hero__inner { max-width: 740px; }
.hero__est { font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--highlight); margin-bottom: 1rem; display: flex; align-items: center; gap: .7rem; }
.hero__est::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--highlight); }
.hero__headline { font-family: var(--font-h); font-size:clamp(1.2rem, 3vw, 2rem); font-weight: 700; color: var(--white); line-height: 1.30; margin-bottom: 1.1rem; }
.hero__headline em { font-style: italic; color: #f9c98e; }
.hero__subtext { font-size: 1rem; color: rgba(255,255,255,.82); max-width: 560px; line-height: 1.72; margin-bottom: 2rem; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: #FDF8F2; }
.stats-bar__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.5rem 1rem; text-align: center; border-right: 1px solid #fff; transition: background var(--tr); }
.stat:last-child { border-right: none; }
.stat:hover { background: #EFE0C8; }
.stat__num { font-family: var(--font-h); font-size: 2.2rem; font-weight: 700; color:#4a2c0a; line-height: 1; margin-bottom: .25rem; }
.stat__lbl { font-size: .76rem; color: #F68537; line-height: 1.4; max-width: 155px; margin: 0 auto; }

/* ============================================================
   PHILOSOPHY SECTION
   ============================================================ */

.philosophy {
  background: var(--white);
  padding: 6rem 0;
}

.philosophy__header { text-align: center; margin-bottom: 3rem; }
.philosophy__header .sec-sub { margin: .6rem auto 0; text-align: center; }

.philosophy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.philosophy__img-wrap { position: relative;}
.philosophy__img { width: 100%; aspect-ratio: 4/3; border-radius: var(--r); object-fit: cover; min-height: 340px; background-size: cover; background-position: center; }

/* =========================
   Pillars / Philosophy Cards
========================= */

.pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #EFE0C8;
  border-left: 4px solid #8b5a2b;
  padding: 1rem 1.3rem;
  border-radius: 12px;

  transition: all .3s ease;
}

.pillar:hover {
  transform: translateX(5px);
  background: #f2e6d8;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

/* Icon */

.pillar__icon {
  flex-shrink: 0;

  width: 48px;
  height: 48px;
  border-radius: 50%;

  background: #4a2c0a;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1rem;
}

/* Text */

.pillar__text h3 {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 700;
  color: #5a3310;
  margin-bottom: .35rem;
}

.pillar__text p {
  margin: 0;

  font-size: .92rem;
  line-height: 1.75;
  color: #6d5a47;
}

/* Clickable philosophy cards */

.pillar-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pillar-link:hover .pillar {
  transform: translateX(6px);
  background: #f2e6d8;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  border-left-color: #6f4318;
}

.pillar-link:hover .pillar__icon {
  transform: scale(1.06);
  background: #5b3610;
}

.pillar__icon {
  transition: all .3s ease;
}

.pillar {
  transition: all .3s ease;
  cursor: pointer;
}

/* =========================
   Responsive
========================= */

@media (max-width: 991px) {

  .philosophy__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

}

@media (max-width: 767px) {

  .philosophy {
    padding: 4rem 0;
  }

  .pillar {
    padding: 1rem;
  }

  .pillar__icon {
    width: 42px;
    height: 42px;
    font-size: .92rem;
  }

  .pillar__text h3 {
    font-size: 1rem;
  }

  .pillar__text p {
    font-size: .88rem;
    line-height: 1.65;
  }

}
/* ============================================================
   DHARMIC PRINCIPLES SECTION
   ============================================================ */
   .dharmic {
    background: #FDF8F2;
    padding: 5rem 0 5.5rem;
    position: relative;
    overflow: hidden;
  }
  
  .dharmic__hdr {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  /* Grid: narrow image (2fr) | wide tabs (3fr) */
  .dharmic__layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: center;
  }
  
  /* ── Wheel ── */
  .dharmic__wheel-col {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .dharmic__wheel-wrap {
    position: relative;
    display: inline-block;
    animation: dharma-float 5s ease-in-out infinite;
  }

  .dharmic__wheel-wrap::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(200,150,62,.12) 0%, transparent 68%);
    pointer-events: none;
    animation: dharma-glow 5s ease-in-out infinite;
  }

  /* Grounding shadow — sells the float by shrinking/fading as the wheel lifts */
  .dharmic__wheel-wrap::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -16px;
    width: 68%;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(74,44,10,.32) 0%, rgba(74,44,10,.12) 55%, transparent 75%);
    filter: blur(3px);
    pointer-events: none;
    z-index: 0;
    transform: translateX(-50%);
    animation: dharma-shadow 5s ease-in-out infinite;
  }

  .dharmic__wheel-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 14px 34px rgba(74,44,10,.22));
    transition: transform .6s cubic-bezier(.34,1.56,.64,1), filter .6s ease;
  }

  .dharmic__wheel-img:hover {
    transform: scale(1.04) rotate(2deg);
    filter: drop-shadow(0 18px 40px rgba(74,44,10,.28));
  }

  @keyframes dharma-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
  }

  @keyframes dharma-glow {
    0%, 100% { opacity: .75; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
  }

  @keyframes dharma-shadow {
    0%, 100% { transform: translateX(-50%) scale(1);   opacity: .6; }
    50%      { transform: translateX(-50%) scale(.78); opacity: .32; }
  }

  @media (prefers-reduced-motion: reduce) {
    .dharmic__wheel-wrap,
    .dharmic__wheel-wrap::before,
    .dharmic__wheel-wrap::after {
      animation: none;
    }
  }
  
  /* ── Tab nav — strict single line ── */
.dharmic__tabnav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.5rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.dharmic__tabnav::-webkit-scrollbar { display: none; }

/* ── Tab button ── */
.dharmic__tab {
  appearance: none;
  background: #EFE0C8;
  border: none;
  margin-bottom: -2px;
  padding: .7rem 1.1rem;
  font-family: var(--font-b);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #5a3310;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .22s ease, background .22s ease, border-bottom-color .22s ease;
}

/* Hover effect */
.dharmic__tab:hover {
  color: var(--primary);
  background: rgba(74,44,10,.05);
  border-bottom-color: rgba(74,44,10,.2);
}

/* Active state */
.dharmic__tab--active {
  color: var(--primary);
  background: rgba(74,44,10,.05);
  border-bottom-color: var(--primary);
  font-weight: 700;
}
  
  /* ── Panels ── */
  .dharmic__panels {
    min-height: 200px;
  }
  
  .dharmic__panel {
    display: none;
    animation: dh-in .35s cubic-bezier(.22,1,.36,1);
  }
  
  .dharmic__panel--active {
    display: block;
  }
  
  @keyframes dh-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  .dharmic__panel-title {
    font-family: var(--font-h);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .85rem;
    color:#5a3310;
  }
  
  .dharmic__panel-desc {
    font-size: .94rem;
    color: var(--text-body);
    line-height: 1.82;
    margin-bottom: 1.4rem;
  }
  
  .dharmic__panel-bar {
    height: 3px;
    width: 48px;
    border-radius: 2px;
    opacity: .75;
  }
  
  /* ── Responsive ── */
  @media (max-width: 900px) {
    .dharmic__layout {
      grid-template-columns: 1fr;
      gap: 2.5rem;
    }
    .dharmic__wheel-img {
      max-width: 260px;
      margin: 0 auto;
    }
  }
  
  @media (max-width: 480px) {
    .dharmic__tab {
      padding: .6rem .7rem;
      font-size: .72rem;
    }
  }

/* ============================================================
   CORE PRACTICES
   ============================================================ */

   /* ============================================================
   CORE PRACTICES — Icon Boxes
   Replace the existing .practices block in main.css
   ============================================================ */
.practices { background: #fff; padding: 6rem 0; }
.practices__hdr { text-align: center; margin-bottom: 3rem; }
.practices__hdr .sec-sub { margin: .6rem auto 0; text-align: center; }

/* 4-col grid, wraps to 2 on tablet */
.practices__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

/* ── Icon Box ── */
.pbox {
  display: flex;
  flex-direction: column;
  align-items: center;    /* change from flex-start */
  text-align: center;
  gap: .75rem;
  padding: 1.8rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(74,44,10,.08);
  border-radius: var(--r);
  box-shadow: var(--sh);
  text-decoration: none;
  color: var(--text-body);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  cursor: pointer;
}

.pbox:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: rgba(139,94,42,.25);
}

/* Icon circle */
.pbox__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #F2E8D9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--tr);
}

.pbox__icon i {
  font-size: 1.2rem;
  color: #8B5E2A;
  transition: color var(--tr);
}

.pbox:hover .pbox__icon {
  background: #8B5E2A;
}

.pbox:hover .pbox__icon i {
  color: #fff;
}
/* Title */
.pbox__title {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 600;
  color: #2E2210;
  line-height: 1.3;
  margin: 0;
}

/* Short description */
.pbox__desc {
  font-size: .82rem;
  color: var(--text-body);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

/* Learn more link */
.pbox__link {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  justify-content: center;
  color: #8B5E2A;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap var(--tr), color var(--tr);
}
.pbox:hover .pbox__link {
  gap: .6rem;
  color: #fff;
}

.pbox__link i {
  font-size: .65rem;
}

/* ── CTA Box ── */
.pbox--cta {
  background: #8B5E2A;
  border-color: #8B5E2A;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pbox--cta .pbox__icon--cta {
  background: rgba(255,255,255,.12);
}

.pbox--cta .pbox__icon--cta i {
  color: #F2E8D9;
}

.pbox--cta:hover {
  background: #8B5E2A;
  border-color: #8B5E2A;
}

.pbox--cta:hover .pbox__icon {
  background: rgba(255,255,255,.18);
}

.pbox--cta:hover .pbox__icon i {
  color: #fff;
}

.pbox--cta .pbox__title {
  color: #fff;
}

.pbox--cta .pbox__link {
  color: #fff;
}

.pbox--cta:hover .pbox__link {
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .practices__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .practices__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .practices__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LIFE AT HERITAGE — FULL-CIRCLE ADVANTAGE
   Modelled after the Mayo Advantage circular wheel layout.
   ============================================================ */
.life {
    --life-accent:      #F68537;
    --life-accent-deep: #d96c1c;

    background-color: #3a2408;
    background-image: url('/wp-content/uploads/2026/04/junior-prog.webp');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 3rem 0 0rem;
    position: relative;
    overflow: visible;
}

/* multi-layer overlay: warm dark vignette + subtle radial glow at the wheel centre */
.life::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background:
        radial-gradient(ellipse 55% 60% at 50% 65%, rgba(246, 133, 55, .06) 0%, transparent 70%),
        radial-gradient(ellipse 100% 50% at 50% 100%, rgba(20, 10, 2, .12) 0%, transparent 60%),
        linear-gradient(180deg, rgba(20, 10, 2, .35) 0%, rgba(20, 10, 2, .15) 40%, rgba(20, 10, 2, .35) 100%);
    pointer-events: none;
    z-index: 0;
}

.life > .container { position: relative; z-index: 1; }

.life__hdr {
    text-align: center;
    margin-bottom: 1.4rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.life__hdr .sec-title { margin-bottom: .5rem; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.5); letter-spacing: .04em; }
.life__hdr .sec-sub { color: rgba(255, 220, 170, .85); font-size: .96rem; margin-top: .9rem; }

/* ── HEADING ACCENT ──────────────────────────────────────────── */
.life__hdr .sec-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: .7rem auto 0;
    background: linear-gradient(90deg, var(--life-accent), var(--life-accent-deep));
    border-radius: 2px;
}

/* ── WHEEL CONTAINER — semi-circle, arch upward ──────────────── */
/* Compact sizing — smaller ring, nodes and centre logo than before. */
.lac-wheel {
    --wheel-size: 700px;
    --ring-r:     calc(var(--wheel-size) / 2 - 20px);
    --node-d:     62px;
    --node-r:     31px;
    --center-d:   150px;
    --center-r:   75px;
    /* pivot = where the diameter sits (bottom of the arch) */
    --pivot-y:    calc(var(--ring-r) + var(--node-r) + 20px);

    position: relative;
    width:  var(--wheel-size);
    height: calc(var(--pivot-y) + var(--center-r) + 10px);
    margin: 0 auto 0rem;
    overflow: visible;
}

/* dashed semi-circle ring — top arch only */
.lac-ring {
    position: absolute;
    top:  var(--pivot-y);
    left: 50%;
    width:  calc(var(--ring-r) * 2);
    height: calc(var(--ring-r) * 2);
    margin-top:  calc(var(--ring-r) * -1);
    margin-left: calc(var(--ring-r) * -1);
    border-radius: 50%;
    border: 2px dashed rgba(246, 180, 100, .90);
    clip-path: inset(0 0 calc(50% - 2px) 0);   /* reveal top half + diameter line */
    pointer-events: none;
    box-sizing: border-box;
}

/* ── CENTRE LOGO — sits at the diameter (pivot point) ───────── */
.lac-center {
    position: absolute;
    top:  var(--pivot-y);
    left: 50%;
    width:  var(--center-d);
    height: var(--center-d);
    margin-top:  calc(var(--center-r) * -1 - 36px);
    margin-left: calc(var(--center-r) * -1);
    border-radius: 50%;
    background: var(--white);
    outline: 2px solid rgba(246, 180, 100, .55);
    outline-offset: 5px;
    box-shadow: 0 0 0 8px rgba(246, 133, 55, .10),
                0 0 0 16px rgba(246, 133, 55, .05),
                0 14px 40px rgba(0, 0, 0, .50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 4;
    overflow: hidden;
}
.lac-center img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ── FLOATING DESCRIPTION CARD ───────────────────────────────── */
.lac-card {
    position: absolute;
    width: min(260px, 72vw);
    background: #fff;
    border-radius: 10px;
    border-top: 3px solid var(--life-accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
    padding: 1.1rem 1.2rem;
    text-align: center;
    z-index: 10;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility 0s linear .2s;
}
.lac-card.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease, visibility 0s;
}
.lac-card__pane[hidden] { display: none; }
.lac-card__title {
    font-family: var(--font-h);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin: 0 0 .5rem;
}
.lac-card__link {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s;
}
.lac-card__link:hover { color: var(--life-accent-deep); text-decoration: underline; }
.lac-card__desc {
    font-size: .8rem;
    line-height: 1.55;
    color: rgba(46, 34, 16, .78);
    margin: 0;
}

/* ── NODES ───────────────────────────────────────────────────── */
.lac-node {
    position: absolute;
    top:  var(--pivot-y);
    left: 50%;
    width:  var(--node-d);
    height: var(--node-d);
    margin-top:  calc(var(--node-r) * -1);
    margin-left: calc(var(--node-r) * -1);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 2px solid rgba(246, 180, 100, .45);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25),
                inset 0 1px 0 rgba(255,255,255,.8);
    color: var(--primary);
    cursor: pointer;
    padding: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    transition: background .25s ease, color .25s ease,
                box-shadow .25s ease, border-color .25s ease,
                transform .3s cubic-bezier(.2,.9,.3,1.15);
    transform:
        rotate(var(--lac-angle))
        translate(var(--ring-r))
        rotate(calc(var(--lac-angle) * -1));
}
.lac-node:hover,
.lac-node:focus-visible {
    background: var(--life-accent);
    color: #fff;
    border-color: var(--life-accent-deep);
    box-shadow: 0 10px 30px rgba(246, 133, 55, .55);
    outline: none;
    transform:
        rotate(var(--lac-angle))
        translate(var(--ring-r))
        rotate(calc(var(--lac-angle) * -1))
        scale(1.13);
}
.lac-node.is-active {
    background: linear-gradient(135deg, var(--life-accent) 0%, var(--life-accent-deep) 100%);
    color: #fff;
    border-color: var(--life-accent-deep);
    box-shadow: 0 12px 36px rgba(246, 133, 55, .60),
                0 0 0 5px rgba(246, 133, 55, .18);
    transform:
        rotate(var(--lac-angle))
        translate(var(--ring-r))
        rotate(calc(var(--lac-angle) * -1))
        scale(1.16);
}
.lac-node.is-active::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(246, 133, 55, .35);
    animation: lacPulse 1.8s ease-out infinite;
    pointer-events: none;
}
@keyframes lacPulse {
    0%   { transform: scale(.88); opacity: .8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.lac-node__icon {
    font-size: 1.25rem;
    line-height: 1;
    display: block;
}
.lac-node__label {
    display: block;
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    line-height: 1.1;
    text-align: center;
    max-width: 58px;
    white-space: normal;
    word-break: break-word;
    opacity: .85;
}

/* ── STACK (mobile) — hidden on desktop ─────────────────────── */
.life-stack { display: none; list-style: none; padding: 0; margin: 1.5rem 0 0; }

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .lac-node,
    .lac-card { transition: none; animation: none; }
    .lac-node.is-active::after { animation: none; }
}

/* ── RESPONSIVE: stack on small screens ─────────────────────── */
@media (max-width: 768px) {
    .life { padding: 4rem 0 3.5rem; }
    .lac-wheel { display: none; }

    .life-stack {
        display: grid;
        grid-template-columns: 1fr;
        gap: .85rem;
        margin-top: 1.25rem;
    }
    .life-stack__item {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
        background: var(--white);
        border: 1px solid rgba(139, 94, 42, .12);
        border-radius: var(--r);
        padding: 1rem 1.1rem;
        box-shadow: 0 4px 14px rgba(74, 44, 10, .06);
    }
    .life-stack__icon {
        flex: 0 0 auto;
        width: 44px; height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #F68537 0%, #d96c1c 100%);
        color: var(--white);
        border-radius: 50%;
        font-size: 1.05rem;
    }
    .life-stack__body { flex: 1; }
    .life-stack__title {
        font-family: var(--font-h);
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: .25rem;
    }
    .life-stack__link { color: var(--primary); text-decoration: none; }
    .life-stack__link:hover,
    .life-stack__link:focus-visible {
        color: #d96c1c;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    .life-stack__desc { font-size: .85rem; line-height: 1.55; color: rgba(46, 34, 16, .8); margin: 0; }
}

/* ============================================================
   ACADEMIC PROGRAMME
   ============================================================ */
.academics { background: #FDF8F2; padding: 6rem 0; }
.academics__hdr { margin-bottom: 3rem; }
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.prog-grid > .fade-up {
  display: flex;
}
.prog-card { height: 100%; border-radius: var(--r); overflow: hidden; background: var(--white); border: 1px solid rgba(74,44,10,.08); box-shadow: var(--sh); transition: transform var(--tr), box-shadow var(--tr); cursor: pointer; }
.prog-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.prog-card__img { width: 100%; height: 220px; overflow: hidden; position: relative; }
.prog-card__img-inner { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform .5s ease; }
.prog-card:hover .prog-card__img-inner { transform: scale(1.06); }
.prog-card__badge { position: absolute; top: 1rem; left: 1rem; background: var(--highlight); color: var(--white); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .28rem .65rem; border-radius: 3px; }
.prog-card__body { flex: 1; padding: 1.5rem; }
.prog-card__level { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--highlight); margin-bottom: .45rem; }
.prog-card__title { font-family: var(--font-h); font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: .4rem; }
.prog-card__grades { font-size: .78rem; color: #8B5E2A; margin-bottom: .8rem; }
.prog-card__desc { font-size: .86rem; color: var(--text-body); line-height: 1.64; margin-bottom: 1.1rem; }
.prog-card__link { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); display: inline-flex; align-items: center; gap: .38rem; transition: gap var(--tr), color var(--tr); }
.prog-card__link:hover { gap: .65rem; color: var(--highlight); }

/* ============================================================
   LATEST UPDATES / NEWS
   ============================================================ */
.updates { background: #FDF8F2; padding: 6rem 0; }
.updates__hdr { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.8rem; flex-wrap: wrap; gap: 1rem; }
.updates__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ucard { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); transition: transform var(--tr), box-shadow var(--tr); display: flex; flex-direction: column; border: 1px solid rgba(74,44,10,.07); }
.ucard:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.ucard__img { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.ucard__img-inner { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform .5s ease; }
.ucard:hover .ucard__img-inner { transform: scale(1.05); }
.ucard__tag { position: absolute; top: 1rem; left: 1rem; background: var(--primary); color: var(--white); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .26rem .6rem; border-radius: 3px; }
.ucard__body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.ucard__date { font-size: .73rem; color: #8B5E2A; margin-bottom: .55rem; display: flex; align-items: center; gap: .38rem; }
.ucard__date i { color: var(--highlight); }
.ucard__title { font-family: var(--font-h); font-size: 1.02rem; font-weight: 700; color: var(--primary); line-height: 1.33; margin-bottom: .6rem; }
.ucard__excerpt { font-size: .84rem; color: var(--text-body); line-height: 1.64; flex: 1; margin-bottom: .9rem; }
.ucard__link { font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); display: inline-flex; align-items: center; gap: .38rem; transition: color var(--tr), gap var(--tr); }
.ucard__link:hover { color: var(--highlight); gap: .6rem; }
.updates__foot { text-align: center; margin-top: 2.8rem; }

/* ============================================================
   FOOTER
   ============================================================ */

  
  .site-footer h4 {
      font-size: 14px;
      letter-spacing: 1px;
      color: #caa46b;
      margin-bottom: 15px;
  }


.site-footer { background: #000; color: rgba(255,255,255,.72); padding: 4rem 0 0; }
.site-footer{
   background-color: var(--e-global-color-secondary);
   background-image: url(/wp-content/themes/heritage-theme/assets/images/footer-bg.jpg);
   background-position: center center;
   background-repeat: no-repeat;
   background-size: cover;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 3rem; margin-bottom: 3rem; }
.footer__logo { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.footer__logo img,
.footer__logo .custom-logo { height: 50px; width: auto; filter: brightness(1.15); }
.footer__tag { font-size: .86rem; color: rgba(255,255,255,.56); margin-bottom: 1.1rem; max-width: 270px; line-height: 1.62; }
.footer__cbse { font-size: .7rem; color: rgba(255,255,255,.38); border: 1px solid rgba(255,255,255,.12); display: inline-block; padding: .3rem .68rem; border-radius: 3px; margin-bottom: 1rem; }

.mob-nav__social > .footer__soc {margin-top: 20px;}
.footer__soc { display: flex; gap: .6rem; margin-top: 20px;}
.footer__soc a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); font-size: .78rem; transition: background var(--tr), color var(--tr); }
.footer__soc a:hover { background: var(--highlight); color: var(--white); border-color: var(--highlight); }
.footer__col-title {text-transform: uppercase;letter-spacing: 0.5px;: var(--font-h); font-size: .9rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; position: relative; padding-bottom: .5rem; }
.footer__col-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 24px; height: 2px; background: var(--highlight); border-radius: 2px; }
.footer__links { display: flex; flex-direction: column; gap: .42rem; }
.footer__links a {font-size: .85rem; color: rgba(255,255,255,.52); transition: color var(--tr), padding-left var(--tr); display: flex; align-items: center; gap: .36rem; }
.footer__links a:hover { color:#fff; padding-left: 4px; }
.footer__links a i { font-size: .56rem; color: var(--highlight); }
.footer__ci { display: flex; gap: .62rem; margin-bottom: .82rem; font-size: .79rem; color: rgba(255,255,255,.52); line-height: 1.46; }
.footer__ci i { color: var(--highlight); margin-top: .14rem; flex-shrink: 0; }
.footer__bot { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; }
.footer__bot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
.footer__copy { font-size: .8rem; color:#ffffff85; }
.footer__copy a { color: var(--highlight); }
.footer__plinks { display: flex; gap: 1.1rem; }
.footer__plinks a { font-size: .8rem; color:#ffffff85; transition: color var(--tr); }
.footer__plinks a:hover { color: rgba(255,255,255,.65); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { position: relative; height: 400px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,10,2,.35) 0%, rgba(20,10,2,.75) 100%); z-index: 1; }
.page-hero__content { position: relative; z-index: 2; padding-bottom: 2rem; width: 100%; }
.page-hero__title { font-family: var(--font-h); font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 700; color: var(--white); line-height: 1.2; }
.page-hero__sub { font-size: .95rem; color: rgba(255,255,255,.72); margin-top: .45rem; }
.breadcrumb { display: flex; align-items: center; gap: .45rem; font-size: .7rem; color: rgba(255,255,255,.62); margin-bottom: .65rem; flex-wrap: wrap; }
.breadcrumb a { color:#2E2210; transition: color var(--tr); }
.breadcrumb a:hover { color: var(--highlight); }
.breadcrumb i { font-size: .52rem; color: #2E2210; }
.breadcrumb span { color: var(--highlight); }

/* ============================================================
   INNER PAGE LAYOUT (sidebar + content)
   ============================================================ */
.page-layout { padding: 4rem 0 5rem; }
body.page-template-page-school-profile-php .page-layout { padding-top: 1.5rem; }
body.page-template-page-school-profile-php .page-content__intro { margin-bottom: 2.5rem; padding-bottom: 0.5rem; }
.page-grid { display: grid; grid-template-columns: 260px 1fr; gap: 3.5rem; align-items: start; }
/* Grid items default to min-width:auto, which refuses to shrink below the
   intrinsic width of their content. Wide content (e.g. .fee-grid-table,
   min-width:1180px) was forcing this whole column — and the page — to
   overflow horizontally instead of scrolling locally inside .fee-table-wrap.
   min-width:0 lets the column shrink to the grid track and pushes overflow
   handling back down to the inner scroll wrapper where it belongs. */
.page-main { min-width: 0; }

/* Sidebar */
.sidebar__nav { background: #ffffff; border-radius: var(--r); overflow: hidden; box-shadow: 0 2px 16px rgba(74,44,10,.12); margin-bottom: 1.8rem; border: 1px solid rgba(139,94,42,.15); }
.sidebar__nav-title { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #8B5E2A, #3d2a0f); color: #ffffff; font-family: var(--font-h); font-size: .75rem; font-weight: 700; letter-spacing: .14em; padding: 1rem 1.3rem; }
.sidebar__nav-heading { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #8B5E2A, #3d2a0f); color: #ffffff; font-family: var(--font-h); font-size: .75rem; font-weight: 700; letter-spacing: .14em; padding: 1rem 1.3rem; cursor: default; text-transform: uppercase; }
.sidebar__nav-heading i, .sidebar__nav-title i { font-size: .65rem; opacity: .7; }
.sidebar__nav a { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.3rem; font-size: .92rem; font-weight: 600; color: #4a2c0a; border-bottom: 1px solid rgba(139,94,42,.1); transition: background var(--tr), color var(--tr), padding-left var(--tr), border-left-color var(--tr); background: #ffffff; letter-spacing: .03em; text-transform: capitalize; }
.sidebar__nav a.sidebar__nav-link--exact-case { text-transform: none; }
.sidebar__nav a:last-child { border-bottom: none; }
.sidebar__nav a:hover { background: rgba(139,94,42,.06); color: #8B5E2A; padding-left: 1.6rem; }
.sidebar__nav a.active,
.sidebar__nav .current-menu-item > a { background: rgba(139,94,42,.08); color: #8B5E2A; font-weight: 700; border-left: 3px solid #8B5E2A; padding-left: calc(1.3rem - 3px); }
.sidebar__nav a i { font-size: .55rem; color: rgba(139,94,42,.35); flex-shrink: 0; transition: color var(--tr), transform var(--tr); }
.sidebar__nav a:hover i { color: #8B5E2A; transform: translateX(3px); }
.sidebar__nav a.active i, .sidebar__nav .current-menu-item > a i { color: #8B5E2A; }

/* Single post — small featured image that sits beside the opening content */
.entry-featured-img {
  float: left;
  width: 320px;
  max-width: 45%;
  margin: .3rem 1.75rem 1rem 0;
  border-radius: var(--r);
  overflow: hidden;
}
.entry-featured-img img { width: 100%; height: auto; display: block; }
@media (max-width: 600px) {
  .entry-featured-img { float: none; width: 100%; max-width: 100%; margin: 0 0 1.25rem; }
}

/* Content body */
.page-content__intro { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(74,44,10,.1); }
.page-byline { margin-top: .4rem; }
.content-body { font-size: .96rem; color: var(--text-body); line-height: 1.8; }
.content-body p { margin-bottom: 1.15rem; }
.content-body h2 { font-family: var(--font-h); font-size: 1.45rem; color: var(--primary); margin: 2rem 0 .75rem; }
.content-body h3 { font-family: var(--font-h); font-size: 1.12rem; color: var(--accent); margin: 1.4rem 0 .55rem; }
.content-body ul,
.content-body ol { margin: .55rem 0 1.15rem 1.6rem; list-style: disc; }
.content-body ol { list-style: decimal; }
.content-body li { margin-bottom: .4rem; font-size: .93rem; }
.content-body blockquote { border-left: 4px solid var(--highlight); padding: .95rem 1.3rem; background: var(--bg-sand); border-radius: 0 var(--r) var(--r) 0; margin: 1.4rem 0; font-style: italic; font-family: var(--font-h); font-size: 1.02rem; color: var(--primary); }
.content-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; transition: color var(--tr); }
.content-body a:hover { color: var(--primary); }

/* ============================================================
   INFO BOXES
   ============================================================ */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin: 2rem 0; }
.info-box { background: var(--bg-sand); border-radius: var(--r); padding: 1.3rem; border-top: 3px solid var(--highlight); }
.info-box i { font-size: 1.5rem; color: var(--primary); margin-bottom: .72rem; display: block; }
.info-box h4 { font-family: var(--font-h); font-size: .96rem; color: var(--primary); margin-bottom: .35rem; }
.info-box p { font-size: .82rem; color: var(--text-body); line-height: 1.54; }

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion { border: 1px solid rgba(74,44,10,.1); border-radius: var(--r); overflow: hidden; margin: 2rem 0; }
.accordion-item { border-bottom: 1px solid rgba(74,44,10,.1); }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn { width: 100%; background: var(--white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.3rem; font-family: var(--font-h); font-size: .97rem; font-weight: 700; color: var(--primary); text-align: left; transition: background var(--tr); }
.accordion-btn:hover { background: var(--bg-cream); }
.accordion-btn.open { background: var(--bg-sand); color: var(--accent); }
.accordion-btn i { color: var(--highlight); transition: transform var(--tr); flex-shrink: 0; }
.accordion-btn.open i { transform: rotate(180deg); }
.accordion-body { display: none; padding: 1.2rem 1.3rem 1.3rem; font-size: .88rem; line-height: 1.7; color: var(--text-body); background: var(--bg-ivory); }
.accordion-body.open { display: block; }

/* ============================================================
   ADMISSIONS DETAILS
   ============================================================ */
.adm-details__hdr { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.adm-details__title { font-family: var(--font-h); font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; color: #4A2C0A; margin: 0; }
.adm-details__session { font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); }

/* ── Admission Criteria ── */
.adm-note { font-size: .93rem; color: var(--text-body); line-height: 1.7; margin: 0 0 1.5rem; }

.adm-criteria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.adm-criteria__item { background: var(--bg-ivory); border: 1px solid rgba(74,44,10,.08); border-radius: 12px; padding: 1.2rem; }
.adm-criteria__body h4 { font-family: var(--font-h); font-size: 1rem; font-weight: 700; color: #4A2C0A; margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(74,44,10,.08); }
.adm-criteria__rows { display: flex; flex-direction: column; gap: .35rem; }
.adm-criteria__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; font-size: .85rem; color: var(--text-body); }
.adm-point { background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 20px; flex-shrink: 0; }
.adm-criteria__max { display: flex; align-items: center; justify-content: space-between; background: var(--bg-sand); border-radius: 10px; padding: .9rem 1.3rem; font-family: var(--font-h); font-weight: 700; color: #4A2C0A; }
.adm-criteria__max strong { font-size: 1.3rem; color: var(--primary); }

/* ── Admission Schedule — Timeline ── */
.adm-timeline { position: relative; padding-left: 2.2rem; }
.adm-timeline::before { content: ''; position: absolute; left: 7px; top: .3rem; bottom: .3rem; width: 2px; background: rgba(139,94,42,.25); }
.adm-timeline__item { position: relative; padding-bottom: 1.4rem; }
.adm-timeline__item:last-child { padding-bottom: 0; }
.adm-timeline__item::before { content: ''; position: absolute; left: -2.2rem; top: .25rem; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 3px solid var(--primary); }
.adm-timeline__date { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .03em; color: var(--primary); background: rgba(139,94,42,.1); padding: .2rem .65rem; border-radius: 20px; margin-bottom: .4rem; }
.adm-timeline__label { font-size: .88rem; line-height: 1.6; color: var(--text-body); margin: 0; }

/* ── General Guidelines ── */
.adm-guidelines { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.adm-guidelines li { display: flex; align-items: flex-start; gap: .7rem; font-size: .88rem; line-height: 1.65; color: var(--text-body); }
.adm-guidelines li i { color: var(--primary); margin-top: .2rem; flex-shrink: 0; }
.adm-guidelines__note { display: flex; gap: .8rem; background: var(--bg-sand); border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; font-size: .85rem; line-height: 1.65; color: var(--text-body); }
.adm-guidelines__note i { color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }
.adm-guidelines__note p { margin: 0; }

/* Nested sub-list inside an .adm-guidelines item (e.g. "will not be liable for: ...") */
.adm-guidelines__group { display: flex; flex-direction: column; }
.adm-guidelines .adm-guidelines { margin: .6rem 0 0; }

/* ── Distance Criteria ── */
.adm-distance { display: flex; flex-direction: column; gap: 1.5rem; }
.adm-distance__block-hdr { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; font-size: .85rem; color: var(--text-body); }
.adm-distance__badge { font-family: var(--font-h); font-weight: 700; font-size: .95rem; color: #fff; background: var(--primary); padding: .35rem .9rem; border-radius: 20px; }
.adm-chips { display: flex; flex-wrap: wrap; gap: .5rem; max-height: 220px; overflow-y: auto; padding: 1rem; background: var(--bg-ivory); border: 1px solid rgba(74,44,10,.08); border-radius: 12px; }
.adm-chips span { font-size: .78rem; font-weight: 600; color: var(--text-body); background: var(--white); border: 1px solid rgba(74,44,10,.12); padding: .3rem .75rem; border-radius: 20px; white-space: nowrap; }
.adm-distance__fallback { background: var(--bg-sand); border-radius: 12px; padding: 1rem 1.2rem; margin: 0; font-size: .88rem; color: var(--text-body); }

/* ── Seat Availability ── */
.adm-seats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.adm-seat-card { background: var(--bg-ivory); border: 1px solid rgba(74,44,10,.08); border-radius: 12px; padding: 1.2rem; text-align: center; }
.adm-seat-card__num { font-family: var(--font-h); font-size: 1.7rem; font-weight: 700; color: var(--primary); display: block; }
.adm-seat-card__pct { font-size: .75rem; font-weight: 700; color: var(--accent); }
.adm-seat-card__label { display: block; font-size: .78rem; color: var(--text-body); margin-top: .3rem; }
.adm-seat-visual { display: flex; align-items: center; gap: 2rem; }
.adm-seat-pie { width: 140px; height: 140px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(#8B5E2A 0% 70%, #C98A3E 70% 95%, #4A2C0A 95% 100%); box-shadow: 0 2px 12px rgba(74,44,10,.15); }
.adm-seat-visual__bar { flex: 1; min-width: 200px; }
.adm-seat-bar { display: flex; height: 14px; border-radius: 20px; overflow: hidden; }
.adm-seat-bar span { display: block; height: 100%; }
.adm-seat-bar__open { background: #8B5E2A; }
.adm-seat-bar__ews { background: #C98A3E; }
.adm-seat-bar__staff { background: #4A2C0A; }
.adm-seat-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: .8rem; font-size: .78rem; color: var(--text-body); }
.adm-seat-legend span { display: flex; align-items: center; gap: .4rem; }
.adm-seat-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ── Candidate Data Tables ── */
.adm-dt__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.adm-dt__search { position: relative; flex: 1; min-width: 200px; }
.adm-dt__search input { width: 100%; padding: .6rem 1rem .6rem 2.2rem; border: 1px solid rgba(74,44,10,.15); border-radius: 20px; font-size: .85rem; font-family: var(--font-b); background: var(--bg-ivory); }
.adm-dt__search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: .8rem; }
.adm-dt__wrap { max-height: 420px; overflow: auto; border: 1px solid rgba(74,44,10,.1); border-radius: 12px; }
.adm-dt table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .82rem; }
.adm-dt thead th { position: sticky; top: 0; background: var(--bg-sand); color: #4A2C0A; font-family: var(--font-h); font-weight: 700; text-align: left; padding: .7rem .9rem; white-space: nowrap; }
.adm-dt tbody td { padding: .6rem .9rem; border-top: 1px solid rgba(74,44,10,.07); color: var(--text-body); white-space: nowrap; }
.adm-dt tbody tr:hover { background: var(--bg-cream); }
.adm-dt tbody tr.is-hidden { display: none; }
.adm-dt__empty { display: none; padding: 1.5rem; text-align: center; font-size: .85rem; color: var(--text-body); }
.adm-dt__empty.show { display: block; }
.adm-dt__footnote { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .9rem; font-size: .78rem; color: var(--text-body); }
.adm-dt__footnote i { color: var(--primary); margin-right: .3rem; }

/* ── Admission Process — Steps ── */
.adm-process { position: relative; padding-left: 2.6rem; margin: 1.6rem 0; }
.adm-process::before { content: ''; position: absolute; left: 17px; top: 4px; bottom: 4px; width: 2px; background: rgba(139,94,42,.25); }
.adm-process__step { position: relative; padding-bottom: 2rem; }
.adm-process__step:last-child { padding-bottom: 0; }
.adm-process__num { position: absolute; left: -2.6rem; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-h); font-weight: 700; font-size: .95rem; display: flex; align-items: center; justify-content: center; }
.adm-process__body h4 { font-family: var(--font-h); font-size: 1.02rem; font-weight: 700; color: #4A2C0A; margin: 0 0 .5rem; }
.adm-process__body p { font-size: .9rem; line-height: 1.7; color: var(--text-body); margin: 0 0 .5rem; }
.adm-process__list { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.adm-process__list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .87rem; line-height: 1.6; color: var(--text-body); }
.adm-process__list li i { color: var(--primary); margin-top: .2rem; flex-shrink: 0; }

/* ── Subject Combinations CTA ── */
.adm-subject-cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; background: var(--bg-sand); border-radius: 14px; padding: 1.5rem; }
.adm-subject-cta__icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(139,94,42,.14); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.adm-subject-cta__body { flex: 1; min-width: 200px; }
.adm-subject-cta__body h4 { font-family: var(--font-h); font-size: 1.05rem; font-weight: 700; color: #4A2C0A; margin: 0 0 .3rem; }
.adm-subject-cta__body p { font-size: .87rem; color: var(--text-body); margin: 0; }

@media (max-width: 767px) {
  .adm-criteria { grid-template-columns: 1fr; }
  .adm-seats { grid-template-columns: repeat(2, 1fr); }
  .adm-seat-visual { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .adm-subject-cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   GALLERY STRIP
   ============================================================ */
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 2rem 0; }
.gs-item { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; cursor: pointer; position: relative; }
.gs-item div { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform .5s ease; }
.gs-item:hover div { transform: scale(1.07); }

/* ============================================================
   TAG LIST
   ============================================================ */
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.4rem 0; }
.tag { background: var(--bg-sand); color: var(--accent); font-size: .73rem; font-weight: 700; letter-spacing: .06em; padding: .28rem .7rem; border-radius: 3px; border: 1px solid rgba(74,44,10,.1); transition: background var(--tr), color var(--tr); cursor: pointer; }
.tag:hover,
.tag.active { background: var(--primary); color: var(--white); }

/* ============================================================
   RELATED CARDS
   ============================================================ */
.related { margin-top: 3rem; padding-top: 2.4rem; border-top: 1px solid rgba(74,44,10,.1); }
.related h3 { font-family: var(--font-h); font-size: 1.15rem; color: var(--primary); margin-bottom: 1.1rem; }
.related-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .95rem; }
.rc { border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: var(--sh); transition: transform var(--tr); display: block; border: 1px solid rgba(74,44,10,.07); }
.rc:hover { transform: translateY(-4px); }
.rc__img { width: 100%; height: 120px; background-size: cover; background-position: center; }
.rc__body { padding: .95rem; }
.rc__body h4 { font-family: var(--font-h); font-size: .88rem; color: var(--primary); margin-bottom: .2rem; }
.rc__body span { font-size: .73rem; color: var(--accent); }

/* ============================================================
   ADMISSIONS PAGE COMPONENTS
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.step-card { background: var(--white); border-radius: var(--r); padding: 1.5rem 1rem; text-align: center; box-shadow: var(--sh); border: 1px solid rgba(74,44,10,.07); position: relative; margin-top: 1rem; }
.step-card__num { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; background: var(--highlight); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; }
.step-card i { font-size: 1.8rem; color: var(--primary); margin-bottom: .7rem; display: block; margin-top: .5rem; }
.step-card h4 { font-family: var(--font-h); font-size: .92rem; color: var(--primary); margin-bottom: .4rem; }
.step-card p { font-size: .8rem; color: var(--text-body); line-height: 1.52; }

/* Timeline */
.timeline { margin: 2rem 0; position: relative; padding-left: 0; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--bg-sand); }
.tl-item { padding-left: 2rem; margin-bottom: 1.6rem; position: relative; }
.tl-item::before { content: ''; position: absolute; left: -5px; top: .3rem; width: 12px; height: 12px; background: var(--highlight); border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--highlight); }
.tl-date { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--highlight); margin-bottom: .3rem; }
.tl-title { font-family: var(--font-h); font-size: 1rem; color: var(--primary); margin-bottom: .2rem; }
.tl-desc { font-size: .85rem; color: var(--text-body); }

/* Fee Table */
.fee-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.5rem; border: 1px solid rgba(74,44,10,.1); border-radius: 12px; }
.fee-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.fee-table th { background: var(--bg-sand); color: #4A2C0A; padding: .75rem 1rem; text-align: left; font-family: var(--font-h); font-size: .85rem; font-weight: 700; }
.fee-table td { padding: .7rem 1rem; border-bottom: 1px solid rgba(74,44,10,.08); color: var(--text-body); }
.fee-table tr:nth-child(even) td { background: var(--bg-cream); }
.fee-table tr:hover td { background: var(--bg-sand); }
.adm-schedule-table { min-width: 640px; }
.adm-schedule-table th:first-child, .adm-schedule-table td:first-child { width: 6%; text-align: center; }
.adm-schedule-table th:first-child { white-space: nowrap; }
.adm-schedule-table th:last-child, .adm-schedule-table td:last-child { width: 26%; }

/* Fee Structure grid — one row per class, fee categories as columns.
   Only 9 columns total, so it fits the content column at normal desktop/
   tablet widths without needing horizontal scroll (unlike a class-per-
   column layout, which needed 15 columns and always required scrolling). */
.fee-grid-table { width: 100%; table-layout: auto; }
.fee-grid-table th,
.fee-grid-table td { text-align: center; padding: .55rem .5rem; font-size: .82rem; }
.fee-grid-table td { white-space: nowrap; }
.fee-grid-table th:first-child,
.fee-grid-table td:first-child { text-align: left; width: 13%; }
.fee-grid-table thead th { border-bottom: 1px solid rgba(74,44,10,.1); }
.fee-th-note { display: block; font-size: .68rem; font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .75; }
.fee-table .fee-col-total {
  background: var(--bg-cream);
  color: #4A2C0A;
  font-weight: 700;
}
.fee-table tr:nth-child(even) .fee-col-total { background: #F0E6D6; }
.fee-table-footnote {
  font-size: .8rem;
  color: var(--text-body);
  opacity: .8;
  margin-top: -.5rem;
}

/* Enquiry Form */
.enquiry-card { background: var(--bg-sand); border-radius: var(--r); padding: 2rem; margin: 2.5rem 0; border: 1px solid rgba(74,44,10,.1); }
.enquiry-card h3 { font-family: var(--font-h); font-size: 1.2rem; color: var(--primary); margin-bottom: .4rem; }
.enquiry-card > p { font-size: .88rem; color: var(--text-body); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .78rem; font-weight: 700; color: var(--primary); letter-spacing: .03em; }
.form-group input,
.form-group select,
.form-group textarea { padding: .65rem .85rem; border: 1px solid rgba(74,44,10,.2); border-radius: var(--r); font-family: var(--font-b); font-size: .88rem; color: var(--text-body); background: var(--white); transition: border-color var(--tr), box-shadow var(--tr); outline: none; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--highlight); box-shadow: 0 0 0 3px rgba(246,133,55,.12); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-full { grid-column: span 2; }

/* ============================================================
   NEWS ARCHIVE PAGE
   ============================================================ */
.filter-bar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.8rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(74,44,10,.1); }
.filter-bar__label { font-size: .78rem; font-weight: 700; color: var(--primary); margin-right: .3rem; }
.filter-btn { font-size: .73rem; font-weight: 700; letter-spacing: .06em; padding: .32rem .9rem; border-radius: 20px; border: 1px solid rgba(74,44,10,.18); color: var(--text-body); background: var(--white); cursor: pointer; transition: all var(--tr); }
.filter-btn:hover,
.filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.featured-article { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; background: var(--bg-cream); border-radius: var(--r); overflow: hidden; margin-bottom: 3.5rem; box-shadow: var(--sh); }
.featured-article__img { min-height: 380px; background-size: cover; background-position: center; }
.featured-article__body { padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.featured-article__tag { display: inline-block; background: var(--highlight); color: var(--white); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .26rem .7rem; border-radius: 3px; margin-bottom: 1rem; align-self: flex-start; }
.featured-article__title { font-family: var(--font-h); font-size: 1.55rem; color: var(--primary); line-height: 1.28; margin-bottom: .8rem; }
.featured-article__meta { font-size: .75rem; color: var(--accent); margin-bottom: .9rem; display: flex; align-items: center; gap: 1rem; }
.featured-article__meta i { color: var(--highlight); }
.featured-article__excerpt { font-size: .9rem; color: var(--text-body); line-height: 1.72; margin-bottom: 1.3rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.news-card { background: var(--white); border-radius: var(--r); box-shadow: var(--sh); border: 1px solid rgba(74,44,10,.07); transition: transform var(--tr), box-shadow var(--tr); display: flex; flex-direction: column; padding: 1.6rem 1.5rem 1.5rem; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.news-card__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.news-card__date { font-size: .82rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: .4rem; }
.news-card__date i { color: var(--highlight); }
.news-card__arrow { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: .82rem; transition: background var(--tr); }
.news-card:hover .news-card__arrow { background: var(--highlight); }
.news-card__tag { display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.news-card__title { font-family: var(--font-h); font-size: 1.2rem; font-weight: 700; color: var(--text-dark); line-height: 1.32; margin-bottom: .65rem; }
.news-card__title a { color: inherit; }
.news-card__title a:hover { color: var(--primary); }
.news-card__excerpt { font-size: .88rem; color: var(--text-body); line-height: 1.62; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(74,44,10,.1); }
.pag-btn,
.page-numbers { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(74,44,10,.18); background: var(--white); color: var(--text-body); font-size: .82rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all var(--tr); }
.pag-btn:hover,
.pag-btn.active,
.page-numbers:hover,
.page-numbers.current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ============================================================
   WORDPRESS CORE / POST CONTENT
   ============================================================ */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 { font-family: var(--font-h); color: var(--primary); margin: 1.6rem 0 .7rem; line-height: 1.28; }
.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.18rem; }
.entry-content p { margin-bottom: 1.1rem; font-size: .96rem; line-height: 1.8; color: var(--text-body); }
.entry-content ul, .entry-content ol { margin: .6rem 0 1.1rem 1.6rem; }
.entry-content ul { list-style: disc; } .entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .4rem; font-size: .93rem; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--primary); }
.content-body a.btn, .entry-content a.btn { text-decoration: none; }
.content-body a.btn-primary, .entry-content a.btn-primary,
.content-body a.btn-outline, .entry-content a.btn-outline { color: #fff; }
.content-body a.btn-primary:hover, .entry-content a.btn-primary:hover,
.content-body a.btn-outline:hover, .entry-content a.btn-outline:hover { color: var(--white); }
.entry-content blockquote { border-left: 4px solid var(--highlight); padding: .95rem 1.3rem; background: var(--bg-sand); border-radius: 0 var(--r) var(--r) 0; margin: 1.4rem 0; font-style: italic; font-family: var(--font-h); font-size: 1.02rem; color: var(--primary); }
.entry-content img { border-radius: var(--r); margin: 1rem 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; border: 1px solid rgba(74,44,10,.1); border-radius: 12px; overflow: hidden; }
.entry-content table th { background: var(--bg-sand); color: #4A2C0A; padding: .7rem 1rem; text-align: left; font-family: var(--font-h); }
.entry-content table td { padding: .65rem 1rem; border-bottom: 1px solid rgba(74,44,10,.08); }
.entry-content table tr:nth-child(even) td { background: var(--bg-cream); }

/* WP Alignments */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; text-align: center; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .78rem; color: var(--accent); text-align: center; margin-top: .4rem; }

/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */
.single-post__header { margin-bottom: 2rem; }
.single-post__category { display: inline-block; background: var(--highlight); color: var(--white); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .26rem .7rem; border-radius: 3px; margin-bottom: 1rem; }
.single-post__title { font-family: var(--font-h); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--primary); line-height: 1.25; margin-bottom: .8rem; }
.single-post__meta { display: flex; align-items: center; gap: 1.2rem; font-size: .78rem; color: var(--accent); margin-bottom: 1.5rem; flex-wrap: wrap; }
.single-post__meta i { color: var(--highlight); margin-right: .3rem; }
.single-post__featured { width: 100%; border-radius: var(--r); margin-bottom: 2.5rem; overflow: hidden; }
.single-post__featured img { width: 100%; height: 420px; object-fit: cover; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; padding-top: 2.5rem; margin-top: 2.5rem; border-top: 1px solid rgba(74,44,10,.1); flex-wrap: wrap; }
.post-nav__link { max-width: 48%; }
.post-nav__label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--highlight); margin-bottom: .3rem; }
.post-nav__title { font-family: var(--font-h); font-size: .96rem; color: var(--primary); transition: color var(--tr); }
.post-nav__title:hover { color: var(--accent); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(74,44,10,.1); }
.comments-title { font-family: var(--font-h); font-size: 1.3rem; color: var(--primary); margin-bottom: 2rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--bg-cream); border-radius: var(--r); padding: 1.3rem; margin-bottom: 1.2rem; }
.comment-author { display: flex; align-items: center; gap: .75rem; margin-bottom: .7rem; }
.comment-author img { width: 40px; height: 40px; border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: var(--primary); font-size: .9rem; }
.comment-metadata { font-size: .72rem; color: var(--accent); }
.comment-content p { font-size: .9rem; line-height: 1.7; color: var(--text-body); }
.reply a { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--highlight); margin-top: .6rem; display: inline-block; }
.comment-respond { margin-top: 2.5rem; }
.comment-reply-title { font-family: var(--font-h); font-size: 1.1rem; color: var(--primary); margin-bottom: 1.2rem; }
.comment-form label { display: block; font-size: .78rem; font-weight: 700; color: var(--primary); margin-bottom: .35rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: .65rem .85rem; border: 1px solid rgba(74,44,10,.2); border-radius: var(--r); font-family: var(--font-b); font-size: .88rem; color: var(--text-body); background: var(--white); margin-bottom: 1rem; outline: none; transition: border-color var(--tr), box-shadow var(--tr); }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--highlight); box-shadow: 0 0 0 3px rgba(246,133,55,.12); }
.comment-form textarea { resize: vertical; min-height: 110px; }
.comment-form .submit { background: var(--primary); color: var(--white); border: none; padding: .72rem 1.8rem; border-radius: var(--r); font-family: var(--font-b); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background var(--tr); }
.comment-form .submit:hover { background: var(--accent); }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-results-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(74,44,10,.1); }
.search-results-header h1 { font-family: var(--font-h); font-size: 1.6rem; color: var(--primary); }
.search-results-header p { font-size: .9rem; color: var(--accent); margin-top: .4rem; }
.search-result-item { display: flex; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(74,44,10,.08); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item__thumb { width: 120px; height: 90px; border-radius: var(--r); overflow: hidden; flex-shrink: 0; background-size: cover; background-position: center; }
.search-result-item__body {}
.search-result-item__cat { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--highlight); margin-bottom: .3rem; }
.search-result-item__title { font-family: var(--font-h); font-size: 1.05rem; color: var(--primary); margin-bottom: .4rem; transition: color var(--tr); }
.search-result-item__title:hover { color: var(--accent); }
.search-result-item__excerpt { font-size: .85rem; color: var(--text-body); line-height: 1.62; }
.no-results { text-align: center; padding: 4rem 0; }
.no-results h2 { font-family: var(--font-h); color: var(--primary); margin-bottom: 1rem; }
.no-results p { color: var(--accent); margin-bottom: 2rem; }

/* Site search form (searchform.php) */
.hs-search-form { position: relative; display: flex; align-items: center; background: var(--bg-ivory); border: 1px solid rgba(74,44,10,.15); border-radius: 50px; padding: .3rem .3rem .3rem 1.3rem; transition: border-color var(--tr), box-shadow var(--tr); }
.hs-search-form:focus-within { border-color: var(--primary); box-shadow: 0 4px 18px rgba(74,44,10,.1); }
.hs-search-form i { color: var(--primary); font-size: .9rem; margin-right: .7rem; flex-shrink: 0; }
.hs-search-form__input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: .92rem; font-family: var(--font-b); color: var(--text-dark); padding: .6rem 0; }
.hs-search-form__submit { background: var(--primary); color: #fff; border: none; padding: .65rem 1.6rem; border-radius: 40px; font-family: var(--font-b); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background var(--tr); flex-shrink: 0; white-space: nowrap; }
.hs-search-form__submit:hover { background: #8B5E2A; }
@media (max-width: 480px) {
  .hs-search-form { flex-wrap: wrap; border-radius: 20px; padding: .8rem 1rem; }
  .hs-search-form__submit { width: 100%; margin-top: .6rem; }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 { text-align: center; padding: 6rem 0; }
.error-404__code { font-family: var(--font-h); font-size: 8rem; font-weight: 700; color: var(--bg-sand); line-height: 1; margin-bottom: 1rem; }
.error-404__title { font-family: var(--font-h); font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.error-404__desc { font-size: 1rem; color: var(--accent); max-width: 480px; margin: 0 auto 2rem; line-height: 1.72; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .practices__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; }
  /* Sidebar becomes horizontal scroll strip instead of disappearing */
  .sidebar { display: block; width: 100%; max-width: 100%; overflow: hidden; margin-bottom: 1.5rem; }
  .sidebar__nav {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin-bottom: 0;
    border-radius: var(--r);
  }
  .sidebar__nav a {
    flex-shrink: 0;
    border-bottom: none;
    border-left: none;
    border-right: 1px solid rgba(139,94,42,.1);
    white-space: nowrap;
    padding: .65rem 1rem;
  }
  .sidebar__nav a.active,
  .sidebar__nav .current-menu-item > a { border-left: none; border-top: 3px solid #8B5E2A; padding-left: 1rem; }
  .sidebar__nav a i { display: none; }
  .sidebar__nav a:last-child { border-right: none; }
  .featured-article { grid-template-columns: 1fr; }
  .featured-article__img { min-height: 260px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  /* Related cards: 2-col on tablet */
  .related-cards { grid-template-columns: 1fr 1fr; }
  /* Page hero: reduce height on tablet */
  .page-hero { height: 360px; }
}
@media (max-width: 768px) {
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { height: 72vh; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .philosophy__grid { grid-template-columns: 1fr; }
  .philosophy__badge { right: 0; }
  .dharmic__values { grid-template-columns: 1fr; }
  .practices__grid { grid-template-columns: repeat(2, 1fr); }
  .prog-grid { grid-template-columns: 1fr; }
  .updates__grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .related-cards { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-full { grid-column: span 1; }
  /* Page layout & hero */
  .page-layout { padding: 2.5rem 0 3rem; }
  .page-content__intro { margin-bottom: 1.5rem; padding-bottom: 1.5rem; }
  .page-hero { height: 320px; }
  .page-hero__content { padding-bottom: 1.6rem; }
  .page-hero__title { font-size: clamp(1.4rem, 5vw, 2rem); }
  /* Sidebar strip: smaller text */
  .sidebar__nav a { font-size: .8rem; padding: .6rem .9rem; }
  .sidebar__nav-heading { font-size: .68rem; padding: .6rem .9rem; letter-spacing: .1em; }
}
@media (max-width: 480px) {
  .practices__grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__inner { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .topbar__links a:not(:last-child) { display: none; }
  /* Page layout & hero on small phones */
  .page-layout { padding: 1.8rem 0 2.5rem; }
  .page-content__intro { margin-bottom: 1rem; padding-bottom: 1rem; }
  .page-hero { height: 280px; }
  /* Fee table: prevent overflow on small screens */
  .fee-table { font-size: .8rem; }
  .fee-table th, .fee-table td { padding: .5rem .7rem; }
  /* Sidebar strip: even smaller on narrow phones */
  .sidebar__nav a { font-size: .72rem; padding: .5rem .7rem; }
  .sidebar__nav-heading { font-size: .62rem; padding: .5rem .7rem; letter-spacing: .06em; }
}

@media (max-width: 768px) {
   .topbar_row {
     flex-direction: column;
     align-items: flex-start;
   }
 
   .topbar__social {
     border-left: none;
     padding-left: 0;
   }
   .topbar_row {
      display: none;
    }
 }

 /* ============================================================
   HERO BANNER SLIDER  (replaces old .hero block)
   ============================================================ */

/* ── Container ── */
.hs-hero {
   position: relative;
   width: 100%;
   height: 82vh;
   min-height: 540px;
   max-height: 820px;
   overflow: hidden;
   display: flex;
   align-items: center;         /* vertically centre content */
 }
 
 /* ── Slide track & individual slides ── */
 .hs-hero__track {
   position: absolute;
   inset: 0;
 }
 
 .hs-hero__slide {
   position: absolute;
   inset: 0;
   background-size: cover;
   background-position: center top;
   background-repeat: no-repeat;
   opacity: 0;
   transform: scale(1.04);
   transition: opacity 1.1s cubic-bezier(.4,0,.2,1),
               transform 6s ease-out;
   will-change: opacity, transform;
 }
 
 .hs-hero__slide.is-active {
   opacity: 1;
   transform: scale(1);
   z-index: 1;
 }
 
 .hs-hero__slide.is-leaving {
   opacity: 0;
   transform: scale(1.04);
   z-index: 0;
 }
 
 /* ── Diagonal dark panel overlay (neutral black/gray) ── */
/* Dark gradient overlay for better text readability */
/* Stronger left + bottom dark overlay for text readability */
/* Balanced dark overlay across full hero */
.hs-hero__panel {
   position: absolute;
   inset: 0;
   z-index: 2;
 
   background:
     /* Left-heavy readability layer */
     linear-gradient(
       to right,
       rgba(0,0,0,.72) 0%,
       rgba(0,0,0,.52) 0%,
       rgba(0,0,0,.30) 78%,
       rgba(0,0,0,.18) 100%
     ),
 
     /* Bottom vignette */
     linear-gradient(
       to top,
       rgba(0,0,0,.45) 0%,
       rgba(0,0,0,.20) 38%,
       rgba(0,0,0,0) 75%
     );
 }
 
 /* ── Content ── */
 .hs-hero__content {
   position: relative;
   z-index: 3;
   width: 100%;
   padding-top: 0;
   padding-bottom: 0;
 }
 
 .hs-hero__inner {
   max-width: 700px;          /* keeps text in the brown panel zone */
 }
 
 /* ── Establishment label ── */
 .hs-hero__est {
   display: flex;
   align-items: center;
   gap: .75rem;
   font-family: var(--font-b);
   font-size: .68rem;
   font-weight: 700;
   letter-spacing: .2em;
   text-transform: uppercase;
   color: rgba(255,255,255,.65);
   margin-bottom: 1.1rem;
 }
 
 .hs-hero__est-line {
   display: inline-block;
   width: 28px;
   height: 1px;
   background: rgba(255,255,255,.45);
   flex-shrink: 0;
 }
 
 /* ── Headline ── */
 .hs-hero__headline {
   font-family: var(--font-h);
   font-size:clamp(1.2rem, 3vw, 3rem);
   font-weight: 700;
   color: var(--white);
   line-height: 1.22;
   margin-bottom: 1.1rem;
   letter-spacing: -.01em;
}

 /* Highlighted phrase — italic gold/amber matching PPT */
 .hs-hero__headline em {
   font-style: italic;
   color: #C8913A;            /* warm gold — replaces any orange */
   font-weight: 700;
   font-size:clamp(1.2rem, 3vw, 3rem);
 }
 
 /* ── Divider rule ── */
 .hs-hero__divider {
   width: 36px;
   height: 2px;
   background: rgba(255,255,255,.4);
   margin-bottom: 1rem;
   border-radius: 2px;
 }
 
 /* ── Sub-text ── */
 .hs-hero__subtext {
   font-size: .9rem;
   color: rgba(255,255,255,.72);
   line-height: 1.75;
   margin-bottom: 2rem;
   max-width: 480px;
 }
 
 /* ── CTA buttons ── */
 .hs-hero__ctas {
   display: flex;
   gap: .85rem;
   flex-wrap: wrap;
 }
 
 /* Solid brown/primary button */
 .hs-hero .hs-btn-primary {
   display: inline-flex;
   align-items: center;
   gap: .45rem;
   padding: .68rem 1.55rem;
   font-family: var(--font-b);
   font-size: .72rem;
   font-weight: 700;
   letter-spacing: .1em;
   text-transform: uppercase;
   border-radius: var(--r);
   background: var(--primary);   /* #4A2C0A */
   color: var(--white);
   border: 2px solid var(--primary);
   transition: background var(--tr), border-color var(--tr), transform var(--tr);
   text-decoration: none;
 }
 
 .hs-hero .hs-btn-primary:hover {
   background: #8B5E2A;
   border-color: #8B5E2A;
   transform: translateY(-2px);
 }
 
 /* Ghost/outline button */
 .hs-hero .hs-btn-outline {
   display: inline-flex;
   align-items: center;
   gap: .45rem;
   padding: .68rem 1.55rem;
   font-family: var(--font-b);
   font-size: .72rem;
   font-weight: 700;
   letter-spacing: .1em;
   text-transform: uppercase;
   border-radius: var(--r);
   background: transparent;
   color: var(--white);
   border: 2px solid rgba(255,255,255,.55);
   transition: background var(--tr), border-color var(--tr), color var(--tr), transform var(--tr);
   text-decoration: none;
 }
 
 .hs-hero .hs-btn-outline:hover {
   background: var(--white);
   color: var(--primary);
   border-color: var(--white);
   transform: translateY(-2px);
 }
 
 /* ── Dot navigation ── */
 .hs-hero__dots {
   position: absolute;
   bottom: 2rem;
   left: 50%;
   transform: translateX(-50%);
   z-index: 4;
   display: flex;
   gap: .55rem;
 }
 
 .hs-hero__dot {
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: rgba(255,255,255,.35);
   border: none;
   padding: 0;
   cursor: pointer;
   transition: background var(--tr), transform var(--tr), width var(--tr);
 }
 
 .hs-hero__dot.is-active {
   background: var(--white);
   width: 24px;
   border-radius: 4px;
 }
 
 /* ── Arrow buttons ── */
 .hs-hero__arrow {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   z-index: 4;
   width: 44px;
   height: 44px;
   border-radius: 50%;
   background: rgba(255,255,255,.12);
   border: 1px solid rgba(255,255,255,.2);
   color: var(--white);
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   transition: background var(--tr), border-color var(--tr);
   backdrop-filter: blur(4px);
   -webkit-backdrop-filter: blur(4px);
 }
 
 .hs-hero__arrow:hover {
   background: rgba(255,255,255,.25);
   border-color: rgba(255,255,255,.4);
 }
 
 .hs-hero__arrow--prev { left: 1.5rem; }
 .hs-hero__arrow--next { right: 1.5rem; }
 
 /* Progress bar at very top of hero */
 .hs-hero::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   height: 3px;
   width: 0%;
   background: #C8913A;
   z-index: 5;
   transition: width linear;
 }
 
 .hs-hero.is-playing::before {
   width: 100%;
 }
 
 /* ── Responsive ── */
 
 /* Tablet */
 @media (max-width: 900px) {
   .hs-hero {
     height: 74vh;
     min-height: 480px;
   }
 
   .hs-hero__panel {
     background: linear-gradient(
       105deg,
       rgba(46,34,16,.97) 0%,
       rgba(46,34,16,.90) 52%,
       rgba(46,34,16,.50) 68%,
       rgba(46,34,16,.0)  82%
     );
   }
 
   .hs-hero__inner {
     max-width: 500px;
   }
 
   .hs-hero__headline {
     font-size: clamp(1.55rem, 3vw, 2.3rem);
   }
 }
 
 /* Mobile */
 @media (max-width: 768px) {
   .hs-hero {
     height: auto;
     min-height: 100svh;         /* full viewport on mobile */
     max-height: none;
     align-items: flex-end;
   }
 
   /* On mobile, full-width gradient from bottom */
   .hs-hero__panel {
     background: linear-gradient(
       to top,
       rgba(30,18,5,.97) 0%,
       rgba(30,18,5,.88) 45%,
       rgba(30,18,5,.30) 75%,
       rgba(30,18,5,.0)  100%
     );
   }
 
   .hs-hero__content {
     padding-bottom: 5rem;
   }
 
   .hs-hero__inner {
     max-width: 100%;
   }
 
   .hs-hero__headline {
     font-size: clamp(1.6rem, 6vw, 2.2rem);
   }
 
   .hs-hero__subtext {
     font-size: .85rem;
     max-width: 100%;
   }
 
   .hs-hero__arrow {
     width: 36px;
     height: 36px;
   }
 
   .hs-hero__arrow--prev { left: .75rem; }
   .hs-hero__arrow--next { right: .75rem; }
 
   .hs-hero__dots {
     bottom: 1.5rem;
   }
 }
 
 @media (max-width: 480px) {
   .hs-hero__ctas {
     flex-direction: column;
     align-items: flex-start;
   }

   .hs-hero .hs-btn-primary,
   .hs-hero .hs-btn-outline {
     width: 100%;
     justify-content: center;
   }
 }

/* ============================================================
   ABOUT US PAGE
   ============================================================ */

/* ── Section Navigator (inline, inside page-main) ── */
.about-nav--inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.about-nav__card {
  position: relative;
  display: block;
  height: 200px;
  border-radius: var(--r);
  overflow: hidden;
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: var(--white);
  transition: transform var(--tr), box-shadow var(--tr);
}

.about-nav__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  color: var(--white);
}

.about-nav__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(44, 24, 4, 0.88) 0%,
    rgba(44, 24, 4, 0.45) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  transition: background var(--tr);
}

.about-nav__card:hover .about-nav__overlay {
  background: linear-gradient(
    to top,
    rgba(139, 94, 42, 0.92) 0%,
    rgba(139, 94, 42, 0.55) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.about-nav__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  z-index: 1;
}

.about-nav__eng {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .8;
}

.about-nav__sanskrit {
  font-family: var(--font-h);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}

/* ── Shared about block styles ── */
.about-block {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(74,44,10,.1);
}

.about-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.about-block__hdr {
  margin-bottom: 1.4rem;
}

.about-block__title {
  font-family: var(--font-h);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #4A2C0A;
  line-height: 1.22;
  margin-top: .3rem;
}

.about-block__lead {
  font-size: .93rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: .9rem;
}

/* ── Founder + Vision row ── */
/* ════════════════════════════════
   FOUNDER SECTION
════════════════════════════════ */
.about-founder-section {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

/* ── Left column ── */
.founder-left {
  padding-right: 2rem;
  border-right: 1px solid rgba(74,44,10,.1);
}

.founder-name {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: #4A2C0A;
  line-height: 1.2;
  margin: .4rem 0 .5rem;
}

.founder-meta {
  font-size: .82rem;
  color: #999;
  letter-spacing: .02em;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.founder-meta .fa-map-marker-alt {
  color: var(--primary);
  font-size: .75rem;
}

.founder-body p {
  font-size: .95rem;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.founder-quote {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  color: var(--primary, #4A2C0A);
  border-left: 3px solid var(--primary, #4A2C0A);
  padding: .5rem 0 .5rem 1.2rem;
  margin: 1.8rem 0 0;
  line-height: 1.75;
}

/* ── Right column ── */
.founder-right {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Vision card */
.founder-vision-card {
  background: #fdf5ea;
  border: 1px solid rgba(74,44,10,.12);
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
}

.founder-vision-card .sec-label {
  display: block;
  margin-bottom: .8rem;
}

.founder-vision-card__text {
  font-family: var(--font-h);
  font-size: .95rem;
  font-style: italic;
  color: var(--primary, #4A2C0A);
  line-height: 1.8;
  margin: 0;
}

.founder-vision-card__divider {
  height: 1px;
  background: rgba(74,44,10,.14);
  margin: 1.4rem 0 1.2rem;
}

.founder-vision-card__est-label {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(74,44,10,.55);
  margin-bottom: .4rem;
}

.founder-vision-card__est-year {
  font-family: var(--font-h);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary, #4A2C0A);
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: .6rem;
}

.founder-vision-card__est-lead {
  font-size: .88rem;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
}

/* ── Founder photo (right column, replaces the old Established card) ── */
.founder-photo {
  border-radius: 12px;
  overflow: hidden;
}

.founder-photo__img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .founder-photo__img {
    min-height: 280px;
  }
}

@media (max-width: 900px) {
  .about-founder-section {
    grid-template-columns: 1fr;
  }
  .founder-left {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(74,44,10,.1);
    padding-bottom: 2rem;
  }
}

/* ── Manthan ── */
.about-block--manthan {
  scroll-margin-top: 80px;
}

.manthan-qs {
  margin-bottom: 3rem;
}

.manthan-qs__label {
  font-family: var(--font-b);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.manthan-qs__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(139,94,42,.2);
}

.manthan-qs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.mq-group {
  background: var(--white);
  border-radius: var(--r);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(74,44,10,.08);
  box-shadow: var(--sh);
}

.mq-group__title {
  font-family: var(--font-h);
  font-size: .96rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--bg-sand);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.mq-group__title i {
  color: var(--accent);
  font-size: .9rem;
}

.mq-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.mq-group ul li {
  font-size: .875rem;
  color: var(--text-body);
  line-height: 1.62;
  padding-left: 1.1rem;
  position: relative;
}

.mq-group ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .6;
}

.manthan-close {
  background: var(--white);
  border-radius: var(--r);
  padding: 2rem 2.2rem;
  border: 1px solid rgba(74,44,10,.09);
  box-shadow: var(--sh);
}

.manthan-blockquote {
  font-family: var(--font-h);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--primary);
  line-height: 1.75;
  border-left: 4px solid var(--primary);
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
}

.manthan-close p {
  font-size: .9rem;
  color: var(--text-body);
  line-height: 1.78;
}

/* ── Samstha ── */
.about-block--samstha {
  scroll-margin-top: 80px;
}

.aafire-banner {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 3rem;
}

.aafire-banner span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: var(--r);
  box-shadow: var(--sh);
  transition: transform var(--tr), background var(--tr);
}

.aafire-banner span:hover {
  transform: translateY(-4px) scale(1.08);
  background: var(--highlight);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.value-card {
  background: var(--bg-ivory);
  border-radius: var(--r);
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(74,44,10,.08);
  transition: box-shadow var(--tr), transform var(--tr);
}

.value-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
}

.value-card__icon {
  width: 2.8rem;
  height: 2.8rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.value-card__title {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .6rem;
}

.value-card__desc {
  font-size: .86rem;
  color: var(--text-body);
  line-height: 1.72;
}

/* ── Prakriya ── */
.about-block--prakriya {
  scroll-margin-top: 80px;
}

.prakriya-quote {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r);
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.prakriya-quote::before {
  content: '\201C';
  position: absolute;
  top: -1rem;
  left: 1rem;
  font-family: var(--font-h);
  font-size: 8rem;
  color: rgba(255,255,255,.1);
  line-height: 1;
  pointer-events: none;
}

.prakriya-quote blockquote {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.65;
  margin-bottom: .7rem;
  position: relative;
  z-index: 1;
}

.prakriya-quote figcaption {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
}

.essential-qs {
  margin-bottom: 3rem;
}

.essential-qs__title {
  text-align: center;
  font-size: .95rem;
  color: var(--text-body);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.essential-qs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.eq-card {
  border-radius: var(--r);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--sh);
}

.eq-card--1 { background: #8B5E2A; color: #fff; }
.eq-card--2 { background: #A0722F; color: #fff; }
.eq-card--3 { background: #6B4720; color: #fff; }

.eq-card__num {
  display: block;
  font-family: var(--font-h);
  font-size: 2.5rem;
  font-weight: 700;
  opacity: .25;
  line-height: 1;
  margin-bottom: .5rem;
}

.eq-card__q {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.essential-qs__note {
  text-align: center;
  font-size: .875rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 700px;
  margin: 0 auto;
}

.guiding-principles {
  margin-bottom: 2.5rem;
}

.guiding-principles__title {
  font-family: var(--font-h);
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.prakriya-belief {
  background: var(--white);
  border-radius: var(--r);
  padding: 1.8rem 2rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--sh);
}

.prakriya-belief p {
  font-size: .92rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: .8rem;
}

.prakriya-belief p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   PROGRAMME PAGES (Junior / Middle / Senior)
   ============================================================ */

/* ── Grade badge ── */
.prog-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 3px;
  margin-bottom: .6rem;
}

.prog-badge--junior { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.prog-badge--middle { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
.prog-badge--senior { background: #fff3e0; color: #8B5E2A; border: 1px solid #ffe0b2; }

/* ── Tagline ── */
.prog-tagline {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--accent);
  margin-top: .4rem;
}

/* ── Opening narrative ── */
.prog-narrative {
  background: var(--bg-ivory);
  border-radius: var(--r);
  padding: 1.6rem 1.8rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary);
  font-size: .93rem;
  color: var(--text-body);
  line-height: 1.82;
}

.prog-narrative p { margin-bottom: .85rem; }
.prog-narrative p:last-child { margin-bottom: 0; }

.prog-quote {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--primary);
  border-left: none;
  padding: .5rem 0;
  margin: .8rem 0;
}

/* ── Stacked feature sections (Junior & Senior) ── */
.prog-sections {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.prog-section {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(74,44,10,.08);
  border-radius: var(--r);
  padding: 1.6rem;
  box-shadow: var(--sh);
  transition: box-shadow var(--tr);
}

.prog-section:hover { box-shadow: var(--sh-lg); }

.prog-section__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
}

.prog-icon--junior { background: #2e7d32; }
.prog-icon--senior { background: var(--primary); }

.prog-section__body { flex: 1; }

.prog-section__title {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .65rem;
}

.prog-section__body p {
  font-size: .88rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: .7rem;
}

.prog-section__body p:last-child { margin-bottom: 0; }

/* ── Highlights chips ── */
.prog-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .9rem;
}

.prog-highlights span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--bg-sand);
  color: var(--primary);
  font-size: .74rem;
  font-weight: 700;
  padding: .28rem .7rem;
  border-radius: 3px;
}

.prog-highlights span i { font-size: .65rem; color: #2e7d32; }

.prog-section__body > .btn { margin-top: 1.2rem; }

.prog-section__thumb {
  flex-shrink: 0;
  width: 190px;
  height: 190px;
  border-radius: var(--r);
  overflow: hidden;
}

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

/* ── Callout (Satvikam etc.) ── */
.prog-callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-sand);
  border-radius: var(--r);
  padding: 1.1rem 1.2rem;
  margin-top: 1rem;
  font-size: .86rem;
  color: var(--text-body);
  line-height: 1.72;
}

.prog-callout__icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--primary);
  margin-top: .1rem;
}

/* ── Programme Gallery ── */
.prog-gallery {
    margin-top: 3rem;
}
.prog-gallery__heading {
    font-family: var(--font-h);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid rgba(139, 94, 42, .15);
}
.prog-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}
.prog-gallery__item {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e8ddd0;
    transition: transform .28s ease;
}
.prog-gallery__item:hover {
    transform: translateY(-4px);
}
.prog-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .38s ease;
}
.prog-gallery__item:hover img {
    transform: scale(1.06);
}
.prog-gallery__zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 10, 2, .40);
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity .25s ease;
}
.prog-gallery__item:hover .prog-gallery__zoom {
    opacity: 1;
}
@media (max-width: 640px) {
    .prog-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Cards grid (Middle) ── */
.prog-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.8rem;
}

.prog-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(74,44,10,.08);
  box-shadow: var(--sh);
  transition: transform var(--tr), box-shadow var(--tr);
}

.prog-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }

.prog-card__icon {
  font-size: 1.5rem;
  margin-bottom: .75rem;
}

.prog-card--middle .prog-card__icon { color: #1565c0; }

.prog-card__title {
  font-family: var(--font-h);
  font-size: .98rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .5rem;
}

.prog-card__desc {
  font-size: .84rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ── Learning examples (Middle) ── */
.prog-examples {
  background: var(--bg-ivory);
  border-radius: var(--r);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(74,44,10,.08);
}

.prog-examples__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.prog-examples__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
}

.prog-example {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .85rem;
  color: var(--text-body);
}

.prog-example i {
  color: #1565c0;
  font-size: 1rem;
  flex-shrink: 0;
  width: 1.2rem;
  text-align: center;
}

/* ── Closing statement ── */
.prog-closing {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r);
  padding: 1.4rem 1.8rem;
  font-family: var(--font-h);
  font-size: .98rem;
  font-style: italic;
  line-height: 1.72;
  margin-top: .5rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .prog-cards-grid { grid-template-columns: 1fr; }
  .prog-examples__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .prog-section { flex-direction: column; gap: .9rem; padding: 1.2rem; }
  .prog-section__icon { width: 2.5rem; height: 2.5rem; font-size: .95rem; }
  .prog-section__thumb { width: 100%; height: 180px; order: -1; }
  .prog-narrative { padding: 1.2rem 1.3rem; }
}

/* ============================================================
   SCHOOL PROFILE PAGE
   ============================================================ */

.sp-vision {
  margin-bottom: 2rem;
  padding: 1.8rem 2rem;
  background: #f9f3eb;
  border-left: 4px solid var(--primary);
  border-radius: var(--r);
}
.sp-vision .sec-label {
  display: block;
  margin-bottom: .75rem;
}
.sp-vision__quote {
  margin: 0;
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--primary);
}

.sp-img-block {
  margin-bottom: 2rem;
  border-radius: var(--r);
  overflow: hidden;
}

.sp-img-block--half {
  width: 100%;
  margin-bottom: 0;
}

.sp-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.about-campus-section {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-campus-section > .sp-img-block,
.about-campus-section > .about-campus-card {
  flex: 1 1 50%;
  min-width: 0;
}

.about-campus-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-campus-card__address {
  font-size: .85rem;
  color: var(--primary, #4A2C0A);
  opacity: .8;
  margin: 0 0 1.2rem;
}

.about-campus-card__address i {
  margin-right: .4rem;
}

@media (max-width: 767px) {
  .about-campus-section {
    flex-direction: column;
  }
}

/* ── 4-column highlights ── */
.sp-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.sp-highlight {
  background: var(--bg-ivory);
  border-radius: var(--r);
  padding: 1.3rem 1.1rem;
  border: 1px solid rgba(74,44,10,.08);
  border-top: 3px solid var(--primary);
  text-align: center;
  transition: box-shadow var(--tr), transform var(--tr);
}

.sp-highlight:hover {
  box-shadow: var(--sh);
  transform: translateY(-3px);
}

.sp-highlight__icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: .6rem;
}

.sp-highlight__title {
  font-family: var(--font-h);
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .4rem;
}

.sp-highlight p {
  font-size: .78rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ── Narrative body ── */
.sp-body {
  font-size: .93rem;
  color: var(--text-body);
  line-height: 1.82;
  margin-bottom: 2rem;
}

.sp-body p {
  margin-bottom: 1.1rem;
}

.sp-body p:last-child {
  margin-bottom: 0;
}

/* ── CBSE block ── */
.sp-cbse {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(74,44,10,.1);
}

.sp-cbse__hdr {
  margin-bottom: 1.2rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sp-highlights { grid-template-columns: repeat(2, 1fr); }
  .sp-img { height: 240px; }
}

@media (max-width: 480px) {
  .sp-highlights { grid-template-columns: 1fr 1fr; }
  .sp-img { height: 200px; }
}

/* ── CBSE Affiliation ── */
.cbse-card {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
  background: var(--bg-ivory);
  border: 1px solid rgba(74,44,10,.09);
  border-radius: var(--r);
  padding: 1.8rem 2rem;
  box-shadow: var(--sh);
}

.cbse-card__badge {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
}

.cbse-card__body {
  flex: 1;
}

.cbse-card__no {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(74,44,10,.1);
}

.cbse-card__no-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.cbse-card__no-val {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.cbse-card__desc {
  font-size: .88rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.cbse-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}

.cbse-card__tags span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--bg-sand);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  padding: .32rem .75rem;
  border-radius: 3px;
}

.cbse-card__tags span i {
  color: #4a7a4a;
  font-size: .7rem;
}

.cbse-card__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--tr);
  margin-left: .2rem;
}

.cbse-card__link:hover { color: var(--highlight); }

/* ── Above and Beyond ── */
.beyond-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.beyond-card {
  background: var(--white);
  border: 1px solid rgba(74,44,10,.08);
  border-top: 3px solid var(--primary);
  border-radius: var(--r);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--sh);
  transition: transform var(--tr), box-shadow var(--tr);
}

.beyond-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
}

.beyond-card__icon {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: .85rem;
}

.beyond-card__title {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .6rem;
}

.beyond-card__desc {
  font-size: .84rem;
  color: var(--text-body);
  line-height: 1.7;
}

.beyond-closing {
  background: var(--bg-sand);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.1rem 1.4rem;
  font-size: .9rem;
  color: var(--text-body);
  line-height: 1.72;
}

/* ── Vision Statement ── */
.vision-section {
  background: var(--primary);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vision-section::before {
  content: '\201C';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-h);
  font-size: 20rem;
  color: rgba(255,255,255,.05);
  line-height: 1;
  pointer-events: none;
}

.vision__inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.vision__inner .sec-label {
  color: rgba(255,255,255,.65);
}

.vision__title {
  color: var(--white);
  margin-bottom: 1.8rem;
}

.vision__statement {
  font-family: var(--font-h);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-style: italic;
  color: rgba(255,255,255,.92);
  line-height: 1.75;
}

/* ── Responsive: About page ── */
@media (max-width: 900px) {
  .about-nav--inline { grid-template-columns: repeat(2, 1fr); }
  .manthan-qs__grid { grid-template-columns: 1fr; }
  .essential-qs__grid { grid-template-columns: 1fr; }
  .beyond-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .about-nav--inline { grid-template-columns: 1fr; gap: .7rem; }
  .about-nav__card { height: 150px; }
  .values-grid { grid-template-columns: 1fr; }
  .aafire-banner span { width: 2.5rem; height: 2.5rem; font-size: 1.1rem; }
  .prakriya-quote blockquote { font-size: 1rem; }
  .cbse-card { flex-direction: column; gap: 1rem; padding: 1.3rem; }
  .cbse-card__badge { width: 2.8rem; height: 2.8rem; font-size: 1.1rem; }
}
 
/* ── Page: float image right, content wraps ── */
.page-body-wrap {
  margin-top: 1.5rem;
  overflow: hidden;
}
.page-float-img {
  float: right;
  width: 38%;
  margin: 0 0 1.5rem 2rem;
}
.page-float-img img.page-feat-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Portrait variant — Principal's Message */
.page-float-img--portrait {
  width: 26%;
}
.page-float-img--portrait img.page-feat-img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .page-float-img {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem 0;
  }
}

/* ── Principal's Message: image left, content wraps then flows below ── */
.principal-msg {
  margin-top: 1.5rem;
  overflow: hidden;
}
.principal-msg__img {
  float: left;
  width: 38%;
  margin: 0 2.5rem 1.5rem 0;
}
.principal-msg__img img.page-feat-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  display: block;
}

@media (max-width: 768px) {
  .principal-msg__img {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem 0;
  }
}

/* ── Leadership Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 1.5rem;
}
.team-card {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.team-card__photo {
  position: relative;
  aspect-ratio: 4/4;
  overflow: hidden;
  background: var(--bg-sand);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .35s; }
.team-card:hover .team-card__photo img { transform: scale(1.05); }
.team-card__no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 3rem; opacity: .3; }
.team-card__overlay {
  position: absolute; inset: 0;
  background: rgba(139,94,42,.65);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.team-card:hover .team-card__overlay { opacity: 1; }
.team-card__overlay span { color: #fff; font-size: .85rem; font-weight: 600; letter-spacing: .05em; }
.team-card__overlay i { margin-right: .4rem; }
.team-card__info { padding: 1rem 1.1rem 1.2rem; text-align: center; }
.team-card__name { font-family: var(--font-h); font-size: 1rem; font-weight: 700; color: var(--dark); margin: 0 0 .25rem; }
.team-card__designation { font-size: .8rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 0; }

/* ── Team Modal ── */
.team-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.team-modal[hidden] { display: none; }
.team-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
}
.team-modal__box {
  position: relative; z-index: 1;
  background: var(--white);
  border-radius: 12px;
  width: 100%; max-width: 760px;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.team-modal__close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--bg-sand); border: none; border-radius: 50%;
  width: 2.2rem; height: 2.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark); font-size: 1rem; transition: background .2s;
}
.team-modal__close:hover { background: var(--primary); color: #fff; }
.team-modal__inner {
  display: flex;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.team-modal__photo {
  flex: 0 0 260px;
  height: 420px;
}
.team-modal__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.team-modal__body { flex: 1; padding: 2rem 2.2rem 2rem 1.8rem; overflow-y: auto; }
.team-modal__name { font-family: var(--font-h); font-size: 1.4rem; color: var(--dark); margin: 0 0 .35rem; }
.team-modal__desig { font-size: .8rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1.2rem; }
.team-modal__bio { font-size: .93rem; line-height: 1.75; color: #444; }
.team-modal__bio p { margin: 0 0 .8rem; }
.team-modal__bio p:last-child { margin-bottom: 0; }

@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .team-modal__inner { flex-direction: column; }
  .team-modal__photo { flex: none; min-height: 240px; }
  .team-modal__photo img { border-radius: 12px 12px 0 0; }
  .team-modal__body { padding: 1.2rem; }
}

/* ── View-only PDF button (fee-table cells) ── */
.pdf-view-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: none; padding: 0;
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
  font: inherit; cursor: pointer;
}
.pdf-view-btn:hover { color: var(--primary); }

/* ── View-only PDF Modal ── */
.pdf-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.pdf-modal[hidden] { display: none; }
.pdf-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
}
.pdf-modal__box {
  position: relative; z-index: 1;
  background: var(--white);
  border-radius: 12px;
  width: 100%; max-width: 620px;
  height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: modalIn .25s ease;
}
.pdf-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.2rem;
  border-bottom: 1px solid rgba(74,44,10,.08);
}
.pdf-modal__title { font-family: var(--font-h); font-size: 1rem; font-weight: 700; color: var(--dark); }
.pdf-modal__close {
  background: var(--bg-sand); border: none; border-radius: 50%;
  width: 2.2rem; height: 2.2rem; cursor: pointer; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark); font-size: 1rem; transition: background .2s;
}
.pdf-modal__close:hover { background: var(--primary); color: #fff; }
.pdf-modal__body { flex: 1; min-height: 0; background: #58595b; }
.pdf-modal__pages {
  height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  padding: 1rem;
  -webkit-user-select: none; user-select: none;
}
.pdf-modal__page { max-width: 100%; height: auto; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.pdf-modal__status { color: var(--white); font-size: .9rem; margin: auto; }
.pdf-modal__notice {
  margin: 0; padding: .6rem 1.2rem;
  font-size: .78rem; color: var(--text-body);
  text-align: center;
  border-top: 1px solid rgba(74,44,10,.08);
  background: var(--bg-cream);
}

@media (max-width: 580px) {
  .pdf-modal { padding: .75rem; }
  .pdf-modal__box { height: 92vh; }
}

/* ============================================================
   CORE PRACTICES LANDING PAGE
   ============================================================ */

/* ── Intro strip ── */
/* ════════════════════════════════
   CORE PRACTICES — TAB LAYOUT
════════════════════════════════ */
.cp-intro {
  background: var(--bg-ivory);
  padding: 3rem 0 2rem;
  text-align: center;
}
.cp-intro__inner { max-width: 680px; margin: 0 auto 0; }

/* Workspace */
/* ── Horizontal tab strip (core practices new layout) ── */
.cp-tab-strip-wrap {
  position: relative;
  margin-bottom: 1.8rem;
  border-radius: var(--r);
  overflow: hidden;
  background: #fdf5ea;
  border: 1px solid rgba(139,94,42,.12);
}
.cp-tab-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.cp-tab-strip .cp-tab {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem .8rem;
  border-bottom: 1px solid rgba(139,94,42,.08);
  border-right: 1px solid rgba(139,94,42,.08);
  gap: .3rem;
  border-radius: 0;
  width: 100%;
}
/* Remove right border on every 3rd tab */
.cp-tab-strip .cp-tab:nth-child(3n) { border-right: none; }
/* Remove bottom border on last row (tabs 7,8,9) */
.cp-tab-strip .cp-tab:nth-child(n+7) { border-bottom: none; }
.cp-tab-strip .cp-tab__num { font-size: .62rem; }
.cp-tab-strip .cp-tab__label { font-size: .78rem; }
.cp-tab-strip .cp-tab.active { background: #4A2C0A; }

/* Panel area standalone (new layout) */
.page-main .cp-panel-area {
  padding: 0;
  min-height: auto;
  background: transparent;
  box-shadow: none;
}
.page-main .cp-panel {
  background: #fff;
  border: 1px solid rgba(139,94,42,.1);
  border-radius: var(--r);
  padding: 2rem 2rem 2.5rem;
  box-shadow: 0 2px 16px rgba(74,44,10,.06);
}

.cp-intro__sub { font-size: .96rem; color: rgba(74,44,10,.7); margin-top: .6rem; max-width: 680px; }
.page-content__intro--compact { margin-bottom: 1.2rem; padding-bottom: 1.2rem; }

.cp-workspace-section {
  padding: 0 0 4rem;
  background: var(--bg-ivory);
}

.cp-workspace {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  align-items: start;
  border: 1px solid rgba(74,44,10,.1);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 32px rgba(74,44,10,.07);
}

/* Sidebar */
.cp-sidebar {
  background: #fdf5ea;
  border-right: 1px solid rgba(74,44,10,.1);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.cp-tab {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .95rem 1.2rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid rgba(74,44,10,.07);
  transition: background .18s, color .18s;
  width: 100%;
}

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

.cp-tab:hover { background: rgba(74,44,10,.05); }

.cp-tab.active {
  background: #4A2C0A;
}

.cp-tab__num {
  font-family: var(--font-h);
  font-size: .68rem;
  font-weight: 700;
  color: rgba(74,44,10,.4);
  letter-spacing: .08em;
  flex-shrink: 0;
  transition: color .18s;
}

.cp-tab.active .cp-tab__num { color: rgba(255,255,255,.5); }

.cp-tab__label {
  font-size: .82rem;
  font-weight: 600;
  color: #4A2C0A;
  line-height: 1.35;
  transition: color .18s;
}

.cp-tab.active .cp-tab__label { color: #fff; }

/* Panel area */
.cp-panel-area {
  padding: 2.5rem 2.5rem 2.5rem;
  min-height: 500px;
}

.cp-panel { display: none; }
.cp-panel.active { display: block; }

.cp-panel__head {
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(74,44,10,.08);
}

.cp-panel__title {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #4A2C0A;
  margin: .3rem 0 0;
  line-height: 1.2;
}

.cp-panel__body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.cp-panel__media {
  position: sticky;
  top: 100px;
}

.cp-panel__media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Real photo not supplied yet — shown in the media slot until it is. */
.cp-media-placeholder {
  border: 2px dashed rgba(139,94,42,.35);
  border-radius: 10px;
  background: var(--bg-cream);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.2rem;
}
.cp-media-placeholder i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: .7rem;
}
.cp-media-placeholder span {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-body);
}

.cp-panel__content { }

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .cp-workspace {
    grid-template-columns: 1fr;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(74,44,10,.06);
  }

  .cp-sidebar-wrap {
    position: relative;
  }

  .cp-sidebar-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 100%;
    background: linear-gradient(to right, transparent, #fdf5ea 80%);
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 1;
  }

  .cp-sidebar-wrap--end::after {
    opacity: 0;
  }

  .cp-sidebar {
    position: static;
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-right: none;
    border-bottom: 1px solid rgba(74,44,10,.1);
  }

  .cp-sidebar::-webkit-scrollbar { display: none; }

  .cp-tab {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: .85rem .9rem;
    border-bottom: none;
    border-right: 1px solid rgba(74,44,10,.07);
    min-width: 100px;
    width: auto;
    flex-shrink: 0;
    flex-grow: 0;
    gap: .35rem;
  }

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

  .cp-tab__num { font-size: .62rem; }
  .cp-tab__label { font-size: .75rem; }

  .cp-panel-area {
    padding: 1.8rem 1.4rem;
  }

  .cp-panel__body {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .cp-panel__media {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ── Mobile (≤ 580px) ── */
@media (max-width: 580px) {
  .cp-tab-strip { grid-template-columns: repeat(2, 1fr); }
  .cp-tab-strip .cp-tab:nth-child(3n) { border-right: 1px solid rgba(139,94,42,.08); }
  .cp-tab-strip .cp-tab:nth-child(2n) { border-right: none; }
  .cp-tab-strip .cp-tab:nth-child(n+7) { border-bottom: 1px solid rgba(139,94,42,.08); }
  .cp-tab-strip .cp-tab:nth-child(n+9) { border-bottom: none; }
  .page-main .cp-panel { padding: 1.2rem 1rem 1.5rem; }
  .cp-workspace-section { padding: 0 0 2.5rem; }

  .cp-tab {
    min-width: 85px;
    width: auto;
    padding: .7rem .6rem;
  }

  .cp-tab__label { font-size: .68rem; }

  .cp-panel-area {
    padding: 1.4rem 1rem;
  }

  .cp-panel__title {
    font-size: 1.35rem;
  }

  .cp-panel__media { display: none; }

  .cp-two-col { grid-template-columns: 1fr; }
}

/* ── Small phone (≤ 400px) ── */
@media (max-width: 400px) {
  .cp-tab { min-width: 76px; width: auto; padding: .6rem .5rem; }
  .cp-tab__label { font-size: .62rem; }
  .cp-skill-card { width: 100%; }
}

.cp-intro__title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #4A2C0A;
  line-height: 1.18;
  margin: .4rem 0 1rem;
}
.cp-intro__sub {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 680px;
  margin: 0 auto;
}

/* ── Practice quick-jump nav ── */
.cp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  padding: 1.8rem 0 2rem;
  border-top: 1px solid rgba(139,94,42,.12);
  margin-top: 2rem;
}
.cp-nav__pill {
  display: inline-block;
  padding: .42rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid rgba(139,94,42,.3);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--primary);
  text-transform: uppercase;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
  white-space: nowrap;
}
.cp-nav__pill:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ── Section shell ── */
.cp-section {
  padding: 6rem 0;
  background: var(--white);
}
.cp-section--light { background: var(--bg-ivory); }

.cp-section__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: flex-start;
}
.cp-section__grid--rev {
  grid-template-columns: 1fr 340px;
}
.cp-section__grid--rev .cp-section__media { order: 2; }
.cp-section__grid--rev .cp-section__content { order: 1; }

/* ── Media column (icon + number) ── */
.cp-section__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  position: sticky;
  top: 100px;
}

.cp-num {
  font-family: var(--font-h);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(139,94,42,.12);
  line-height: 1;
  letter-spacing: -.04em;
}

/* ── Diagram images ── */
.cp-diagram {
  margin: 0;
  width: 100%;
}
.cp-diagram img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  mix-blend-mode: multiply;
}
.cp-diagram--xl img {
  transform: scale(1.15);
  transform-origin: top center;
}
.cp-diagram--inline {
  margin: 1.6rem auto;
  text-align: center;
}
.cp-diagram--inline img {
  max-width: 340px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: inline-block;
  mix-blend-mode: multiply;
}

/* ── Content column ── */
.cp-section__title {
  font-family: var(--font-h);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: #4A2C0A;
  line-height: 1.22;
  margin: .3rem 0 1.2rem;
}
.cp-section__lead {
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--text-body);
  font-weight: 500;
  margin-bottom: 1rem;
}
.cp-section__body-text {
  font-size: .96rem;
  line-height: 1.82;
  color: var(--text-body);
  margin-bottom: 1rem;
}

/* ── Pull quote ── */
.cp-pullquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.4rem;
  margin: 1.4rem 0;
  background: rgba(139,94,42,.05);
  border-radius: 0 var(--r) var(--r) 0;
}
.cp-pullquote p {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-style: italic;
  color: #4A2C0A;
  line-height: 1.7;
  margin: 0 0 .4rem;
}
.cp-pullquote cite {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--primary);
  text-transform: uppercase;
}
.cp-pullquote--sm p { font-size: .95rem; }

/* ── Bullet list ── */
.cp-list-wrap { margin: 1.4rem 0; }
.cp-list-title {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  color: #4A2C0A;
  margin-bottom: 1.3rem;
}
.cp-list { display: flex; flex-direction: column; gap: .55rem; }
.cp-list--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem 1.5rem;
}
.cp-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .93rem;
  line-height: 1.65;
  color: var(--text-body);
}
.cp-list li i {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: .22rem;
  font-size: .85rem;
}

/* ── Grade progression track ── */
.cp-grade-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.4rem 0;
  border-left: 3px solid rgba(139,94,42,.2);
  padding-left: 1.5rem;
}
.cp-grade-track__item {
  position: relative;
  padding-bottom: 1.4rem;
}
.cp-grade-track__item::before {
  content: '';
  position: absolute;
  left: -1.9rem;
  top: .45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.cp-grade-track__item:last-child { padding-bottom: 0; }
.cp-grade-track__badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .22rem .8rem;
  border-radius: 50px;
  margin-bottom: .5rem;
}
.cp-grade-track__item p {
  font-size: .93rem;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}

/* ── Sub-block (e.g. SLFCs) ── */
.cp-sub-block {
  background: rgba(139,94,42,.05);
  border-radius: var(--r);
  padding: 1.4rem 1.6rem;
  margin: 1.4rem 0;
}
.cp-sub-title {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  color: #4A2C0A;
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.cp-sub-title i { color: var(--primary); font-size: .9rem; }
.cp-partner-logo { height: 28px; width: auto; max-width: 110px; object-fit: contain; flex-shrink: 0; }
.cp-sub-block p {
  font-size: .93rem;
  line-height: 1.75;
  color: var(--text-body);
  margin: .6rem 0 0;
}

/* ── Leadership skill cards ── */
.cp-skill-cards {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1.4rem 0;
}
.cp-skill-card {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--bg-cream);
  border-radius: 999px;
  padding: .55rem 1.15rem .55rem .55rem;
  transition: transform var(--tr), box-shadow var(--tr);
}
.cp-skill-card:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.cp-skill-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
  margin-bottom: 0;
}
.cp-skill-card h4 {
  font-family: var(--font-h);
  font-size: .88rem;
  font-weight: 700;
  color: #4A2C0A;
  margin: 0;
}
.cp-skill-card p {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: .25rem 0 0;
  width: 100%;
}
/* Cards with a description can't fit a pill — fall back to a soft card */
.cp-skill-card:has(p) {
  flex: 1 1 260px;
  flex-wrap: wrap;
  align-items: center;
  border-radius: var(--r);
  padding: 1.1rem 1.2rem;
}
.cp-skill-card:has(p) .cp-skill-card__icon { margin-bottom: 0; }

/* ── Outlined chip variant (e.g. Learning Principles) ── */
.cp-skill-cards--outline .cp-skill-card {
  background: transparent;
  border: 1.5px solid var(--primary);
}
.cp-skill-cards--outline .cp-skill-card:hover {
  background: var(--bg-cream);
  transform: translateY(-2px);
  box-shadow: none;
}
.cp-skill-cards--outline .cp-skill-card__icon {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

/* ── Two-column content split ── */
.cp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.4rem 0;
}
.cp-two-col__item {
  background: var(--bg-sand);
  border-radius: var(--r);
  padding: 1.2rem 1.4rem;
}
.cp-two-col__item h3 {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  color: #4A2C0A;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cp-two-col__item h3 i { color: var(--primary); font-size: .85rem; }
.cp-two-col__item p {
  font-size: .88rem;
  line-height: 1.72;
  color: var(--text-body);
  margin: 0;
}

/* ── Inspire row (EL icons) ── */
.cp-inspire-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.4rem 0;
}
.cp-inspire-card {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: var(--bg-cream);
  border: 1.5px solid rgba(139,94,42,.18);
  border-radius: 50px;
  padding: .5rem 1.1rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
}
.cp-inspire-card i { font-size: .9rem; }

/* ── Closing note ── */
.cp-closing-note {
  font-size: .92rem;
  line-height: 1.78;
  color: var(--text-body);
  font-style: italic;
  border-top: 1px solid rgba(139,94,42,.15);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* ── Belief banner ── */
.cp-belief {
  background: #4A2C0A;
  padding: 5rem 0;
}
.cp-belief__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cp-belief .sec-label { color: rgba(255,255,255,.55); }
.cp-belief__title {
  font-family: var(--font-h);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin: .6rem 0 1.2rem;
  line-height: 1.25;
}
.cp-belief__text {
  font-size: 1rem;
  line-height: 1.82;
  color: rgba(255,255,255,.82);
}
.cp-belief__text strong { color: #f9c98e; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cp-section__grid,
  .cp-section__grid--rev { grid-template-columns: 260px 1fr; gap: 2.5rem; }
  .cp-num { font-size: 3.5rem; }
}

@media (max-width: 768px) {
  .cp-section { padding: 4rem 0; }
  .cp-section__grid,
  .cp-section__grid--rev {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .cp-section__grid--rev .cp-section__media,
  .cp-section__grid--rev .cp-section__content { order: unset; }
  .cp-section__media { flex-direction: row; justify-content: flex-start; position: static; }
  .cp-num { font-size: 2.8rem; }
  .cp-two-col { grid-template-columns: 1fr; }
  .cp-list--two-col { grid-template-columns: 1fr; }
  .cp-nav { gap: .4rem; }
  .cp-nav__pill { font-size: .68rem; padding: .38rem .85rem; }
}


/* ============================================================
   PAGE: SCHOOL COMMITTEES
   ============================================================ */

/* ── Remove intro border on committees page only ── */
.page-template-page-committees .page-content__intro {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
}

/* ── Stats ── */
.sc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: 1px solid rgba(139,94,42,.12);
  border-radius: var(--r);
  margin-bottom: 2rem;
  overflow: hidden;
}
.sc-stat {
  padding: 1.75rem 2rem;
  position: relative;
  border-right: 1px solid rgba(139,94,42,.12);
}
.sc-stat:last-child { border-right: none; }
.sc-stat__accent {
  position: absolute;
  top: 0;
  left: 2rem;
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 2px 2px;
}
.sc-stat__num {
  font-family: var(--font-h);
  font-size: 2.5rem;
  font-weight: 600;
  color: #2d1a06;
  line-height: 1;
  margin-top: .75rem;
  margin-bottom: .35rem;
}
.sc-stat__label {
  font-size: .72rem;
  font-weight: 400;
  color: #7a6a58;
  letter-spacing: .02em;
  line-height: 1.5;
}

/* ── Legend ── */
.sc-legend {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  margin-bottom: 1.8rem;
}
.sc-legend__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a7a6a;
  margin-right: .4rem;
}
.sc-legend__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: #6a5a48;
}
.sc-legend__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Grid ── */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

/* ── Card ── */
.sc-card {
  background: var(--white);
  border: 1px solid rgba(139,94,42,.13);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--tr), transform var(--tr);
}
.sc-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
}

.sc-card__bar { height: 3px; width: 100%; }

.sc-card__body  { padding: 1.6rem 1.6rem 1.2rem; flex: 1; }

.sc-card__top {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1rem;
}
.sc-card__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sc-card__icon svg { width: 20px; height: 20px; }

.sc-card__num {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a7a6a;
  margin-bottom: .3rem;
}
.sc-card__name {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 700;
  color: #4A2C0A;
  line-height: 1.25;
}
.sc-card__desc {
  font-size: .875rem;
  line-height: 1.78;
  color: #6a5a48;
  margin-top: .5rem;
}

.sc-card__footer {
  border-top: 1px solid rgba(139,94,42,.1);
  padding: .9rem 1.6rem;
  background: var(--bg-ivory);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.sc-card__footer-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a7a6a;
  margin-right: .3rem;
}

/* ── Member pills ── */
.sc-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .74rem;
  padding: .28rem .55rem;
  border-radius: 20px;
}
.sc-pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sc-pill--teacher { background: #E6F1FB; color: #185FA5; }
.sc-pill--teacher .sc-pill__dot { background: #185FA5; }
.sc-pill--student { background: #EEEDFE; color: #534AB7; }
.sc-pill--student .sc-pill__dot { background: #534AB7; }
.sc-pill--parent  { background: #E1F5EE; color: #0F6E56; }
.sc-pill--parent .sc-pill__dot  { background: #0F6E56; }

/* ── Colour variants ── */
.sc-card--purple .sc-card__bar  { background: #534AB7; }
.sc-card--purple .sc-card__icon { background: #EEEDFE; color: #3C3489; }

.sc-card--blue .sc-card__bar  { background: #185FA5; }
.sc-card--blue .sc-card__icon { background: #E6F1FB; color: #0C447C; }

.sc-card--amber .sc-card__bar  { background: #854F0B; }
.sc-card--amber .sc-card__icon { background: #FAEEDA; color: #633806; }

.sc-card--green .sc-card__bar  { background: #3B6D11; }
.sc-card--green .sc-card__icon { background: #EAF3DE; color: #27500A; }

.sc-card--coral .sc-card__bar  { background: #993C1D; }
.sc-card--coral .sc-card__icon { background: #FAECE7; color: #712B13; }

.sc-card--teal .sc-card__bar  { background: #0F6E56; }
.sc-card--teal .sc-card__icon { background: #E1F5EE; color: #085041; }

/* ── Footer note ── */
.sc-note {
  margin-top: 3rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(139,94,42,.15);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  background: var(--white);
}
.sc-note p {
  font-size: .85rem;
  color: #6a5a48;
  line-height: 1.75;
}
.sc-note strong { color: #4A2C0A; }

/* ── Card stagger animation ── */
.sc-grid .sc-card:nth-child(1) { transition-delay: .05s; }
.sc-grid .sc-card:nth-child(2) { transition-delay: .12s; }
.sc-grid .sc-card:nth-child(3) { transition-delay: .19s; }
.sc-grid .sc-card:nth-child(4) { transition-delay: .26s; }
.sc-grid .sc-card:nth-child(5) { transition-delay: .33s; }
.sc-grid .sc-card:nth-child(6) { transition-delay: .40s; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .sc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sc-stats { grid-template-columns: 1fr; }
  .sc-stat { border-right: none; border-bottom: 1px solid rgba(139,94,42,.12); }
  .sc-stat:last-child { border-bottom: none; }
  .sc-card__body { padding: 1.2rem 1.2rem .9rem; }
  .sc-card__footer { padding: .8rem 1.2rem; }
}

/* ============================================================
   PHILOSOPHY PAGES — Manthan / Samstha / Prakriya
   ============================================================ */

/* Shared intro block */
.phil-intro {
    background: rgba(246, 133, 55, .05);
    border-left: 4px solid var(--highlight);
    border-radius: 0 var(--r) var(--r) 0;
    padding: 1.5rem 1.8rem;
    margin-bottom: 2.5rem;
}
.phil-intro p { margin: 0 0 .8rem; line-height: 1.75; }
.phil-intro p:last-child { margin-bottom: 0; }

/* Blockquote */
.phil-quote {
    margin: 1.8rem 0;
    padding: 1.4rem 2rem;
    background: var(--bg-sand);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--r) var(--r) 0;
    font-style: italic;
}
.phil-quote p { font-size: 1.1rem; line-height: 1.7; margin: 0 0 .5rem; color: var(--primary); }
.phil-quote cite { font-size: .85rem; font-style: normal; color: var(--accent); font-weight: 600; }

/* Closing conviction */
.phil-conviction {
    margin: 2.5rem 0;
    padding: 1.5rem 1.8rem;
    background: #FDF8F2;
    border-radius: var(--r);
    border: 1px solid rgba(74,44,10,.08);
}
.phil-conviction p { margin: 0 0 .8rem; line-height: 1.75; }
.phil-conviction p:last-child { margin-bottom: 0; }

/* ── MANTHAN — Questions ─────────────────────────────────────── */
.phil-questions { margin-bottom: 2.5rem; }
.phil-questions__hdr {
    font-family: var(--font-h);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--highlight);
    display: inline-block;
}
.phil-q-group {
    background: var(--white);
    border: 1px solid rgba(74,44,10,.08);
    border-radius: var(--r);
    padding: 1.3rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--sh);
}
.phil-q-group__title {
    font-family: var(--font-h);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--highlight);
    margin: 0 0 .9rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.phil-q-group ul {
    margin: 0;
    padding-left: 1.3rem;
    list-style: none;
}
.phil-q-group ul li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: .5rem;
    line-height: 1.65;
    font-size: .93rem;
    color: rgba(46,34,16,.85);
}
.phil-q-group ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--highlight);
    font-weight: 700;
}

/* ── SAMSTHA — AAFIRE badge ──────────────────────────────────── */
.phil-aafire-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    margin-top: 1.2rem;
}
.phil-aafire-badge > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    color: #fff;
    font-family: var(--font-h);
    font-size: 1.1rem;
    font-weight: 700;
}
.phil-aafire-badge {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.phil-aafire-badge p {
    width: 100%;
    text-align: center;
    font-size: .82rem;
    color: rgba(46,34,16,.65);
    letter-spacing: .05em;
    margin: .4rem 0 0;
}

/* ── SAMSTHA — Values grid ───────────────────────────────────── */
.phil-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
    margin-bottom: 2.5rem;
}
.phil-value {
    background: var(--white);
    border: 1px solid rgba(74,44,10,.08);
    border-radius: var(--r);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--sh);
    transition: transform var(--tr), box-shadow var(--tr);
}
.phil-value:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.phil-value__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(246,133,55,.15), rgba(246,133,55,.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--highlight);
    margin-bottom: .9rem;
}
.phil-value__title {
    font-family: var(--font-h);
    font-size: .95rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 .6rem;
}
.phil-value p { font-size: .87rem; line-height: 1.65; color: rgba(46,34,16,.82); margin: 0; }

/* ── PRAKRIYA — 3 Questions ──────────────────────────────────── */
.phil-3q { margin-bottom: 2.5rem; }
.phil-3q__hdr {
    font-family: var(--font-h);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: .5rem;
}
.phil-3q__sub { color: rgba(46,34,16,.65); font-size: .9rem; margin-bottom: 1.5rem; }
.phil-3q__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.phil-3q__item {
    background: var(--primary);
    border-radius: var(--r);
    padding: 1.8rem 1.2rem 1.4rem;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
}
.phil-3q__num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-h);
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}
.phil-3q__text {
    font-family: var(--font-h);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.4;
    margin: 0;
}

/* ── PRAKRIYA — Guiding Principles ──────────────────────────── */
.phil-principles { margin-bottom: 2.5rem; }
.phil-principles__hdr {
    font-family: var(--font-h);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--highlight);
    display: inline-block;
}
.phil-principle {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid rgba(74,44,10,.08);
    border-radius: var(--r);
    padding: 1.3rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--sh);
    transition: transform var(--tr), box-shadow var(--tr);
}
.phil-principle:hover { transform: translateX(4px); box-shadow: var(--sh-lg); }
.phil-principle__icon {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}
.phil-principle__body { flex: 1; }
.phil-principle__body h3 {
    font-family: var(--font-h);
    font-size: .95rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 .5rem;
}
.phil-principle__body p { font-size: .88rem; line-height: 1.65; color: rgba(46,34,16,.82); margin: 0; }

/* ── Prev / Next navigation ──────────────────────────────────── */
.phil-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(74,44,10,.1);
}
.phil-nav--both { justify-content: space-between; }
.phil-nav__card {
    display: flex;
    align-items: center;
    gap: .7rem;
    background: var(--white);
    border: 1px solid rgba(74,44,10,.1);
    border-radius: var(--r);
    padding: .9rem 1.2rem;
    text-decoration: none;
    color: var(--primary);
    box-shadow: var(--sh);
    transition: background var(--tr), box-shadow var(--tr), color var(--tr);
    max-width: 280px;
}
.phil-nav__card:hover { background: var(--primary); color: #fff; box-shadow: var(--sh-lg); }
.phil-nav__card--prev { flex-direction: row; }
.phil-nav__label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .6; display: block; line-height: 1; }
.phil-nav__title { font-size: .85rem; font-weight: 600; line-height: 1.3; }
.phil-nav__arrow { font-size: .85rem; flex-shrink: 0; }
.phil-nav__card > div { display: flex; flex-direction: column; gap: .2rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .phil-values { grid-template-columns: 1fr; }
    .phil-3q__grid { grid-template-columns: 1fr; }
    .phil-nav--both { flex-direction: column; }
    .phil-nav__card { max-width: 100%; }
}

/* ── MANTHAN GALLERY ─────────────────────────────────────────── */
.phil-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-bottom: 2.5rem;
    border-radius: var(--r);
    overflow: hidden;
}
.phil-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.phil-gallery img:hover { transform: scale(1.04); }
@media (max-width: 768px) {
    .phil-gallery { grid-template-columns: 1fr; }
    .phil-gallery img { height: 220px; }
}


/* ── PHILOSOPHY HERO / FEATURE IMAGE ────────────────────────── */
.phil-hero-img {
    margin-bottom: 2.5rem;
    text-align: center;
}
.phil-hero-img img {
    max-width: 480px;
    width: 100%;
    height: auto;
    display: inline-block;
    border-radius: var(--r);
}
@media (max-width: 768px) {
    .phil-hero-img img { max-width: 100%; }
}

/* ============================================================
   SAMSTHA PAGE REDESIGN
   ============================================================ */

/* ── Split: intro text + dharma wheel ───────────────────────── */
.sam-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
    background: var(--white);
    border: 1px solid rgba(74,44,10,.08);
    border-radius: var(--r);
    padding: 2rem 2.2rem;
    box-shadow: var(--sh);
}
.sam-split__lead {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--primary);
    margin-bottom: 1rem;
}
.sam-split__text p { line-height: 1.75; margin-bottom: 1.2rem; }
.sam-split__img {
    display: flex;
    justify-content: center;
    align-items: center;
}
.sam-split__img img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: var(--r);
}

/* AAFIRE pills */
.sam-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
}
.sam-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(246,133,55,.1);
    color: var(--accent);
    border: 1px solid rgba(246,133,55,.3);
    border-radius: 999px;
    padding: .3rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.sam-pill strong { color: var(--highlight); }

/* ── Values list ─────────────────────────────────────────────── */
.sam-values { margin-bottom: 2.5rem; }
.sam-values__hdr {
    font-family: var(--font-h);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.4rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--highlight);
    display: inline-block;
}
.sam-value {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0 1.2rem;
    align-items: start;
    background: var(--white);
    border: 1px solid rgba(74,44,10,.08);
    border-left: 4px solid var(--highlight);
    border-radius: 0 var(--r) var(--r) 0;
    padding: 1.3rem 1.5rem 1.3rem 1.2rem;
    margin-bottom: 1rem;
    box-shadow: var(--sh);
    transition: transform var(--tr), box-shadow var(--tr);
}
.sam-value:hover { transform: translateX(4px); box-shadow: var(--sh-lg); }
.sam-value__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(246,133,55,.15), rgba(246,133,55,.05));
    border: 1px solid rgba(246,133,55,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--highlight);
    flex-shrink: 0;
}
.sam-value__body h3 {
    font-family: var(--font-h);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 .5rem;
}
.sam-value__body p {
    font-size: .88rem;
    line-height: 1.68;
    color: rgba(46,34,16,.82);
    margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .sam-split { grid-template-columns: 1fr; }
    .sam-split__img { order: -1; }
    .sam-split__img img { max-width: 280px; }
}
@media (max-width: 600px) {
    .sam-value { grid-template-columns: 44px 1fr; gap: 0 .8rem; }
}

/* ============================================================
   PRAKRIYA PAGE REDESIGN
   ============================================================ */

/* ── Hero: image left, quote right ──────────────────────────── */
.prak-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(74,44,10,.14);
    margin-bottom: 2.5rem;
}
.prak-hero__img { position: relative; min-height: 320px; }
.prak-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.prak-hero__quote {
    background: var(--primary);
    color: #fff;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}
.prak-hero__qi {
    font-size: 2.2rem;
    color: var(--highlight);
    opacity: .8;
    line-height: 1;
}
.prak-hero__quote p {
    font-family: var(--font-h);
    font-size: 1.05rem;
    line-height: 1.65;
    font-style: italic;
    color: rgba(255,255,255,.92);
    margin: 0;
}
.prak-hero__quote cite {
    font-size: .82rem;
    font-style: normal;
    color: var(--highlight);
    font-weight: 600;
    letter-spacing: .04em;
}

/* ── Intro para ──────────────────────────────────────────────── */
.prak-intro {
    margin-bottom: 2.5rem;
    padding: 1.4rem 1.8rem;
    background: rgba(246,133,55,.05);
    border-left: 4px solid var(--highlight);
    border-radius: 0 var(--r) var(--r) 0;
    line-height: 1.78;
}

/* ── 3 Questions ─────────────────────────────────────────────── */
.prak-3q { margin-bottom: 3rem; }
.prak-3q__hdr {
    font-family: var(--font-h);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: .5rem;
}
.prak-3q__sub {
    font-size: .9rem;
    color: rgba(46,34,16,.62);
    margin-bottom: 1.6rem;
    line-height: 1.6;
}
.prak-3q__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.prak-3q__item {
    background: var(--white);
    border: 1px solid rgba(74,44,10,.08);
    border-radius: var(--r);
    padding: 2rem 1.4rem 1.6rem;
    text-align: center;
    box-shadow: var(--sh);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform var(--tr), box-shadow var(--tr);
}
.prak-3q__item:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.prak-3q__bubble {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    color: #fff;
    font-family: var(--font-h);
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(246,133,55,.35);
}
.prak-3q__text {
    font-size: .9rem;
    line-height: 1.55;
    color: var(--primary);
    margin: 0;
}
.prak-3q__text strong { color: var(--highlight); }

/* ── Guiding Principles ──────────────────────────────────────── */
.prak-principles { margin-bottom: 2.5rem; }
.prak-principles__hdr {
    font-family: var(--font-h);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.4rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--highlight);
    display: inline-block;
}
.prak-principle {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.3rem 0;
    border-bottom: 1px solid rgba(74,44,10,.07);
    transition: background var(--tr);
}
.prak-principle:last-child { border-bottom: none; }
.prak-principle__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(246,133,55,.18), rgba(246,133,55,.06));
    border: 1px solid rgba(246,133,55,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--highlight);
}
.prak-principle__body h3 {
    font-family: var(--font-h);
    font-size: .96rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 .45rem;
}
.prak-principle__body p {
    font-size: .88rem;
    line-height: 1.68;
    color: rgba(46,34,16,.8);
    margin: 0;
}

/* ── Closing belief ──────────────────────────────────────────── */
.prak-belief {
    background: rgba(246, 133, 55, .08);
    border: 1px solid rgba(246, 133, 55, .2);
    border-left: 4px solid var(--highlight);
    border-radius: 0 var(--r) var(--r) 0;
    padding: 2rem 2.2rem;
    margin-bottom: 2.5rem;
}
.prak-belief p {
    line-height: 1.78;
    margin: 0 0 .8rem;
    color: rgba(46, 34, 16, .85);
}
.prak-belief p:last-child { margin-bottom: 0; }
.prak-belief strong { color: var(--highlight); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .prak-hero { grid-template-columns: 1fr; }
    .prak-hero__img { min-height: 240px; }
    .prak-3q__grid { grid-template-columns: 1fr; }
}

/* ── Campus Intro ── */
.campus-intro {
  margin-bottom: 2rem;
}
.campus-intro p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-body);
}
.campus-intro p + p {
  margin-top: 1rem;
}

/* ── Campus Photo ── */
.cf-photo {
  margin-top: 2rem;
  border-radius: var(--r);
  overflow: hidden;
}
.cf-photo img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* ── Campus Facility Categories ── */
.cf-category {
  padding: 3.2rem 0;
  border-top: 1px solid rgba(139,94,42,.14);
  margin-top: 1rem;
}
.cf-category--dark {
  background: #4A2C0A;
  border-top: none;
  border-radius: var(--r);
  padding: 2.6rem 2.2rem;
}
.cf-category__head {
  margin-bottom: 2.2rem;
}
.cf-category__head h2 {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  color: var(--primary);
  margin-top: .3rem;
}
.cf-category--dark .cf-category__head h2 { color: var(--white); }
.cf-category--dark .sec-label { color: rgba(255,255,255,.55); }

.cf-facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cf-fcard {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  border: 1px solid rgba(74,44,10,.07);
  transition: transform var(--tr), box-shadow var(--tr);
}
.cf-fcard:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.cf-fcard__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-sand);
}
.cf-fcard__body { padding: 1.4rem 1.5rem; }
.cf-fcard__title {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--primary);
  margin-bottom: .4rem;
}
.cf-fcard__desc {
  font-size: .87rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}
.cf-fcard--full {
  grid-column: 1 / -1;
}
.cf-fcard--full .cf-fcard__img {
  aspect-ratio: 21 / 6;
}

.cf-closing {
  text-align: center;
  padding: 3rem 1rem .5rem;
  max-width: 620px;
  margin: 0 auto;
}
.cf-closing__rule {
  width: 44px;
  height: 2px;
  background: var(--primary);
  margin: 0 auto 1.5rem;
}
.cf-closing p {
  font-family: var(--font-h);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1.5;
}

/* ── Campus Gallery Slider ── */
.cf-slider { margin-top: 1rem; }
.cf-slider__wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.cf-slider__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: .5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cf-slider__track::-webkit-scrollbar { display: none; }
.cf-slider__slide {
  flex: 0 0 calc((100% - 2rem) / 3);
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  scroll-snap-align: start;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #e8e8e8;
}
.cf-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.cf-slider__slide:hover img { transform: scale(1.05); }
.cf-slider__nav {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  transition: background var(--tr), color var(--tr);
}
.cf-slider__nav:hover { background: var(--primary); color: var(--white); }

/* ── Campus Gallery Lightbox ── */
.cf-lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.cf-lb.is-open { opacity: 1; pointer-events: all; }
.cf-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(6px);
}
.cf-lb__shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 3rem 4rem;
  box-sizing: border-box;
}
.cf-lb__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}
.cf-lb__img-wrap img {
  max-width: 85vw;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
  transition: opacity .25s ease;
}
.cf-lb__btn {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s ease;
  z-index: 2;
}
.cf-lb__btn:hover { background: rgba(255,255,255,.25); }
.cf-lb__close { top: 1.2rem; right: 1.4rem; }
.cf-lb__prev  { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.cf-lb__next  { right: 1.4rem; top: 50%; transform: translateY(-50%); }
.cf-lb__counter {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.65);
  font-size: .8rem;
  letter-spacing: .08em;
}

@media (max-width: 860px) {
  .cf-facility-grid { grid-template-columns: 1fr 1fr; }
  .cf-slider__slide { flex-basis: calc((100% - 1rem) / 2); }
}
@media (max-width: 560px) {
  .cf-fcard--full .cf-fcard__img { aspect-ratio: 4 / 3; }
  .cf-facility-grid { grid-template-columns: 1fr; }
  .cf-slider__slide { flex-basis: 100%; }
  .cf-slider__wrap { gap: .4rem; }
  .cf-slider__nav { width: 34px; height: 34px; font-size: .72rem; }
  .cf-lb__shell { padding: 3rem 1rem; }
  .cf-lb__prev  { left: .4rem; }
  .cf-lb__next  { right: .4rem; }
}

/* ════════════════════════════════
   CAREERS PAGE
════════════════════════════════ */
.careers-wrap {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

/* Hero Band — light cream theme (matches School Profile page) */
.cr-hero {
  background: #E9DCC3;
  border-radius: 0;
  min-height: 380px;
  padding: 1.5rem 0 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid rgba(74,44,10,.1);
}
.cr-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(139,94,42,.08);
  pointer-events: none;
  z-index: 0;
}
.cr-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 30%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(139,94,42,.08);
  pointer-events: none;
  z-index: 0;
}
.cr-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.cr-hero__title {
  font-family: var(--font-h);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: .4rem;
  line-height: 1.1;
}
.cr-hero__sub {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(46,34,16,.65);
  margin-bottom: 1.25rem;
}
.cr-hero__sub:last-child {
  margin-bottom: 0;
}
.cr-hero__desc {
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(46,34,16,.78);
  max-width: 600px;
}

/* Photo variant — banner image pulled from the page's "Banner Image" meta box */
.cr-hero--photo {
  background-size: cover;
  background-position: center;
  min-height: 450px;
  padding: 3rem 0;
}
.cr-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  top: 0; right: 0;
  width: auto; height: auto;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(20,14,6,.32) 0%, rgba(20,14,6,.68) 100%);
  pointer-events: none;
  z-index: 0;
}
.cr-hero--photo::after {
  display: none;
}
.cr-hero--photo .container {
  position: relative;
  z-index: 1;
}
.cr-hero--photo .cr-eyebrow { color: #F3E6C8; }
.cr-hero--photo .cr-hero__title { color: #fff; }
.cr-hero--photo .cr-hero__sub { color: rgba(255,255,255,.88); }
.cr-hero--photo .cr-hero__desc { color: rgba(255,255,255,.85); }

/* Labels & titles */
.cr-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #888780;
  margin-bottom: .75rem;
  display: block;
}
.cr-section-title {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #1C1C1A;
  margin-bottom: .3rem;
}
.cr-section-sub {
  font-size: .875rem;
  color: #5F5E5A;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Pillars */
.cr-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 2.5rem;
}
.cr-pillar {
  background: #fff;
  border: .5px solid rgba(44,26,14,.12);
  border-top: 3px solid #8B5E3C;
  border-radius: 12px;
  padding: 1.25rem 1rem;
}
.cr-pillar__icon {
  font-size: 1.3rem;
  color: #8B5E3C;
  display: block;
  margin-bottom: 10px;
}
.cr-pillar__title {
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1C1C1A;
}
.cr-pillar__desc {
  font-size: .75rem;
  color: #5F5E5A;
  line-height: 1.65;
}

/* AARAMBH */
.cr-aarambh {
  background: var(--bg-sand);
  border: .5px solid rgba(44,26,14,.1);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.cr-aarambh__badge {
  flex-shrink: 0;
  background: #5C3317;
  color: #FAF3EB;
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  text-align: center;
  letter-spacing: .04em;
  line-height: 1.2;
}
.cr-aarambh__badge span {
  display: block;
  font-size: 9px;
  font-family: var(--font-b);
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(250,243,235,.6);
  margin-top: 5px;
}
.cr-aarambh__content h3 {
  font-family: var(--font-h);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: #1C1C1A;
}
.cr-aarambh__content p {
  font-size: .85rem;
  color: #5F5E5A;
  line-height: 1.8;
  margin-bottom: .5rem;
}
.cr-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: .75rem;
}
.cr-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(139,94,60,.1);
  color: #5C3317;
  border: .5px solid rgba(139,94,60,.25);
}

/* Divider */
.cr-divider {
  border: none;
  border-top: .5px solid rgba(44,26,14,.12);
  margin: 0 0 2rem;
}

/* Vacancies header */
.cr-vacancies-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.cr-count-badge {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(139,94,60,.1);
  color: #5C3317;
  border: .5px solid rgba(139,94,60,.25);
}

/* Vacancy cards */
.cr-vacancies {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cr-vcard {
  background: #fff;
  border: .5px solid rgba(44,26,14,.12);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s;
}
.cr-vcard:hover { border-color: rgba(139,94,60,.35); }
.cr-vcard__top { padding: 1.25rem 1.25rem 1rem; }
.cr-vrow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.cr-vrole {
  font-family: var(--font-h);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1C1C1A;
}
.cr-vdept { font-size: .75rem; color: #888780; margin-top: 3px; }
.cr-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}
.cr-badge--ft {
  background: rgba(15,110,86,.1);
  color: #0F6E56;
  border: .5px solid rgba(15,110,86,.2);
}
.cr-vmeta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cr-mi {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: #888780;
}
.cr-mi i { font-size: .8rem; }
.cr-vactions { display: flex; gap: 8px; flex-wrap: wrap; }

.cr-jd-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 500;
  color: #5F5E5A;
  background: var(--bg-sand);
  border: .5px solid rgba(44,26,14,.15);
  border-radius: 8px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background .15s;
}
.cr-jd-btn:hover { background: #e4ddd2; }
.cr-chevron { transition: transform .2s; font-size: .8rem; }
.cr-jd-btn.open .cr-chevron { transform: rotate(180deg); }

.cr-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 500;
  color: #5C3317;
  background: transparent;
  border: .5px solid rgba(139,94,60,.4);
  border-radius: 8px;
  padding: 7px 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.cr-apply-btn:hover { background: rgba(139,94,60,.08); }

/* JD Drawer */
.cr-jd-drawer {
  display: none;
  border-top: .5px solid rgba(44,26,14,.1);
  background: var(--bg-cream);
  padding: 1.5rem 1.75rem 1.75rem;
}
.cr-jd-drawer.open { display: block; }
.cr-jd-intro {
  font-size: .85rem;
  color: #5F5E5A;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.cr-jd-heading {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #888780;
  margin: 1.25rem 0 .6rem;
}
.cr-jd-heading:first-of-type { margin-top: 0; }
.cr-jd-list { list-style: none; padding: 0; margin: 0; }
.cr-jd-list li {
  font-size: .85rem;
  color: #1C1C1A;
  line-height: 1.75;
  padding: 3px 0 3px 18px;
  position: relative;
}
.cr-jd-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #8B5E3C;
}

/* CTA Strip */
.cr-cta {
  margin-top: 2rem;
  background: var(--bg-sand);
  border: .5px solid rgba(44,26,14,.1);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cr-cta__heading {
  font-family: var(--font-h);
  font-size: 1.35rem;
  font-weight: 700;
  color: #1C1C1A;
  margin-bottom: 4px;
}
.cr-cta__sub { font-size: .85rem; color: #5F5E5A; }
.cr-cta__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.cr-cta__email { font-size: .78rem; color: #5F5E5A; margin: 0; }
.cr-cta__email a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; transition: color var(--tr); }
.cr-cta__email a:hover { color: #2C1A0E; }
.cr-cta__btn {
  font-size: .85rem;
  font-weight: 500;
  color: #FAF3EB;
  background: #5C3317;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s;
}
.cr-cta__btn:hover { background: #2C1A0E; color: #FAF3EB; }

/* Responsive — tablet (≤ 768px) */
@media (max-width: 768px) {
  .cr-pillars { grid-template-columns: repeat(3, 1fr); }
  .cr-aarambh { padding: 1.5rem; gap: 1.5rem; }
  .cr-cta { padding: 1.25rem 1.5rem; }
  .cr-vcard__top { padding: 1rem; }
  .cr-jd-drawer { padding: 1.25rem 1rem; }
}

/* Responsive — mobile (≤ 580px) */
@media (max-width: 580px) {
  .cr-hero { padding: 2.5rem 0; }
  .cr-hero--photo { min-height: 220px; padding: 2rem 0; }
  .cr-eyebrow { font-size: 10px; margin-bottom: .75rem; }
  .cr-hero__sub { font-size: 1.05rem; margin-bottom: 1rem; }
  .cr-hero__desc { font-size: .88rem; max-width: 100%; }
  .cr-pillars { grid-template-columns: 1fr 1fr; }
  .cr-aarambh { flex-direction: column; gap: 1rem; padding: 1.25rem; }
  .cr-aarambh__badge { align-self: flex-start; }
  .cr-vacancies-header { align-items: flex-start; flex-direction: column; }
  .cr-vactions { flex-direction: column; }
  .cr-jd-btn, .cr-apply-btn { width: 100%; justify-content: center; }
  .cr-cta { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
  .cr-cta__action { width: 100%; }
  .cr-cta__btn { width: 100%; justify-content: center; }
}

/* Responsive — small phone (≤ 400px) */
@media (max-width: 400px) {
  .cr-pillars { grid-template-columns: 1fr; }
  .cr-hero__title { font-size: 1.8rem; }
  .cr-hero__sub { font-size: .95rem; }
  .cr-hero__desc { font-size: .85rem; line-height: 1.65; }
  .cr-aarambh { padding: 1rem; }
}

/* ════════════════════════════════
   DIGITAL LITERACY PAGE
════════════════════════════════ */
.dl-purpose {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-body);
  border-left: 4px solid var(--primary);
  padding-left: 1.4rem;
  margin-bottom: 2.5rem;
}

.dl-section {
  margin-bottom: 3rem;
}

.dl-section__hdr {
  margin-bottom: 1.2rem;
}

.dl-section__title {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #4A2C0A;
  margin: .25rem 0 .75rem;
}

/* ISTE block */
.dl-iste {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.dl-iste__content p {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: .75rem;
}

.dl-iste__sub {
  font-weight: 600;
  color: #4A2C0A !important;
}

.dl-iste__list {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.dl-iste__list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-body);
}

.dl-iste__list li i {
  color: var(--primary);
  font-size: .85rem;
  flex-shrink: 0;
}

.dl-iste__img img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* PBL Cards */
.dl-pbl-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.dl-pbl-card {
  background: var(--bg-ivory);
  border: 1px solid rgba(74,44,10,.08);
  border-radius: 12px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.dl-pbl-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(139,94,42,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.dl-pbl-card p {
  font-size: .88rem;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0;
}

/* 21st Century Skills */
.dl-21c {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-sand);
  border-radius: 14px;
  padding: 2rem;
}

.dl-21c__content p {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-top: .75rem;
}

.dl-21c__img img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* ════════════════════════════════
   ADMISSIONS OVERVIEW PAGE
════════════════════════════════ */
.adm-intro {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-body);
  border-left: 4px solid var(--primary);
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.adm-intro p { margin-bottom: .75rem; }
.adm-intro p:last-child { margin-bottom: 0; }

.adm-section__hdr { margin: 3rem 0 1.2rem; }
.adm-section__title {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #4A2C0A;
  margin: .25rem 0 0;
}

/* Admission Pathways */
.adm-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.adm-track {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(74,44,10,.08);
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr);
}

.adm-track:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
}

.adm-track__img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.adm-track__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.adm-track:hover .adm-track__img img {
  transform: scale(1.05);
}

.adm-track__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem 1.4rem;
  border-top: 3px solid var(--primary);
}

.adm-track__title {
  font-family: var(--font-h);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: #4A2C0A;
  margin: 0 0 .75rem;
}

.adm-track__content p {
  font-size: .92rem;
  line-height: 1.8;
  color: var(--text-body);
  margin: 0 0 .75rem;
}

.adm-track__content p:last-of-type {
  margin-bottom: 0;
}

.adm-track__btn {
  margin-top: 1.2rem;
  align-self: flex-start;
}

@media (max-width: 767px) {
  .adm-tracks {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 580px) {
  .adm-track__content {
    padding: 1.3rem 1.1rem;
  }
  .adm-track__title {
    font-size: 1.1rem;
  }
  .adm-track__content p {
    font-size: .9rem;
  }
  .adm-track__btn {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* Future Ready */
.dl-future {
  background: linear-gradient(135deg, #2C1A0E 0%, #5C3317 100%);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.dl-future::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.dl-future .sec-label { color: #D4A96A; }

.dl-future__title {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #FAF3EB;
  margin: .3rem 0 1rem;
}

.dl-future__inner p {
  font-size: .95rem;
  line-height: 1.85;
  color: rgba(250,243,235,.82);
  margin-bottom: .75rem;
}

.dl-future__inner p strong { color: #D4A96A; }

/* Responsive */
@media (max-width: 768px) {
  .dl-iste { grid-template-columns: 1fr; }
  .dl-iste__img { order: -1; }
  .dl-21c { grid-template-columns: 1fr; padding: 1.5rem; }
  .dl-21c__img { order: -1; }
}

@media (max-width: 580px) {
  .dl-pbl-cards { grid-template-columns: 1fr; }
  .dl-future { padding: 1.5rem; }
}

/* ════════════════════════════════
   PHYSICAL LITERACY PAGE
════════════════════════════════ */
.pl-quote {
  background: var(--bg-sand);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 1.8rem;
  margin: 0 0 2.5rem;
}
.pl-quote p {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-style: italic;
  color: #4A2C0A;
  line-height: 1.75;
  margin-bottom: .5rem;
}
.pl-quote cite {
  font-size: .8rem;
  color: #888;
  font-style: normal;
}

/* Intro */
.pl-intro__lead {
  font-size: .95rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 1.75rem;
}
.pl-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}
.pl-intro__text p {
  font-size: .95rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: .75rem;
}
.pl-domains {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin: .75rem 0;
}
.pl-domain {
  display: flex;
  align-items: center;
  background: rgba(139,94,42,.08);
  border-radius: 10px;
  padding: .85rem 1rem;
  transition: background .2s ease, transform .2s ease;
}
.pl-domain:hover {
  background: rgba(139,94,42,.14);
  transform: translateY(-2px);
}
.pl-domain__hdr {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .82rem;
  font-weight: 600;
  color: #4A2C0A;
  line-height: 1.3;
}
.pl-domain__hdr i {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139,94,42,.15);
  border-radius: 50%;
  color: var(--primary);
  font-size: .8rem;
}
.pl-intro__img img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

/* Sections */
.pl-section { margin-bottom: 3rem; }
.pl-section__hdr { margin-bottom: 1rem; }
.pl-section__title {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #4A2C0A;
  margin: .25rem 0 .6rem;
}
.pl-section__lead {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

/* Three tiers */
.pl-tiers {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid rgba(74,44,10,.1);
  border-radius: 14px;
  overflow: hidden;
}
.pl-tier {
  display: flex;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid rgba(74,44,10,.08);
}
.pl-tier:last-child { border-bottom: none; }
.pl-tier__badge {
  flex-shrink: 0;
  width: 90px;
  background: #4A2C0A;
  color: #FAF3EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: .85rem;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .08em;
  padding: 1.5rem .5rem;
}
.pl-tier:nth-child(2) .pl-tier__badge { background: #5C3317; }
.pl-tier:nth-child(3) .pl-tier__badge { background: #8B5E3C; }
.pl-tier__body {
  padding: 1.5rem 1.8rem;
  flex: 1;
}
.pl-tier__title {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 700;
  color: #4A2C0A;
  margin-bottom: .2rem;
}
.pl-tier__grade {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}
.pl-tier__body p {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--text-body);
  margin: 0;
}

/* Mastery cards */
.pl-mastery-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.pl-mastery-card {
  background: var(--bg-ivory);
  border: 1px solid rgba(74,44,10,.08);
  border-radius: 12px;
  padding: 1.5rem;
}
.pl-mastery-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(139,94,42,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: .9rem;
}
.pl-mastery-card h4 {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  color: #4A2C0A;
  margin-bottom: .6rem;
  line-height: 1.3;
}
.pl-mastery-card p {
  font-size: .85rem;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0;
}

/* Signature Events */
.pl-events { margin-bottom: 2.5rem; }
.pl-events__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.pl-event {
  background: #fff;
  border: 1px solid rgba(74,44,10,.1);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.pl-event--wide {
  grid-column: span 2;
}
.pl-event__name {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
  color: #4A2C0A;
}
.pl-event__desc {
  font-size: .82rem;
  color: #5F5E5A;
}

/* Closing */
.pl-closing {
  background: var(--bg-sand);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 1rem;
}
.pl-closing p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-body);
  margin: 0;
}
.pl-closing strong { color: #4A2C0A; }

/* Responsive */
@media (max-width: 768px) {
  .pl-intro { grid-template-columns: 1fr; }
  .pl-intro__img { order: -1; }
  .pl-mastery-cards { grid-template-columns: 1fr 1fr; }
  .pl-tier__badge { width: 70px; font-size: .75rem; }
}
@media (max-width: 580px) {
  .pl-domains { grid-template-columns: 1fr; }
  .pl-mastery-cards { grid-template-columns: 1fr; }
  .pl-events__grid { grid-template-columns: 1fr; }
  .pl-event--wide { grid-column: span 1; }
  .pl-tier__badge { writing-mode: horizontal-tb; width: auto; padding: .75rem 1rem; }
  .pl-tier { flex-direction: column; }
  .pl-closing { padding: 1.25rem; }
}

/* ════════════════════════════════
   FINE ARTS & VISUAL ARTS PAGE
════════════════════════════════ */
.fa-belief {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-body);
  font-style: italic;
  border-left: 4px solid var(--primary);
  padding-left: 1.4rem;
  margin-bottom: 2.5rem;
}

/* Section headers */
.va-section { margin-bottom: 3rem; }
.va-section__hdr { margin-bottom: 1.2rem; }
.va-section__title {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #4A2C0A;
  margin: .25rem 0 .3rem;
}
.va-section__sub {
  font-size: .9rem;
  font-style: italic;
  color: #888;
}
.va-section__lead {
  font-size: .95rem;
  line-height: 1.85;
  color: var(--text-body);
}

/* Tagore quote */
.fa-quote {
  background: var(--bg-sand);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.75rem;
}
.fa-quote p {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-style: italic;
  color: #4A2C0A;
  line-height: 1.75;
  margin-bottom: .4rem;
}
.fa-quote cite {
  font-size: .78rem;
  color: #888;
  font-style: normal;
}

/* Centered diagram below Tagore quote */
.fa-diagram {
  text-align: center;
  margin: 0 0 2rem;
}
.fa-diagram img {
  max-width: 100%;
  width: 85%;
  height: auto;
  border-radius: 14px;
  display: inline-block;
}
.fa-diagram svg {
  width: 100%;
  max-width: 880px;
  height: auto;
  display: inline-block;
}
@media (max-width: 767px) {
  .fa-diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fa-diagram svg { width: 880px; flex-shrink: 0; }
}

/* Intro two-col */
.fa-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.fa-intro__text p {
  font-size: .95rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: .75rem;
}
.fa-intro__img img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

/* Mission block */
.fa-mission {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #2C1A0E 0%, #5C3317 100%);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 3rem;
}
.fa-mission__icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4A96A;
  font-size: 1.3rem;
}
.fa-mission__content h3 {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FAF3EB;
  margin-bottom: .6rem;
}
.fa-mission__content p {
  font-size: .9rem;
  line-height: 1.85;
  color: rgba(250,243,235,.8);
  margin: 0;
}

/* Pillars */
.fa-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.fa-pillar {
  background: var(--bg-ivory);
  border: 1px solid rgba(74,44,10,.08);
  border-top: 3px solid var(--primary);
  border-radius: 10px;
  padding: 1.25rem 1rem;
}
.fa-pillar i {
  font-size: 1.2rem;
  color: var(--primary);
  display: block;
  margin-bottom: .6rem;
}
.fa-pillar h4 {
  font-family: var(--font-h);
  font-size: .95rem;
  font-weight: 700;
  color: #4A2C0A;
  margin-bottom: .4rem;
}
.fa-pillar p {
  font-size: .8rem;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}

/* Closing */
.fa-closing {
  background: var(--bg-sand);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  text-align: center;
}
.fa-closing p {
  font-family: var(--font-h);
  font-size: 1.15rem;
  line-height: 1.8;
  color: #4A2C0A;
  margin: 0;
}
.fa-closing strong { color: var(--primary); }

/* Responsive */
@media (max-width: 900px) {
  .fa-pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .fa-intro { grid-template-columns: 1fr; }
  .fa-intro__img { order: -1; }
  .fa-mission { flex-direction: column; gap: 1rem; }
}
@media (max-width: 480px) {
  .fa-pillars { grid-template-columns: 1fr; }
  .fa-closing { padding: 1.25rem; }
}

/* Fine Arts Gallery */
.fa-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 10px;
  margin-bottom: 3rem;
}
.fa-gallery__tile:nth-child(4n+1) {
  grid-column: span 2;
  grid-row: span 2;
}
.fa-gallery__tile {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #e8e8e8;
}
.fa-gallery__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.fa-gallery__tile:hover img { transform: scale(1.07); }
.fa-gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.45), rgba(0,0,0,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
  color: #fff;
  font-size: 1.4rem;
}
.fa-gallery__tile:hover .fa-gallery__overlay { opacity: 1; }

@media (max-width: 768px) {
  .fa-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}
@media (max-width: 480px) {
  .fa-gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .fa-gallery__tile:nth-child(4n+1) { grid-column: span 1; grid-row: span 1; }
}

/* ════════════════════════════════
   CLUBS & SOCIETIES PAGE
════════════════════════════════ */
.cs-intro {
  margin-bottom: 2rem;
}
.cs-intro p {
  font-size: .98rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: .75rem;
}

.cs-statement {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--bg-sand);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.cs-statement__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(139,94,42,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
}
.cs-statement p {
  font-size: .95rem;
  line-height: 1.85;
  color: var(--text-body);
  margin: 0;
}
.cs-statement strong { color: #4A2C0A; }

/* ── Photo feature (spotlight image with overlaid caption) ── */
.cs-photo-feature {
  margin: 0 0 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sh-lg);
  background: var(--bg-cream);
}
.cs-photo-feature img {
  width: 100%;
  height: auto;
  display: block;
}
.cs-photo-feature__caption {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  color: #4A2C0A;
  background: var(--bg-sand);
  padding: 1rem 1.5rem;
  margin: 0;
}
.cs-photo-feature__caption i { color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }
@media (max-width: 500px) {
  .cs-photo-feature__caption { font-size: .9rem; padding: .85rem 1.1rem; }
}

/* Program blocks */
.cs-program { margin-bottom: 2.5rem; }
.cs-program__hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.4rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.cs-program__hdr--middle {
  background: linear-gradient(135deg, #2C1A0E, #5C3317);
}
.cs-program__hdr--senior {
  background: linear-gradient(135deg, #1a3520, #2d6840);
}
.cs-program__level {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FAF3EB;
}
.cs-program__grades {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(250,243,235,.65);
  background: rgba(255,255,255,.1);
  padding: .3rem .75rem;
  border-radius: 20px;
}

/* Club cards */
.cs-clubs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.cs-club {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(74,44,10,.09);
  border-radius: 12px;
  padding: 1.25rem;
  transition: box-shadow .2s, border-color .2s;
}
.cs-club:hover {
  box-shadow: var(--sh);
  border-color: rgba(139,94,42,.25);
}
.cs-club__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(139,94,42,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: .95rem;
}
.cs-club__name {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  color: #4A2C0A;
  margin-bottom: .3rem;
}
.cs-club__name a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.cs-club__name a:hover,
.cs-club__name a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cs-club__desc {
  font-size: .82rem;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .cs-clubs { grid-template-columns: 1fr; }
  .cs-program__hdr { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* ============================================================
   PAGE: Career & College Counselling Cell (CCC)
   ============================================================ */
.ccc-pillars-lead {
  font-family: var(--font-h);
  font-style: italic;
  color: var(--primary);
  font-size: 1.05rem;
  margin: 0 0 .5rem;
}

/* Grade XI / XII highlight boxes, side by side */
.ccc-grade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.5rem 0 2rem;
}
.ccc-grade-grid .info-box h4 { font-size: 1rem; }


/* Placeholder box for the "area fill map with student counts" —
   the source brief calls for this but supplies no country/count
   data, so it's flagged visually rather than guessed at. */
.ccc-map-placeholder {
  border: 2px dashed rgba(139,94,42,.4);
  border-radius: var(--r);
  background: var(--bg-cream);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 1rem 0 2.5rem;
}
.ccc-map-placeholder i { font-size: 2.2rem; color: var(--primary); margin-bottom: .8rem; display: block; }
.ccc-map-placeholder h4 { font-family: var(--font-h); color: var(--primary); font-size: 1.05rem; margin-bottom: .5rem; }
.ccc-map-placeholder p { font-size: .85rem; color: var(--text-body); max-width: 520px; margin: 0 auto; }

/* Success stories, grouped by country — compact wrapped pill tags
   instead of one-university-per-line, so a ~90-institution list
   doesn't turn into a huge scroll of bullet points. */
.ccc-countries {
  margin: 1.5rem 0 2rem;
}
.ccc-country {
  margin-bottom: 1.4rem;
}
.ccc-country:last-child {
  margin-bottom: 0;
}
.ccc-country__name {
  display: inline-block;
  font-family: var(--font-h);
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 .6rem;
  padding-bottom: .2rem;
  border-bottom: 2px solid var(--highlight);
}
.ccc-country__subheading {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(74,44,10,.55);
  margin: .8rem 0 .5rem;
}
.ccc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.ccc-chip {
  font-size: .74rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 20px;
  background: rgba(139,94,42,.09);
  color: #4A2C0A;
  border: 1px solid rgba(139,94,42,.18);
  line-height: 1.35;
}

@media (max-width: 700px) {
  .ccc-grade-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE: Student Well-being & Life Skills Education
   PAGE: Special Education Needs
   (shared components — generic, reusable by other content pages)
   ============================================================ */
.lead-line {
  font-family: var(--font-h);
  font-style: italic;
  color: var(--primary);
  font-size: 1.05rem;
  margin: 0 0 .5rem;
}

/* Pill-style tag list (e.g. "Key areas include: ...") */
.tag-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin: 1.5rem 0 2rem;
}
.tag-pills span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg-sand);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  padding: .45rem .9rem;
  border-radius: 999px;
}
.tag-pills span i { color: #4a7a4a; font-size: .75rem; }

/* ════════════════════════════════
   SOCIAL ACTION PROJECTS (SAP) PAGE
════════════════════════════════ */
.sap-purpose {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-body);
  border-left: 4px solid var(--primary);
  padding-left: 1.4rem;
  margin-bottom: 2.5rem;
}
.sap-purpose__tag {
  display: block;
  font-family: var(--font-h);
  font-weight: 700;
  color: #4A2C0A;
  font-size: 1rem;
  margin-bottom: .6rem;
}

.sap-section { margin-bottom: 3rem; }
.sap-section__hdr { margin-bottom: 1.2rem; }
.sap-section__title {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #4A2C0A;
  margin: .25rem 0 .75rem;
}
.sap-section p {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: .75rem;
}

.sap-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.sap-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-ivory);
  border: 1px solid rgba(74,44,10,.08);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  text-decoration: none;
  color: #4A2C0A;
  font-weight: 600;
  transition: background .25s, transform .25s;
}
.sap-link-card:hover { background: rgba(139,94,42,.08); transform: translateY(-2px); }
.sap-link-card i { color: var(--primary); font-size: .85rem; flex-shrink: 0; }

.sap-future {
  background: linear-gradient(135deg, #2C1A0E 0%, #5C3317 100%);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.sap-future::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.sap-future .sec-label { color: #D4A96A; }
.sap-future__title {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #FAF3EB;
  margin: .3rem 0 1rem;
}
.sap-future__inner p {
  font-size: .95rem;
  line-height: 1.85;
  color: rgba(250,243,235,.82);
  margin: 0;
}

@media (max-width: 580px) {
  .sap-links { grid-template-columns: 1fr; }
  .sap-future { padding: 1.5rem; }
}

/* ════════════════════════════════
   EXCURSIONS PAGE
════════════════════════════════ */
.ex-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.ex-intro {
  margin-bottom: 2rem;
}
.ex-intro p {
  font-size: .98rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: .75rem;
}

.ex-destinations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.ex-destination {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(74,44,10,.09);
  border-radius: 12px;
  padding: 1.25rem;
  transition: box-shadow .2s, border-color .2s;
}
.ex-destination:hover {
  box-shadow: var(--sh);
  border-color: rgba(139,94,42,.25);
}
.ex-destination__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(139,94,42,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: .95rem;
}
.ex-destination__name {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  color: #4A2C0A;
  margin-bottom: .3rem;
}
.ex-destination__desc {
  font-size: .82rem;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}

@media (max-width: 640px) {
  .ex-quotes { grid-template-columns: 1fr; }
  .ex-destinations { grid-template-columns: 1fr; }
}

/* ════════════════════════════════
   LIBRARY PAGE
════════════════════════════════ */
.lib-programmes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.8rem;
}
.lib-programme {
  background: var(--bg-ivory);
  border: 1px solid rgba(74,44,10,.09);
  border-top: 3px solid var(--primary);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.lib-programme:hover {
  box-shadow: var(--sh);
  transform: translateY(-2px);
}
.lib-programme__photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.lib-programme__body {
  padding: 1.5rem 1.3rem;
}
.lib-programme__stage {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .35rem;
}
.lib-programme__title {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  color: #4A2C0A;
  margin-bottom: .5rem;
}
.lib-programme__desc {
  font-size: .85rem;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}

@media (max-width: 900px) {
  .lib-programmes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .lib-programmes { grid-template-columns: 1fr; }
}

/* ════════════════════════════════
   CARE PROJECTS PAGE
════════════════════════════════ */
.care-purpose {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-body);
  border-left: 4px solid var(--primary);
  padding-left: 1.4rem;
  margin-bottom: 1.5rem;
}
.care-purpose__tag {
  display: block;
  font-family: var(--font-h);
  font-weight: 700;
  color: #4A2C0A;
  font-size: 1rem;
  margin-bottom: .6rem;
}

.care-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.care-pillar {
  background: var(--bg-ivory);
  border: 1px solid rgba(74,44,10,.08);
  border-radius: 12px;
  padding: 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
}
.care-pillar__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(139,94,42,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}
.care-pillar p {
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.5;
  color: #4A2C0A;
  margin: 0;
}

.care-section { margin-bottom: 3rem; }
.care-section__hdr { margin-bottom: 1.2rem; }
.care-section__title {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #4A2C0A;
  margin: .25rem 0 .75rem;
}
.care-section p {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: .75rem;
}

.care-future {
  background: linear-gradient(135deg, #2C1A0E 0%, #5C3317 100%);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.care-future::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.care-future .sec-label { color: #D4A96A; }
.care-future__title {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #FAF3EB;
  margin: .3rem 0 1rem;
}
.care-future__inner p {
  font-size: .95rem;
  line-height: 1.85;
  color: rgba(250,243,235,.82);
  margin: 0;
}

@media (max-width: 768px) {
  .care-pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .care-pillars { grid-template-columns: 1fr; }
  .care-future { padding: 1.5rem; }
}

/* ════════════════════════════════
   CONTACT PAGE — INFO PANEL
   (overrides .footer__ci, which is styled for the dark footer
   and is unreadable on this panel's light sand background)
════════════════════════════════ */
.contact-info-box .footer__ci { color: var(--text-body); }
.contact-info-box__email { color: var(--primary); font-weight: 600; text-decoration: none; }
.contact-info-box__email:hover { text-decoration: underline; }

/* ════════════════════════════════
   CONTACT FORM 7 — match .form-group/.form-row/.btn styling
   CF7 wraps every field in <span class="wpcf7-form-control-wrap">,
   which the native form's flex/grid rules don't account for, so
   these rules make CF7's wrapper behave like a normal field.
════════════════════════════════ */
.wpcf7-form .form-group .wpcf7-form-control-wrap { display: block; width: 100%; }
.wpcf7-form .form-group input.wpcf7-form-control,
.wpcf7-form .form-group textarea.wpcf7-form-control { width: 100%; box-sizing: border-box; }

.wpcf7-form .form-group { margin-bottom: 0; }
.wpcf7-form .form-row + .form-group,
.wpcf7-form .form-group + .form-row,
.wpcf7-form .form-row + .form-row { margin-top: 1rem; }

/* Safety net: if the message field ends up nested inside a .form-row
   (e.g. a mismatched closing tag in the CF7 Form tab), force it to
   span the full width instead of being squeezed into one column. */
.wpcf7-form .form-row .form-group:has(textarea) { grid-column: 1 / -1; }

.wpcf7-form .wpcf7-not-valid-tip {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: #c0392b;
  margin-top: .3rem;
}
.wpcf7-form .wpcf7-form-control.wpcf7-not-valid { border-color: #c0392b; }

.wpcf7-form .wpcf7-response-output {
  margin: 1.2rem 0 0;
  padding: .8rem 1rem;
  border-radius: var(--r);
  font-size: .85rem;
  border: 1px solid rgba(74,44,10,.2);
}
.wpcf7-form.sent .wpcf7-response-output { border-color: #4a7a4a; color: #4a7a4a; background: rgba(74,122,74,.08); }
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output { border-color: #c0392b; color: #c0392b; background: rgba(192,57,43,.06); }

.wpcf7-form .wpcf7-spinner { margin-left: .6rem; vertical-align: middle; }

.wpcf7-form input[name="school"][readonly] {
  background: rgba(74,44,10,.05);
  color: var(--text-body);
  cursor: default;
}

/* GLightbox close button — force visibility in case any theme rule
   (opacity, z-index, svg reset) accidentally suppresses it */
.glightbox-clean .gclose,
.gclose {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 999999 !important;
}

/* ============================================================
   RESPONSIVE FIXES (Sep 2026 audit)
   ============================================================ */

/* Header: the 7-item desktop menu needs ~1270px. Between 769px and that width,
   it ran off-screen and hid Admissions / Contact Us. Tighten it on small
   laptops and switch to the hamburger menu on tablets. */
@media (max-width: 1440px) {
  .nav-logo .custom-logo { height: 40px; }
  .nav-link { padding: 0 .5rem; font-size: .76rem; letter-spacing: .02em; }
}
@media (max-width: 1199px) {
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* Mobile menu close button sat mid-screen (right: 110px) */
.mob-nav__close { right: 1.2rem; }

/* Grid children default to min-width:auto, so a wide child (the Dharmic
   tab strip, the philosophy image) pushed the column past the viewport. */
.philosophy__grid > *,
.dharmic__layout > * { min-width: 0; }

/* Home hero: content had width:100%, cancelling the .container gutter,
   so the headline touched the screen edge and ran under the arrows. */
.hs-hero__content { width: 92%; }
@media (min-width: 769px) and (max-width: 1360px) {
  .hs-hero__content { padding-left: 3.5rem; padding-right: 3.5rem; }
}
@media (max-width: 768px) {
  /* arrows overlapped the headline; swipe + dots remain */
  .hs-hero__arrow { display: none; }
}

/* Career & College Counselling: 3-step grid (was an inline style that
   beat the mobile media queries) */
.steps-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps-grid--3 { grid-template-columns: 1fr; } }

/* Dharmic tabs: the scrollbar is hidden, so below ~1440px some values
   were unreachable off-screen. Wrap them instead (one row on wide screens). */
.dharmic__tabnav { flex-wrap: wrap; overflow-x: visible; }

/* Mandatory Public Disclosure: the long email address forced the table
   wider than the screen on phones. */
.page-template-page-mandatory-public-disclosure .fee-table td { overflow-wrap: anywhere; }

/* Readability on phones: the admissions ticker (11px) and the sidebar
   section heading (10px) were below a comfortable reading size. */
@media (max-width: 768px) {
  .topbar__mq span { font-size: .8rem; }
}
@media (max-width: 480px) {
  .sidebar__nav-heading { font-size: .7rem; }
}

/* Mobile menu: the desktop dropdown's "›" arrow leaked into nested groups,
   doing nothing and pushing the real chevron into the middle of the row. */
.mob-nav .sub-menu .menu-item-has-children > a::after { content: none; }
/* Chevron was ~26x21px; give it a finger-sized tap area */
.mob-sub-toggle { min-width: 44px; min-height: 40px; margin: -.5rem -.6rem -.5rem 0; display: inline-flex; align-items: center; justify-content: center; }
/* Third level was barely indented from the second */
.mob-nav__list .sub-menu .sub-menu > li > a { padding-left: 2rem; }
.mob-nav__list .sub-menu .sub-menu > li > a:hover { padding-left: 2.3rem; }
/* Desktop dropdown hover/current styles (cream background) bled into the
   dark mobile menu and stuck after a tap. Use the menu's own gold accent. */
.mob-nav .mob-nav__list .sub-menu a:hover,
.mob-nav .mob-nav__list .sub-menu .current-menu-item > a,
.mob-nav .mob-nav__list .sub-menu .current-menu-ancestor > a { background: transparent; border-left-color: transparent; color: #D4A96A; }
.mob-nav .mob-nav__list .sub-menu .current-menu-item > a { background: rgba(255,255,255,.06); }

/* Leadership popup on phones. Customizer "Additional CSS" floats the photo
   at a fixed 260px with !important, so on phones the name wrapped beside it
   ("Ms." next to the photo). The extra .team-modal ancestor out-ranks it. */
@media (max-width: 580px) {
  .team-modal .team-modal__photo {
    float: none !important;
    width: 100% !important;
    height: 300px !important;
    margin: 0 !important;
  }
  .team-modal .team-modal__photo img { border-radius: 12px 12px 0 0; }
  .team-modal .team-modal__body { padding: 1.3rem 1.3rem 1.6rem !important; }
  .team-modal .team-modal__name { font-size: 1.25rem; padding-right: 0; }
  .team-modal .team-modal__close { box-shadow: 0 2px 8px rgba(0,0,0,.18); z-index: 2; }
}

/* Breadcrumb parents with no page of their own (e.g. Beyond Academics) */
.breadcrumb .breadcrumb__nolink { color: #2E2210; opacity: .7; cursor: default; }
