/* Akhila Bharatha Agnihothri Sabha - public website */
:root {
  --ag-maroon: #6b1d0f;
  --ag-maroon-dk: #3d0f07;
  --ag-saffron: #e2701b;
  --ag-saffron-dk: #c25a0d;
  --ag-gold: #d9a441;
  --ag-gold-lt: #f6e7c8;
  --ag-cream: #fbf6ee;
  --ag-sand: #f3eadb;
  --ag-ink: #2b1d16;
  --ag-muted: #6f5d52;
  --ag-line: #eadfcd;
  --ag-radius: 14px;
  --ag-shadow: 0 10px 30px rgba(61, 15, 7, .08);
  --ag-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --ag-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: var(--ag-sans);
  --bs-body-color: var(--ag-ink);
  --bs-link-color: var(--ag-saffron-dk);
  --bs-link-color-rgb: 194, 90, 13;
  --bs-link-hover-color: var(--ag-maroon);
  --bs-link-hover-color-rgb: 107, 29, 15;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: #fff; color: var(--ag-ink); font-size: 1.02rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .ag-serif { font-family: var(--ag-serif); color: var(--ag-maroon-dk); letter-spacing: .005em; }
h1 { font-weight: 700; }
h2 { font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-weight: 600; font-size: 1.35rem; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 3px; }
::selection { background: var(--ag-gold-lt); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(226, 112, 27, .55); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .62rem 1.35rem; letter-spacing: .01em; }
.btn-sm { padding: .38rem .9rem; }
.btn-ag { background: var(--ag-saffron); border-color: var(--ag-saffron); color: #fff; }
.btn-ag:hover, .btn-ag:focus { background: var(--ag-saffron-dk); border-color: var(--ag-saffron-dk); color: #fff; }
.btn-ag-dark { background: var(--ag-maroon); border-color: var(--ag-maroon); color: #fff; }
.btn-ag-dark:hover { background: var(--ag-maroon-dk); border-color: var(--ag-maroon-dk); color: #fff; }
.btn-ag-line { border: 1.5px solid var(--ag-maroon); color: var(--ag-maroon); background: transparent; }
.btn-ag-line:hover { background: var(--ag-maroon); color: #fff; }
.btn-ag-light { border: 1.5px solid rgba(255,255,255,.75); color: #fff; background: rgba(255,255,255,.06); }
.btn-ag-light:hover { background: #fff; color: var(--ag-maroon); }
.btn i { margin-right: .35rem; vertical-align: -2px; }

/* ---------- top bar + header ---------- */
.ag-topbar { background: var(--ag-maroon-dk); color: #f2dcc0; font-size: .84rem; }
.ag-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.ag-topbar a { color: #fff; text-decoration: none; }
.ag-topbar .ag-om { color: var(--ag-gold); font-family: var(--ag-serif); }
.ag-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--ag-line); transition: box-shadow .2s; }
.ag-header.scrolled { box-shadow: 0 6px 20px rgba(61, 15, 7, .08); }
.ag-header .navbar { padding: .55rem 0; }
.ag-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 0; }
.ag-brand img { width: 46px; height: 46px; flex: none; }
.ag-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.ag-brand-name { font-family: var(--ag-serif); font-weight: 700; color: var(--ag-maroon-dk); font-size: 1.12rem; white-space: nowrap; }
.ag-brand-sub { color: var(--ag-muted); font-size: .74rem; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-nav .nav-link { color: var(--ag-ink); font-weight: 500; padding: .5rem .8rem !important; border-radius: 999px; position: relative; }
.ag-nav .nav-link:hover { color: var(--ag-saffron-dk); }
.ag-nav .nav-link.active { color: var(--ag-maroon); font-weight: 700; }
.ag-nav .nav-link.active::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 2px; background: var(--ag-saffron); border-radius: 2px; }
.navbar-toggler { border: 0; padding: .4rem; font-size: 1.6rem; color: var(--ag-maroon); }
.navbar-toggler:focus { box-shadow: none; }
.offcanvas.ag-menu { max-width: 84vw; }
.ag-menu .offcanvas-header { border-bottom: 1px solid var(--ag-line); }
.ag-menu .nav-link { font-size: 1.05rem; padding: .8rem .25rem !important; border-bottom: 1px solid var(--ag-line); border-radius: 0; display: flex; align-items: center; gap: .75rem; color: var(--ag-ink); }
.ag-menu .nav-link i { color: var(--ag-saffron); font-size: 1.2rem; }
.ag-menu .nav-link.active { color: var(--ag-maroon); font-weight: 700; }
.ag-menu .nav-link.active::after { display: none; }
@media (min-width: 1200px) {
  .ag-menu .nav-link { font-size: .97rem; border: 0; padding: .5rem .75rem !important; }
  .ag-menu .nav-link i { display: none; }
}

/* ---------- hero ---------- */
.ag-hero { position: relative; color: #fff; overflow: hidden; background: var(--ag-maroon-dk); }
.ag-hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(22px) saturate(1.1); opacity: .55; }
.ag-hero-bg.ag-hero-img { background-image: url("../img/hero-2.jpg"); }
.ag-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgba(40, 9, 3, .96) 0%, rgba(61, 15, 7, .85) 50%, rgba(61, 15, 7, .6) 100%); }
.ag-hero .container { position: relative; z-index: 1; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(4.5rem, 8vw, 6.5rem); }
.ag-hero-photo { margin: 0; border-radius: 18px; overflow: hidden; border: 4px solid rgba(217, 164, 65, .75); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); background: #000; }
.ag-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ag-hero-photo figcaption { font-size: .82rem; color: #f1dcc4; background: rgba(20, 5, 2, .85); padding: .45rem .8rem; }
.ag-hero h1 { color: #fff; font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.9rem); line-height: 1.1; max-width: 15ch; }
.ag-hero h1 em { font-style: normal; color: var(--ag-gold); }
.ag-hero .lead { color: #f4e3cf; max-width: 38rem; font-size: clamp(1.02rem, .95rem + .4vw, 1.22rem); }
.ag-kicker { display: inline-flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--ag-saffron); }
.ag-hero .ag-kicker { color: var(--ag-gold); }
.ag-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

/* page header (inner pages) */
.ag-pagehead { position: relative; background: var(--ag-maroon-dk); color: #fff; overflow: hidden; }
.ag-pagehead::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1000px 300px at 85% 0%, rgba(226, 112, 27, .45), transparent 60%), radial-gradient(700px 300px at 0% 100%, rgba(217, 164, 65, .25), transparent 60%); }
.ag-pagehead .container { position: relative; padding-top: clamp(2.6rem, 6vw, 4.2rem); padding-bottom: clamp(2.6rem, 6vw, 4.2rem); }
.ag-pagehead h1 { color: #fff; font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); margin: .4rem 0 .5rem; }
.ag-pagehead p { color: #f1dcc4; max-width: 44rem; margin: 0; }
.ag-pagehead .ag-kicker { color: var(--ag-gold); }
.ag-crumb { font-size: .85rem; color: #e8cfb2; }
.ag-crumb a { color: #fff; text-decoration: none; }

/* ---------- sections ---------- */
.ag-section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.ag-section.tight { padding: clamp(2.2rem, 5vw, 3.5rem) 0; }
.ag-cream { background: var(--ag-cream); }
.ag-sand { background: var(--ag-sand); }
.ag-dark { background: var(--ag-maroon-dk); color: #f3e2cf; }
.ag-dark h2, .ag-dark h3 { color: #fff; }
.ag-head { max-width: 46rem; margin-bottom: 2.2rem; }
.ag-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.ag-head.center .ag-kicker::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.ag-head p { color: var(--ag-muted); margin: 0; }
.ag-dark .ag-head p { color: #e6cdb2; }
.ag-divider { width: 70px; height: 3px; background: linear-gradient(90deg, var(--ag-saffron), var(--ag-gold)); border-radius: 3px; margin: 1rem 0; }

/* stats */
.ag-stats { position: relative; z-index: 2; margin-top: -3.2rem; }
.ag-stats .ag-stat-wrap { background: #fff; border-radius: var(--ag-radius); box-shadow: 0 18px 40px rgba(61, 15, 7, .14); overflow: hidden; }
.ag-stat { padding: 1.4rem 1rem; text-align: center; border-right: 1px solid var(--ag-line); height: 100%; }
.ag-stat b { display: block; font-family: var(--ag-serif); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); color: var(--ag-maroon); line-height: 1.1; }
.ag-stat span { font-size: .88rem; color: var(--ag-muted); }
.ag-stats .col:last-child .ag-stat { border-right: 0; }
@media (max-width: 767.98px) {
  .ag-stats .col:nth-child(2) .ag-stat { border-right: 0; }
  .ag-stats .col:nth-child(-n+2) .ag-stat { border-bottom: 1px solid var(--ag-line); }
}

/* acharya band */
.ag-acharyas { background: linear-gradient(180deg, #fff 0, var(--ag-cream) 100%); }
.ag-acharya-img { border-radius: var(--ag-radius); box-shadow: var(--ag-shadow); border: 6px solid #fff; }

/* cards */
.ag-card { background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); padding: 1.6rem; height: 100%; box-shadow: 0 2px 0 rgba(61, 15, 7, .02); transition: transform .2s, box-shadow .2s; }
.ag-card:hover { transform: translateY(-3px); box-shadow: var(--ag-shadow); }
.ag-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.ag-card p:last-child, .ag-card ul:last-child { margin-bottom: 0; }
.ag-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; color: var(--ag-saffron-dk); background: linear-gradient(135deg, #fff3e4, #fde2c4); margin-bottom: 1rem; }
.ag-list { list-style: none; padding: 0; margin: 0; }
.ag-list li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; color: #4b3a30; }
.ag-list li::before { content: "\eb80"; font-family: "remixicon"; position: absolute; left: 0; top: 0; color: var(--ag-saffron); }

/* language tabs */
.ag-lang { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.ag-lang button { border: 1px solid var(--ag-line); background: #fff; color: var(--ag-ink); border-radius: 999px; padding: .35rem .95rem; font-size: .9rem; font-weight: 600; }
.ag-lang button.active { background: var(--ag-maroon); border-color: var(--ag-maroon); color: #fff; }
.ag-lang-text { display: none; }
.ag-lang-text.active { display: block; animation: agFade .35s ease; }
.ag-lang-text p { font-size: 1.05rem; }
.ag-lang-text .ag-quote { font-family: var(--ag-serif); font-size: 1.25rem; color: var(--ag-maroon); border-left: 3px solid var(--ag-saffron); padding-left: 1rem; }
@keyframes agFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ag-photo { border-radius: var(--ag-radius); overflow: hidden; box-shadow: var(--ag-shadow); position: relative; }
.ag-photo img { width: 100%; display: block; }
.ag-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1rem .8rem; color: #fff; font-size: .88rem; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }

/* sadas cards */
.ag-event { border-radius: var(--ag-radius); overflow: hidden; background: #fff; border: 1px solid var(--ag-line); height: 100%; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.ag-event:hover { transform: translateY(-3px); box-shadow: var(--ag-shadow); }
.ag-event-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ag-sand); }
.ag-event-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ag-event:hover .ag-event-img img { transform: scale(1.04); }
.ag-event-body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.ag-event-meta { display: flex; gap: .9rem; font-size: .85rem; color: var(--ag-muted); margin-bottom: .4rem; flex-wrap: wrap; }
.ag-event-meta i { color: var(--ag-saffron); }
.ag-event h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.ag-event p { color: #4b3a30; font-size: .97rem; }
.ag-event .ag-more { margin-top: auto; font-weight: 600; text-decoration: none; }
.ag-badge { display: inline-block; background: var(--ag-gold-lt); color: var(--ag-maroon); font-weight: 700; font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; letter-spacing: .03em; }

/* video */
.ag-video { border-radius: var(--ag-radius); overflow: hidden; background: #000; box-shadow: var(--ag-shadow); }
.ag-video video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }
.ag-video-cap { padding: 1rem 0 0; }
.ag-video-cap h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.ag-video-cap p { color: var(--ag-muted); font-size: .92rem; margin: 0; }
.ag-dark .ag-video-cap h3 { color: #fff; }
.ag-dark .ag-video-cap p { color: #e0c6aa; }

/* cta band */
.ag-cta { background: linear-gradient(120deg, var(--ag-saffron-dk), var(--ag-maroon) 70%); color: #fff; border-radius: calc(var(--ag-radius) + 6px); padding: clamp(2rem, 5vw, 3.2rem); position: relative; overflow: hidden; }
.ag-cta > * { position: relative; z-index: 1; }
.ag-cta::after { content: ""; pointer-events: none; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%); }
.ag-cta h2 { color: #fff; }
.ag-cta p { color: #fde8d3; max-width: 40rem; }

/* timeline */
.ag-timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.ag-timeline::before { content: ""; position: absolute; left: 22px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--ag-saffron), var(--ag-gold)); }
.ag-timeline li { position: relative; padding: 0 0 1.4rem 64px; }
.ag-timeline .ag-dot { position: absolute; left: 8px; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--ag-saffron); display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--ag-maroon); }
.ag-timeline li.hl .ag-dot { background: var(--ag-saffron); color: #fff; }
.ag-tl-year { font-family: var(--ag-serif); font-weight: 700; font-size: 1.2rem; color: var(--ag-maroon-dk); }
.ag-tl-place { font-weight: 600; }
.ag-tl-date { color: var(--ag-muted); font-size: .9rem; }
.ag-tl-note { color: #4b3a30; font-size: .95rem; margin-top: .2rem; }
@media (min-width: 992px) {
  .ag-timeline.two { columns: 2; column-gap: 3rem; }
  .ag-timeline.two li { break-inside: avoid; }
}

/* table */
.ag-table-wrap { border: 1px solid var(--ag-line); border-radius: var(--ag-radius); overflow: hidden; background: #fff; }
.ag-table { margin: 0; --bs-table-striped-bg: #fcf8f1; }
.ag-table thead th { background: var(--ag-maroon); color: #fff; font-weight: 600; border: 0; font-size: .9rem; white-space: nowrap; }
.ag-table td, .ag-table th { padding: .75rem .9rem; vertical-align: top; border-color: var(--ag-line); }
@media (max-width: 767.98px) {
  .ag-table.stack thead { display: none; }
  .ag-table.stack tr { display: block; border-bottom: 1px solid var(--ag-line); padding: .6rem .2rem; }
  .ag-table.stack td { display: flex; gap: .8rem; border: 0; padding: .2rem .7rem; }
  .ag-table.stack td::before { content: attr(data-th); flex: 0 0 38%; font-weight: 600; color: var(--ag-muted); font-size: .88rem; }
}

/* gallery */
.ag-filter { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.8rem; }
.ag-filter button { border: 1px solid var(--ag-line); background: #fff; border-radius: 999px; padding: .4rem 1rem; font-weight: 600; font-size: .92rem; color: var(--ag-ink); }
.ag-filter button span { color: var(--ag-muted); font-weight: 500; margin-left: .25rem; font-size: .82rem; }
.ag-filter button.active { background: var(--ag-maroon); border-color: var(--ag-maroon); color: #fff; }
.ag-filter button.active span { color: #f1d6b8; }
.ag-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 576px) { .ag-gallery { grid-template-columns: repeat(3, 1fr); gap: .8rem; } }
@media (min-width: 992px) { .ag-gallery { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.ag-gallery a { display: block; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ag-sand); }
.ag-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s, filter .3s; }
.ag-gallery a:hover img { transform: scale(1.05); filter: brightness(.92); }
.ag-gallery a .ag-g-tag { position: absolute; left: .5rem; bottom: .5rem; background: rgba(0, 0, 0, .55); color: #fff; font-size: .74rem; padding: .1rem .5rem; border-radius: 999px; }
.ag-gallery a[hidden] { display: none; }
.ag-album-title { grid-column: 1 / -1; font-family: var(--ag-serif); font-size: 1.35rem; color: var(--ag-maroon-dk); font-weight: 700; margin: 1rem 0 .1rem; display: flex; align-items: baseline; gap: .6rem; }
.ag-album-title:first-child { margin-top: 0; }
.ag-album-title small { font-family: var(--ag-sans); font-size: .85rem; color: var(--ag-muted); font-weight: 500; }
.ag-album-title[hidden] { display: none; }

/* gallery viewer (PhotoSwipe 5) */
.pswp { --pswp-bg: #120704; --pswp-placeholder-bg: #2a120a; --pswp-icon-color: #fff; --pswp-icon-color-secondary: #3d0f07; --pswp-icon-stroke-color: #3d0f07; --pswp-error-text-color: #f4e3cf; }
.pswp__counter { font-family: var(--ag-sans); font-size: .95rem; opacity: .9; margin-left: 18px; }
.pswp__ag-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px 20px; text-align: center; color: #f1dcc4; font-size: .95rem; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; transition: opacity .25s; }
.pswp--ui-visible .pswp__ag-caption { opacity: 1; }
.pswp:not(.pswp--ui-visible) .pswp__ag-caption { opacity: 0; }
.pswp__button--ag-fullscreen { display: grid; place-items: center; color: #fff; font-size: 22px; }
.pswp__button--ag-fullscreen i { filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)); }
.pswp__button--arrow .pswp__icn { background: rgba(255, 255, 255, .12); border-radius: 50%; }
@media (max-width: 575.98px) { .pswp__button--ag-fullscreen { display: none; } }

/* donate */
.ag-bank { background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); overflow: hidden; height: 100%; }
.ag-bank-head { background: linear-gradient(120deg, var(--ag-maroon), var(--ag-maroon-dk)); color: #fff; padding: 1.1rem 1.4rem; display: flex; align-items: center; gap: .8rem; }
.ag-bank-head i { font-size: 1.6rem; color: var(--ag-gold); }
.ag-bank-head h3 { color: #fff; margin: 0; font-size: 1.2rem; }
.ag-bank dl { margin: 0; padding: .4rem 1.4rem 1rem; }
.ag-bank dl > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--ag-line); }
.ag-bank dl > div:last-child { border-bottom: 0; }
.ag-bank dt { font-weight: 500; color: var(--ag-muted); font-size: .9rem; }
.ag-bank dd { margin: 0; font-weight: 700; text-align: right; word-break: break-word; display: flex; align-items: center; gap: .4rem; }
.ag-copy { border: 0; background: var(--ag-gold-lt); color: var(--ag-maroon); border-radius: 8px; width: 30px; height: 30px; flex: none; display: inline-grid; place-items: center; }
.ag-copy:hover { background: var(--ag-gold); color: #fff; }
.ag-copy.done { background: #2f855a; color: #fff; }
.ag-qr { max-width: 230px; border-radius: 12px; border: 1px solid var(--ag-line); padding: .5rem; background: #fff; }
.ag-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.ag-steps li { counter-increment: s; position: relative; padding-left: 2.4rem; margin-bottom: .8rem; }
.ag-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ag-saffron); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.ag-note { background: #fff8ec; border: 1px solid #f4dfb6; border-radius: 12px; padding: 1rem 1.2rem; display: flex; gap: .8rem; align-items: flex-start; }
.ag-note i { color: var(--ag-saffron-dk); font-size: 1.4rem; line-height: 1.3; }

/* forms */
.ag-form { background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: var(--ag-shadow); }
.ag-form .form-label { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.ag-form .form-label .req { color: #c0392b; }
.ag-form .form-control, .ag-form .form-select { border-radius: 10px; border-color: #ddd0bd; padding: .65rem .85rem; }
.ag-form .form-control:focus, .ag-form .form-select:focus { border-color: var(--ag-saffron); box-shadow: 0 0 0 .2rem rgba(226, 112, 27, .15); }
.ag-form .form-text { font-size: .8rem; }
.ag-form-section { font-family: var(--ag-serif); font-weight: 700; color: var(--ag-maroon); font-size: 1.05rem; margin: .4rem 0 .2rem; padding-bottom: .35rem; border-bottom: 1px solid var(--ag-line); }
.ag-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ag-form-msg { border-radius: 10px; padding: .85rem 1rem; display: flex; gap: .6rem; align-items: flex-start; }
.ag-form-msg.ok { background: #e9f7ef; color: #1e6b43; border: 1px solid #bfe6cf; }
.ag-form-msg.err { background: #fdecea; color: #a12d22; border: 1px solid #f5c6c0; }
.ag-form-msg i { font-size: 1.2rem; line-height: 1.4; }

/* contact */
.ag-contact-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--ag-line); }
.ag-contact-item:last-child { border-bottom: 0; }
.ag-contact-item .ag-icon { margin: 0; width: 46px; height: 46px; font-size: 1.3rem; flex: none; }
.ag-contact-item b { display: block; color: var(--ag-maroon-dk); }
.ag-map { border-radius: var(--ag-radius); overflow: hidden; border: 1px solid var(--ag-line); background: var(--ag-sand); }
.ag-map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* people */
.ag-person { text-align: center; }
.ag-person img { width: 140px; height: 140px; object-fit: cover; object-position: top; border-radius: 50%; border: 5px solid #fff; box-shadow: var(--ag-shadow); margin-bottom: .8rem; }
.ag-person .ag-avatar { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto .8rem; display: grid; place-items: center; font-family: var(--ag-serif); font-size: 2.4rem; color: var(--ag-maroon); background: linear-gradient(135deg, #fff3e4, #fbdcb8); border: 5px solid #fff; box-shadow: var(--ag-shadow); }
.ag-person b { display: block; font-family: var(--ag-serif); color: var(--ag-maroon-dk); font-size: 1.08rem; }
.ag-person span { color: var(--ag-muted); font-size: .88rem; }
.ag-trustee { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--ag-line); border-radius: 12px; height: 100%; }
.ag-trustee .ag-num { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--ag-gold-lt); color: var(--ag-maroon); font-weight: 700; display: grid; place-items: center; font-family: var(--ag-serif); }
.ag-trustee b { color: var(--ag-maroon-dk); display: block; line-height: 1.3; }
.ag-trustee span { color: var(--ag-muted); font-size: .86rem; }

/* rituals */
.ag-level { display: flex; gap: 1.2rem; }
.ag-level-num { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--ag-maroon); color: #fff; display: grid; place-items: center; font-family: var(--ag-serif); font-size: 1.35rem; font-weight: 700; }
.ag-chip { display: inline-flex; align-items: center; gap: .35rem; background: #fff; border: 1px solid var(--ag-line); border-radius: 999px; padding: .35rem .85rem; margin: 0 .35rem .5rem 0; font-weight: 600; font-size: .92rem; }
.ag-chip b { color: var(--ag-saffron-dk); }
.ag-sloka { font-family: var(--ag-serif); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); color: var(--ag-maroon); line-height: 1.35; }

/* footer */
.ag-footer { background: #1f0904; color: #d9c2a9; font-size: .94rem; }
.ag-footer .container { padding-top: 3.5rem; padding-bottom: 1.5rem; }
.ag-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; font-family: var(--ag-serif); }
.ag-footer a { color: #f0dcc6; text-decoration: none; }
.ag-footer a:hover { color: var(--ag-gold); }
.ag-footer ul { list-style: none; padding: 0; margin: 0; }
.ag-footer li { margin-bottom: .45rem; }
.ag-footer .ag-brand-name { color: #fff; }
.ag-footer .ag-brand-sub { color: #c9ae92; }
.ag-foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .84rem; color: #b39a80; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.ag-totop { position: fixed; right: 1rem; bottom: 1rem; z-index: 1020; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ag-saffron); color: #fff; font-size: 1.3rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; transform: translateY(8px); }
.ag-totop.show { opacity: 1; pointer-events: auto; transform: none; }

/* reveal */
.ag-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.ag-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ag-reveal { opacity: 1; transform: none; transition: none; }
  .ag-card, .ag-event, .ag-gallery img, .ag-event-img img { transition: none; }
}
@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .ag-brand img { width: 40px; height: 40px; }
  .ag-brand-name { font-size: 1rem; }
  .ag-brand-sub { font-size: .68rem; max-width: 52vw; }
  .ag-topbar .ag-tb-left { display: none; }
  .ag-topbar .container { justify-content: center; }
}
@media print {
  .ag-topbar, .ag-header, .ag-footer, .ag-totop, .ag-cta { display: none !important; }
  .ag-reveal { opacity: 1; transform: none; }
}
.ag-nav-donate { width: 100%; }
@media (min-width: 1200px) { .ag-nav-donate { width: auto; white-space: nowrap; } }
.ag-contact-item > div > .text-secondary, .ag-contact-item > div > a { display: block; }
.ag-mw-40 { max-width: 40rem; }
