/* =====================================================================
   Jeevandan Charitable Society — public site
   Design tokens, layout and components ported from the approved design.
   ===================================================================== */

:root {
  --bg: #f6f9fe; --bg2: #eaf1fb; --surface: #ffffff; --text: #0e2140; --muted: #55698a;
  --line: #dae4f2; --blue: #0e3f9a; --blue-soft: #e5ecfb; --green: #0c7683; --green-soft: #e0f1f3;
  --amber: #9a5a12; --amber-soft: #f8eddd;
  --shadow: 0 1px 2px rgba(14, 32, 64, .06), 0 10px 30px rgba(14, 32, 64, .08);
  --shadow-lg: 0 2px 6px rgba(14, 32, 64, .08), 0 24px 60px rgba(14, 32, 64, .16);
  --max: 1240px;
}

[data-theme="dark"] {
  --bg: #0b1422; --bg2: #101c2e; --surface: #14223a; --text: #eaf0f8; --muted: #9aadc6;
  --line: #23334c; --blue: #8cb0ff; --blue-soft: #16233c; --green: #49c6d1; --green-soft: #0f2a31;
  --amber: #f0ae6d; --amber-soft: #2b2113;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 34px rgba(0, 0, 0, .4);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, .5), 0 30px 70px rgba(0, 0, 0, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Public Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
}
h1, h2, h3, h4 { font-family: "Newsreader", Georgia, serif; font-weight: 400; margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--amber); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber-soft); color: var(--text); }
[hidden] { display: none !important; }

.container { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); font-size: 14.5px; }
.small { font-size: 13px; }
.grow { flex: 1; }

.skip-link {
  position: absolute; left: -9999px; top: 0; padding: 10px 16px; background: var(--surface); z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ----- Reveal on scroll (only hidden when JavaScript is available) ----- */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
}
.js [data-reveal="in"] { opacity: 1; transform: none; }

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes slowzoom { from { transform: scale(1.06); } to { transform: scale(1.16); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes popin { from { opacity: 0; transform: scale(.94) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes gradmove {
  0% { transform: translate3d(-6%, -4%, 0) scale(1); }
  50% { transform: translate3d(6%, 4%, 0) scale(1.12); }
  100% { transform: translate3d(-6%, -4%, 0) scale(1); }
}
@keyframes drift { 0% { transform: translate(0, 0); } 50% { transform: translate(22px, -26px); } 100% { transform: translate(0, 0); } }
@keyframes ring { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ----- Tones: a badge/chip colour pair shared by cards, tags and chips ----- */
.tone-green { --tone-bg: var(--green-soft); --tone-fg: var(--green); }
.tone-blue { --tone-bg: var(--blue-soft); --tone-fg: var(--blue); }
.tone-amber { --tone-bg: var(--amber-soft); --tone-fg: var(--amber); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; line-height: 1.2; white-space: nowrap;
  transition: transform .22s, box-shadow .22s, background .22s, border-color .22s, gap .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn--lg { padding: 15px 28px; font-size: 15.5px; }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 12px 30px rgba(12, 118, 131, .3); }
.btn--green:hover { color: #fff; box-shadow: 0 18px 40px rgba(12, 118, 131, .42); }
.btn--white { background: #fff; color: #123c91; }
.btn--white:hover { color: #123c91; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--amber); color: var(--text); }
.btn--outline-dark { border-color: var(--line); color: var(--text); }
.btn--arrow:hover { gap: 16px; }

.icon-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px;
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--amber); transform: translateY(-1px); }

/* ----- Progress bar & back-to-top ----- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 140; pointer-events: none;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--amber)); border-radius: 0 3px 3px 0;
  transition: width .12s linear;
}
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 110; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  font-size: 17px; opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ----- Top bar ----- */
.topbar { background: var(--blue); color: #fff; }
[data-theme="dark"] .topbar { background: #0e3f9a; }
.topbar__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-top: 8px; padding-bottom: 8px; font-size: 13.5px;
}
.topbar a, .topbar__address { display: inline-flex; align-items: center; gap: 8px; color: #fff; opacity: .92; }
.topbar a:hover { opacity: 1; color: #fff; }
.topbar__address { display: none; opacity: .8; }
.topbar__social { margin-left: auto; display: flex; align-items: center; gap: 16px; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 80; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__logo { width: 58px; height: 58px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 6px rgba(14, 32, 64, .18)); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: "Newsreader", serif; font-size: 19px; line-height: 1.1; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__tagline { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__link { white-space: nowrap; }
.brand { flex: 0 1 auto; }
/* The longer tagline would otherwise squeeze the menu on mid-sized screens. */
@media (min-width: 1080px) and (max-width: 1299px) { .brand__tagline { display: none; } }

.nav { margin-left: auto; display: none; align-items: center; gap: 2px; }
.nav__link {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 8px;
  font-size: 14.5px; color: var(--text); transition: background .2s;
}
.nav__link:hover { background: var(--bg2); color: var(--text); }
.nav__caret { font-size: 10px; color: var(--muted); }
.nav__item { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; padding-top: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.nav__item:last-of-type .dropdown, .nav__item:nth-last-child(2) .dropdown { left: auto; right: 0; }
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.dropdown__panel {
  min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px; display: flex; flex-direction: column;
}
.dropdown__panel a { padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text); }
.dropdown__panel a:hover { background: var(--bg2); color: var(--text); }

.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-header__cta { display: none; box-shadow: 0 8px 20px rgba(12, 118, 131, .22); }
.burger { gap: 4px; }
.burger span { display: block; width: 17px; height: 1.5px; background: var(--text); transition: transform .3s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ----- Mobile drawer ----- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(10, 16, 24, .5); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 86vw); z-index: 95; overflow-y: auto; padding: 20px;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform .38s cubic-bezier(.22, .61, .36, 1);
}
body.menu-open .scrim { opacity: 1; pointer-events: auto; }
body.menu-open .drawer { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer__title { font-family: "Newsreader", serif; font-size: 18px; }
.drawer__links { display: flex; flex-direction: column; gap: 4px; }
.drawer__links > a, .drawer__links summary {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 12px;
  font-size: 16px; color: var(--text); border-bottom: 1px solid var(--line); cursor: pointer; list-style: none;
}
.drawer__links summary::-webkit-details-marker { display: none; }
.drawer__links summary span { color: var(--muted); font-size: 12px; }
.drawer__links details[open] summary span { transform: rotate(180deg); }
.drawer__sub { display: flex; flex-direction: column; padding: 4px 0 8px 14px; animation: fadeup .3s ease both; }
.drawer__sub a { padding: 11px 12px; font-size: 15px; color: var(--muted); }
.drawer__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.drawer__cta .btn { padding: 15px 20px; }

@media (min-width: 720px) { .site-header__cta { display: inline-flex; } }
@media (min-width: 1080px) {
  .nav { display: flex; }
  .burger { display: none; }
  .topbar__address { display: inline-flex; }
  .site-header__actions { margin-left: 0; }
}

/* ----- Shared section furniture ----- */
.section { padding-top: 80px; padding-bottom: 80px; scroll-margin-top: 88px; }
.section-body { margin-top: 40px; }
.band {
  background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 88px;
}
.band__inner { padding-top: 80px; padding-bottom: 80px; }
.section-head { max-width: 620px; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
.section-head--row > div { max-width: 620px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.kicker__bar { width: 26px; height: 2px; border-radius: 2px; background: var(--amber); }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow--amber { font-size: 12px; letter-spacing: .16em; color: var(--amber); }
.h2 { margin-top: 14px; font-size: clamp(30px, 4vw, 44px); }
.h3 { font-size: 20px; }
.lead { margin-top: 14px; color: var(--muted); font-size: 16.5px; text-wrap: pretty; }
.lead--tight { margin-top: 14px; }
.lead--quote { font-style: italic; }
.link-strong { font-size: 14.5px; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills--tags { margin-top: 24px; }
.pill { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--text); }
.pill:hover { border-color: var(--amber); color: var(--text); }
.tag { padding: 8px 15px; border-radius: 999px; background: var(--tone-bg); color: var(--tone-fg); font-size: 13.5px; font-weight: 600; }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--tone-bg); color: var(--tone-fg); font-weight: 600; font-size: 12.5px; }

.grid-auto { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(var(--min, 260px), 1fr)); }
.grid-auto--230 { --min: 230px; }
.grid-auto--260 { --min: 260px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-auto--270 { --min: 270px; gap: 22px; }
.grid-auto--290 { --min: 290px; gap: 22px; }
.grid-auto--300 { --min: 300px; }
.grid-auto--gap24 { gap: 24px; }

/* ----- Cards ----- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card--lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card--col { display: flex; flex-direction: column; }
.card--flush { padding: 0; overflow: hidden; border-radius: 18px; text-align: left; }
.card h3 { margin-top: 16px; font-size: 21px; }
.card .h3 { margin-top: 12px; }
.card h3 a, .card .h3 a { color: var(--text); }
.card h3 a:hover { color: var(--amber); }
.card p { margin-top: 8px; }
.card__link { margin-top: 16px; font-size: 14px; font-weight: 600; }
.card__media { display: block; overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s; }
.card:hover .card__media img { transform: scale(1.06); }
.card__content { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.badge-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--tone-bg); color: var(--tone-fg);
  display: grid; place-items: center; font-size: 20px;
}
.badge-icon--sm { width: 42px; height: 42px; border-radius: 11px; font-size: 19px; }
.meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }

.highlights { padding-top: 64px; padding-bottom: 20px; }
.highlights .card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-6px); }
.highlights .card h3 { font-size: 21px; }

/* ----- Hero ----- */
.hero { position: relative; overflow: hidden; background: var(--bg2); --hero-h: min(88vh, 780px); --hero-interval: 6500ms; }
.hero__slides { display: grid; }
.hero__slide {
  grid-area: 1 / 1; position: relative; display: flex; align-items: center; min-height: var(--hero-h); overflow: hidden;
  opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1s ease; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.06); }
.hero__slide.is-active .hero__media img { animation: slowzoom 12s ease-out both; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(9, 18, 30, .88) 0%, rgba(9, 18, 30, .72) 42%, rgba(9, 18, 30, .25) 100%); }
.hero__glow {
  position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: screen; animation: gradmove 22s ease-in-out infinite;
  background: radial-gradient(42% 42% at 28% 62%, rgba(12, 118, 131, .42), transparent 70%), radial-gradient(38% 38% at 76% 26%, rgba(18, 60, 145, .45), transparent 70%);
}
.hero__orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__orb--a { left: 8%; bottom: 14%; width: 180px; height: 180px; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 68%); filter: blur(6px); animation: drift 16s ease-in-out infinite; }
.hero__orb--b { right: 22%; top: 18%; width: 120px; height: 120px; background: radial-gradient(circle, rgba(255, 214, 150, .2), transparent 66%); filter: blur(4px); animation: drift 21s ease-in-out infinite reverse; }
.hero__inner { position: relative; width: 100%; padding-top: 120px; padding-bottom: 120px; }
.hero__copy { max-width: 660px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff;
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
}
.hero__badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #6ede9c; }
.hero__title { margin-top: 24px; color: #fff; font-size: clamp(36px, 6vw, 68px); line-height: 1.05; }
.hero__text { margin-top: 22px; color: rgba(255, 255, 255, .86); font-size: clamp(16px, 2.1vw, 19px); max-width: 560px; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ----- Hero slider: copy re-animates each time its slide becomes active ----- */
.hero__slide.is-active .hero__badge { animation: fadeup .8s .15s ease both; }
.hero__slide.is-active .hero__title { animation: fadeup .9s .25s ease both; }
.hero__slide.is-active .hero__text { animation: fadeup .9s .4s ease both; }
.hero__slide.is-active .hero__actions { animation: fadeup .9s .55s ease both; }
.hero__slide:not(.is-active) .hero__glow, .hero__slide:not(.is-active) .hero__orb { animation-play-state: paused; }

.hero__controls { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 5; pointer-events: none; }
.hero__controls-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero__dots { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.hero__dot {
  position: relative; width: 12px; height: 12px; padding: 0; border: 0; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .45); transition: width .35s, background .25s;
}
.hero__dot:hover { background: rgba(255, 255, 255, .75); }
.hero__dot.is-active { width: 46px; background: rgba(255, 255, 255, .35); }
.hero__dot.is-active::after {
  content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0);
  animation: heroFill var(--hero-interval) linear forwards;
}
.hero.is-paused .hero__dot.is-active::after { animation-play-state: paused; }
.hero.is-manual .hero__dot.is-active::after { animation: none; transform: scaleX(1); }
@keyframes heroFill { to { transform: scaleX(1); } }
.hero__arrows { display: none; gap: 10px; pointer-events: auto; }
.hero__arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 22px; line-height: 1; backdrop-filter: blur(6px); transition: background .2s, transform .2s;
}
.hero__arrow:hover { background: rgba(255, 255, 255, .26); transform: translateY(-2px); }
@media (min-width: 720px) { .hero__arrows { display: flex; } }
@media (max-width: 719px) { .hero__inner { padding-top: 90px; padding-bottom: 110px; } }

/* ----- Flash news ticker ----- */
.flash { background: var(--blue); color: #fff; overflow: hidden; }
[data-theme="dark"] .flash { background: #0e3f9a; }
.flash__inner { display: flex; align-items: stretch; padding: 0; }
.flash__label {
  flex: none; display: flex; align-items: center; gap: 9px; padding: 13px 20px; background: var(--amber); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
[data-theme="dark"] .flash__label { background: #b86a1a; }
.flash__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: fadein 1.1s ease-in-out infinite alternate; }
.flash__viewport {
  flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; padding-left: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 92%, transparent);
}
.flash__track { display: flex; white-space: nowrap; gap: 56px; animation: ticker 42s linear infinite; font-size: 14.5px; }
.flash__track:hover { animation-play-state: paused; }
.flash__group { display: flex; gap: 56px; }
.flash a { color: #fff; }
.flash a:hover { color: #fff; text-decoration: underline; }

/* ----- About ----- */
.about { position: relative; }
.about__glow {
  position: absolute; right: -60px; top: 10%; width: 340px; height: 340px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--green-soft), transparent 68%); filter: blur(18px); animation: drift 24s ease-in-out infinite;
}
.about__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; }
.about__media { position: relative; }
.about__main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); }
.about__inset {
  position: absolute; right: -14px; bottom: -26px; width: min(210px, 45%); border-radius: 16px; overflow: hidden;
  border: 6px solid var(--bg); box-shadow: var(--shadow-lg);
}
.about__inset img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.about .btn { margin-top: 28px; }

/* ----- Mission & vision ----- */
.panel { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 40px 36px; }
.panel__blob { position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: var(--tone-bg); }
.panel__blob--a { animation: float 9s ease-in-out infinite; }
.panel__blob--b { animation: float 11s ease-in-out infinite; }
.panel__body { position: relative; }
.panel__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--tone-fg); color: #fff; display: grid; place-items: center; font-size: 22px; }
[data-theme="dark"] .panel__icon { color: #0b1422; }
.panel h2 { margin-top: 20px; font-size: 32px; }

/* ----- Activities / founders ----- */
.founder__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; }
.founder__body { padding: 24px; }
.founder__body h3 { margin-top: 0; font-size: 22px; }
.founder__role { margin-top: 4px; color: var(--amber); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; }
.founder__body .muted { margin-top: 12px; }

/* ----- Timeline ----- */
.timeline { position: relative; margin-top: 44px; padding-left: 34px; border-left: 2px solid var(--line); }
.timeline__item { position: relative; padding-bottom: 40px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: -43px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 4px solid var(--bg); }
.timeline__dot--accent { background: var(--amber); }
.timeline__label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.timeline h3 { margin-top: 8px; font-size: 24px; }
.timeline .muted { margin-top: 8px; font-size: 15.5px; max-width: 640px; }

/* ----- Videos ----- */
.video-card { font: inherit; color: inherit; width: 100%; }
.video-card__media { position: relative; display: block; overflow: hidden; background: var(--bg2); aspect-ratio: 16 / 9; }
.video-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.video-card:hover .video-card__media img { transform: scale(1.06); }
.video-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 18, 30, 0), rgba(9, 18, 30, .45)); }
.video-card__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: #c02b2b; font-size: 20px; box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}
.video-card .card__content { gap: 6px; }
.video-card .h3 { margin: 0; }

/* ----- Gallery ----- */
.masonry { columns: 4 240px; column-gap: 14px; }
.masonry__item {
  display: block; width: 100%; padding: 0; border: 0; background: transparent; break-inside: avoid; margin-bottom: 14px;
  border-radius: 14px; overflow: hidden; transition: transform .35s;
}
.masonry__item:hover { transform: translateY(-4px); }
.masonry__item img { width: 100%; border-radius: 14px; transition: transform .6s, filter .4s; }
.masonry__item:hover img { transform: scale(1.05); filter: brightness(.82); }

/* ----- Support banner ----- */
.support { position: relative; overflow: hidden; scroll-margin-top: 88px; background: #0e3f9a; }
.support__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.support__shade { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(9, 24, 45, .93), rgba(18, 60, 145, .8)); }
.support__inner { position: relative; max-width: 900px; margin: 0 auto; padding: 96px 24px; text-align: center; }
.support h2 { color: #fff; font-size: clamp(30px, 5vw, 52px); }
.support p { margin: 18px auto 0; color: rgba(255, 255, 255, .85); font-size: clamp(16px, 2vw, 19px); max-width: 640px; text-wrap: pretty; }
.support__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ----- Contact ----- */
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 46px; }
.contact__cards { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.contact__card {
  display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  color: var(--text); transition: border-color .25s;
}
.contact__card--link:hover { border-color: var(--green); color: var(--text); }
.contact__icon { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--tone-bg); color: var(--tone-fg); display: grid; place-items: center; }
.contact__value { margin-top: 4px; font-size: 15.5px; }
.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px;
  display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow);
}
.form h3 { font-size: 24px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form textarea {
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 15px; color: var(--text);
}
.form textarea { resize: vertical; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { border: 0; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form__status { font-size: 14.5px; padding: 12px 14px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); }
.form__status--ok { background: var(--green-soft); color: var(--green); }

.map { padding-bottom: 80px; }
.map__card { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.map__card iframe { width: 100%; height: 340px; border: 0; display: block; }
.map__foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 22px 24px; }

/* ----- Footer ----- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 38px; padding-top: 64px; padding-bottom: 30px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; font-family: "Newsreader", serif; font-size: 19px; line-height: 1.2; }
.site-footer__brand img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(14, 32, 64, .18)); }
.site-footer__links { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; font-size: 14.5px; }
.site-footer__links a { color: var(--text); }
.site-footer__links a:hover { color: var(--amber); }
.site-footer .pills { margin-top: 16px; }
.site-footer__bar { border-top: 1px solid var(--line); }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; font-size: 13.5px; color: var(--muted); }
.site-footer__legal { display: flex; gap: 18px; }
.site-footer__legal a { color: var(--muted); }
.visitors { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.visitors strong { font-family: "Newsreader", serif; font-size: 17px; letter-spacing: .04em; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.visitors__dot { position: relative; display: grid; place-items: center; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.visitors__ring { position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ring 2.4s ease-out infinite; }

/* ----- Modals ----- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; animation: fadein .25s ease both; }
.modal--dark { background: rgba(8, 12, 18, .92); }
.modal--poster { z-index: 130; background: rgba(8, 12, 18, .75); padding: 20px; }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); font-size: 15px;
}
.modal__close--round { top: 18px; right: 18px; width: 44px; height: 44px; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; font-size: 17px; }
.modal__nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px;
}
.modal__nav--prev { left: 12px; }
.modal__nav--next { right: 12px; }
.lightbox__figure { margin: 0; max-width: min(1000px, 92vw); animation: popin .3s ease both; }
.lightbox__figure img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 14px; }
.lightbox__figure figcaption { margin-top: 12px; color: rgba(255, 255, 255, .8); font-size: 14px; text-align: center; }
.video-modal__frame { width: min(960px, 92vw); aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; animation: popin .3s ease both; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; }
.video-modal__pending { max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; animation: popin .3s ease both; }
.video-modal__pending h3 { font-size: 24px; }
.video-modal__pending p { margin-top: 10px; font-size: 15.5px; }
.video-modal__pending .btn { margin-top: 20px; }
.poster {
  position: relative; width: min(760px, 100%); background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  animation: popin .4s cubic-bezier(.22, .61, .36, 1) both; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.poster__img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.poster__body { padding: 34px; }
.poster__body h3 { margin-top: 12px; font-size: 30px; }
.poster__body .muted { margin-top: 12px; font-size: 15.5px; }
.poster__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ----- Inner pages (news list, article) ----- */
.page-head { padding-bottom: 0; }
.page-body { padding-bottom: 80px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }
.article { max-width: 820px; }
.article__back { font-size: 14px; margin-bottom: 18px; }
.article__title { margin-top: 12px; }
.article__image { width: 100%; max-height: 460px; object-fit: cover; border-radius: 20px; margin-top: 28px; box-shadow: var(--shadow); }
.article__body { margin-top: 28px; font-size: 17px; line-height: 1.75; }
.article__body p { margin: 0 0 1.1em; }
.article__body img { border-radius: 14px; height: auto; }
.article__body h2, .article__body h3 { margin: 1.4em 0 .5em; }

/* ----- Events (latest on the home page, all on /gallery) ----- */
.events { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.events--home { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.event-card {
  position: relative; display: block; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 5;
  background: var(--surface); border: 1px solid var(--line); color: #fff;
  transition: transform .3s, box-shadow .3s;
}
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: #fff; }
.event-card__media { position: absolute; inset: 0; background: var(--bg2); }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.event-card:hover .event-card__media img { transform: scale(1.07); }
.event-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 18, 30, 0) 38%, rgba(9, 18, 30, .88) 100%); }
.event-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.event-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12.5px; opacity: .88; }
.event-card__count { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.event-card__title { font-family: "Newsreader", Georgia, serif; font-size: 22px; line-height: 1.2; }
@media (min-width: 1100px) { .events--home { grid-template-columns: repeat(4, 1fr); } .events--home .event-card__title { font-size: 21px; } }

/* =====================================================================
   Society content: facts, governance, objectives, initiatives, impact,
   governing body, report banner, offices, long-form pages
   ===================================================================== */

.anchor-alias { display: block; position: relative; top: -88px; visibility: hidden; height: 0; }
.kicker--light { color: #ffd9a8; }
.kicker--light .kicker__bar { background: #ffd9a8; }
.pill--static { cursor: default; }
.pill--static:hover { border-color: var(--line); }

/* ----- Registration facts under "Who we are" ----- */
.facts {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin: 56px 0 0;
  background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.facts > div { background: var(--surface); padding: 20px 24px; }
.facts__wide { grid-column: span 2; }
.facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-size: 15.5px; font-weight: 500; }
@media (max-width: 719px) { .facts__wide { grid-column: auto; } }

/* ----- Core objectives ----- */
.objective { position: relative; overflow: hidden; }
.objective__no {
  position: absolute; right: 18px; top: 10px; font-family: "Newsreader", Georgia, serif; font-size: 54px; line-height: 1;
  color: var(--tone-bg); font-weight: 500; user-select: none;
}
.objective h3 { margin-top: 16px; }
.objective .muted { margin-top: 8px; }

/* ----- Key initiatives ----- */
.card h3 a { color: inherit; }
.impact-note {
  margin-top: 14px; padding: 9px 12px; border-radius: 10px; background: var(--tone-bg); color: var(--tone-fg);
  font-size: 13px; font-weight: 600; line-height: 1.4;
}
.impact-note--lg { display: inline-block; font-size: 14.5px; padding: 11px 16px; margin: 4px 0 8px; }

/* ----- Impact at a glance ----- */
.impact {
  position: relative; overflow: hidden; color: #fff; scroll-margin-top: 88px;
  background: linear-gradient(135deg, #0a2a6b 0%, #0e3f9a 55%, #0c6070 100%);
}
.impact__glow {
  position: absolute; inset: -30%; pointer-events: none;
  background: radial-gradient(40% 40% at 80% 20%, rgba(255, 255, 255, .12), transparent 70%),
              radial-gradient(40% 40% at 10% 90%, rgba(73, 198, 209, .25), transparent 70%);
}
.impact__inner { position: relative; padding-top: 88px; padding-bottom: 80px; }
.impact .h2 { color: #fff; }
.impact .lead { color: rgba(255, 255, 255, .8); }
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.stat-card {
  padding: 26px 24px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px); transition: transform .3s, background .3s;
}
.stat-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .14); }
.stat-card__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; font-size: 18px;
  background: rgba(255, 255, 255, .16); margin-bottom: 14px;
}
.stat-card__value {
  font-family: "Newsreader", Georgia, serif; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; word-break: break-word;
}
.stat-card__label { margin-top: 8px; font-weight: 600; font-size: 15px; }
.stat-card__detail { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.impact__more { margin-top: 34px; font-weight: 600; }
.impact__more a { color: #ffd9a8; }
.impact__more a:hover { color: #fff; }

/* ----- Governing body ----- */
.member { text-align: left; display: flex; flex-direction: column; gap: 4px; }
.member__avatar, .member__photo { width: 64px; height: 64px; border-radius: 50%; flex: none; margin-bottom: 8px; }
.member__avatar {
  display: grid; place-items: center; background: var(--tone-bg); color: var(--tone-fg);
  font-family: "Newsreader", Georgia, serif; font-size: 24px; font-weight: 500; letter-spacing: .02em;
}
.member__photo { object-fit: cover; }
.member h3 { margin-top: 0; font-size: 21px; }
.member__role { color: var(--amber); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; }
.member__addr { font-size: 13.5px; margin-top: 6px; }
.member__since { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.member__since::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }

.founding { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.founding summary {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; cursor: pointer; list-style: none;
  font-family: "Newsreader", Georgia, serif; font-size: 20px;
}
.founding summary::-webkit-details-marker { display: none; }
.founding summary span { color: var(--muted); transition: transform .25s; }
.founding[open] summary span { transform: rotate(180deg); }
.founding__table { overflow-x: auto; border-top: 1px solid var(--line); }
.founding table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.founding th, .founding td { padding: 12px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.founding th { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg2); }
.founding tr:last-child td { border-bottom: 0; }

/* ----- Annual report banner ----- */
.report { padding-top: 24px; padding-bottom: 24px; }
.report__card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  padding: 40px 44px; border-radius: 24px; color: #fff; box-shadow: var(--shadow-lg);
  background: radial-gradient(60% 140% at 100% 0%, rgba(73, 198, 209, .45), transparent 60%),
              linear-gradient(120deg, #0a2a6b, #0e3f9a);
}
.report__text { max-width: 640px; }
.report h2 { margin-top: 10px; color: #fff; font-size: clamp(26px, 3.4vw, 38px); }
.report p { margin-top: 10px; color: rgba(255, 255, 255, .85); font-size: 16px; }

/* ----- Contact: offices ----- */
.offices { margin-top: 26px; }
.offices .pills { margin-top: 12px; }

/* ----- Long-form pages and initiative pages ----- */
.article--wide { max-width: 900px; }
.work-head { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.work-head .badge-icon { width: 58px; height: 58px; font-size: 26px; border-radius: 16px; flex: none; }
.work-head .article__title { margin-top: 6px; }
.article__body h2 { font-size: 28px; margin: 1.8em 0 .5em; }
.article__body h3 { font-size: 21px; margin: 1.4em 0 .4em; }
.article__body ul, .article__body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article__body li { margin-bottom: .45em; }
.article__body a { text-decoration: underline; text-underline-offset: 3px; }
.article__body .lead { font-size: 19px; color: var(--text); margin-top: 0; }
.article__body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; display: block; overflow-x: auto; }
.article__body th, .article__body td { padding: 12px 16px; text-align: left; border: 1px solid var(--line); vertical-align: top; }
.article__body thead th, .article__body tbody th { background: var(--bg2); font-weight: 600; }
.article__body tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg2) 55%, transparent); }
.article__body figure { margin: 1.6em 0; }
.article__body figure.image img, .article__body figure img { max-width: 100%; height: auto; margin: 0 auto; }
.article__body figcaption { margin-top: 8px; text-align: center; font-size: 13.5px; color: var(--muted); }
.article__body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--amber); color: var(--muted); font-style: italic; }
.article__body .media iframe, .article__body figure.media { max-width: 100%; }
.article__print { margin-top: 36px; }
.more { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.more h2 { font-size: 22px; }
.more__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.more__list a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 14.5px; }
.more__list a:hover { border-color: var(--amber); color: var(--text); }

@media print {
  .topbar, .site-header, .drawer, .scrim, .to-top, .progress, .site-footer, .article__print, .article__back, .more, .flash { display: none !important; }
  body { background: #fff; color: #000; }
  .article { max-width: none; padding: 0; }
}

/* =====================================================================
   Footer: visitor statistics (total · today · online now) and credit
   ===================================================================== */

.vstats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 34px;
  background: linear-gradient(135deg, var(--bg2), var(--surface));
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
}
.vstat { display: flex; align-items: center; gap: 16px; padding: 22px 26px; position: relative; }
.vstat + .vstat::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line);
}
.vstat__icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--blue-soft); color: var(--blue);
}
.vstat:nth-child(2) .vstat__icon { background: var(--amber-soft); color: var(--amber); }
.vstat--live .vstat__icon { background: var(--green-soft); color: var(--green); }
.vstat__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.vstat__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vstat__value {
  margin-top: 4px; font-family: "Newsreader", Georgia, serif; font-size: clamp(26px, 3vw, 34px); font-weight: 500;
  letter-spacing: .01em; color: var(--text); font-variant-numeric: tabular-nums;
}

/* The "online" dot pulses so it reads as live. */
.vstat__pulse { position: relative; display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.vstat__ring { position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ring 2.2s ease-out infinite; }

@media (max-width: 820px) {
  .vstats { grid-template-columns: 1fr; }
  .vstat { padding: 18px 22px; }
  .vstat + .vstat::before { left: 22px; right: 22px; top: 0; bottom: auto; width: auto; height: 1px; }
}

.site-footer__bar-inner { row-gap: 10px; }
.site-footer__credit { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; text-align: center; }
.site-footer__credit a { font-weight: 600; color: var(--text); border-bottom: 1px solid var(--amber); padding-bottom: 1px; }
.site-footer__credit a:hover { color: var(--amber); }

/* =====================================================================
   Announcement pop-up: text, image or video; three sizes; fits any screen
   ===================================================================== */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body.popup-open { overflow: hidden; }

.popup { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadein .3s ease both; }
.popup[hidden] { display: none; }
.popup__backdrop { position: absolute; inset: 0; background: rgba(8, 12, 18, .72); backdrop-filter: blur(3px); }

.popup__panel {
  position: relative; width: 100%; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--text); border-radius: 22px; box-shadow: var(--shadow-lg);
  animation: popin .4s cubic-bezier(.22, .61, .36, 1) both;
}
.popup__panel--small { max-width: 380px; }
.popup__panel--medium { max-width: 560px; }
.popup__panel--large { max-width: 820px; }

/* Close button: always visible, on top of pictures and video as well */
.popup__close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: #14223a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: transform .2s, background .2s;
}
.popup__close:hover { transform: scale(1.08); background: #fff; }
[data-theme="dark"] .popup__close { background: rgba(20, 34, 58, .95); color: #eaf0f8; }

/* Picture */
.popup__media { position: relative; background: var(--bg2); line-height: 0; flex: none; }
/* With words beneath, the picture is capped so the text and buttons stay in view without scrolling. */
.popup__media--image img { width: 100%; height: auto; max-height: min(46vh, 430px); max-height: min(46dvh, 430px); object-fit: contain; background: var(--bg2); }
.popup__panel--large .popup__media--image img { max-height: min(56dvh, 520px); }
.popup__panel--image:not(:has(.popup__content)) .popup__media--image img { max-height: calc(100dvh - 32px); }
.popup__media--image a { display: block; }

/* Video: cover with a play button; the player loads only on press */
.popup__media--video { aspect-ratio: 16 / 9; background: #0b1422; }
.popup__media--video img { width: 100%; height: 100%; object-fit: cover; }
.popup__media--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.popup__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: #c02b2b; box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
  transition: transform .2s;
}
.popup__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.popup__play svg { margin-left: 4px; }

/* Words */
.popup__content { padding: 28px 30px 30px; }
.popup__panel--text .popup__content { padding-top: 40px; }
.popup__kicker { display: inline-block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); font-weight: 600; }
.popup__title { margin-top: 10px; font-size: clamp(24px, 4.2vw, 34px); line-height: 1.12; padding-right: 26px; }
.popup__panel--small .popup__title { font-size: clamp(22px, 5vw, 26px); }
.popup__body { margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.popup__body p { margin: 0 0 .9em; }
.popup__body p:last-child { margin-bottom: 0; }
.popup__body a { text-decoration: underline; text-underline-offset: 3px; }
.popup__body ul, .popup__body ol { padding-left: 1.2em; margin: 0 0 .9em; }
.popup__body img { max-width: 100%; height: auto; border-radius: 10px; }
.popup__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Phones: edge-to-edge friendly, comfortable tap targets, buttons stack */
@media (max-width: 560px) {
  .popup { padding: 10px; align-items: center; }
  .popup__panel { border-radius: 18px; max-height: calc(100dvh - 20px); }
  .popup__content { padding: 22px 20px 22px; }
  .popup__panel--text .popup__content { padding-top: 46px; }
  .popup__actions { flex-direction: column; }
  .popup__actions .btn { width: 100%; padding: 14px 20px; }
  .popup__play { width: 64px; height: 64px; }
  .popup__media--image img { max-height: 36dvh; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .popup__media--image img { max-height: 60dvh; }
}

/* =====================================================================
   Free tuition centres: a map of India with pins, a list, and zoom
   ===================================================================== */

.tmap { display: grid; gap: 28px; align-items: start; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); }
@media (max-width: 899px) {
  .tmap { grid-template-columns: 1fr; gap: 20px; }
  .tmap__stage { order: -1; }
}

/* ----- The list ----- */
.tmap__list { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px 12px; box-shadow: var(--shadow); }
.tmap__count { margin: 0 6px 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tmap__count strong { font-family: "Newsreader", Georgia, serif; font-size: 22px; letter-spacing: 0; color: var(--text); margin-right: 4px; font-weight: 500; }
.tmap__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tmap__row { display: flex; align-items: stretch; gap: 4px; }
.tmap__item {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left;
  border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--text); transition: background .2s, border-color .2s, transform .2s;
}
.tmap__item:hover, .tmap__item.is-hover { background: var(--bg2); }
.tmap__item.is-active { background: var(--green-soft); border-color: var(--green); }
.tmap__no {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 13px; font-weight: 700;
  background: var(--blue-soft); color: var(--blue); transition: background .2s, color .2s;
}
.tmap__item.is-active .tmap__no { background: var(--green); color: #fff; }
.tmap__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tmap__name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.tmap__sub { font-size: 12.5px; color: var(--muted); }
.tmap__open {
  flex: none; display: grid; place-items: center; width: 40px; border-radius: 12px; color: var(--muted); transition: background .2s, color .2s;
}
.tmap__open:hover { background: var(--bg2); color: var(--green); }

/* ----- The stage ----- */
.tmap__stage { min-width: 0; }
.tmap__canvas {
  position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: var(--ratio, 600 / 682); overflow: hidden;
  border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--blue) 14%, transparent) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(160deg, var(--bg2), var(--surface));
}
.tmap__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tmap__india {
  fill: color-mix(in srgb, var(--blue) 16%, var(--surface)); stroke: var(--blue); stroke-width: 1.2; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--blue) 22%, transparent));
}

/* Everything laid over the map is positioned by the script in percentages */
.tmap__town, .tmap__pin, .tmap__cluster { position: absolute; left: 0; top: 0; }

.tmap__town { display: flex; align-items: center; gap: 5px; transform: translate(-3px, -50%); font-size: 11.5px; color: var(--muted); pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.tmap__town i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 70%, transparent); flex: none; margin-left: -3px; }
.tmap__town span { background: color-mix(in srgb, var(--surface) 78%, transparent); padding: 1px 6px; border-radius: 6px; }

/* Group marker on the full map */
.tmap__cluster { display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translate(-50%, -50%); border: 0; background: transparent; padding: 0; z-index: 3; transition: opacity .35s; }
.tmap__pulse { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(12, 118, 131, .45); border: 3px solid #fff; }
.tmap__pulse b { font-size: 15px; }
.tmap__ring { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--green); animation: ring 2s ease-out infinite; }
.tmap__clabel { display: flex; flex-direction: column; align-items: center; padding: 6px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; text-align: center; line-height: 1.25; }
.tmap__clabel small { font-weight: 400; font-size: 11px; color: var(--muted); }
.tmap__cluster:hover .tmap__pulse { transform: scale(1.08); }
.tmap__pulse { transition: transform .2s; }

/* Pins: the classic map marker, tip on the exact point */
.tmap__pin { z-index: 4; width: 36px; height: 44px; border: 0; background: transparent; padding: 0; transform: translate(-50%, -100%); opacity: 0; pointer-events: none; transition: opacity .3s; cursor: pointer; }
.tmap__pin.is-on { opacity: 1; pointer-events: auto; }
.tmap__pin-body {
  position: absolute; left: 50%; top: 4px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--blue); border: 2.5px solid #fff; box-shadow: 0 6px 14px rgba(14, 32, 64, .35); display: grid; place-items: center;
  transition: background .2s, transform .25s, width .25s, height .25s, margin .25s;
}
.tmap__pin-body b { transform: rotate(45deg); font-size: 11.5px; color: #fff; line-height: 1; }
.tmap__pin.is-approx .tmap__pin-body { background: color-mix(in srgb, var(--blue) 82%, #fff); }
.tmap__pin:hover .tmap__pin-body, .tmap__pin.is-hover .tmap__pin-body { transform: rotate(-45deg) scale(1.15); }
.tmap__pin.is-active { z-index: 6; }
.tmap__pin.is-active .tmap__pin-body { background: var(--green); width: 36px; height: 36px; margin-left: -18px; top: 0; transform: rotate(-45deg); box-shadow: 0 10px 22px rgba(12, 118, 131, .55); }
.tmap__pin.is-active .tmap__pin-body b { font-size: 13.5px; }
.tmap__pin.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 34px; height: 12px; margin-left: -17px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(12, 118, 131, .5), transparent 70%); animation: tmapGlow 1.8s ease-out infinite;
}
@keyframes tmapGlow { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }

/* Details of the selected place */
.tmap__card {
  position: absolute; z-index: 8; left: 0; top: 0; width: min(250px, calc(100% - 16px)); display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: popin .25s ease both;
}
.tmap__card-name { font-family: "Newsreader", Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1.15; }
.tmap__card-sub { font-size: 13px; color: var(--muted); }
.tmap__card-note { font-size: 13px; color: var(--text); }
.tmap__card-sub:empty, .tmap__card-note:empty { display: none; }
.tmap__card .btn { margin-top: 10px; padding: 10px 16px; font-size: 14px; }

.tmap__reset {
  position: absolute; left: 12px; top: 12px; z-index: 9; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 13.5px;
  box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.tmap__reset:hover { transform: translateY(-2px); border-color: var(--green); }
.tmap__foot { max-width: 560px; margin: 12px auto 0; text-align: center; font-size: 13px; color: var(--muted); }

@media (max-width: 560px) {
  .tmap__canvas { border-radius: 20px; }
  .tmap__clabel { font-size: 11.5px; padding: 5px 10px; }
  .tmap__pin { width: 40px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .tmap__ring, .tmap__pin.is-active::after { animation: none; }
}
