/* Shiv Shakti Pandav Sena – single page site */

:root {
  /* palette copied from brahmakumaris.com */
  --maroon: #7b241c;      /* accent */
  --maroon-d: #4f1812;
  --red: #b32617;         /* buttons */
  --link: #a92815;
  --brown: #82625b;       /* headings */
  --gold: #e3a642;
  --gold-d: #b9803a;
  --gold-l: #f6dca8;
  --cream: #f6efe6;       /* --soft */
  --cream-2: #fbefe3;
  --paper: #ffffff;
  --ink: #3a1f1f;
  --muted: #5a3b3b;
  --line: rgba(90, 59, 59, .18);
  --radius: 20px;
  --radius-btn: 13px;
  --shadow: 0 10px 30px rgba(90, 59, 59, .12);
  --nav-h: 66px;
  --font-body: 'Poppins', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Poppins', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.js { scroll-behavior: auto; } /* the page's own eased scroll (main.js) takes over */
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }


.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--maroon); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 10px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { width: min(1280px, 100% - 28px); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 14px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); font-family: var(--font-head); font-weight: 600; font-size: .98rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.nav__brand img { height: 40px; width: auto; max-width: 64px; object-fit: contain; }
.nav__links { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 2px; }
.nav__links a { display: block; padding: 8px 12px; border-radius: var(--radius-btn); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .92rem; transition: background .2s, color .2s; }
.nav__links a:hover { background: var(--cream); }
.nav__links a.is-active { background: var(--red); color: #fffbea; }
.nav__tools { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 42px; height: 42px; border: 2px solid var(--brown); border-radius: 12px; background: transparent; cursor: pointer; padding: 0; }
.nav__burger span { display: block; width: 20px; height: 2px; background: var(--brown); margin: 4px auto; transition: transform .25s, opacity .25s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav__burger { display: block; }
  .nav__tools { margin-left: auto; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; margin: 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 2px solid var(--gold); padding: 8px 14px 14px;
    transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s;
  }
  .nav__links.is-open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; border-radius: 10px; }
}
@media (max-width: 480px) { .nav__brand span { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; min-height: clamp(640px, 100svh, 1000px);
  display: flex; flex-direction: column; overflow: hidden;
  padding-top: var(--nav-h);
  background: linear-gradient(180deg, #a9d2ff 0%, #fde9b9 52%, #ffd57f 100%);
}
.hero__sky { position: absolute; inset: 0; z-index: -3;
  background: radial-gradient(60% 45% at 50% 38%, rgba(255, 255, 255, .85), transparent 70%); }
.hero__art {
  position: absolute; z-index: -2; left: 0; right: 0; bottom: 0; width: 100%; height: 64%;
  object-fit: cover; object-position: 50% 12%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
}
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(255, 248, 230, .55) 0, rgba(255, 248, 230, 0) 45%); }
.hero__content { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(14px, 4vh, 40px) 20px 24px; }
.hero__logo { height: clamp(64px, 9vw, 96px); width: auto; max-width: 160px; object-fit: contain; margin-bottom: 14px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); }
.plate {
  background: linear-gradient(180deg, #fffdf4, #fff3cf);
  border: 3px double var(--gold-d); border-radius: 18px; padding: 14px clamp(22px, 5vw, 56px);
  box-shadow: 0 0 0 5px rgba(255, 248, 230, .8), 0 14px 34px rgba(79, 24, 18, .3);
}
.plate h1 { margin: 0; color: var(--maroon); font-weight: 800; font-size: clamp(1.9rem, 5.2vw, 3.8rem); letter-spacing: .03em; line-height: 1.12; }
.hero__sub { display: flex; align-items: center; gap: 12px; margin: 20px 0 8px; padding: 6px 22px; background: rgba(255, 248, 230, .86); border-radius: 999px; box-shadow: 0 6px 18px rgba(79, 24, 18, .18); font: 700 clamp(1.1rem, 2.8vw, 1.8rem) var(--font-head); color: var(--maroon-d); text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.flourish { width: clamp(36px, 8vw, 90px); height: 3px; background: linear-gradient(90deg, transparent, var(--maroon)); border-radius: 3px; }
.flourish.flip { transform: scaleX(-1); }
.hero__tagline { margin: 0 0 10px; padding: 6px 22px; max-width: min(92vw, 760px); background: rgba(255, 248, 230, .88); border-radius: 18px; font-weight: 600; font-size: clamp(.9rem, 2vw, 1.2rem); line-height: 1.5; color: var(--maroon); box-shadow: 0 6px 18px rgba(79, 24, 18, .15); }
.hero__badge { margin: 0 0 22px; display: inline-block; padding: 6px 22px; background: rgba(255, 255, 255, .88); color: #1b2a5c; font: italic 700 clamp(1rem, 2.2vw, 1.4rem) var(--font-head); border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__venue {
  position: relative; display: flex; justify-content: center; align-items: center;
  padding: 14px 20px; text-align: center; color: var(--cream);
  background: linear-gradient(180deg, rgba(123, 36, 28, .94), rgba(79, 24, 18, .97)); border-top: 3px solid var(--gold);
}
.hero__venue a { color: var(--gold-l); font-weight: 600; text-decoration: none; font-size: clamp(.9rem, 1.8vw, 1.05rem); }
.hero__venue a:hover { text-decoration: underline; }
.hero__venue-tag { padding: 3px 18px; border: 1.5px solid var(--gold-l); border-radius: 999px; font: 700 .78rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-l); }
.hero__scroll { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
  padding: 12px 24px; border-radius: var(--radius-btn); border: 2px solid transparent; font: 600 1rem var(--font-body);
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fffbea; border-color: var(--red); box-shadow: 0 8px 20px rgba(179, 38, 23, .28); }
.btn--primary:hover { background: #9b2013; border-color: #9b2013; }
.btn--ghost { background: rgba(255, 255, 255, .85); color: var(--brown); border-color: var(--brown); }
.btn--ghost:hover { background: var(--brown); color: #fff; }
.btn--small { padding: 9px 20px; font-size: .9rem; background: var(--red); color: #fffbea; border-color: var(--red); }
.btn--small:hover { background: #9b2013; border-color: #9b2013; }
.btn--small.btn--ghost { background: transparent; color: var(--cream); border-color: var(--gold-l); }
.btn--small.btn--ghost:hover { background: var(--gold-l); color: var(--maroon-d); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 100px); scroll-margin-top: calc(var(--nav-h) - 1px); }
.section--gold { position: relative; background: linear-gradient(180deg, #fdf3e8 0%, #fbe9e5 55%, #f6e1e0 100%); }
.section--gold::before, .section--gold::after { content: ""; position: absolute; left: 0; right: 0; height: 26px; pointer-events: none; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 0h1200v14c-60 12-130 6-215 14s-170 10-262 2-190-14-290 0-170 14-260 2S60 20 0 30z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.section--gold::before { top: -1px; }
.section--gold::after { bottom: -1px; transform: scaleY(-1); }
.section-head { text-align: center; margin-bottom: clamp(28px, 5vw, 52px); }
.kicker { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; font-size: .8rem; color: var(--red); }
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 4.2vw, 2.8rem); color: var(--h, var(--brown)); font-weight: 700; }
.orn { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.orn i { display: block; width: clamp(50px, 12vw, 110px); height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn i:last-child { transform: scaleX(-1); }
.orn__mark { display: block; flex: none; }
.subtitle { text-align: center; color: var(--brown); font-size: clamp(1.4rem, 3vw, 2rem); margin: clamp(44px, 7vw, 72px) 0 22px; scroll-margin-top: calc(var(--nav-h) + 10px); }
.subhead { text-align: center; margin: clamp(44px, 7vw, 72px) 0 22px; }
.subhead h3 { color: var(--brown); font-size: clamp(1.25rem, 2.6vw, 1.7rem); margin: 0 0 6px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px); }
.empty { text-align: center; color: var(--muted); }
.empty--big { padding: clamp(28px, 5vw, 48px); }
.empty p:last-of-type { margin-bottom: 14px; }

.prose p { margin: 0 0 1.05em; }
.prose p:last-child { margin-bottom: 0; }
.prose--lg { font-size: 1.1rem; line-height: 1.95; }
.prose--sm { font-size: .95rem; }

.chip { display: inline-block; margin: 0 0 12px; padding: 3px 14px; background: var(--maroon); color: #fff; font: 600 .8rem var(--font-body); border-radius: 999px; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.tab { padding: 9px 20px; border: 2px solid var(--brown); border-radius: var(--radius-btn); background: rgba(255, 255, 255, .8); color: var(--brown); font: 600 .95rem var(--font-body); cursor: pointer; transition: background .2s, color .2s; }
.tab:hover { background: #fff; }
.tab[aria-selected="true"] { background: var(--brown); color: #fff; }

/* ---------- Sandesh ---------- */
@media (max-width: 760px) {
    }

/* ---------- About ---------- */
.about__intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.about__lead { font-size: 1.06rem; line-height: 1.8; }
.frame { margin: 0; border-radius: 20px; overflow: hidden; background: #fff; border: 4px solid #fff; outline: 2px solid var(--gold); box-shadow: var(--shadow); }
.frame figcaption { padding: 10px 14px; text-align: center; font-size: .88rem; color: var(--muted); background: #fff; }
.frame--sm { border-radius: 14px; border-width: 3px; }
@media (max-width: 860px) { .about__intro { grid-template-columns: 1fr; } }

.stats { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats li { background: linear-gradient(160deg, var(--maroon), var(--maroon-d)); color: var(--cream); border-radius: 16px; padding: 18px 12px; text-align: center; box-shadow: var(--shadow); }
.stats strong { display: block; font: 800 clamp(1.8rem, 4vw, 2.7rem) var(--font-head); color: var(--gold-l); line-height: 1.1; }
.stats span { font-size: .88rem; letter-spacing: .02em; }
.stats--sm { margin-top: 22px; }
.stats--sm li { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.stats--sm strong { color: var(--maroon); font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.editor { display: grid; grid-template-columns: 220px 1fr; gap: clamp(18px, 3vw, 32px); margin-top: 48px; align-items: center; }
.editor__photo { width: 220px; height: 220px; object-fit: cover; object-position: 50% 15%; border-radius: 22px; border: 4px solid var(--gold); box-shadow: var(--shadow); }
.editor__body h3 { margin: 0 0 4px; color: var(--maroon); font-size: 1.5rem; }
.editor__body blockquote { margin: 14px 0 18px; padding: 14px 18px; background: var(--cream); border-left: 5px solid var(--gold); border-radius: 0 14px 14px 0; line-height: 1.85; }
.editor__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link { font-weight: 600; }
@media (max-width: 700px) { .editor { grid-template-columns: 1fr; text-align: center; } .editor__photo { margin-inline: auto; } .editor__body blockquote { text-align: left; } .editor__actions { justify-content: center; } }

.objectives { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.objectives li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 6px 18px rgba(90, 59, 59, .07); }
.objectives p { margin: 0; line-height: 1.8; }
.objectives__n { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--maroon), var(--red)); color: #fff; font: 700 1rem var(--font-head); }

.syllabus ul { margin: 0; padding: 0; list-style: none; }
.syllabus li { position: relative; padding: 0 0 14px 30px; line-height: 1.9; }
.syllabus li:last-child { padding-bottom: 0; }
.syllabus li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }

.cadets-list summary { min-height: 44px; cursor: pointer; font: 700 1.15rem var(--font-head); color: var(--maroon); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.cadets-list summary::-webkit-details-marker { display: none; }
.cadets-list summary::after { content: "+"; font: 400 1.7rem/1 var(--font-body); color: var(--gold-d); }
details[open] > summary::after { content: "–"; }
.cadets-list[open] summary { margin-bottom: 14px; }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.table th, .table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #f0e2bd; }
.table thead th { background: var(--maroon); color: #fff; position: sticky; top: 0; }
.table tbody tr:nth-child(even) { background: #fffaf0; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trio .frame img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin-top: 22px; }
.fact { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 12px; padding: 14px 16px; }
.fact h4 { margin: 0 0 4px; color: var(--maroon); font-size: 1rem; }
.fact p { margin: 0; font-size: .92rem; color: #5b3d3d; }
.tagline { text-align: center; margin: 30px 0 0; font: italic 700 clamp(1.1rem, 2.6vw, 1.5rem) var(--font-head); color: var(--maroon); }

/* ---------- Training ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.chip--btn { margin: 0; padding: 8px 18px; background: #fff; color: var(--brown); border: 2px solid var(--brown); border-radius: var(--radius-btn); font: 600 .9rem var(--font-body); cursor: pointer; }
.chip--btn small { opacity: .65; margin-left: 4px; }
.chip--btn[aria-pressed="true"] { background: var(--brown); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gallery__item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: #eadfc4; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item span { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; color: #fff; font-size: .82rem; line-height: 1.3; background: linear-gradient(to top, rgba(40, 5, 12, .85), transparent); }
/* "Show more photos" under every gallery: centred, with space above */
.gallery-wrap > .center { display: flex; justify-content: center; margin: 26px 0 8px; }
.gallery-wrap > .center .btn { min-width: 220px; }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.video { margin: 0; }
.video__play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; box-shadow: var(--shadow); }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s, transform .4s; }
.video__play:hover img { opacity: 1; transform: scale(1.03); }
.video__btn { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--red); box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.video__btn::after { content: ""; position: absolute; left: 27px; top: 20px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000; }
.video figcaption { margin-top: 8px; font-weight: 600; color: var(--maroon); }

.ndrf { display: grid; grid-template-columns: 250px 1fr; gap: clamp(18px, 4vw, 40px); align-items: center; margin-top: clamp(44px, 7vw, 72px); background: linear-gradient(135deg, #fff, #fff6dc); }
.ndrf__letter { display: block; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); transform: rotate(-1.5deg); transition: transform .25s; background: #fff; }
.ndrf__letter:hover { transform: rotate(0) scale(1.02); }
.ndrf__body h3 { color: var(--maroon); font-size: clamp(1.4rem, 3vw, 2rem); }
@media (max-width: 700px) { .ndrf { grid-template-columns: 1fr; } .ndrf__letter { max-width: 260px; margin-inline: auto; } }

.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.award { position: relative; text-align: center; padding: 34px 14px 18px; background: linear-gradient(180deg, #fffdf4, #fff0c4); border: 2px solid var(--gold); border-radius: 18px; box-shadow: var(--shadow); }
.award__n { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--maroon), var(--red)); color: var(--gold-l); border: 3px solid var(--gold); font: 800 1rem var(--font-head); }
.award p { margin: 0 0 10px; font-weight: 600; font-size: .95rem; line-height: 1.35; min-height: 2.7em; }
.award strong { display: block; padding: 6px 10px; background: var(--maroon); color: #fff; border-radius: 8px; font-size: .92rem; }

.quotes { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-color: var(--gold) transparent; }
.quote { flex: 0 0 min(370px, 86%); scroll-snap-align: start; margin: 0; padding: 22px 22px 18px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.quote p { flex: 1; line-height: 1.85; margin-bottom: 14px; }
.quote footer { font-weight: 700; color: var(--maroon); }
.quote footer span { font-weight: 500; color: var(--muted); font-size: .88rem; }

.cadets-list { margin-top: 36px; }
.search input { width: 100%; max-width: 360px; margin-bottom: 14px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 999px; font: inherit; }

/* ---------- People (blessings + faculty) ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.person__photo { width: 144px; height: 144px; object-fit: cover; object-position: 50% 18%; border-radius: 50%; border: 4px solid var(--gold); box-shadow: 0 6px 18px rgba(90, 59, 59, .25); margin-bottom: 14px; }
.person h3 { margin: 0 0 4px; color: var(--maroon); font-size: 1.2rem; }
.person__role { margin: 0 0 14px; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.person__excerpt { flex: 1; margin: 0 0 18px; font-size: .94rem; line-height: 1.75; font-style: italic; color: #5a3b3b; display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Events ---------- */
.events__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.event { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.event__poster { display: block; background: #fff3cf; }
.event__poster img { width: 100%; max-height: 420px; object-fit: cover; }
.event__body { display: flex; gap: 16px; padding: 22px; align-items: flex-start; }
.event__date { flex: 0 0 74px; text-align: center; background: linear-gradient(160deg, var(--maroon), var(--maroon-d)); color: #fff; border-radius: 14px; padding: 10px 6px; }
.event__date strong { display: block; font: 800 2rem var(--font-head); color: var(--gold-l); line-height: 1; }
.event__date span { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.event__info { min-width: 0; }
.event__info h3 { margin: 0 0 8px; color: var(--maroon); font-size: 1.3rem; }
.event__meta { margin: 0 0 4px; font-size: .94rem; font-weight: 500; }
.event__info .prose { margin: 10px 0 16px; }
.event__info .btn { margin-top: 6px; }

/* ---------- Modal / lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(40, 5, 12, .72); animation: fade .2s; }
.modal__box { position: relative; display: flex; flex-direction: column; width: min(780px, 100%); max-height: min(90vh, 100%); overflow: hidden; background: var(--cream); border: 3px double var(--gold-d); border-radius: 22px; padding: clamp(20px, 4vw, 34px) 0 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.modal__close, .lightbox__close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--maroon); color: #fff; font: 400 1.8rem/1 var(--font-body); cursor: pointer; z-index: 2; }
.modal__head { flex: none; display: flex; align-items: center; gap: 16px; margin: 0 clamp(20px, 4vw, 34px) 14px; padding: 0 44px 14px 0; border-bottom: 2px solid var(--gold); }
.modal__head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid var(--gold); flex: none; }
.modal__head h3 { margin: 0; color: var(--maroon); font-size: 1.3rem; }
.modal__head p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }
.modal__body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 4px clamp(20px, 4vw, 34px) clamp(22px, 4vw, 34px); margin: 0;
  font-size: 1.04rem; line-height: 1.85;
  scrollbar-width: thin; scrollbar-color: rgba(185, 128, 58, .55) transparent;   /* Firefox */
}
/* Chrome, Edge, Safari: slim rounded scrollbar kept clear of the popup's rounded corners */
.modal__body::-webkit-scrollbar { width: 10px; }
.modal__body::-webkit-scrollbar-track { background: transparent; margin: 4px 0 26px; }
.modal__body::-webkit-scrollbar-thumb { background: rgba(185, 128, 58, .55); border-radius: 10px; border: 2px solid var(--cream); background-clip: padding-box; }
.modal__body::-webkit-scrollbar-thumb:hover { background: rgba(185, 128, 58, .85); background-clip: padding-box; }
body.is-locked { overflow: hidden; }

.lightbox { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; background: rgba(12, 3, 5, .94); animation: fade .2s; }
.lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; width: auto; margin-inline: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox figcaption { margin-top: 12px; color: #f5e9c8; font-size: .95rem; padding-inline: 12px; }
.lightbox__close { top: 16px; right: 16px; background: rgba(255, 255, 255, .16); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font: 400 2.4rem/1 var(--font-body); cursor: pointer; border-radius: 10px; }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--gold); color: var(--maroon-d); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Footer ---------- */
.footer__grid { scroll-margin-top: calc(var(--nav-h) + 24px); }
.footer { background: linear-gradient(180deg, #6a2018, #3a1f1f); color: #f6efe6; padding: clamp(48px, 7vw, 84px) 0 28px; }
.footer a { color: var(--gold-l); }
.footer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; padding-top: 34px; border-top: 1px solid rgba(247, 217, 138, .3); }
.footer__col h3 { color: var(--gold-l); font-size: 1.15rem; }
.footer__col p { margin: 0 0 10px; font-size: .94rem; }
.footer__brand { text-align: center; }
.footer__brand img { margin: 0 auto 10px; width: auto; max-width: 150px; object-fit: contain; }
.footer__brand h3 { margin-bottom: 2px; }
.contact { list-style: none; margin: 0; padding: 0; }
.contact li { margin-bottom: 6px; font-size: .94rem; }
.footer__legal { margin: 36px 0 0; text-align: center; font-size: .82rem; opacity: .75; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; text-align: center; } }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); background: var(--maroon); color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* Batch facts strip (Our Last Training) */
.batch { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; }
.batch li { display: flex; flex-direction: column; align-items: center; min-width: 150px; padding: 10px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 14px rgba(90, 59, 59, .08); }
.batch strong { font: 700 1.05rem var(--font-body); font-variant-numeric: lining-nums; color: var(--maroon); text-align: center; }
.batch li > span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* per-section heading tints (as on brahmakumaris.com) */
.sandesh { --h: #b85a46; }
.about { --h: #82625b; }
.training { --h: #82755b; }
.blessings { --h: #825b7f; }
.faculty { --h: #82625b; }
.events { --h: #b85a46; }

/* ---------- Sandesh: one picture, messages beside it ---------- */
.sandesh__layout { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(20px, 3.5vw, 44px); align-items: start; }   /* picture 40% : messages 60% */
.sandesh__layout--noimg { grid-template-columns: 1fr; max-width: 860px; margin-inline: auto; }
.sandesh__figure { margin: 0; position: sticky; top: calc(var(--nav-h) + 20px); aspect-ratio: 2 / 3; /* width 40 : height 60 */ border: 4px double var(--gold-d); border-radius: 22px; overflow: hidden; background: #fff3cf; box-shadow: var(--shadow); }
.sandesh__figure img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.sandesh__list { display: grid; gap: clamp(18px, 3vw, 28px); }
.sandesh__card { background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3.4vw, 36px); box-shadow: var(--shadow); }
.sandesh__card h3 { font-weight: 700; font-size: clamp(1.3rem, 2.8vw, 1.9rem); line-height: 1.45; color: var(--maroon); margin-bottom: .3em; }
.sandesh__sub { color: var(--red); font-weight: 600; margin-bottom: .8em; }
.sandesh__excerpt { font-size: 1.08rem; line-height: 2; margin: 0 0 18px; color: var(--ink); }
.modal__body .prose[lang="hi"] { font-size: 1.12rem; line-height: 2.05; }
@media (max-width: 760px) {
  .sandesh__layout { grid-template-columns: 1fr; }
  .sandesh__figure { position: static; width: min(100%, 360px); margin-inline: auto; }
}

/* ---------- Daily routine (display only) ---------- */
.routine { list-style: none; margin: 0; padding: clamp(16px, 3vw, 28px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.routine li { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px dashed var(--line); line-height: 1.5; }
.routine__n { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--maroon), var(--red)); color: #fffbea; font: 700 .9rem var(--font-body); }
@media (max-width: 760px) { .routine { grid-template-columns: 1fr; } }

/* touch-friendly targets */
.cadets-list summary { align-items: center; }
@media (hover: none) and (pointer: coarse) {
  .nav__links a, .tab, .chip--btn { min-height: 44px; }
  .btn--small { min-height: 44px; }
}

/* ---------- footer: patronage + supporters, side by side and compact (no boxes) ---------- */
.partners { display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-start; max-width: 1040px; margin: 0 auto clamp(26px, 4vw, 40px); text-align: center; }
.partners__block { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; padding: 0 clamp(20px, 4vw, 56px); }
.partners__block--lead { flex: 0 0 auto; }
.partners__block:not(.partners__block--lead) { flex: 1 1 0; max-width: 620px; }   /* never squeezed: the patron name keeps its two lines */
/* thin gold divider between the two groups */
.partners__block + .partners__block { position: relative; }
.partners__block + .partners__block::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: linear-gradient(180deg, transparent, rgba(227, 166, 66, .7), transparent); }
.partners__title { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; font: 600 .76rem var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-l); white-space: nowrap; }
.partners__title::before, .partners__title::after { content: ""; width: clamp(14px, 3vw, 34px); height: 1px; background: linear-gradient(90deg, transparent, rgba(227, 166, 66, .85)); }
.partners__title::after { transform: scaleX(-1); }
.partners__row { display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-start; gap: 18px clamp(14px, 3vw, 44px); width: 100%; }   /* all supporters stay on one line */
.partner { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; flex: 1 1 0; min-width: 0; max-width: 190px; color: var(--cream); text-decoration: none; }
.partner__logo { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 84px; line-height: 0; }
.partner__logo::before { content: ""; position: absolute; inset: -12px -8px; background: radial-gradient(closest-side, rgba(255, 238, 210, .2), rgba(255, 238, 210, 0) 74%); }   /* soft glow lifts the logo off the dark background */
.partner__logo img { position: relative; max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .25)); transition: transform .25s; }
.partner__name { font-weight: 600; font-size: .86rem; line-height: 1.4; color: var(--cream); max-width: 24ch; }
.partner--lead { font-size: clamp(.84rem, 3.7vw, .98rem); width: 31ch; flex: 0 0 auto; max-width: none; }
.partner--lead .partner__logo { height: 92px; }
.partner--lead .partner__name { font-size: 1em; font-weight: 700; max-width: none; text-wrap: balance; }   /* the long patron name breaks into two even lines */
a.partner:hover .partner__name { color: var(--gold-l); text-decoration: underline; text-underline-offset: 4px; }
a.partner:hover .partner__logo img { transform: scale(1.06); }
/* narrow screens: the two groups stack, kept compact */
@media (max-width: 760px) {
  .partners { flex-wrap: wrap; row-gap: 26px; }
  .partners__block { flex: 1 1 100%; padding: 0 12px; }
  .partners__block + .partners__block { padding-top: 24px; }
  .partners__block + .partners__block::before { left: 20%; right: 20%; top: 0; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(227, 166, 66, .7), transparent); }
  .partners__block:not(.partners__block--lead) { max-width: none; }
  .partners__row { gap: 14px 12px; }
  .partner--lead { width: min(100%, 31ch); }
}
@media (max-width: 560px) {
  .partners__row:has(.partner:nth-child(4)) { flex-wrap: wrap; }
  .partners__row:has(.partner:nth-child(4)) .partner { flex: 0 1 110px; }
}

/* ---------- footer: Words of Gratitude (compact) ---------- */
.gratitude { max-width: 760px; margin: 0 auto clamp(22px, 3.5vw, 34px); text-align: center; }
.gratitude h2 { margin: 0 0 8px; color: var(--gold-l); font-size: clamp(1.2rem, 2.3vw, 1.5rem); }
.gratitude__text { margin: 0 0 14px; font-size: .9rem; line-height: 1.65; color: rgba(246, 239, 230, .92); }
.gratitude__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; }
.gratitude__foot .btn { padding: 6px 16px; min-height: 0; font-size: .82rem; }
.gratitude__sign { font-size: .85rem; color: var(--gold-l); }
.footer { padding-top: clamp(32px, 4.5vw, 48px) !important; padding-bottom: 20px !important; }
@media (hover: none) and (pointer: coarse) { .gratitude__foot .btn { min-height: 40px; } }

/* separator lines between the footer groups */
.footer__sep { border: 0; height: 1px; margin: 0 0 clamp(22px, 3.5vw, 32px); background: rgba(247, 217, 138, .3); }
.gratitude { margin-bottom: clamp(18px, 3vw, 26px); }

/* ---------- footer: both rows share one two-column grid so everything lines up ---------- */
.partners, .footer__grid { display: grid; grid-template-columns: 5fr 6fr; align-items: center; max-width: 1040px; margin-left: auto; margin-right: auto; }
.partners { align-items: start; }
.partners__block, .partners__block--lead, .partners__block:not(.partners__block--lead) { flex: none; max-width: none; width: auto; }
.footer__grid { gap: 0; padding-top: clamp(22px, 3.5vw, 32px); }
.footer__col { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 clamp(20px, 4vw, 56px); text-align: center; min-width: 0; }
.footer__col h3 { margin: 0; }
.footer__col p { margin: 0; }
.footer__brand img { margin: 0 auto; }
.footer__col .contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer__col .contact li { margin: 0; }
.footer__grid .footer__col + .footer__col { position: relative; }
.footer__grid .footer__col + .footer__col::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: linear-gradient(180deg, transparent, rgba(227, 166, 66, .7), transparent); }
@media (max-width: 760px) {
  .partners, .footer__grid { grid-template-columns: 1fr; }
  .footer__grid { row-gap: 26px; }
  .footer__grid .footer__col + .footer__col { padding-top: 24px; }
  .footer__grid .footer__col + .footer__col::before { left: 20%; right: 20%; top: 0; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(227, 166, 66, .7), transparent); }
}

.footer__grid { border-top: 0 !important; padding-top: 0; }
