/* ==========================================================================
   Shri Rudrakshimath — public site styles
   Palette: kumkum maroon, saffron, temple gold on sandalwood cream
   ========================================================================== */

:root {
  --maroon: #7A1E14;
  --maroon-deep: #4A100B;
  --night: #2A0B08;
  --saffron: #D9621E;
  --saffron-soft: #F4D9C2;
  --gold: #C39035;
  --gold-soft: #E9CF94;
  --cream: #FBF5EA;
  --cream-2: #F5EAD6;
  --paper: #FFFCF6;
  --ink: #2E1D14;
  --muted: #6D5646;
  --line: #E6D6BC;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(74, 16, 11, .05), 0 10px 30px -12px rgba(74, 16, 11, .22);
  --shadow-lg: 0 2px 4px rgba(74, 16, 11, .06), 0 24px 50px -20px rgba(74, 16, 11, .35);
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Mukta", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(195, 144, 53, .09) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
img { max-width: 100%; display: block; }
a { color: var(--maroon); text-decoration-color: rgba(122, 30, 20, .35); text-underline-offset: 3px; }
a:hover { color: var(--saffron); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--maroon-deep); margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.flip-x { transform: scaleX(-1); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--maroon); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.narrow-wide { max-width: 980px; }
.center { text-align: center; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.4em; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 1rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #E27A2E 0%, var(--saffron) 45%, #B8461A 100%);
  box-shadow: 0 6px 18px -8px rgba(217, 98, 30, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s;
}
.btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 22px -8px rgba(217, 98, 30, .9); }
.btn-sm { padding: .5em 1.05em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 240, 210, .6); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 240, 210, .1); box-shadow: none; }
.btn-outline { background: transparent; color: var(--maroon); border: 1px solid var(--gold); box-shadow: none; }
.btn-outline:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; box-shadow: none; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; text-decoration: none; color: var(--maroon); }
.text-link .icon { transition: transform .2s; }
.text-link:hover .icon:not(.flip-x) { transform: translateX(3px); }

.chip { display: inline-block; font-size: .78rem; font-weight: 500; letter-spacing: .03em; padding: .15em .7em; border-radius: 999px; background: var(--saffron-soft); color: #8A3A10; text-decoration: none; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .3em .8em; border-radius: 999px; background: linear-gradient(135deg, var(--gold), #A8741F); color: #fff; }
.badge-muted { background: var(--cream-2); color: var(--muted); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6em; }
.lead { font-size: 1.14rem; color: var(--muted); }

/* Ornamental divider: line · lotus · line */
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); margin: .2em auto 1.2em; }
.ornament span { height: 1px; width: 64px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament .icon { width: 26px; height: 26px; }
.ornament-left { justify-content: flex-start; }
.ornament-left span:first-child { display: none; }
.ornament-light { color: var(--gold-soft); }
.ornament-light span { background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.ornament-light span:last-child { background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--night); color: var(--gold-soft); font-size: .86rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar-tag { font-family: var(--serif); font-size: 1rem; font-style: italic; letter-spacing: .04em; }
.topbar-r { display: flex; gap: 20px; }
.topbar-r a, .topbar-r span { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-soft); text-decoration: none; }
.topbar-r a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 252, 246, .94);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(195, 144, 53, .35), 0 6px 20px -16px rgba(74, 16, 11, .5);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-mark { width: 50px; height: 50px; flex: none; filter: drop-shadow(0 3px 6px rgba(154, 43, 20, .35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { white-space: nowrap; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--maroon); letter-spacing: .01em; }
.brand-text small { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav a { display: block; padding: .55em .8em; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; border-radius: 8px; position: relative; }
.main-nav > ul > li > a::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--saffron); transform: translateX(-50%) scale(0); transition: transform .2s; }
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a.is-active::after { transform: translateX(-50%) scale(1); }
.main-nav a:hover, .main-nav a.is-active { color: var(--maroon); }
.has-sub { position: relative; }
.has-sub > a { padding-right: 1.3em; }
.has-sub > a::before { content: ""; position: absolute; right: .45em; top: 50%; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); opacity: .6; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; left: -8px; top: 100%; min-width: 230px; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 0 0 12px 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-weight: 400; font-size: .95rem; padding: .5em .8em; }
.sub a:hover { background: var(--cream); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { color: #fff; }
.nav-cta .btn::after { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--maroon); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .i-close { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #FFF3DE; isolation: isolate;
  min-height: min(80vh, 720px); display: flex; align-items: center;
  background:
    radial-gradient(ellipse at 78% 40%, rgba(243, 179, 74, .35), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(217, 98, 30, .45), transparent 55%),
    linear-gradient(160deg, #5A140D 0%, var(--maroon) 45%, #3A0C08 100%);
}
.hero.has-img { background: linear-gradient(100deg, rgba(42, 11, 8, .92) 0%, rgba(74, 16, 11, .72) 50%, rgba(74, 16, 11, .25) 100%), var(--hero-img) center / cover no-repeat; }
.hero-art { position: absolute; right: -12%; top: 50%; width: min(78vw, 820px); aspect-ratio: 1; transform: translateY(-50%); color: var(--gold-soft); opacity: .32; z-index: -1; }
.hero.has-img .hero-art { opacity: .18; }
.mandala { width: 100%; height: 100%; }
.spin { animation: spin 160s linear infinite; }
.spin-slow { animation: spin 240s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-in { padding: 90px 20px 110px; }
.hero-eyebrow { font-size: .82rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.1em; }
.hero h1 { color: #FFF6E6; max-width: 14ch; font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1.03; margin-bottom: .25em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero .ornament { justify-content: flex-start; margin: 0 0 1.2em; }
.hero .ornament span:first-child { display: none; }
.hero-text { max-width: 54ch; font-size: 1.15rem; color: rgba(255, 243, 222, .88); margin-bottom: 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
/* Banner portrait: arched frame with the mandala turning behind it like a prabhavali */
.hero.has-portrait .hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-top: 70px; padding-bottom: 100px; }
.hero-portrait { position: relative; margin: 0 auto; width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; isolation: isolate; }
.hero-portrait .halo { position: absolute; left: 50%; top: 44%; width: 205%; aspect-ratio: 1; transform: translate(-50%, -50%); color: var(--gold-soft); opacity: .42; z-index: -2; pointer-events: none; }
.hero-portrait .halo-glow { position: absolute; left: 50%; top: 44%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 214, 140, .55) 0%, rgba(243, 179, 74, .28) 35%, rgba(217, 98, 30, 0) 68%); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(.96); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } }
.hero-portrait .arch { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 7px; border-radius: 999px 999px 22px 22px;
  background: linear-gradient(160deg, #F7DB9A, var(--gold) 40%, #8E5E1C 75%, #E9C77A);
  box-shadow: 0 0 0 1px rgba(255, 236, 190, .35), 0 30px 60px -18px rgba(20, 4, 2, .75), 0 0 70px -10px rgba(243, 179, 74, .55); transition: transform .4s ease; }
.hero-portrait .arch::after { content: ""; position: absolute; inset: 15px; border-radius: 999px 999px 15px 15px; border: 1px solid rgba(255, 240, 205, .55); pointer-events: none; }
.hero-portrait .arch:hover { transform: translateY(-4px); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; border-radius: 999px 999px 16px 16px; background: var(--maroon-deep); }
.hero-portrait figcaption { margin-top: 20px; text-align: center; line-height: 1.25; }
.hero-portrait figcaption a { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: #FFF3DE; text-decoration: none; }
.hero-portrait figcaption a:hover { color: var(--gold-soft); }
.hero-portrait figcaption span { display: block; margin-top: 4px; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }
.hero.has-portrait { overflow: hidden; }
.hero.has-portrait h1 { max-width: none; font-size: clamp(2.5rem, 4.6vw, 4.2rem); text-wrap: balance; }
.hero-portrait figcaption { text-shadow: 0 1px 12px rgba(42, 11, 8, .9), 0 0 2px rgba(42, 11, 8, .8); }

.hero-foot { position: absolute; left: 0; right: 0; bottom: -1px; height: 28px; background:
  radial-gradient(circle at 14px 0, transparent 13px, var(--cream) 14px) repeat-x; background-size: 28px 28px; }

/* ---------- Notices ticker ---------- */
.ticker { background: linear-gradient(90deg, #F7E3C4, #FBEFD9); border-bottom: 1px solid var(--line); }
.ticker-in { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.ticker-label { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--maroon); padding: .35em .9em; border-radius: 999px; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; gap: 56px; white-space: nowrap; animation: ticker 36s linear infinite; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
.ticker-item { position: relative; font-size: .96rem; color: var(--maroon-deep); }
.ticker-item::before { content: "✦"; position: absolute; left: -34px; color: var(--gold); }
.ticker-item a { color: inherit; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: linear-gradient(180deg, rgba(245, 234, 214, .75), rgba(245, 234, 214, .45)); border-block: 1px solid rgba(230, 214, 188, .7); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { margin-bottom: .15em; }
.section-head .lead { margin: 0; }
.section-head.left { text-align: left; margin: 0 0 36px; }
.section-head.left .ornament { justify-content: flex-start; }
.section-head.left .ornament span:first-child { display: none; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.head-row .section-head { margin-bottom: 30px; }
.head-row > .text-link { margin-bottom: 38px; }
.empty { text-align: center; color: var(--muted); font-style: italic; padding: 30px 0; }
.empty-card { text-align: center; padding: 36px 24px; border: 1px dashed var(--gold); border-radius: var(--radius); background: rgba(255, 252, 246, .7); color: var(--muted); }
.empty-card > .icon { width: 36px; height: 36px; color: var(--gold); margin-bottom: 8px; }

/* Welcome */
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.intro-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 1.4em; }
.frame { position: relative; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--maroon); box-shadow: var(--shadow-lg); outline: 1px solid var(--gold); outline-offset: 10px; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-motif { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-soft); background: radial-gradient(circle at 50% 35%, #A8391C, var(--maroon) 55%, var(--maroon-deep)); }
.frame-motif .mandala { position: absolute; width: 130%; opacity: .45; animation: spin 200s linear infinite; }
.frame-motif blockquote { position: relative; margin: 0; text-align: center; font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 2.7rem); font-style: italic; color: #FFF3DE; line-height: 1.1; }
.frame-motif cite { display: block; font-family: var(--sans); font-style: normal; font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); margin-top: 12px; }

/* Seva cards */
.seva-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.seva-card {
  position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.seva-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--saffron), var(--gold)); }
.seva-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-soft); color: var(--ink); }
.seva-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--saffron); background: radial-gradient(circle, #FFF1DF, #F7DCC0); border: 1px solid var(--gold-soft); margin-bottom: 16px; flex: none; }
.seva-icon .icon { width: 28px; height: 28px; }
.seva-icon.lg { width: 76px; height: 76px; }
.seva-icon.lg .icon { width: 38px; height: 38px; }
.seva-card h3 { margin-bottom: .1em; }
.seva-tag { font-size: .88rem; font-weight: 500; color: var(--gold); letter-spacing: .03em; margin-bottom: .7em; }
.seva-card p { color: var(--muted); font-size: .98rem; }
.seva-stat { display: flex; align-items: baseline; gap: 8px; margin: auto 0 .9em; padding-top: 12px; border-top: 1px dashed var(--line); }
.seva-stat strong { font-family: var(--serif); font-size: 1.6rem; color: var(--maroon); line-height: 1; }
.seva-stat span { font-size: .86rem; color: var(--muted); }
.seva-card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--maroon); font-size: .95rem; }
.seva-card:not(:has(.seva-stat)) .more { margin-top: auto; }

/* Stats band */
.stats-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--maroon-deep), var(--maroon)); color: #FFF3DE; padding: 64px 0; }
.stats-art { position: absolute; left: -140px; top: 50%; width: 520px; transform: translateY(-50%); color: var(--gold); opacity: .18; }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 0 10px; }
.stat + .stat { border-left: 1px solid rgba(233, 207, 148, .25); }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 600; color: var(--gold-soft); line-height: 1.05; }
.stat span { font-size: .95rem; color: rgba(255, 243, 222, .8); }

/* Cards (activities) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { font-size: 1.35rem; margin: .35em 0 .4em; }
.card-body h3 a { color: var(--maroon-deep); text-decoration: none; }
.card-body h3 a:hover { color: var(--saffron); }
.card-body p { color: var(--muted); font-size: .96rem; margin: 0; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); }
.meta .icon { color: var(--gold); }
.meta .chip { margin-left: auto; }

/* Placeholder when no photo */
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; color: var(--gold); background:
  radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .55), transparent 60%),
  repeating-conic-gradient(from 0deg at 50% 50%, rgba(195, 144, 53, .06) 0 15deg, transparent 15deg 30deg),
  linear-gradient(135deg, #F7E6CB, #EFD7B3); }
.ph .icon { width: 44px; height: 44px; opacity: .8; }

/* Events */
.events-home { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.events-intro p:not(.eyebrow) { color: var(--muted); }
.events-list { display: grid; gap: 16px; }
.event-card { display: flex; gap: 20px; align-items: stretch; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.event-card:hover { transform: translateX(3px); box-shadow: var(--shadow-lg); }
.date-block { flex: none; width: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; text-decoration: none; color: #fff; background: linear-gradient(160deg, var(--saffron), #A8391C); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); padding: 8px 0; }
.date-block .d { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; line-height: 1; }
.date-block .m { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.date-block .y { font-size: .72rem; opacity: .8; }
.event-body { flex: 1; min-width: 0; }
.event-body h3 { font-size: 1.35rem; margin: .3em 0 .35em; }
.event-body h3 a { color: var(--maroon-deep); text-decoration: none; }
.event-meta { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); margin: 0 16px 4px 0; }
.event-meta .icon { color: var(--gold); }
.event-sum { color: var(--muted); font-size: .95rem; margin: 6px 0 0; }
.event-thumb { flex: none; width: 180px; border-radius: 10px; overflow: hidden; }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Guru parampara */
.guru-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; justify-items: center; }
.guru { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); max-width: 250px; }
.guru-photo { display: block; width: 170px; height: 170px; border-radius: 50%; overflow: hidden; padding: 6px; background: conic-gradient(from 200deg, var(--gold), #F4D38C, var(--saffron), var(--gold), #F4D38C, var(--gold)); box-shadow: 0 12px 30px -14px rgba(122, 30, 20, .6); transition: transform .3s; }
.guru-photo img, .guru-photo .ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); min-height: 0; }
.guru-photo.lg { width: 200px; height: 200px; }
.guru:hover .guru-photo { transform: scale(1.04); }
.guru .badge { margin-top: -14px; position: relative; }
.guru h3 { font-size: 1.3rem; margin: .6em 0 .15em; }
.guru p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Quote band */
.quote-band { position: relative; overflow: hidden; padding: 90px 0; color: #FFF3DE; background: radial-gradient(ellipse at 50% 120%, #9E3417, transparent 60%), linear-gradient(180deg, var(--night), var(--maroon-deep)); }
.quote-art { position: absolute; left: 50%; top: 50%; width: 760px; transform: translate(-50%, -50%); color: var(--gold); opacity: .14; }
.quote-band .wrap { position: relative; }
.quote-lamp { width: 44px; height: 44px; color: var(--gold-soft); margin: 0 auto 14px; display: block; }
.quote-band blockquote { margin: 0 0 .4em; font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.15; color: #FFF6E6; }
.quote-band p { color: rgba(255, 243, 222, .78); }
.quote-band .btn { margin-top: 10px; }

/* Photo strip & grids */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-strip a { aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.photo-strip a:first-child { grid-column: span 2; grid-row: span 2; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-strip a:hover img { transform: scale(1.05); }
.photo-grid { columns: 3 260px; column-gap: 14px; }
.photo { position: relative; display: block; margin-bottom: 14px; border-radius: 12px; overflow: hidden; break-inside: avoid; box-shadow: var(--shadow); }
.photo img { width: 100%; height: auto; transition: transform .5s; }
.photo:hover img { transform: scale(1.03); }
.photo .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: .88rem; color: #fff; background: linear-gradient(transparent, rgba(42, 11, 8, .82)); }

/* Duo: institutions + library */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.duo-card { position: relative; padding: 36px 34px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.duo-icon { position: absolute; right: 28px; top: 28px; color: var(--gold-soft); }
.duo-icon .icon { width: 54px; height: 54px; }
.duo-card h3 { font-size: 1.7rem; max-width: 20ch; }
.duo-card > p:not(.eyebrow) { color: var(--muted); }
.dot-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.dot-list li { position: relative; padding: .45em 0 .45em 22px; border-bottom: 1px dashed var(--line); }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--saffron); }
.dot-list li span { color: var(--muted); font-size: .9rem; }
.mini-search { display: flex; gap: 8px; margin: 0 0 1.2em; }
.mini-search input { flex: 1; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.info-line { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 .9em; }
.info-line > .icon { color: var(--saffron); margin-top: .3em; }
.info-line a { color: inherit; }
.visit-map { border-radius: var(--radius); overflow: hidden; min-height: 360px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.visit-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-ph { position: relative; height: 100%; min-height: 380px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #F4E1C3, #EACDA3); color: var(--gold); }
.map-ph .mandala { position: absolute; width: 120%; opacity: .35; }
.map-ph span { position: relative; text-align: center; font-family: var(--serif); font-size: 1.5rem; color: var(--maroon); line-height: 1.3; }
.map-ph span .icon { display: block; width: 34px; height: 34px; margin: 0 auto 8px; color: var(--saffron); }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; color: #FFF3DE; padding: 64px 0 70px; background: radial-gradient(ellipse at 85% 30%, rgba(243, 179, 74, .28), transparent 50%), linear-gradient(150deg, #5A140D, var(--maroon) 55%, #3A0C08); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; background: radial-gradient(circle at 11px 0, transparent 10px, var(--cream) 11px) repeat-x; background-size: 22px 22px; }
.page-hero-art { position: absolute; right: -80px; top: 50%; width: 460px; transform: translateY(-50%); color: var(--gold-soft); opacity: .25; }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #FFF6E6; max-width: 22ch; margin-bottom: .2em; }
.page-hero p { color: rgba(255, 243, 222, .82); font-size: 1.12rem; max-width: 60ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; letter-spacing: .04em; margin-bottom: 14px; color: var(--gold-soft); }
.crumbs a { color: var(--gold-soft); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-current] { color: rgba(255, 243, 222, .7); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.split-rev { grid-template-columns: 340px minmax(0, 1fr); }
.side { display: grid; gap: 22px; position: sticky; top: 104px; }
.side-card { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.side-card h3 { font-size: 1.35rem; padding-bottom: .5em; border-bottom: 1px solid var(--line); margin-bottom: .8em; }
.side-card p { color: var(--muted); font-size: .96rem; }
.side-frame { aspect-ratio: 4 / 5; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-family: var(--serif); font-size: 1.9rem; color: var(--maroon); line-height: 1; }
.facts span { font-size: .9rem; color: var(--muted); }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li + li { border-top: 1px dashed var(--line); }
.link-list a { display: flex; align-items: flex-start; gap: 10px; padding: .6em 0; text-decoration: none; color: var(--ink); }
.link-list a .icon { color: var(--gold); margin-top: .25em; }
.link-list a:hover { color: var(--saffron); }
.link-list small { color: var(--muted); }
.big-stat { display: flex; flex-direction: column; margin: 8px 0 18px; }
.big-stat strong { font-family: var(--serif); font-size: 2.6rem; color: var(--maroon); line-height: 1; }
.big-stat span { color: var(--muted); }
.seva-side { text-align: center; }
.seva-side .big-stat { align-items: center; }

/* Rich text */
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 2rem; margin-top: 1.2em; }
.prose h3 { font-size: 1.6rem; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose ul li::marker { color: var(--saffron); }
.prose blockquote { margin: 1.5em 0; padding: .6em 1.2em; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--maroon); background: rgba(245, 234, 214, .6); border-radius: 0 10px 10px 0; }
.prose strong { color: var(--maroon-deep); font-weight: 600; }
.prose > p:first-of-type::first-letter { font-family: var(--serif); float: left; font-size: 3.6em; line-height: .85; padding: .06em .1em 0 0; color: var(--maroon); font-weight: 700; }
.prose > p.lead:first-of-type::first-letter { font-size: inherit; float: none; padding: 0; color: inherit; font-weight: inherit; line-height: inherit; }
.center-prose { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.center-prose > p:first-of-type::first-letter { float: none; font-size: inherit; padding: 0; line-height: inherit; color: inherit; font-weight: inherit; }
.prose-figure, .post-figure { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.prose-figure img, .post-figure img { width: 100%; max-height: 520px; object-fit: cover; }
.portrait { border-radius: 180px 180px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; outline: 1px solid var(--gold); outline-offset: 8px; box-shadow: var(--shadow-lg); background: var(--cream-2); }
.portrait img, .portrait .ph { width: 100%; height: 100%; object-fit: cover; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 22px; color: var(--muted); font-size: .95rem; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .icon { color: var(--gold); }
.sub-title { font-size: 1.8rem; margin: 1.6em 0 .8em; }
.back { margin-top: 40px; }

/* Timeline */
.timeline { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: linear-gradient(var(--gold), var(--saffron), var(--gold)); opacity: .6; }
.tl-item { position: relative; width: 50%; padding: 0 44px 34px; }
.tl-item.left { margin-right: 50%; text-align: right; }
.tl-item.right { margin-left: 50%; }
.tl-dot { position: absolute; top: 20px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--saffron); box-shadow: 0 0 0 5px rgba(217, 98, 30, .15); }
.tl-item.left .tl-dot { right: -9px; }
.tl-item.right .tl-dot { left: -9px; }
.tl-card { display: inline-block; text-align: left; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 420px; }
.tl-year { display: inline-block; font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--saffron); line-height: 1; margin-bottom: 6px; }
.tl-card h3 { font-size: 1.3rem; }
.tl-card p { color: var(--muted); font-size: .96rem; margin: 0; }
.tl-img { border-radius: 10px; margin-bottom: 10px; aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }

/* Lineage */
.lineage { display: grid; gap: 30px; max-width: 900px; margin: 0 auto; }
.lineage-item { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lineage-item h2 { font-size: 2rem; margin: .3em 0 .15em; }
.lineage-item h2 a { color: var(--maroon-deep); text-decoration: none; }
.lineage-meta { color: var(--gold); font-weight: 500; letter-spacing: .03em; }
.lineage-body > p:not(.lineage-meta) { color: var(--muted); }

/* Sevas list */
.seva-rows { display: grid; gap: 40px; }
.seva-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.seva-row.flip .seva-row-media { order: 2; }
.seva-row-media { min-height: 320px; display: block; }
.seva-row-media img, .seva-row-media .ph { width: 100%; height: 100%; object-fit: cover; }
.seva-row-media .ph .icon { width: 70px; height: 70px; }
.seva-row-body { padding: 40px 44px; }
.seva-row-body h2 { font-size: 2.1rem; }
.seva-row-body h2 a { color: var(--maroon-deep); text-decoration: none; }
.seva-row-body > p { color: var(--muted); }
.seva-row-foot { display: flex; gap: 30px; flex-wrap: wrap; }
.seva-row-foot .seva-stat { margin: 0 0 1.2em; border: 0; padding: 0; }
.seva-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.seva-mini { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.seva-mini:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--ink); }
.seva-mini .seva-icon { margin: 0; width: 48px; height: 48px; }
.seva-mini .seva-icon .icon { width: 24px; height: 24px; }
.seva-mini strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--maroon-deep); }
.seva-mini small { color: var(--muted); }

/* Filters & tabs */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters a { padding: .4em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); font-size: .92rem; }
.filters a:hover { border-color: var(--gold); }
.filters a.on { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs a { padding: .6em 1.2em; text-decoration: none; color: var(--muted); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--maroon); border-color: var(--saffron); }
.events-list.full .event-card { padding: 20px; }
.event-side .badge { margin-bottom: 12px; }
.event-side .info-line { color: var(--ink); }

/* Pagination */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pager a, .pager span { min-width: 40px; padding: .45em .8em; border-radius: 10px; text-align: center; text-decoration: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.pager .cur { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.pager a:hover { border-color: var(--gold); }

/* Gallery albums */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.album { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.album:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.album-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.album-media::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 246, 226, .7); border-radius: 8px; pointer-events: none; }
.album-media img { width: 100%; height: 100%; object-fit: cover; }
.album-body { display: block; padding: 16px 20px 18px; }
.album-body strong { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--maroon-deep); }
.album-body small { color: var(--muted); }

/* Institutions */
.inst-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 20px; }
.inst { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.inst-media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.inst-media img, .inst-media .ph { width: 100%; height: 100%; object-fit: cover; }
.since { position: absolute; left: 16px; bottom: 14px; background: var(--maroon); color: var(--gold-soft); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: .35em .9em; border-radius: 999px; }
.inst-body { padding: 24px 28px 26px; }
.inst-body h2 { font-size: 1.75rem; }
.inst-body > p { color: var(--muted); }
.course-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.course-list li { font-size: .85rem; padding: .2em .8em; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }
.inst-contact { border-top: 1px dashed var(--line); padding-top: 14px; font-size: .95rem; }
.inst-contact .info-line { margin-bottom: .5em; }

/* Library & tables */
.search-bar { display: grid; grid-template-columns: 1fr 260px auto; gap: 10px; max-width: 900px; margin: 0 auto 18px; }
.result-note { text-align: center; color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.data-table th { text-align: left; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); background: var(--cream); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #F1E6D2; vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #FFF8EC; }
.data-table .strong { font-weight: 500; color: var(--maroon-deep); }

/* Publications */
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.book { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.book-cover { aspect-ratio: 3 / 4; overflow: hidden; background: var(--cream-2); }
.book-cover img, .book-cover .ph { width: 100%; height: 100%; object-fit: cover; }
.book-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.book-body h3 { font-size: 1.25rem; margin-bottom: .2em; }
.book-author { color: var(--gold); font-size: .9rem; margin-bottom: .5em; }
.book-desc { color: var(--muted); font-size: .9rem; }
.book-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.price { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--maroon); }
.book-side .book-cover { border-radius: 10px; margin-bottom: 16px; }

/* Forms */
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .7em .9em; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(195, 144, 53, .2); }
.form-card { padding: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form-card h2 { font-size: 2rem; margin: 0; }
.form-card label { display: grid; gap: 6px; font-size: .92rem; font-weight: 500; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card .btn { justify-self: start; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: .98rem; }
.flash-ok { background: #EEF6E8; border: 1px solid #B9D8A6; color: #2F5A1B; }
.flash-err { background: #FBEAE6; border: 1px solid #E8B4A8; color: #862A17; margin: 0; }
.support-box { text-align: center; margin-top: 40px; padding: 34px; border: 1px solid var(--gold-soft); border-radius: var(--radius); background: linear-gradient(180deg, #FFF6E6, var(--paper)); }
.support-box .quote-lamp { color: var(--saffron); }
.center-line { justify-content: center; font-size: 1.2rem; }
.map-full iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; color: rgba(255, 243, 222, .78); background: linear-gradient(180deg, var(--maroon-deep), var(--night)); padding-top: 70px; font-size: .96rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--saffron), var(--gold), var(--saffron)); }
.footer-art { position: absolute; right: -160px; bottom: -200px; width: 560px; color: var(--gold); opacity: .08; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.site-footer h4 { font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.2em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: rgba(255, 243, 222, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.brand-light .brand-text strong { color: #FFF3DE; }
.brand-light { margin-bottom: 16px; }
.f-contact p { display: flex; gap: 10px; }
.f-contact .icon { color: var(--gold); margin-top: .3em; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(233, 207, 148, .35); }
.socials a:hover { background: var(--saffron); border-color: var(--saffron); }
.footer-bottom { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 20px; border-top: 1px solid rgba(233, 207, 148, .18); font-size: .86rem; color: rgba(255, 243, 222, .6); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(20, 5, 3, .93); padding: 40px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 8px; margin: 0 auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: var(--gold-soft); margin-top: 12px; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: var(--saffron); }
.lightbox button .icon { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav a { padding: .55em .55em; font-size: .94rem; }
  .brand-text strong { font-size: 1.35rem; }
}
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 78px); height: calc(100dvh - 78px); background: var(--paper); overflow-y: auto; padding: 16px 20px 40px; border-top: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
  .nav-open .main-nav { visibility: visible; opacity: 1; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav a { padding: .8em .2em; font-size: 1.05rem; }
  .main-nav > ul > li > a::after, .has-sub > a::before { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 14px; min-width: 0; background: none; }
  .sub a { padding: .45em .2em; color: var(--muted); }
  .nav-cta { margin: 18px 0 0; border: 0 !important; }
  .nav-cta .btn { width: 100%; }
}
@media (max-width: 980px) {
  .intro-grid, .events-home, .visit-grid, .duo { grid-template-columns: 1fr; gap: 40px; }
  .hero.has-portrait .hero-in { grid-template-columns: 1fr; gap: 34px; padding-top: 56px; padding-bottom: 90px; }
  .hero-portrait { order: -1; max-width: 270px; }
  .hero-portrait figcaption a { font-size: 1.25rem; }
  .intro-frame { max-width: 420px; margin: 0 auto; width: 100%; }
  .seva-grid, .card-grid, .album-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .stat:nth-child(3) { border-left: 0; }
  .split, .split-rev { grid-template-columns: 1fr; gap: 36px; }
  .side { position: static; }
  .split-rev .side { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .seva-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .seva-row, .seva-row.flip { grid-template-columns: 1fr; }
  .seva-row.flip .seva-row-media { order: 0; }
  .seva-row-media { min-height: 220px; aspect-ratio: 16 / 8; }
  .event-thumb { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-tag { font-size: .9rem; }
  .topbar-r { display: none; }
  .topbar-in { justify-content: center; }
  .header-in { min-height: 70px; }
  .main-nav { height: calc(100vh - 70px); height: calc(100dvh - 70px); }
  .logo-mark { width: 42px; height: 42px; }
  .brand-text strong { font-size: 1.25rem; }
  .brand-text small { font-size: .66rem; letter-spacing: .16em; }
  .section { padding: 60px 0; }
  .hero-in { padding: 64px 20px 90px; }
  .hero-portrait { max-width: 220px; }
  .hero-portrait .halo { width: 230%; }
  .hero-art { width: 130vw; right: -55%; opacity: .22; }
  .seva-grid, .card-grid, .album-grid, .inst-grid, .seva-mini-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row, .search-bar { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .event-card { gap: 14px; padding: 14px; }
  .date-block { width: 68px; }
  .date-block .d { font-size: 1.8rem; }
  .lineage-item { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 20px; }
  .timeline::before { left: 9px; }
  .tl-item, .tl-item.left, .tl-item.right { width: 100%; margin: 0; padding: 0 0 26px 38px; text-align: left; }
  .tl-item.left .tl-dot, .tl-item.right .tl-dot { left: 0; right: auto; }
  .seva-row-body { padding: 28px 22px; }
  .duo-card { padding: 28px 22px; }
  .stat + .stat { border-left: 0; }
  .lightbox { padding: 20px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { transform: scaleX(-1); left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ---------- Patrikaye (Library → Patrikaye) ---------- */
.pk-years { display: grid; gap: 6px; }
.pk-years a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: .55em .9em; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.pk-years a span { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--maroon-deep); line-height: 1.1; }
.pk-years a small { font-size: .82rem; color: var(--muted); }
.pk-years a:hover { border-color: var(--gold); }
.pk-years a.on { background: var(--maroon); border-color: var(--maroon); }
.pk-years a.on span, .pk-years a.on small { color: #fff; }
.pk-main .section-head { margin-bottom: 20px; }
.pk-month { margin-bottom: 34px; }
.pk-month h3 { display: flex; align-items: center; gap: 10px; padding-bottom: .4em; border-bottom: 1px solid var(--line); }
.pk-month h3 .icon { color: var(--saffron); }
.pk-list { display: grid; gap: 14px; }
.pk-item { display: flex; align-items: center; gap: 18px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pk-icon { position: relative; flex: none; display: grid; place-items: center; width: 52px; height: 60px; border-radius: 8px; background: var(--cream-2); color: var(--gold); }
.pk-icon .icon { width: 26px; height: 26px; }
.pk-icon b { position: absolute; bottom: -6px; font-size: .64rem; letter-spacing: .1em; padding: .05em .45em; border-radius: 4px; background: var(--maroon); color: #fff; }
.pk-body { flex: 1; min-width: 0; }
.pk-body h4 { font-size: 1.3rem; margin: 0 0 .1em; }
.pk-body p { margin: 0; font-size: .92rem; color: var(--muted); }
.pk-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Dummy QR payment on the order form (testing only) ---------- */
.pay-box { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin: 4px 0 0; padding: 20px; border: 1px dashed var(--gold); border-radius: var(--radius); background: linear-gradient(180deg, #FFF6E6, var(--paper)); min-width: 0; }
.pay-box legend { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--maroon-deep); }
.pay-qr { display: grid; gap: 8px; justify-items: center; }
.pay-qr img { width: 170px; height: 170px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.pay-flag { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #862A17; background: #FBEAE6; border: 1px solid #E8B4A8; border-radius: 999px; padding: .2em .8em; }
.pay-text { display: grid; gap: 12px; min-width: 0; }
.pay-text p, .pay-text ol { margin: 0; font-size: .95rem; color: var(--muted); }
.pay-text ol { padding-left: 1.2em; }
.pay-warn strong { color: #862A17; }

@media (max-width: 640px) {
  .pk-item { flex-wrap: wrap; padding: 14px 16px; }
  .pk-actions { width: 100%; }
  .pk-actions .btn { flex: 1; }
  .pay-box { grid-template-columns: 1fr; padding: 16px; }
}
