/* ==========================================================================
   Mahabodhi Buddha Vihara — Home page
   Palette taken from the Vihara logo: crimson #C74040 and saffron #F19100,
   with Bodhi-leaf green from the emblem and Amaravati limestone neutrals.
   Display: Marcellus (inscriptional capitals, like carved stone)
   Text:    Hanken Grotesk
   ========================================================================== */

:root {
  /* Brand */
  --crimson: #C74040;
  --crimson-deep: #9A2E2E;
  --crimson-ink: #4A1616;
  --saffron: #F19100;
  --saffron-deep: #B86A00;
  --saffron-soft: #FCE7C2;
  --leaf: #5C9A3A;
  --leaf-deep: #35552A;

  /* Neutrals: pale Amaravati limestone */
  --paper: #FBFAF7;
  --stone: #EFECE5;
  --stone-2: #E2DDD2;
  --line: #D9D3C7;
  --ink: #2B2321;
  --muted: #6C625D;
  --night: #221A20;
  --night-2: #2E2329;

  /* Type */
  --f-display: "Marcellus", "Palatino Linotype", Georgia, serif;
  --f-text: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-telugu: "Noto Serif Telugu", serif;

  /* Rhythm */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 116px);
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(74, 22, 22, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.te, [lang="te"] { font-family: var(--f-telugu); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--crimson); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.ic { width: 20px; height: 20px; flex: none; fill: currentColor; }
.ic--xl { width: 44px; height: 44px; }

/* ---------- Type ---------- */
.h-section {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.12;
  color: var(--crimson-ink);
  letter-spacing: .005em;
  margin-bottom: .45em;
  text-wrap: balance;
}
.lead { font-size: 1.16rem; line-height: 1.6; color: var(--ink); max-width: 60ch; }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 32px; margin-bottom: 44px; }
.section-head .h-section { grid-column: 1; margin: 0; }
.section-head p { grid-column: 1; margin: 0; color: var(--muted); max-width: 56ch; }
.section-head .text-link { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.section-head--center { display: block; text-align: center; max-width: 680px; margin-inline: auto; }
.section-head--center p { margin-inline: auto; margin-top: 10px; }
.section-head--light .h-section { color: #fff; }
.section-head--light p { color: rgba(255,255,255,.72); }

.text-link {
  color: var(--crimson-deep); font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px; white-space: nowrap;
}
.text-link:hover { color: var(--crimson); }
.text-link--light { color: var(--saffron-soft); }
.link-more { color: var(--crimson); font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none; letter-spacing: .01em;
  border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn .ic { width: 18px; height: 18px; }
.btn--saffron { background: var(--crimson); color: #fff; }
.btn--saffron:hover { background: var(--crimson-deep); }
.btn--maroon { background: var(--crimson-ink); color: #fff; }
.btn--maroon:hover { background: var(--crimson-deep); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--crimson-ink); }
.btn--ghost-dark { border-color: var(--line); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
}
.icon-btn:hover { border-color: var(--crimson); color: var(--crimson); }
.icon-btn--light { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(0,0,0,.18); }
.icon-btn--light:hover { background: #fff; color: var(--crimson-ink); border-color: #fff; }

/* ---------- Chaitya arch frames (signature motif from the shrine hall) ---------- */
.arch { border-radius: 999px 999px 12px 12px; overflow: hidden; display: block; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--ribbed {
  overflow: visible; padding: 12px; border: 1.5px solid var(--saffron);
  border-radius: 999px 999px 18px 18px; position: relative;
}
.arch--ribbed::before {
  content: ""; position: absolute; inset: -12px; border: 1px solid rgba(199, 64, 64, .35);
  border-radius: 999px 999px 24px 24px; pointer-events: none;
}
.arch--ribbed img { border-radius: 999px 999px 10px 10px; }
.arch-soft { border-radius: 24px; overflow: hidden; }

/* Vedika (Amaravati railing) band */
.vedika {
  --c: rgba(241, 145, 0, .55);
  height: 26px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 100% 3px no-repeat,
    radial-gradient(circle at 50% 50%, var(--c) 0 3.5px, transparent 4.5px) 0 0 / 28px 100% repeat-x,
    linear-gradient(90deg, var(--c) 0 3px, transparent 3px) 12px 0 / 28px 100% repeat-x;
}
.vedika--gold { --c: rgba(241, 145, 0, .45); }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar { background: var(--night); color: rgba(255,255,255,.82); font-size: .86rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar__hours { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar__hours strong { color: #fff; font-weight: 600; }
.topbar__hours .ic, .topbar__links .ic { width: 16px; height: 16px; color: var(--saffron); }
.topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar__links a:hover { color: #fff; }
.topbar__lang { display: flex; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 2px; }
.topbar__lang a, .topbar__lang span, .topbar__lang button { border: 0; background: none; color: inherit; text-decoration: none; padding: 2px 10px; border-radius: 999px; font-size: .8rem; }
.topbar__search { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: inherit; padding: 0; font-size: inherit; }
.topbar__search:hover { color: #fff; }
.topbar__search .ic { width: 16px; height: 16px; color: var(--saffron); }
.topbar__lang .is-active { background: var(--saffron); color: var(--night); font-weight: 600; }

/* ==========================================================================
   Header + mega menu
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 70; background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(74, 22, 22, .35); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: 84px; max-width: fit-content; justify-content: space-between;}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand__logo { width: auto; height: auto; }
.brand__sub {
  font-size: .76rem; line-height: 1.3; color: var(--muted);
  padding-left: 14px; border-left: 1.5px solid var(--line);
}

.nav { margin-left: 0; }
.nav__head, .nav__mobile-cta { display: none; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 8px; border: 0; background: none;
  font-weight: 500; font-size: .97rem; color: var(--ink); text-decoration: none; border-radius: 8px;
  position: relative; white-space: nowrap;
}
.nav__link .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--saffron); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover, .nav__link.is-current, .has-mega.is-open > .nav__link { color: var(--crimson); }
.nav__link:hover::after, .nav__link.is-current::after, .has-mega.is-open > .nav__link::after { transform: scaleX(1); }
.has-mega.is-open > .nav__link .chev { transform: rotate(180deg); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* Mega panels (desktop) */
@media (min-width: 1280px) {
  .has-mega { position: static; }
  .mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-top: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(74, 22, 22, .45);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
  }
  .mega::before { /* thin saffron rule echoing the logo */
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px;
    background: linear-gradient(90deg, var(--crimson), var(--saffron));
  }
  .has-mega.is-open > .mega {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s;
  }
}
.mega__inner { display: grid; grid-template-columns: var(--mega-cols, 1.7fr 1fr); gap: 48px; padding-block: 36px 40px; }
.mega__inner--3 { grid-template-columns: repeat(3, 1fr); }
.mega__inner--gallery { grid-template-columns: 220px 1fr; }
.mega__cols { display: grid; gap: 32px; }
.mega__cols--2 { grid-template-columns: 1fr 1fr; }
.mega__title {
  font-family: var(--f-display); font-size: 1.15rem; color: var(--crimson-deep);
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.mega__links { display: grid; gap: 4px; align-content: start; }
.mega__links a {
  display: flex; gap: 14px; align-items: flex-start; padding: 10px 12px; margin-inline: -12px;
  text-decoration: none; border-radius: 10px; font-weight: 600; font-size: .96rem; line-height: 1.35;
}
.mega__links a .ic { width: 22px; height: 22px; color: var(--saffron-deep); margin-top: 1px; }
.mega__links small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.mega__links a:hover { background: var(--stone); color: var(--crimson); }
.mega__plain { display: grid; gap: 2px; }
.mega__plain a { display: block; padding: 7px 0; text-decoration: none; font-weight: 500; }
.mega__plain a:hover { color: var(--crimson); }
.mega__plain .te { font-size: .85rem; color: var(--saffron-deep); margin-left: 6px; }

.mega__feature {
  display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: center;
  background: var(--stone); border-radius: var(--radius); padding: 18px; text-decoration: none;
}
.mega__feature-img { height: 170px; }
.mega__feature-body { display: grid; gap: 8px; font-size: .92rem; color: var(--muted); }
.mega__feature-body strong { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; color: var(--crimson-ink); }
.mega__feature--note { grid-template-columns: 1fr; align-content: start; gap: 10px; padding: 26px; color: var(--muted); font-size: .94rem; }
.mega__feature--note .ic { color: var(--saffron); }
.mega__feature--note strong { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; color: var(--crimson-ink); }
.mega__feature--note .btn { justify-self: start; margin-top: 6px; }
.progress { display: block; height: 6px; border-radius: 6px; background: var(--stone-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--crimson), var(--saffron)); }

.mega__events { display: grid; gap: 6px; }
.mega__events a { display: flex; gap: 16px; align-items: center; padding: 10px 12px; margin-inline: -12px; border-radius: 10px; text-decoration: none; font-weight: 600; line-height: 1.35; }
.mega__events a:hover { background: var(--stone); }
.mega__events time {
  flex: none; width: 58px; text-align: center; font-size: .78rem; color: var(--crimson);
  border: 1.5px solid var(--saffron); border-radius: 999px 999px 8px 8px; padding: 8px 0 4px; line-height: 1.1;
}
.mega__events time b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; color: var(--crimson-ink); }
.mega__events small { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; }
.mega__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mega__thumbs a { height: 180px; }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(34, 26, 32, .94);
  display: grid; place-content: start center; padding: 18vh var(--gutter) 0; color: #fff;
}
.search-overlay__form {
  display: flex; align-items: center; gap: 12px; width: min(720px, 92vw);
  border-bottom: 2px solid var(--saffron); padding-bottom: 10px;
}
.search-overlay__form > .ic { width: 28px; height: 28px; color: var(--saffron); }
.search-overlay input { flex: 1; background: none; border: 0; outline: 0; font-family: var(--f-display); font-size: clamp(1.5rem, 4vw, 2.4rem); color: #fff; }
.search-overlay .icon-btn { color: #fff; border-color: rgba(255,255,255,.4); }
.search-overlay__hint { margin-top: 18px; color: rgba(255,255,255,.6); }

/* ==========================================================================
   Hero slider
   ========================================================================== */
.hero { position: relative; height: clamp(580px, 86vh, 820px); background: var(--night); color: #fff; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; }
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(34, 18, 20, .86) 0%, rgba(34, 18, 20, .55) 42%, rgba(34, 18, 20, 0) 72%),
    linear-gradient(0deg, rgba(34, 18, 20, .65) 0%, rgba(34, 18, 20, 0) 35%);
}
.slide__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; padding-bottom: 110px;
}
.slide__content > * { max-width: 620px; }
.slide__kicker { font-style: italic; color: var(--saffron); font-size: 1.08rem; margin-bottom: 14px; }
.slide__title {
  font-family: var(--f-display); font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.04;
  margin-bottom: 22px; text-wrap: balance; max-width: 760px;
}
.slide__text { font-size: 1.12rem; color: rgba(255,255,255,.86); max-width: 52ch; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* Text enters once per slide change: the page's single orchestrated motion */
.slide.is-active .slide__content > * { animation: rise .9s var(--ease) both; }
.slide.is-active .slide__title { animation-delay: .12s; }
.slide.is-active .slide__text { animation-delay: .24s; }
.slide.is-active .slide__actions { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__controls {
  position: absolute; left: 0; right: 0; bottom: 92px; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.hero__tabs { display: flex; gap: 28px; }
.hero__tabs button {
  background: none; border: 0; color: rgba(255,255,255,.6); padding: 0 0 10px; text-align: left;
  font-size: .9rem; font-weight: 500; position: relative; min-width: 110px;
}
.hero__tabs button i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero__tabs button i::after { content: ""; position: absolute; inset: 0; background: var(--saffron); transform: scaleX(0); transform-origin: left; }
.hero__tabs button.is-active { color: #fff; }
.hero__tabs button.is-active i::after { animation: progress var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__tabs button.is-active i::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: 10px; }
.pause-bars { width: 12px; height: 14px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero.is-paused .pause-bars { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

/* ==========================================================================
   Visit strip
   ========================================================================== */
.visit { position: relative; z-index: 5; }
.visit--overlap { margin-top: -60px; }
.visit__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 4px solid var(--saffron); padding: 0;
}
.visit__item { display: flex; gap: 14px; padding: 26px 26px; }
.visit__item + .visit__item { border-left: 1px solid var(--line); }
.visit__item .ic { width: 30px; height: 30px; color: var(--crimson); margin-top: 2px; }
.visit__item h3 { font-family: var(--f-display); font-size: 1.12rem; color: var(--crimson-ink); margin-bottom: 4px; }
.visit__item p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.5; }

/* ==========================================================================
   Announcements
   ========================================================================== */
.notice { padding-block: 0; }
.notice__inner { display: flex; align-items: center; gap: 20px; }
.notice__label {
  margin: 0; flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--crimson); font-size: .92rem;
}
.notice__track {
  position: relative; flex: 1; display: flex; overflow: hidden; border-left: 1.5px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.notice__list { display: flex; flex: none; gap: 56px; padding-left: 56px; white-space: nowrap; animation: ticker var(--ticker, 40s) linear infinite; }
.notice__track:hover .notice__list, .notice__track:focus-within .notice__list { animation-play-state: paused; }
.notice__list li { position: relative; }
.notice__list li::before { content: ""; position: absolute; left: -32px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; border: 1.5px solid var(--saffron); }
.notice__list b { color: var(--crimson-ink); font-weight: 700; }
.notice__list a { text-decoration: none; }
.notice__list a:hover { color: var(--crimson); text-decoration: underline; }
@keyframes ticker { to { transform: translateX(-100%); } }
.notice__all { flex: none; font-weight: 600; font-size: .9rem; color: var(--crimson-deep); }

/* ==========================================================================
   About
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__media { position: relative; padding: 14px 70px 60px 14px; }
.about__img { aspect-ratio: 4 / 5.2; }
.about__img img { height: 100%; }
.about__img-sm {
  position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4;
  border: 6px solid var(--paper); box-shadow: var(--shadow);
}
.about__body p { max-width: 62ch; }
.about__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 30px 0 34px;
  border-top: 1px solid var(--line);
}
.about__facts div { padding: 18px 18px 0 0; position: relative; }
.about__facts div::before { /* timeline dot */
  content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--saffron);
}
.about__facts dt { font-family: var(--f-display); font-size: 1.9rem; color: var(--crimson); line-height: 1.1; }
.about__facts dd { margin: 4px 0 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.about__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* ==========================================================================
   Verse
   ========================================================================== */
.verse { background: var(--crimson-deep); color: #fff; position: relative; overflow: hidden; }
.verse .vedika { --c: rgba(241, 145, 0, .5); }
.verse__inner { position: relative; padding-block: clamp(64px, 8vw, 100px); text-align: center; }
.verse__wheel {
  position: absolute; width: min(560px, 90vw); height: min(560px, 90vw); left: 50%; top: 50%;
  transform: translate(-50%, -50%); color: rgba(255,255,255,.06); pointer-events: none;
}
.verse blockquote { margin: 0 auto; max-width: 820px; position: relative; }
.verse__pali {
  font-family: var(--f-display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.3;
  color: var(--saffron-soft); margin-bottom: 26px;
}
.verse__en { font-size: 1.2rem; max-width: 48ch; margin: 0 auto 16px; color: #fff; }
.verse footer { font-size: .9rem; color: rgba(255,255,255,.65); }
.verse__mission {
  position: relative; max-width: 60ch; margin: 36px auto 0; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.85);
}

/* ==========================================================================
   Five āyaka pillars
   ========================================================================== */
.pillars { background: var(--stone); }
.pillars__row { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 20px; align-items: end; margin-top: 8px; }
.pillar { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pillar__cap {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--saffron); color: var(--crimson); position: relative; z-index: 1;
}
.pillar__cap .ic { width: 32px; height: 32px; }
.pillar__shaft {
  width: 46px; height: var(--h, 130px); margin-top: -8px;
  background:
    repeating-linear-gradient(90deg, rgba(74, 22, 22, .12) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #F7F4EE, var(--stone-2));
  border: 1.5px solid var(--line); border-top: 0; border-bottom: 6px solid var(--crimson-ink);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px;
}
.pillar__num { font-family: var(--f-display); font-size: 1.3rem; color: var(--crimson-deep); background: var(--paper); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.pillar--centre .pillar__cap { background: var(--crimson); color: #fff; border-color: var(--crimson); width: 86px; height: 86px; }
.pillar h3 { font-family: var(--f-display); font-size: 1.3rem; color: var(--crimson-ink); margin: 20px 0 6px; }
.pillar p { font-size: .93rem; color: var(--muted); max-width: 22ch; margin: 0; min-height: 4.6em; }

.grounds { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid var(--line); }
.grounds__item { display: flex; gap: 14px; padding: 24px 22px 0 0; text-decoration: none; font-size: .92rem; color: var(--muted); }
.grounds__item .ic { width: 28px; height: 28px; color: var(--leaf-deep); }
.grounds__item strong { display: block; color: var(--ink); font-size: 1rem; }
.grounds__item:hover strong { color: var(--crimson); }

/* ==========================================================================
   Programs
   ========================================================================== */
.programs__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.schedule { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .96rem; }
.schedule thead th { text-align: left; font-size: .82rem; font-weight: 600; color: var(--muted); padding: 0 14px 10px 0; border-bottom: 2px solid var(--crimson-ink); }
.schedule tbody th, .schedule td { text-align: left; vertical-align: top; padding: 18px 14px 18px 0; border-bottom: 1px solid var(--line); }
.schedule tbody th { font-family: var(--f-display); font-weight: 400; font-size: 1.12rem; color: var(--crimson-ink); white-space: nowrap; line-height: 1.3; }
.schedule tbody th span { font-family: var(--f-text); font-size: .84rem; color: var(--muted); }
.schedule td strong { display: block; color: var(--ink); }
.schedule td { color: var(--muted); }
.schedule td:last-child { white-space: nowrap; font-size: .88rem; }
.schedule tr.is-featured th, .schedule tr.is-featured td { background: var(--saffron-soft); }
.schedule tr.is-featured th { box-shadow: inset 4px 0 0 var(--saffron); padding-left: 16px; }

.breathe { display: flex; align-items: center; gap: 26px; margin-top: 20px; padding: 24px; border-radius: var(--radius); background: var(--stone); }
.breathe h3 { font-family: var(--f-display); font-size: 1.3rem; color: var(--crimson-ink); margin-bottom: 4px; }
.breathe p { margin: 0; color: var(--muted); font-size: .95rem; }
.breathe__circle {
  flex: none; width: 116px; height: 116px; border-radius: 50%; border: 1.5px solid var(--saffron);
  background: var(--paper); position: relative; display: grid; place-items: center;
}
.breathe__ring {
  position: absolute; inset: 10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(241,145,0,.55), rgba(199,64,64,.35));
  transform: scale(.55);
}
.breathe__circle.is-on .breathe__ring { animation: breathe 10s ease-in-out infinite; }
.breathe__label { position: relative; font-weight: 600; font-size: .9rem; color: var(--crimson-ink); }
@keyframes breathe { 0% { transform: scale(.55); } 40% { transform: scale(1); } 100% { transform: scale(.55); } }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow); position: relative;
}
.form-card::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 4px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--crimson), var(--saffron));
}
.form-card h3 { font-family: var(--f-display); font-size: 1.6rem; color: var(--crimson-ink); margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .95rem; }
.field { display: grid; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field label, .field legend { font-weight: 600; font-size: .88rem; padding: 0; margin-bottom: 2px; }
.field input, .field select, .field textarea, .form-card--donate input[type="number"] {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus, .form-card--donate input[type="number"]:focus {
  outline: 0; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(241, 145, 0, .2); background: #fff;
}
.field__error { display: none; color: var(--crimson-deep); font-size: .82rem; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--crimson); }
.field.is-invalid .field__error { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); font-size: .9rem; font-weight: 500; background: var(--paper);
  transition: background-color .2s, border-color .2s, color .2s;
}
.chips input:checked + span { background: var(--crimson-ink); border-color: var(--crimson-ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.chips--amount { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 10px; }
.chips--amount span { justify-content: center; font-family: var(--f-display); font-size: 1.15rem; width: 100%; }
.chips--amount span::before { content: "₹"; margin-right: 2px; font-size: .85em; opacity: .7; }

.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; margin-bottom: 18px; }
.check input { width: 18px; height: 18px; accent-color: var(--crimson); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.form-status { margin: 12px 0 0; font-weight: 600; color: var(--leaf-deep); font-size: .94rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--crimson-deep); }

/* ==========================================================================
   Activities
   ========================================================================== */
.activities__grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 36px 28px; }
.act {
  display: grid; align-content: start; gap: 6px; padding-top: 22px; border-top: 2px solid var(--line);
  text-decoration: none; color: var(--muted); font-size: .93rem; transition: border-color .25s;
}
.act .ic { width: 30px; height: 30px; color: var(--crimson); margin-bottom: 6px; }
.act strong { color: var(--ink); font-size: 1.08rem; }
.act:hover { border-top-color: var(--saffron); }
.act:hover strong { color: var(--crimson); }
.act--feature {
  grid-column: span 2; grid-row: span 2; position: relative; border: 0; padding: 0; border-radius: 22px; overflow: hidden;
  min-height: 380px; color: rgba(255,255,255,.85);
}
.act--feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act--feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(74,22,22,.92), rgba(74,22,22,.1) 70%); }
.act__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 32px; display: grid; gap: 8px; max-width: 520px; }
.act--feature .ic { color: var(--saffron); }
.act--feature strong { color: #fff; font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; }
.act--feature:hover strong { color: #fff; }
.act--feature .link-more { color: var(--saffron-soft); }

/* ==========================================================================
   Events
   ========================================================================== */
.events {
  background:
    radial-gradient(1000px 500px at 85% 0%, rgba(199, 64, 64, .25), transparent 60%),
    var(--night);
  color: #fff;
}
.events__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.event-feature { display: grid; grid-template-columns: 0.85fr 1fr; gap: 36px; align-items: center; }
.event-feature__img { aspect-ratio: 3 / 4.1; }
.event-feature__img img { height: 100%; }
.date-badge {
  display: inline-flex; align-items: baseline; gap: 10px; color: var(--saffron);
  border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 10px; margin-bottom: 18px;
}
.date-badge b { font-family: var(--f-display); font-weight: 400; font-size: 3rem; line-height: 1; }
.event-feature h3 { font-family: var(--f-display); font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; margin-bottom: 14px; }
.event-feature p { color: rgba(255,255,255,.78); }
.meta-list { display: grid; gap: 6px; margin-bottom: 20px; font-size: .94rem; color: rgba(255,255,255,.85); }
.meta-list li { display: flex; align-items: center; gap: 10px; }
.meta-list .ic { width: 18px; height: 18px; color: var(--saffron); }
.countdown { display: flex; gap: 10px; margin-bottom: 24px; }
.countdown div { min-width: 74px; text-align: center; padding: 10px 6px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; }
.countdown b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.countdown span { font-size: .78rem; color: rgba(255,255,255,.6); }
.event-feature__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.event-list { display: grid; }
.event-list li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.event-list li:first-child { padding-top: 0; }
.event-list time {
  flex: none; width: 62px; text-align: center; font-size: .78rem; color: rgba(255,255,255,.7);
  border: 1.5px solid rgba(241,145,0,.7); border-radius: 999px 999px 10px 10px; padding: 10px 0 6px; line-height: 1.1;
}
.event-list time b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: #fff; }
.event-list h3 { font-size: 1.04rem; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.event-list h3 a { text-decoration: none; }
.event-list h3 a:hover { color: var(--saffron); text-decoration: underline; }
.event-list p { margin: 0; color: rgba(255,255,255,.62); font-size: .9rem; }
.event-list__past { border-bottom: 0 !important; }
.event-list__past a { color: var(--saffron-soft); font-weight: 600; font-size: .92rem; }

/* ==========================================================================
   Projects
   ========================================================================== */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 36px; overflow-x: auto; }
.tabs button {
  background: none; border: 0; padding: 12px 18px; font-weight: 600; color: var(--muted); position: relative; white-space: nowrap;
}
.tabs button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; background: var(--crimson); transform: scaleX(0); transition: transform .25s var(--ease); }
.tabs button.is-active { color: var(--crimson-ink); }
.tabs button.is-active::after { transform: scaleX(1); }
.project { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.project__img { border-radius: 400px 400px 20px 20px; overflow: hidden; aspect-ratio: 4 / 3.2; }
.project__img img { width: 100%; height: 100%; object-fit: cover; }
.project h3 { font-family: var(--f-display); font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--crimson-ink); margin-bottom: 14px; }
.project p { color: var(--muted); }
.project__goals { display: grid; gap: 8px; margin: 18px 0 24px; }
.project__goals li { display: flex; gap: 10px; align-items: flex-start; }
.project__goals .ic { color: var(--leaf); margin-top: 3px; }
.fund { margin-bottom: 24px; }
.fund__bar { height: 10px; border-radius: 10px; background: var(--stone-2); overflow: hidden; margin-bottom: 8px; }
.fund__bar span { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--crimson), var(--saffron)); }
.fund p { margin: 0; font-size: .92rem; color: var(--muted); }
.fund strong { color: var(--crimson-ink); }

/* ==========================================================================
   Gallery — a colonnade of chaitya arches
   ========================================================================== */
.gallery { background: var(--stone); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters button {
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 18px; font-weight: 500; font-size: .92rem;
}
.filters button.is-active { background: var(--crimson-ink); border-color: var(--crimson-ink); color: #fff; }
.gallery__grid { display: grid; grid-template-columns: repeat(var(--cols, 6), 1fr); gap: 18px; }
.gallery__grid li { display: grid; gap: 10px; text-align: center; font-size: .88rem; color: var(--muted); }
.gallery__grid li.is-hidden { display: none; }
.gallery__grid button { padding: 0; border: 0; aspect-ratio: 3 / 4.2; background: var(--stone-2); position: relative; }
.gallery__grid button img { transition: transform .6s var(--ease); }
.gallery__grid button:hover img { transform: scale(1.05); }
.video { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: 64px; }
.video__cover { position: relative; padding: 0; border: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--night); width: 100%; }
.video__cover img { width: 100%; height: 100%; object-fit: cover; }
.video__cover iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; background: var(--crimson); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255,255,255,.18);
}
.video__play .ic { width: 32px; height: 32px; margin-left: 4px; }
.video h3 { font-family: var(--f-display); font-size: 1.8rem; color: var(--crimson-ink); margin-bottom: 10px; }
.video p { color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 130; background: rgba(34, 26, 32, .95); display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.lightbox figure { max-width: min(560px, 80vw); text-align: center; color: #fff; }
.lightbox img { max-height: 78vh; margin-inline: auto; border-radius: 999px 999px 14px 14px; }
.lightbox figcaption { margin-top: 14px; font-family: var(--f-display); font-size: 1.2rem; }
.lightbox__close { position: absolute; top: 20px; right: 20px; }

/* ==========================================================================
   Literature + FAQ
   ========================================================================== */
.learn__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.resources > p { color: var(--muted); }
.magazine {
  display: grid; grid-template-columns: 112px 1fr; gap: 22px; align-items: center; margin: 26px 0 18px;
  padding: 20px; border-radius: var(--radius); background: var(--stone); text-decoration: none; color: var(--muted); font-size: .94rem;
}
.magazine strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; color: var(--crimson-ink); }
.magazine__cover {
  height: 148px; border-radius: 4px 10px 10px 4px; background: var(--crimson);
  box-shadow: inset 8px 0 0 rgba(0,0,0,.15), 0 12px 24px -12px rgba(74,22,22,.6);
  display: grid; place-content: center; text-align: center; color: var(--saffron-soft); padding: 8px;
  position: relative;
}
.magazine__cover::before { content: ""; position: absolute; inset: 10px 8px 10px 16px; border: 1px solid rgba(252,231,194,.45); border-radius: 60px 60px 4px 4px; }
.magazine__cover span { font-family: var(--f-display); font-size: .95rem; position: relative; }
.magazine__cover small { font-size: .7rem; opacity: .8; position: relative; }
.res-list { display: grid; }
.res-list a { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .92rem; }
.res-list .ic { width: 26px; height: 26px; color: var(--crimson); }
.res-list strong { display: block; color: var(--ink); font-size: 1rem; }
.res-list a:hover strong { color: var(--crimson); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--f-display); font-size: 1.22rem; color: var(--crimson-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--crimson); transition: transform .25s var(--ease);
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 62ch; }
.faq .text-link { display: inline-block; margin-top: 22px; }

/* ==========================================================================
   Donate
   ========================================================================== */
.donate {
  background:
    linear-gradient(180deg, rgba(241,145,0,.12), rgba(241,145,0,.04)),
    var(--paper);
  border-top: 1px solid var(--line);
}
.donate__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.donate__uses { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; margin: 30px 0 34px; }
.donate__uses li { display: flex; gap: 14px; font-size: .92rem; color: var(--muted); }
.donate__uses .ic { width: 30px; height: 30px; color: var(--crimson); }
.donate__uses strong { display: block; color: var(--ink); font-size: 1rem; }
.bank { border: 1.5px dashed var(--saffron); border-radius: var(--radius); padding: 22px 24px; background: rgba(255,255,255,.6); }
.bank h3 { font-family: var(--f-display); font-size: 1.25rem; color: var(--crimson-ink); margin-bottom: 10px; }
.bank dl { display: grid; gap: 6px; margin: 0 0 12px; }
.bank dl div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; font-size: .94rem; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; }
.bank p { margin: 0; font-size: .9rem; color: var(--muted); }
.bank a { color: var(--crimson-deep); font-weight: 600; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__list { display: grid; gap: 18px; margin: 24px 0 30px; }
.contact__list li { display: flex; gap: 16px; color: var(--muted); }
.contact__list .ic { width: 26px; height: 26px; color: var(--crimson); margin-top: 2px; }
.contact__list strong { display: block; color: var(--ink); }
.contact__list a { color: var(--crimson-deep); font-weight: 600; text-decoration: none; }
.directions { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.directions h3 { font-family: var(--f-display); font-size: 1.3rem; color: var(--crimson-ink); margin-bottom: 8px; }
.directions p { color: var(--muted); font-size: .95rem; }
.map { aspect-ratio: 16 / 10; background: var(--stone); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--night); color: rgba(255,255,255,.72); font-size: .94rem; }
.footer__news { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-block: 52px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__news h2 { font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 2rem); color: #fff; margin-bottom: 6px; }
.footer__news p { margin: 0; }
.newsletter { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter input {
  flex: 1 1 240px; min-height: 52px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff;
}
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter input:focus { outline: 0; border-color: var(--saffron); }
.newsletter .btn { min-height: 52px; }
.newsletter .form-status { flex-basis: 100%; color: var(--saffron-soft); }

.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-block: 56px; }
.footer__logo { display: inline-block; background: var(--paper); padding: 12px 18px; border-radius: 14px; }
.footer__logo img { width: 200px; }
.footer__society { margin: 14px 0 6px; color: #fff; font-weight: 600; }
.footer__brand p { max-width: 32ch; }
.site-footer h3 { font-family: var(--f-display); font-size: 1.15rem; color: #fff; margin-bottom: 16px; }
.site-footer nav ul { display: grid; gap: 8px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--saffron); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); color: #fff; }
.social a:hover { background: var(--crimson); border-color: var(--crimson); }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; }
.footer__base p { margin: 0; }
.footer__base a { margin-left: 14px;text-decoration:none; }
.footer__blessing { font-family: var(--f-display); color: var(--saffron-soft); font-size: 1rem; }
.footer__blessing span { font-family: var(--f-text); color: rgba(255,255,255,.6); font-size: .86rem; margin-left: 6px; }

.quickbar { display: none; }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--crimson); color: #fff; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility 0s .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1499px) {
  .brand__sub { display: none; }
  .brand__logo { width: 310px; }
  .header__donate { padding: 0 18px; }
}
@media (max-width: 1400px) {
  .nav__link { padding: 10px 8px; font-size: .93rem; }
  .header__inner { gap: 14px; }
}

/* Off-canvas navigation with accordion mega panels */
@media (max-width: 1279px) {
  .nav-toggle { display: inline-grid; }
  .brand__sub { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 90vw);
    background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
    clip-path: inset(0 0 0 100%); transition: clip-path .35s var(--ease), visibility 0s .35s; visibility: hidden;
    display: flex; flex-direction: column; padding: 0 0 24px;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .35s var(--ease), visibility 0s; }
  .nav__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 1; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 20px; font-size: 1.05rem; border-radius: 0; }
  .nav__link::after { display: none; }
  .mega { display: none; background: var(--stone); }
  .has-mega.is-open > .mega { display: block; }
  .mega__inner, .mega__inner--3, .mega__inner--gallery { grid-template-columns: 1fr; gap: 20px; padding: 18px 20px 22px; }
  .mega__cols--2 { grid-template-columns: 1fr; gap: 8px; }
  .mega__feature { grid-template-columns: 90px 1fr; background: var(--paper); }
  .mega__feature-img { height: 120px; }
  .mega__thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .mega__thumbs a { height: 100px; }
  .mega__links a:hover { background: var(--stone-2); }
  .nav__mobile-cta { display: grid; gap: 10px; padding: 20px; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(34, 26, 32, .5); z-index: 90; }
  .header__donate { display: none; }
}

@media (max-width: 1024px) {
  .visit__grid { grid-template-columns: 1fr 1fr; }
  .visit__item:nth-child(3) { border-left: 0; }
  .visit__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about__grid, .programs__grid, .learn__grid, .donate__grid, .contact__grid, .events__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .activities__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(min(var(--cols, 6), 3), 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__news { grid-template-columns: 1fr; }
  .programs__grid .form-card { max-width: 640px; }
  .hero__tabs { gap: 16px; }
  .hero__tabs button { min-width: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .topbar__hours { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__links { gap: 14px; font-size: .8rem; }
  .topbar__links li:nth-child(2) { display: none; }
  .header__inner { min-height: 70px; gap: 12px; }
  .brand__logo { width: 168px; }
  .brand__sub { display: none; }

  .hero { height: auto; min-height: 640px; }
  .slide__content { justify-content: flex-end; padding-top: 80px; padding-bottom: 130px; min-height: 640px; }
  .slide::after { background: linear-gradient(0deg, rgba(34,18,20,.92) 0%, rgba(34,18,20,.6) 55%, rgba(34,18,20,.15) 100%); }
  .slide__text { font-size: 1rem; }
  .hero__controls { bottom: 84px; }
  .hero__tabs { display: none; }
  .hero__arrows { margin-left: auto; }
  .hero__controls::before { content: ""; }

  .visit--overlap { margin-top: -50px; }
  .visit__grid { grid-template-columns: 1fr; }
  .visit__item { padding: 18px 20px; }
  .visit__item + .visit__item { border-left: 0; border-top: 1px solid var(--line); }

  .notice__inner { flex-wrap: wrap; gap: 10px; }
  .notice__track { flex-basis: 100%; border-left: 0; }
  .notice__all { display: none; }

  .section-head { grid-template-columns: 1fr; }
  .section-head .text-link { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; }

  .about__media { padding: 10px 50px 40px 10px; }
  .about__facts { grid-template-columns: 1fr; }
  .about__facts div { padding: 14px 0 14px 26px; border-left: 1.5px solid var(--line); margin-left: 5px; }
  .about__facts div::before { left: -6.5px; top: 20px; }
  .about__facts { border-top: 0; }

  .pillars__row { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
  .pillar { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 18px; text-align: left; align-items: start; padding-bottom: 22px; position: relative; }
  .pillar::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: var(--line); }
  .pillar:last-child::before { display: none; }
  .pillar__cap, .pillar--centre .pillar__cap { grid-row: 1 / span 2; width: 64px; height: 64px; }
  .pillar__shaft { display: none; }
  .pillar h3 { margin: 8px 0 2px; }
  .pillar p { max-width: none; min-height: 0; }
  .grounds { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .grounds__item { padding: 18px 0 0; flex-direction: column; gap: 8px; }

  .schedule thead { display: none; }
  .schedule, .schedule tbody, .schedule tr, .schedule th, .schedule td { display: block; width: 100%; }
  .schedule tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .schedule tbody th, .schedule td { border: 0; padding: 0; }
  .schedule tbody th { margin-bottom: 6px; white-space: normal; }
  .schedule tbody th br { display: none; }
  .schedule tbody th span { margin-left: 8px; }
  .schedule td:last-child { margin-top: 4px; color: var(--saffron-deep); font-weight: 600; }
  .schedule tr.is-featured { background: var(--saffron-soft); padding: 16px; border-radius: 12px; border: 0; box-shadow: inset 4px 0 0 var(--saffron); }
  .schedule tr.is-featured th, .schedule tr.is-featured td { background: none; box-shadow: none; padding-left: 0; }
  .breathe { flex-direction: column; text-align: center; }
  .field-row { grid-template-columns: 1fr; }

  .activities__grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .act--feature { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
  .act__body { padding: 24px; }

  .event-feature { grid-template-columns: 1fr; }
  .event-feature__img { max-width: 360px; aspect-ratio: 4 / 4.4; }
  .countdown div { min-width: 0; flex: 1; }

  .project { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .video { grid-template-columns: 1fr; }

  .magazine { grid-template-columns: 88px 1fr; }
  .magazine__cover { height: 118px; }
  .donate__uses { grid-template-columns: 1fr; }
  .chips--amount { grid-template-columns: repeat(2, 1fr); }
  .bank dl div { grid-template-columns: 1fr; gap: 0; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__base { flex-direction: column; }
  .footer__base a:first-child { margin-left: 0; }

  .quickbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(74,22,22,.5);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .quickbar a { display: grid; justify-items: center; gap: 2px; padding: 9px 4px 8px; font-size: .74rem; font-weight: 600; text-decoration: none; color: var(--ink); }
  .quickbar .ic { color: var(--crimson); }
  .quickbar .is-primary { background: var(--crimson); color: #fff; }
  .quickbar .is-primary .ic { color: #fff; }
  .to-top { bottom: 80px; right: 14px; width: 42px; height: 42px; }
}

@media (max-width: 400px) {
  .brand__logo { width: 148px; }
  .slide__actions .btn { width: 100%; }
  .grounds { grid-template-columns: 1fr; }
  .activities__grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .breathe__circle.is-on .breathe__ring { animation: none; transform: scale(.8); }
}

/* Volunteer tile closes the activities grid */
.act--cta { border-top-color: var(--saffron); }
.act--cta .ic { color: var(--saffron-deep); }

/* ==========================================================================
   WordPress + Elementor layer
   Sections are Elementor containers (.mbv-sec); everything below styles the
   theme widgets and the standard Heading / Text Editor widgets used with them.
   ========================================================================== */

/* ---------- Containers ---------- */
.mbv-sec { position: relative; }
.mbv-sec--hero, .mbv-sec--visit { z-index: 2; }
.mbv-sec--visit { z-index: 6; }
.e-con.mbv-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow);
}
.mbv-sec--narrow > .e-con-inner { max-width: 760px; }
@media (min-width: 1025px) {
  .e-con.mbv-col--sticky { position: sticky; top: 112px; }
}
.mbv-head .elementor-widget-mbv-buttons { width: 100%; }

/* ---------- Heading widget ---------- */
.mbv-h .elementor-heading-title {
  font-family: var(--f-display); font-weight: 400; color: var(--crimson-ink);
  font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.12; letter-spacing: .005em; text-wrap: balance;
}
.mbv-h--card .elementor-heading-title { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.2; }
.mbv-h--small .elementor-heading-title { font-size: 1.15rem; line-height: 1.3; }
.mbv-h.is-light .elementor-heading-title, .mbv-sec--night .mbv-h .elementor-heading-title { color: #fff; }

/* ---------- Text editor widget ---------- */
.mbv-text { color: var(--ink); }
.mbv-text p:last-child { margin-bottom: 0; }
.mbv-text p { max-width: 68ch; }
.mbv-text .lead, .mbv-text--lead p { font-size: 1.16rem; line-height: 1.6; color: var(--ink); max-width: 60ch; }
.mbv-text--muted, .mbv-text--muted p { color: var(--muted); }
.mbv-text--light, .mbv-text--light p, .mbv-sec--night .mbv-text { color: rgba(255,255,255,.75); }
.elementor-widget-text-editor[class*="mbv-text"] .elementor-widget-container > *:first-child { margin-top: 0; }
.mbv-text--prose h2, .prose h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; color: var(--crimson-ink); margin: 1.6em 0 .5em; line-height: 1.2; }
.mbv-text--prose h3, .prose h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; color: var(--crimson-ink); margin: 1.4em 0 .4em; }
.mbv-text--prose ul, .prose ul { list-style: none; margin: 0 0 1.2em; display: grid; gap: 8px; }
.mbv-text--prose ul li, .prose ul li { position: relative; padding-left: 24px; }
.mbv-text--prose ul li::before, .prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--saffron); }
.mbv-text--prose ol, .prose ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1.2em; }
.mbv-text--prose a, .prose a { color: var(--crimson-deep); text-underline-offset: 3px; }
.mbv-text--prose blockquote, .prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--saffron); font-family: var(--f-display); font-size: 1.25rem; color: var(--crimson-ink); }
.mbv-text--prose > .elementor-widget-container > h2:first-child { margin-top: 0; }

/* ---------- Buttons row ---------- */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.btn-row--center { justify-content: center; }
.btn-row--end { justify-content: flex-end; }
.btn-row .btn { gap: 8px; }
@media (max-width: 760px) { .btn-row--end { justify-content: flex-start; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(900px 420px at 85% 120%, rgba(241,145,0,.28), transparent 60%),
    linear-gradient(120deg, var(--crimson-ink), #2b1416 70%);
}
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero.has-image::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(34,18,20,.9) 0%, rgba(34,18,20,.62) 50%, rgba(34,18,20,.25) 100%);
}
.page-hero__arch {
  position: absolute; right: max(-60px, calc((100vw - 1240px) / 2 - 40px)); bottom: -2px; width: 380px; height: 108%;
  border: 1.5px solid rgba(241,145,0,.45); border-bottom: 0; border-radius: 999px 999px 0 0; z-index: -1; pointer-events: none;
}
.page-hero__arch::before { content: ""; position: absolute; inset: 18px 18px 0; border: 1px solid rgba(252,231,194,.22); border-bottom: 0; border-radius: inherit; }
.page-hero.has-image .page-hero__arch { opacity: .7; }
.page-hero__inner { position: relative; padding-block: 72px 76px; }
.page-hero--small .page-hero__inner { padding-block: 52px 56px; }
.page-hero--large .page-hero__inner { padding-block: 120px 128px; }
.page-hero__kicker { font-style: italic; color: var(--saffron); font-size: 1.05rem; margin: 18px 0 10px; }
.page-hero__title { font-family: var(--f-display); font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.06; max-width: 18ch; text-wrap: balance; }
.page-hero--small .page-hero__title { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 24ch; }
.page-hero__intro { margin: 18px 0 0; max-width: 58ch; font-size: 1.12rem; color: rgba(255,255,255,.84); }
.page-hero + .vedika, .mbv-sec--hero + .mbv-sec { position: relative; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .86rem; color: rgba(255,255,255,.7); }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #fff; }
@media (max-width: 760px) {
  .page-hero__arch { width: 220px; right: -70px; }
  .page-hero__inner { padding-block: 44px 48px; }
}

/* ---------- Arch image ---------- */
.arch-media { position: relative; margin: 0; }
.arch-media__main { position: relative; }
.arch-media--ribbed .arch-media__main {
  padding: 12px; border: 1.5px solid var(--saffron); border-radius: 999px 999px 18px 18px; margin: 12px;
}
.arch-media--ribbed .arch-media__main::before {
  content: ""; position: absolute; inset: -12px; border: 1px solid rgba(199, 64, 64, .35); border-radius: 999px 999px 24px 24px; pointer-events: none;
}
.arch-media--ribbed img, .arch-media--plain img { width: 100%; aspect-ratio: 4 / 5.2; object-fit: cover; border-radius: 999px 999px 10px 10px; }
.arch-media--wide img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; border-radius: 600px 600px 20px 20px; }
.arch-media--soft img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.arch-media.has-second { padding-right: 70px; padding-bottom: 56px; }
.arch-media__second {
  position: absolute; right: 0; bottom: 0; width: 40%; border: 6px solid var(--paper); border-radius: 999px 999px 14px 14px;
  overflow: hidden; box-shadow: var(--shadow);
}
.arch-media__second img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.arch-media figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); text-align: center; }
@media (max-width: 1024px) { .arch-media { max-width: 520px; } }
@media (max-width: 760px) { .arch-media.has-second { padding-right: 46px; padding-bottom: 40px; } }

/* ---------- Timeline ---------- */
.timeline--row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin: 8px 0 10px; }
.timeline--row li { padding: 18px 18px 0 0; position: relative; }
.timeline li::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--saffron);
}
.timeline__year { display: block; font-family: var(--f-display); font-size: 1.9rem; color: var(--crimson); line-height: 1.1; }
.timeline h3 { font-family: var(--f-text); font-weight: 700; font-size: 1rem; color: var(--ink); margin: 4px 0 2px; }
.timeline p { margin: 4px 0 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.timeline--column { border-left: 1.5px solid var(--line); margin-left: 6px; }
.timeline--column li { position: relative; padding: 0 0 26px 30px; }
.timeline--column li:last-child { padding-bottom: 0; }
.timeline--column li::before { left: -7px; top: 10px; }
.timeline--column .timeline__year { font-size: 1.45rem; }
@media (max-width: 760px) {
  .timeline--row { grid-template-columns: 1fr; border-top: 0; border-left: 1.5px solid var(--line); margin-left: 6px; }
  .timeline--row li { padding: 0 0 18px 26px; }
  .timeline--row li::before { left: -7px; top: 10px; }
}

/* ---------- Icon list ---------- */
.flist { display: grid; }
.flist__item { display: flex; gap: 14px; text-decoration: none; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.flist__item > .ic { width: 28px; height: 28px; color: var(--crimson); flex: none; margin-top: 1px; }
.flist__item strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
a.flist__item:hover strong { color: var(--crimson); }
.flist--columns { grid-template-columns: repeat(var(--cols, 4), 1fr); border-top: 1px solid var(--line); }
.flist--columns .flist__item { padding: 24px 22px 0 0; }
.flist--columns .flist__item > .ic { color: var(--leaf-deep); }
.flist--grid { grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 22px 26px; }
.flist--grid .flist__item > .ic { width: 30px; height: 30px; }
.flist--list { grid-template-columns: 1fr; }
.flist--list li { border-bottom: 1px solid var(--line); }
.flist--list .flist__item { padding: 16px 0; }
.flist--list .flist__item > .ic { width: 26px; height: 26px; }
.flist--contact { grid-template-columns: 1fr; gap: 18px; }
.flist--contact .flist__item > .ic { width: 26px; height: 26px; }
.flist--contact a { color: var(--crimson-deep); font-weight: 600; text-decoration: none; }
.flist--contact a:hover { text-decoration: underline; }
.flist--checks { grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 16px 28px; }
.flist--checks .flist__item > .ic { width: 22px; height: 22px; color: var(--leaf); margin-top: 2px; }
.flist--checks .flist__item strong { font-size: .98rem; }
.mbv-sec--night .flist__item, .mbv-sec--night .flist__item strong { color: #fff; }
@media (max-width: 1024px) {
  .flist--columns { grid-template-columns: repeat(min(var(--cols, 4), 2), 1fr); }
  .flist--checks, .flist--grid { grid-template-columns: repeat(min(var(--cols, 3), 2), 1fr); }
}
@media (max-width: 760px) {
  .flist--columns { gap: 0 16px; }
  .flist--columns .flist__item { flex-direction: column; gap: 8px; padding: 18px 0 0; }
  .flist--checks, .flist--grid { grid-template-columns: 1fr; }
}

/* ---------- Activity tiles (no feature card) ---------- */
.activities__grid:not(:has(.act--feature)) .act { min-height: 0; }
.act--feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) { .activities__grid { grid-template-columns: repeat(min(var(--cols, 4), 2), 1fr); } }

/* ---------- Verse card ---------- */
.verse--card { background: var(--stone); color: var(--ink); border-radius: 24px; }
.verse--card .verse__inner { padding: 56px 32px; }
.verse--card .verse__wheel { color: rgba(199, 64, 64, .07); width: 420px; height: 420px; }
.verse--card .verse__pali { color: var(--crimson-ink); font-size: clamp(1.4rem, 2.6vw, 2rem); }
.verse--card .verse__en { color: var(--ink); font-size: 1.08rem; }
.verse--card footer { color: var(--muted); }
.verse--card .verse__mission { border-top-color: var(--line); color: var(--muted); }

/* ---------- Call to action ---------- */
.cta {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px 48px;
  padding: 48px clamp(28px, 5vw, 64px); border-radius: 28px; color: #fff; background: var(--crimson-deep); isolation: isolate;
}
.cta--night { background: var(--night); }
.cta--stone { background: var(--stone); color: var(--ink); }
.cta--saffron { background: var(--saffron-soft); color: var(--ink); }
.cta__arch {
  position: absolute; right: 6%; top: 18px; bottom: -2px; width: 220px; z-index: -1;
  border: 1.5px solid rgba(241,145,0,.5); border-bottom: 0; border-radius: 999px 999px 0 0;
}
.cta__arch::before { content: ""; position: absolute; inset: 14px 14px 0; border: 1px solid rgba(255,255,255,.18); border-bottom: 0; border-radius: inherit; }
.cta--stone .cta__arch::before, .cta--saffron .cta__arch::before { border-color: rgba(199,64,64,.2); }
.cta__body { max-width: 640px; }
.cta__body .ic { color: var(--saffron); margin-bottom: 10px; }
.cta h2 { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin-bottom: 8px; }
.cta--stone h2, .cta--saffron h2 { color: var(--crimson-ink); }
.cta p { margin: 0; color: rgba(255,255,255,.82); }
.cta--stone p, .cta--saffron p { color: var(--muted); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; position: relative; }
.cta--crimson .btn--saffron, .cta--night .btn--saffron { background: var(--saffron); color: var(--night); }
.cta--crimson .btn--saffron:hover, .cta--night .btn--saffron:hover { background: #fff; }
@media (max-width: 1024px) { .cta { flex-direction: column; align-items: flex-start; } .cta__arch { opacity: .5; } }

/* ---------- Events (light pages, cards, lists) ---------- */
.events-block .events__grid { margin-top: 0; }
.event-feature h3 a { text-decoration: none; }
.event-feature h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.events-block.is-light .event-feature, .events-block.is-light .event-list { color: var(--ink); }
.events-block.is-light .event-feature p, .events-block.is-light .event-list p { color: var(--muted); }
.events-block.is-light .meta-list { color: var(--ink); }
.events-block.is-light .event-list li { border-color: var(--line); }
.events-block.is-light .event-list time { color: var(--muted); }
.events-block.is-light .event-list time b { color: var(--crimson-ink); }
.events-block.is-light .countdown div { border-color: var(--line); }
.events-block.is-light .countdown span { color: var(--muted); }
.events-block.is-light .btn--ghost { border-color: var(--line); color: var(--ink); }
.events-empty { color: var(--muted); padding: 24px; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; margin: 0; }
.is-dark .events-empty { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.2); }
.event-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.event-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.event-card__img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--stone); }
.event-card__img img { width: 100%; height: 100%; object-fit: cover; }
.event-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--saffron); }
.event-card__ph .ic { width: 48px; height: 48px; }
.event-card__img time {
  position: absolute; left: 16px; bottom: -22px; width: 62px; text-align: center; font-size: .78rem; color: var(--crimson);
  background: #fff; border: 1.5px solid var(--saffron); border-radius: 999px 999px 10px 10px; padding: 10px 0 6px; line-height: 1.1;
}
.event-card__img time b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: var(--crimson-ink); }
.event-card__body { padding: 34px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.event-card__body h3 { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.25; color: var(--crimson-ink); }
.event-card__body h3 a { text-decoration: none; }
.event-card__body h3 a:hover { color: var(--crimson); }
.event-card__body p { margin: 0; color: var(--muted); font-size: .93rem; }
.event-card__body .meta-list { margin: 0; color: var(--ink); font-size: .88rem; }
.event-card__body .link-more { margin-top: auto; }
.event-card.is-past .event-card__img img { filter: saturate(.75); }
.event-list--page li { border-color: var(--line); }
.event-list--page time { color: var(--muted); }
.event-list--page time b { color: var(--crimson-ink); }
.event-list--page h3 a { color: var(--ink); }
.event-list--page p { color: var(--muted); }
@media (max-width: 1024px) { .event-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .event-cards { grid-template-columns: 1fr; } }

/* ---------- Projects ---------- */
.project + .project, .project-stack .project + .project { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
.project__img { display: block; background: var(--stone); }
.project h3 a { text-decoration: none; }
.project h3 a:hover { color: var(--crimson); }
.project__status { display: inline-block; margin: 0 0 10px; font-size: .82rem; font-weight: 700; color: var(--leaf-deep); background: rgba(92,154,58,.12); padding: 4px 12px; border-radius: 999px; }
.project__status.is-upcoming { color: var(--saffron-deep); background: rgba(241,145,0,.14); }
.project__status.is-completed { color: var(--crimson-deep); background: rgba(199,64,64,.1); }
.project__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* ---------- Resources ---------- */
.res-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.res-card { display: flex; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.res-card__icon { flex: none; width: 56px; height: 68px; display: grid; place-items: center; color: var(--crimson); background: var(--stone); border-radius: 999px 999px 10px 10px; }
.res-card__icon .ic { width: 26px; height: 26px; }
.res-card__cover { flex: none; width: 76px; }
.res-card__cover img { width: 76px; height: 100px; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 20px -12px rgba(74,22,22,.6); }
.res-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.res-card__meta { margin: 0; font-size: .8rem; color: var(--saffron-deep); font-weight: 600; }
.res-card h3 { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.25; color: var(--crimson-ink); }
.res-card h3 a { text-decoration: none; }
.res-card h3 a:hover { color: var(--crimson); }
.res-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.res-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
@media (max-width: 1024px) { .res-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .res-cards { grid-template-columns: 1fr; } }

/* ---------- Albums ---------- */
.albums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
.album { display: grid; gap: 8px; text-align: center; }
.album__cover { aspect-ratio: 3 / 4; background: var(--stone-2); }
.album__cover img { transition: transform .6s var(--ease); }
.album__cover:hover img { transform: scale(1.04); }
.album h3 { font-family: var(--f-display); font-size: 1.2rem; color: var(--crimson-ink); margin-top: 6px; }
.album h3 a { text-decoration: none; }
.album p { margin: 0; font-size: .86rem; color: var(--muted); }
@media (max-width: 1024px) { .albums { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .albums { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; } }

/* ---------- Gallery wrapper ---------- */
.photo-grid .filters { margin-bottom: 26px; }
.gallery__grid button img { width: 100%; height: 100%; object-fit: cover; }
.video { margin-top: 0; }
.video--full { grid-template-columns: 1fr; }
.video__cover iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Notice list (page) ---------- */
.notice-list { display: grid; gap: 0; }
.notice-list__item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.notice-list__item:first-child { padding-top: 0; }
.notice-list__meta { margin: 0 0 6px; font-size: .86rem; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--crimson-deep); background: rgba(199,64,64,.1); padding: 3px 10px; border-radius: 999px; }
.notice-list h3 { font-family: var(--f-display); font-size: 1.35rem; color: var(--crimson-ink); line-height: 1.3; }
.notice-list__body { color: var(--muted); margin-top: 6px; }
.notice-list__body p { margin: 0 0 .6em; }

/* ---------- Map, bank ---------- */
.map--cine { aspect-ratio: 21 / 9; }
.map--tall { aspect-ratio: 4 / 5; }
.bank.has-qr { display: grid; grid-template-columns: 1fr 140px; gap: 20px; align-items: center; }
.bank__qr img { width: 140px; height: 140px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; }

/* ---------- Forms on light / in columns ---------- */
.form-plain h3 { font-family: var(--f-display); font-size: 1.5rem; color: var(--crimson-ink); margin-bottom: 6px; }
.e-con .form-card { width: 100%; }
.e-con .newsletter input { background: #fff; border-color: var(--line); color: var(--ink); }
.e-con .newsletter input::placeholder { color: var(--muted); }
.e-con .newsletter .form-status { color: var(--leaf-deep); }
.form-status.is-error { color: var(--crimson-deep); }

/* ---------- Templates outside Elementor ---------- */
.section--stone { background: var(--stone); }
.prose-wrap { max-width: 860px; }
.prose { font-size: 1.05rem; }
.prose p { margin-bottom: 1.1em; }
.prose img { border-radius: 16px; height: auto; }
.prose .wp-block-image { margin: 1.6em 0; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.detail__side { position: sticky; top: 112px; }
.info-card { display: grid; gap: 16px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.info-card__title { font-family: var(--f-display); font-size: 1.4rem; color: var(--crimson-ink); }
.info-card__cover img { width: 100%; border-radius: 12px; }
.info-card .countdown { margin: 0; }
.info-card .countdown div { border-color: var(--line); }
.info-card .countdown span { color: var(--muted); }
.info-card .text-link { justify-self: start; }
.date-badge--light { color: var(--crimson); border-color: var(--line); margin: 0; }
.meta-list--dark { color: var(--ink); margin: 0; }
.meta-list--dark .ic { color: var(--crimson); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.post-card__img { display: block; aspect-ratio: 16 / 10; background: var(--stone); position: relative; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--saffron); }
.post-card__ph .ic { width: 44px; height: 44px; }
.post-card__body { padding: 22px; }
.post-card__type { margin: 0 0 6px; font-size: .8rem; font-weight: 700; color: var(--saffron-deep); }
.post-card__title { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.25; color: var(--crimson-ink); margin-bottom: 8px; }
.post-card__title a { text-decoration: none; }
.post-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.search-form { display: flex; gap: 10px; max-width: 640px; }
.search-form input { flex: 1; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; }
.search-form input:focus { outline: 0; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(241,145,0,.2); }
.search-again { margin-bottom: 36px; }
.nf-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 12px; }
.nf-links a { display: flex; gap: 12px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; font-weight: 600; background: #fff; }
.nf-links a:hover { border-color: var(--saffron); color: var(--crimson); }
.nf-links .ic { color: var(--crimson); width: 24px; height: 24px; }
.album-intro { max-width: 760px; margin-bottom: 32px; }
.album-back { margin-top: 36px; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.nav-links .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.nav-links .current { background: var(--crimson-ink); color: #fff; border-color: var(--crimson-ink); }
@media (max-width: 1024px) {
  .detail { grid-template-columns: 1fr; }
  .detail__side { position: static; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .nf-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .post-grid, .nf-links { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
}

/* ---------- Mega menu (WordPress menu driven) ---------- */
.mega__col { min-width: 0; }
.mega__empty { color: var(--muted); font-size: .92rem; }
.nav__item.is-current-branch > .nav__link { color: var(--crimson); }
.nav__item.is-current-branch > .nav__link::after { transform: scaleX(1); }
.mega__links a[aria-current], .mega__plain a[aria-current] { color: var(--crimson); }
.nav__logo { width: 160px; height: auto; }
@media (max-width: 1279px) { .mega__inner { grid-template-columns: 1fr !important; } }

/* ---------- Footer (WordPress menus) ---------- */
.site-footer nav .menu { display: grid; gap: 8px; }
.site-footer address { font-style: normal; max-width: 32ch; margin-bottom: 4px; }
.footer__legal { display: inline-flex; gap: 14px; margin-left: 10px; }
.footer__legal li { list-style: none; }
.footer__legal a { margin-left: 0; }
.footer__logo img { width: 200px; height: auto; }

/* ---------- Elementor editor niceties ---------- */
.elementor-editor-active .slide:not(.is-active) { display: none; }
.elementor-editor-active .notice__list { animation-duration: 80s; }

@media (prefers-reduced-motion: reduce) {
  .notice__list { animation: none; }
  .notice__track { overflow-x: auto; }
}

/* Dark sections */
.mbv-sec--night, .events-block.is-dark { color: #fff; }
.events-block.is-dark .event-feature p { color: rgba(255,255,255,.78); }
.footer__legal li { display: inline; }
.footer__legal li::marker { content: none; }
.footer__copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.footer__copy p { margin: 0; }
ul.footer__legal { display: flex; gap: 16px; margin: 0; }
ul.footer__legal a { margin: 0; }
