/* =====================================================================
   Divya Dham — global styles
   Saffron & gold, calm typography, temple-inspired detailing.
   ===================================================================== */

:root {
    --saffron: #e8751a;
    --saffron-dark: #b5540a;
    --marigold: #f6a623;
    --gold: #c99a2e;
    --gold-deep: #7d6220; /* readable gold for small text on light backgrounds */
    --gold-soft: #f0d9a0;
    --maroon: #6d1b1b;
    --maroon-deep: #4a1010;
    --ink: #2a1e16;
    --ink-soft: #5d5148;
    --muted: #6f6359;
    --cream: #fdf7ee;
    --cream-2: #f8ecd9;
    --white: #ffffff;
    --line: #ecdfcd;
    --green: #2f8f5b;
    --red: #c0392b;
    --blue: #2b6cb0;
    --shadow-sm: 0 2px 10px rgba(109, 27, 27, .06);
    --shadow: 0 12px 34px rgba(109, 27, 27, .10);
    --shadow-lg: 0 26px 60px rgba(74, 16, 16, .16);
    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 1180px;
    --font-display: 'Marcellus', 'Georgia', serif;
    --font-body: 'Mukta', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-size: 16.5px;
    -webkit-font-smoothing: antialiased;
    /* Long words (emails, URLs) should wrap rather than force a horizontal
       scroll on small screens. */
    overflow-wrap: break-word;
    overflow-x: hidden;
    width: 100%;
}

img { max-width: 100%; display: block; }
a { color: var(--saffron-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--maroon); }
/* Inline links inside running text are underlined so they are distinguishable
   without relying on colour alone (WCAG 1.4.1 / Lighthouse link-in-text-block). */
p a:not(.btn):not(.btn-link),
.prose a:not(.btn):not(.btn-link) { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; color: var(--maroon-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-3 { margin-top: 1.25rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 10px; top: 10px; background: var(--maroon); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }

/* ---------------- Top bar ---------------- */
.topbar { background: linear-gradient(90deg, var(--maroon-deep), var(--maroon)); color: #f7e3c4; font-size: .82rem; }
.topbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; min-height: 38px; }
.topbar a { color: #f7e3c4; }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; gap: 18px; justify-content: flex-end; align-items: center; }
.topbar-item { opacity: .92; }
.topbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar-shloka { font-family: var(--font-body), "Noto Sans Devanagari", sans-serif; font-weight: 600; letter-spacing: .3px; opacity: .95; white-space: nowrap; text-align: center; justify-self: center; }
.views-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 11px; border: 1px solid rgba(247, 227, 196, .45); border-radius: 999px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }

/* 80G tax-benefit strip (shown on every public page) */
.donation-strip { background: linear-gradient(90deg, var(--cream-2), var(--gold-soft)); border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); }
.donation-strip .container { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; text-align: center; padding-top: 7px; padding-bottom: 7px; }
.donation-strip strong { color: var(--maroon); font-weight: 700; }
.donation-strip a { color: var(--saffron-dark); font-weight: 700; text-decoration: underline; }
.donation-strip a:hover { color: var(--ink); }

/* ---------------- Videos (YouTube) ---------------- */
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame-feature { max-width: 1000px; margin: 0 auto; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.video-card { display: block; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease; }
.video-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.video-card-media { display: block; position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.9rem; background: rgba(109, 27, 27, .18); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); transition: background .18s ease, font-size .18s ease; }
.video-card:hover .video-play { background: rgba(232, 117, 26, .30); font-size: 2.2rem; }
.video-card-title { display: block; padding: 12px 14px; font-weight: 600; font-size: .95rem; line-height: 1.4; }

/* Curated video library (Admin → Videos) */
.video-feature { max-width: 1000px; margin: 0 auto; text-align: center; }
.video-feature-title { font-family: var(--font-display); font-size: 1.45rem; color: var(--maroon-deep); margin: 22px 0 4px; }
.video-feature-desc { max-width: 720px; margin: 0 auto; color: var(--ink-soft); font-size: 1rem; }
.video-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.video-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease; display: flex; flex-direction: column; }
.video-tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.video-tile .video-frame { border-radius: 0; box-shadow: none; }
.video-tile-title { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 12px 14px 2px; line-height: 1.35; }
.video-tile-desc { margin: 4px 14px 14px; color: var(--ink-soft); font-size: .88rem; }
.video-tile-external { display: flex; align-items: center; justify-content: center; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(109,27,27,.10), rgba(109,27,27,.35)); color: #fff; font-weight: 600; text-decoration: none; gap: 10px; }
.video-tile-external:hover { color: #fff; background: rgba(232,117,26,.28); }
.video-tile-external .video-play { position: static; display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--saffron); color: var(--maroon-deep); font-size: 1.2rem; }

/* ---------------- Blog ---------------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card { display: block; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.blog-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.blog-card-title { font-size: 1.05rem; line-height: 1.35; margin: 0; }
.blog-card-excerpt { font-size: .9rem; line-height: 1.5; }
.blog-card-meta { font-size: .82rem; }
.blog-post-hero { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow-sm); }
.blog-post-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-post-meta { color: var(--ink-soft); font-size: .88rem; margin: 6px 0 0; }
.blog-post-deck { color: var(--ink-soft); font-size: 1.08rem; margin-top: 10px; }
.prose ul { margin: 0 0 1.1em 1.25em; padding: 0; }
.prose li { margin-bottom: .35em; }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 36px; padding: 20px; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); box-shadow: var(--shadow-sm); flex: 0 0 auto; }
.author-avatar-initial { display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: #8a4a1c; background: #f6e7d8; }
.author-box-body h3 { margin: 2px 0 6px; font-size: 1.05rem; }

/* ---------------- Blog layout + sidebar ---------------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.blog-main { min-width: 0; }
.blog-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.blog-side-widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px 18px 14px; }
.blog-side-widget h3 { margin: 0 0 12px; font-size: 1rem; color: var(--maroon-deep); }
.blog-side-list { list-style: none; margin: 0; padding: 0; }
.blog-side-list li + li { border-top: 1px dashed var(--line); }
.blog-side-list a { display: flex; gap: 11px; align-items: center; text-decoration: none; color: var(--ink); padding: 9px 0; }
.blog-side-list a:hover strong { color: var(--saffron); }
.blog-side-list img { width: 58px; height: 42px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; background: var(--cream-2); border: 1px solid var(--line); }
.blog-side-list strong { display: block; font-size: .88rem; line-height: 1.35; color: var(--maroon-deep); }
.blog-side-list small { color: var(--ink-soft); font-size: .78rem; }
.side-event-date { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; padding: 6px 0; border-radius: 8px; background: var(--cream-2); border: 1px solid var(--line); }
.side-event-date strong { font-size: .9rem; color: var(--maroon); }
.side-event-title { min-width: 0; }
@media (max-width: 980px) {
    .blog-layout { grid-template-columns: minmax(0, 1fr); }
    .blog-sidebar { position: static; }
}

/* Light theme for the compact donation form inside the blog sidebar */
.blog-sidebar .donate-form-compact .field label { color: var(--ink-soft); }
.blog-sidebar .donate-form-compact .amount-custom input,
.blog-sidebar .donate-form-compact input[type="text"],
.blog-sidebar .donate-form-compact input[type="email"],
.blog-sidebar .donate-form-compact input[type="number"],
.blog-sidebar .donate-form-compact select { background: var(--white); border-color: var(--line); color: var(--ink); }
.blog-sidebar .donate-form-compact input::placeholder { color: #a89a8a; }
.blog-sidebar .donate-form-compact select option { color: var(--ink); }

/* ---------------- Header (centered logo) ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(253, 247, 238, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center; gap: 14px; min-height: 132px;
}

/* Centered logo */
.brand {
    grid-column: 2; grid-row: 1; justify-self: center;
    display: flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap;
}
.brand-logo { width: 96px; height: 96px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.28rem; color: var(--maroon-deep); white-space: nowrap; }
.brand-text small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* Nav: Home · About▾ · Temples ... Fundraising · Events · Blog · Contact */
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-left { grid-column: 1; grid-row: 1; justify-self: end; justify-content: flex-end; }
.nav-right .header-actions { margin-left: 6px; }
.nav-right { grid-column: 3; grid-row: 1; justify-self: stretch; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; gap: 4px;
    padding: 9px 13px; border-radius: 999px;
    color: var(--ink-soft); font-weight: 500; font-size: .95rem;
}
.nav-link:hover { background: var(--cream-2); color: var(--maroon); }
.nav-link.active { color: var(--maroon); background: var(--cream-2); }
.nav-link.active::after {
    content: ""; position: absolute; left: 50%; transform: translateX(-50%);
    bottom: 2px; width: 18px; height: 2px; background: var(--saffron); border-radius: 2px;
}
.nav-caret { font-size: .62rem; transition: transform .2s ease; }

/* About dropdown */
.nav-dropdown-wrap { position: relative; display: flex; align-items: center; }
.nav-dropdown {
    position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    min-width: 190px; display: none; flex-direction: column; gap: 2px;
    padding: 8px; background: var(--white); border: 1px solid var(--line);
    border-radius: 14px; box-shadow: 0 18px 40px rgba(74, 16, 16, .16); z-index: 30;
}
.nav-dropdown-link { padding: 10px 14px; border-radius: 10px; color: var(--ink-soft); font-weight: 500; font-size: .93rem; }
.nav-dropdown-link:hover, .nav-dropdown-link.active { background: var(--cream-2); color: var(--maroon); }
.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown,
.nav-dropdown-wrap.open .nav-dropdown { display: flex; }
.nav-dropdown-wrap:hover .nav-caret { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: 9px 10px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--maroon); border-radius: 2px; }
.nav-auth-mobile { display: none; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem;
    cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--saffron), var(--marigold)); color: #fff; box-shadow: 0 8px 20px rgba(232, 117, 26, .28); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(232, 117, 26, .38); }
.btn-maroon { background: linear-gradient(135deg, var(--maroon), var(--maroon-deep)); color: #fff; }
.btn-maroon:hover { color: #fff; }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--maroon); }
.btn-ghost:hover { background: var(--cream-2); color: var(--maroon); }
.btn-sm { padding: 8px 15px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--saffron-dark); cursor: pointer; padding: 4px; font: inherit; }
.btn-danger { background: var(--red); color: #fff; }

/* ---------------- Flash / alerts ---------------- */
.flash-wrap { margin-top: 18px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin: 0 0 14px; border: 1px solid transparent; font-size: .95rem; }
.alert-success { background: #e8f6ee; border-color: #b9e3ca; color: #1e6b41; }
.alert-danger  { background: #fdecea; border-color: #f3c1bb; color: #a02b1e; }
.alert-warning { background: #fef5e3; border-color: #f4ddab; color: #8a6210; }
.alert-info    { background: #e9f1fb; border-color: #c3d8f3; color: #22558f; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }

/* ---------------- Sections ---------------- */
.section { padding: 76px 0; }
.section-sm { padding: 44px 0; }
.section-cream { background: var(--cream-2); }
.section-dark { background: linear-gradient(160deg, var(--maroon-deep), var(--maroon)); color: #f4e3cd; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .muted { color: #d9bfa1; }
/* Muted text inside a white surface (card) sitting on a dark section must stay
   dark — the light `.section-dark .muted` colour would be unreadable there. */
.section-dark :is(.card, .side-card, .video-card, .blog-card) .muted { color: var(--muted); }
.section-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.eyebrow { display: inline-block; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 10px; }
.section-dark .eyebrow { color: var(--marigold); }
.section-title { margin-bottom: 12px; }
.section-lead { color: var(--ink-soft); font-size: 1.05rem; }
.divider-om { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 8px 0 0; }
.divider-om::before, .divider-om::after { content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.divider-om::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 80% 0%, #fff3dc 0%, var(--cream) 45%, #fde9cd 100%); }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(201, 154, 46, .18) 1px, transparent 1px);
    background-size: 26px 26px; opacity: .5; mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 84px 0 76px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--saffron-dark); }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; }
.hero-art img { border-radius: 24px; box-shadow: var(--shadow-lg); }
.hero-badge {
    position: absolute; bottom: -18px; left: -18px; background: var(--white); border: 1px solid var(--line);
    border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
}
.hero-badge .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--saffron-dark); line-height: 1; }
.hero-badge span { font-size: .78rem; color: var(--muted); }

/* ---------------- Stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.stat { text-align: center; padding: 26px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat .value { font-family: var(--font-display); font-size: 2.2rem; color: var(--maroon); line-height: 1; }
.stat .label { font-size: .85rem; color: var(--muted); letter-spacing: .04em; }

/* ---------------- Grid & cards ---------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-body { padding: 22px; }
.card-title { margin: 0 0 6px; }

.temple-card { display: flex; flex-direction: column; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.temple-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.temple-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.temple-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.temple-card:hover .temple-media img { transform: scale(1.06); }
.temple-media .ribbon { position: absolute; top: 12px; left: 12px; }
.temple-media .rating { position: absolute; top: 12px; right: 12px; background: rgba(74,16,16,.82); color: #ffe9c2; padding: 4px 10px; border-radius: 999px; font-size: .8rem; }
.temple-card .card-body { display: flex; flex-direction: column; flex: 1; }
.temple-loc { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.temple-card .card-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; }

/* ---------------- Fundraiser / progress ---------------- */
.fund-card { display: flex; flex-direction: column; height: 100%; }
.fund-media { aspect-ratio: 16 / 10; overflow: hidden; }
.fund-media img { width: 100%; height: 100%; object-fit: cover; }
.fund-card .card-body { display: flex; flex-direction: column; flex: 1; }
.progress { height: 10px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin: 14px 0 8px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--saffron), var(--marigold)); border-radius: 999px; }
.progress-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-soft); }
.progress-meta .raised { font-weight: 700; color: var(--maroon); }
.fund-stats { display: flex; gap: 18px; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.fund-stats strong { color: var(--ink); display: block; font-size: 1rem; }

/* ---------------- Badges ---------------- */
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge-admin { background: #fbe3c6; color: #9a5008; }
.badge-devotee { background: #e2ecfb; color: #2b5991; }
.badge-success { background: #e1f4e9; color: #1e6b41; }
.badge-warning { background: #fdf0d6; color: #8a6210; }
.badge-info { background: #e2ecfb; color: #2b5991; }
.badge-danger { background: #fbe0dc; color: #a02b1e; }
.badge-muted { background: #efe9e1; color: var(--ink-soft); }
.badge-gold { background: #f7ecc9; color: #7a5c0d; }
.ribbon { background: var(--maroon); color: #ffe9c2; padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* ---------------- Feature / value blocks ---------------- */
.feature { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); height: 100%; }
.feature .icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(135deg, #ffe9c9, #fbd9a5); margin-bottom: 16px; }

/* ---------------- Quote / guru strip ---------------- */
.quote-strip { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.quote-strip img { border-radius: 24px; box-shadow: var(--shadow-lg); }
blockquote.pull { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.5; color: var(--maroon); margin: 0 0 18px; border-left: 3px solid var(--saffron); padding-left: 20px; }

/* ---------------- Panel (dashboard) ---------------- */
.panel-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.panel-side { background: linear-gradient(180deg, var(--maroon-deep), var(--maroon)); color: #f0dcc0; padding: 26px 18px; }
.panel-side .panel-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.panel-side .panel-brand img { width: 38px; }
.panel-side .panel-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.15rem; }
.panel-side .panel-role { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 22px; }
.panel-nav { display: flex; flex-direction: column; gap: 3px; }
.panel-nav a { color: #ecd7ba; padding: 10px 14px; border-radius: 10px; font-size: .94rem; display: flex; gap: 10px; align-items: center; }
.panel-nav a:hover { background: rgba(255,255,255,.10); color: #fff; }
.panel-nav a.active { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.panel-nav .sep { height: 1px; background: rgba(255,255,255,.14); margin: 14px 6px; }
.panel-main { padding: 30px 34px 60px; background: var(--cream); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.panel-head h1 { font-size: 1.9rem; margin: 0; }
.panel-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------------- Tables ---------------- */
.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 620px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
table.data th { background: var(--cream-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #fffaf2; }
.table-actions { display: flex; gap: 8px; }
.table-actions a, .table-actions button { font-size: .82rem; }

/* ---------------- Forms ---------------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=date], input[type=url], input[type=search], select, textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: .97rem; background: #fffdf9; color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--marigold); box-shadow: 0 0 0 3px rgba(246, 166, 35, .18); }
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.checkline { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.checkline input { width: auto; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.amount-chips button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 18px; cursor: pointer; font-weight: 600; color: var(--maroon); }
.amount-chips button:hover, .amount-chips button.active { background: linear-gradient(135deg, var(--saffron), var(--marigold)); color: #fff; border-color: transparent; }

/* ---------------- Donation layout ---------------- */
.donate-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 30px; align-items: start; }
.donate-summary { position: sticky; top: 100px; }
.summary-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.summary-total { display: flex; justify-content: space-between; padding: 14px 0 4px; font-weight: 700; color: var(--maroon); font-size: 1.05rem; }

/* ---------------- Credential / misc cards ---------------- */
.credential-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.install-steps { list-style: none; padding: 0; margin: 0; }
.install-steps li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.install-steps li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 10px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.list-clean li:last-child { border-bottom: none; }

.pill-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.pill-nav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .88rem; color: var(--ink-soft); }
.pill-nav a.active { background: var(--maroon); color: #fff; border-color: var(--maroon); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .big { font-size: 2.4rem; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font-size: .9rem; }
.pagination .current { background: var(--maroon); color: #fff; border-color: var(--maroon); }

.rating-inline { color: var(--marigold); letter-spacing: 2px; }

/* ---------------- Detail pages ---------------- */
.detail-hero { position: relative; border-radius: 0; overflow: hidden; }
.detail-hero img.banner { width: 100%; height: 380px; object-fit: cover; }
.detail-hero .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(74,16,16,.15), rgba(74,16,16,.82)); display: flex; align-items: flex-end; }
.detail-hero .overlay .container { padding-bottom: 34px; color: #fff; }
.detail-hero h1 { color: #fff; margin: 0 0 6px; }
.detail-hero .meta { color: #f0d9b8; }
.detail-body { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; }
.side-card.sticky { position: sticky; top: 100px; }
.info-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--muted); min-width: 92px; }
.info-row > span:not(.k) { min-width: 0; overflow-wrap: anywhere; }
.prose { font-size: 1.02rem; color: var(--ink-soft); }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose p { margin-bottom: 1.1em; }

/* ---------------- Timeline (history) ---------------- */
.timeline { border-left: 2px solid var(--gold-soft); padding-left: 22px; margin: 20px 0; }
.timeline .t-item { position: relative; padding-bottom: 20px; }
.timeline .t-item::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--saffron); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold-soft); }

/* ---------------- Reviews ---------------- */
.reviews-layout { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.review-summary { padding: 26px; text-align: center; position: sticky; top: 100px; }
.big-avg { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--maroon); }
.rating-inline.big { font-size: 1.5rem; margin: 6px 0 4px; }
.rating-dist { margin-top: 18px; text-align: left; }
.dist-row { display: grid; grid-template-columns: 30px 1fr 28px; gap: 8px; align-items: center; font-size: .82rem; color: var(--ink-soft); margin-bottom: 6px; }
.dist-row .progress { margin: 0; height: 8px; }
.dist-count { text-align: right; font-variant-numeric: tabular-nums; }

.review-list { display: grid; gap: 16px; }
.review-item { display: flex; gap: 16px; padding: 20px; }
.review-avatar { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--saffron), var(--marigold)); color: #fff; font-weight: 700; font-size: 1.2rem; font-family: var(--font-display); }
.review-main { flex: 1; min-width: 0; }
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.review-date { font-size: .82rem; }
.review-title { font-size: 1.05rem; margin: 8px 0 4px; }
.review-comment { color: var(--ink-soft); }

/* Interactive star rating input */
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { font-size: 2rem; line-height: 1; color: #e2d5c3; cursor: pointer; transition: color .15s ease, transform .1s ease; }
.star-input label:hover { transform: scale(1.12); }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--marigold); }
.star-input input:focus-visible + label { outline: 2px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 1024px) {
    .reviews-layout { grid-template-columns: minmax(0, 1fr); }
    .review-summary { position: static; }
}

/* ---------------- Donation checkout ---------------- */
.checkout-head { margin-bottom: 22px; }
.checkout-head h3 { font-size: 1.5rem; margin-bottom: 6px; }
.amount-custom { position: relative; }
.amount-custom .rupee { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); pointer-events: none; }
.amount-custom input { padding-left: 34px; }
.req { color: var(--red); }
.tiny { font-size: .78rem; line-height: 1.5; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pay-method { border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: 9px 14px; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 600; color: var(--maroon); transition: all .15s ease; }
.pay-method:hover { background: var(--cream-2); }
.pay-method.active { background: linear-gradient(135deg, var(--saffron), var(--marigold)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(232, 117, 26, .25); }
.pay-panels { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 2px; }
.pay-panel { display: none; }
.pay-panel.active { display: block; animation: payFade .25s ease; }
@keyframes payFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.donate-checks { display: grid; gap: 8px; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--marigold)); color: #fff; box-shadow: 0 8px 20px rgba(198, 150, 42, .28); }
.btn-gold:hover { color: #fff; }
.receipt-card { padding: 36px; }
.receipt-lines { text-align: left; margin: 20px 0; }
.container-narrow { max-width: 760px; }

/* ---------------- Reviews ---------------- */
.reviews-section { margin-top: 56px; }

/* ---------------- Site-wide donate / review band ---------------- */
.footer-cta { display: grid; grid-template-columns: 1.1fr 1fr; gap: 46px; padding: 50px 20px 44px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-cta-col h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.footer-cta-col > p { font-size: .92rem; margin-bottom: 16px; max-width: 46ch; }
.footer-cta .eyebrow { color: var(--marigold); }
.donate-form-compact .field { margin-bottom: 12px; }
.donate-form-compact .field label { color: #e6cfae; }
.donate-form-compact .amount-custom input,
.donate-form-compact input[type="text"],
.donate-form-compact input[type="email"],
.donate-form-compact input[type="number"],
.donate-form-compact select,
.site-review-form input,
.site-review-form textarea,
.site-review-form select { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.donate-form-compact input::placeholder, .site-review-form input::placeholder, .site-review-form textarea::placeholder { color: #c9ab87; }
.site-review-form .field { margin-bottom: 12px; }
.site-review-form .field label { color: #e6cfae; }
.site-review-form textarea { resize: vertical; }
.donate-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--saffron), var(--marigold)); color: #fff; font-weight: 700; padding: 13px 20px;
    border-radius: 999px; box-shadow: 0 12px 28px rgba(232, 117, 26, .45); transition: transform .15s ease; }
.donate-fab:hover { transform: translateY(-2px); color: #fff; }
.donate-fab span[aria-hidden] { font-size: 1.15rem; }

/* ---------------- Footer ---------------- */
.site-footer { background: linear-gradient(180deg, var(--maroon-deep), #350a0a); color: #e6cfae; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 34px; padding: 60px 20px 40px; }
.footer-col h3, .footer-col h4 { color: #fff; }
.footer-col h4 { font-size: 1rem; letter-spacing: .04em; margin-bottom: 14px; }
.footer-col a { display: block; color: #d8bd9b; padding: 5px 0; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-brand .footer-logo { width: 52px; margin-bottom: 12px; }
.footer-col p { font-size: .92rem; }
.site-footer .muted { color: #b99a78; }
.newsletter { display: flex; gap: 8px; margin: 12px 0; }
.newsletter input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.newsletter input::placeholder { color: #c9ab87; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #f0dcc0; font-weight: 700; }
.socials a:hover { background: var(--saffron); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 14px; padding: 18px 20px; font-size: .85rem; flex-wrap: wrap; color: #b99a78; }
.footer-links a { margin-left: 16px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-art { order: -1; }
    .quote-strip { grid-template-columns: minmax(0, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-body, .donate-grid { grid-template-columns: minmax(0, 1fr); }
    .donate-summary, .side-card.sticky { position: static; }
    .panel-shell { grid-template-columns: minmax(0, 1fr); }
    .panel-side { display: flex; flex-direction: column; }
    .panel-nav { flex-direction: row; flex-wrap: wrap; }
    .panel-main { padding: 24px 20px 50px; }
}

@media (max-width: 720px) {
    .footer-cta { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .donate-fab-label { display: none; }
    .donate-fab { padding: 14px; }
}

@media (max-width: 780px) {
    .topbar-left { justify-content: center; text-align: center; }
    .topbar-right { display: none; }
    .grid-3, .grid-4, .grid-2, .stats, .form-row, .form-row-3 { grid-template-columns: minmax(0, 1fr); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section { padding: 52px 0; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-hero img.banner { height: 260px; }
}

@media (max-width: 480px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-actions .btn { width: 100%; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Hero slider (home page top)
   ===================================================================== */
.hero-slider { position: relative; overflow: hidden; background: var(--maroon-deep); }
.slider-track { position: relative; height: clamp(440px, 68vh, 620px); }
.hero-slider .slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s ease;
}
.hero-slider .slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.slide-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(74,16,16,.9) 0%, rgba(74,16,16,.68) 44%, rgba(74,16,16,.2) 76%, rgba(74,16,16,.04) 100%);
}
.slide-content { position: relative; z-index: 3; color: #fdf7ee; max-width: 640px; }
.slide-content .eyebrow { color: var(--marigold); }
.slide-content h1, .slide-title { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.4); margin-bottom: 14px; }
.slide-lead { font-size: 1.15rem; color: #f3ddc2; max-width: 540px; margin-bottom: 1.2rem; }
.slide-content .hero-actions { margin-top: 20px; }
.slide-badge {
    display: inline-flex; align-items: baseline; gap: 10px; margin-top: 22px; padding: 10px 16px; border-radius: 14px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(4px);
}
.slide-badge .num { font-family: var(--font-display); font-size: 1.5rem; color: var(--marigold); line-height: 1; }
.slide-badge span { font-size: .8rem; color: #f0dcc0; }
.hero-slider .slide.is-active .slide-content { animation: slideUp .7s both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
    background: rgba(74,16,16,.35); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
    display: grid; place-items: center; backdrop-filter: blur(4px); transition: background .2s ease;
}
.slider-arrow:hover { background: var(--saffron); }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 4; display: flex; justify-content: center; gap: 9px; }
.slider-dots button {
    position: relative;
    width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    background: transparent; transition: transform .2s ease;
}
.slider-dots button::after {
    content: "";
    position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.45); transition: background .2s ease, transform .2s ease;
}
.slider-dots button.is-active::after { background: var(--marigold); transform: translate(-50%, -50%) scale(1.35); }

/* =====================================================================
   Gallery
   ===================================================================== */
.gallery-toolbar { padding: 22px; margin-bottom: 18px; }
.gallery-search input { width: 100%; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--white); color: var(--maroon);
    font-weight: 600; font-size: .85rem; transition: all .15s ease;
}
.chip:hover { background: var(--cream-2); color: var(--maroon); }
.chip.is-active { background: linear-gradient(135deg, var(--saffron), var(--marigold)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(232,117,26,.25); }
.chip-count { font-size: .72rem; background: rgba(0,0,0,.08); border-radius: 999px; padding: 1px 7px; }
.chip.is-active .chip-count { background: rgba(255,255,255,.25); }
.gallery-count { margin: 0 0 16px; font-size: .88rem; }

.gallery-grid { columns: 3; column-gap: 20px; }
.gallery-item {
    break-inside: avoid; margin: 0 0 20px; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.gallery-item.is-hidden { display: none; }
.gallery-tile { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.gallery-tile img { width: 100%; display: block; transition: transform .5s ease; }
.gallery-item:hover .gallery-tile img { transform: scale(1.05); }
.gallery-zoom {
    position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(74,16,16,.72); color: #fff; opacity: 0; transition: opacity .2s ease;
}
.gallery-item:hover .gallery-zoom { opacity: 1; }
.gallery-cap { padding: 14px 16px 16px; }
.gallery-cap strong { display: block; color: var(--maroon-deep); font-family: var(--font-display); font-size: 1.05rem; margin: 4px 0; }
.gallery-cap p { font-size: .88rem; margin: 0; }
.gallery-cat { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.gallery-link { display: inline-block; margin-top: 8px; font-size: .85rem; font-weight: 600; }

/* Gallery strip (home page teaser) */
.gallery-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.strip-tile { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 1; }
.strip-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.strip-tile:hover img { transform: scale(1.08); }
.strip-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: .72rem; color: #fff;
    background: linear-gradient(transparent, rgba(74,16,16,.85)); opacity: 0; transition: opacity .25s ease;
}
.strip-tile:hover .strip-cap { opacity: 1; }

/* Lightbox */
.gl-lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(20,8,6,.92); padding: 24px; }
.gl-lightbox[hidden] { display: none; }
.gl-figure { max-width: min(1000px, 92vw); max-height: 88vh; margin: 0; background: var(--maroon-deep); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.gl-figure img { max-width: 100%; max-height: 66vh; object-fit: contain; background: #2a0f0c; }
.gl-caption { padding: 16px 20px 20px; color: #f3ddc2; }
.gl-caption strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.2rem; margin: 4px 0; }
.gl-caption p { margin: 0; }
.gl-counter { float: right; font-size: .82rem; color: #c9ab87; }
.gl-close { position: absolute; top: 18px; right: 20px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(74,16,16,.5); color: #fff; font-size: 1.2rem; cursor: pointer; }
.gl-close:hover { background: var(--saffron); }
.gl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(74,16,16,.5); color: #fff; font-size: 2rem; cursor: pointer; display: grid; place-items: center; }
.gl-nav:hover { background: var(--saffron); }
.gl-prev { left: 18px; }
.gl-next { right: 18px; }
body.gl-lock { overflow: hidden; }

@media (max-width: 1120px) {
    .main-nav .nav-link { padding: 8px 10px; font-size: .9rem; }
}
@media (max-width: 980px) {
    .gallery-grid { columns: 2; }
    .gallery-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
    .slider-track { height: clamp(400px, 74vh, 520px); }
    .slider-arrow { display: none; }
    .slide-content { max-width: 100%; }
    .gallery-grid { columns: 1; }
    .gallery-strip { grid-template-columns: repeat(2, 1fr); }
    .gl-nav { width: 42px; height: 42px; font-size: 1.6rem; }
}

/* ---- Announcements / notice board ---- */
.announce-list { display: grid; gap: 14px; max-width: 880px; margin: 0 auto; }
.announce-item { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid #eee0cf; border-radius: 14px; padding: 16px 20px; box-shadow: 0 4px 14px rgba(109,27,27,.05); transition: box-shadow .25s ease, transform .25s ease; }
.announce-item.is-pinned { border-color: var(--saffron); box-shadow: 0 6px 20px rgba(109,27,27,.12); background: linear-gradient(180deg, #fffdf8, #fff); }
.announce-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(109,27,27,.10); }
.announce-date { flex: 0 0 58px; text-align: center; background: var(--maroon); color: #fff; border-radius: 10px; padding: 8px 6px; }
.announce-item.is-pinned .announce-date { background: var(--saffron); color: var(--maroon-deep); }
.announce-day { display: block; font-size: 1.4rem; font-weight: 700; line-height: 1.1; font-family: var(--font-display); }
.announce-mon { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; opacity: 1; }
.announce-body { flex: 1 1 auto; min-width: 0; }
.announce-title { margin: 0 0 4px; font-size: 1.06rem; font-family: var(--font-display); color: var(--maroon-deep); }
.announce-text { font-size: .92rem; }
.announce-more { flex: 0 0 auto; }
@media (max-width: 620px) {
    .announce-item { flex-wrap: wrap; gap: 10px; }
    .announce-more { flex: 1 1 100%; text-align: right; }
}

/* Admin: per-temple photo gallery */
.temple-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.temple-photo-card img { width: 100%; height: 150px; object-fit: cover; display: block; border-radius: 14px 14px 0 0; background: #f6ece0; }
.temple-photo-card .form-control { font-size: .86rem; }

/* ---------------- Donation receipt (professional / printable) ---------------- */
.receipt {
    max-width: 720px; margin: 0 auto; background: #fffdf8;
    border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 18px 46px rgba(109, 27, 27, .14);
    overflow: hidden; position: relative;
}
.receipt-band { height: 10px; background: linear-gradient(90deg, var(--maroon-deep), var(--saffron), var(--marigold), var(--saffron), var(--maroon-deep)); }
.receipt-head { display: flex; align-items: center; gap: 16px; padding: 26px 30px 10px; }
.receipt-logo { flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgba(109, 27, 27, .22)); }
.receipt-brand { flex: 1 1 auto; min-width: 0; }
.receipt-org { font-family: var(--font-display); font-size: 1.5rem; color: var(--maroon-deep); margin: 0 0 2px; }
.receipt-tagline { color: var(--saffron-dark); font-size: .95rem; letter-spacing: .02em; margin: 0; }
.receipt-type { flex: 0 0 auto; text-align: right; border-left: 1px solid var(--line); padding-left: 18px; }
.receipt-type-label { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--saffron-dark); margin: 0 0 2px; font-weight: 700; }
.receipt-type-ref { font-family: var(--font-display); font-size: 1.06rem; color: var(--maroon); margin: 0; }
.receipt-ids { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 0; }
.receipt-id { background: var(--cream-2); padding: 10px 14px; }
.receipt-id span { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 1px; }
.receipt-id strong { display: block; font-size: .82rem; color: var(--maroon-deep); font-weight: 700; word-break: break-word; }
.receipt-ornament { display: flex; align-items: center; gap: 14px; padding: 16px 30px 6px; color: var(--saffron-dark); }
.orn-line { flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, transparent, #e8b45e); }
.orn-line:last-child { background: linear-gradient(90deg, #e8b45e, transparent); }
.orn-om { font-size: 1.25rem; line-height: 1; }
.receipt-table { width: 100%; border-collapse: collapse; margin: 4px 0 0; }
.receipt-table th, .receipt-table td { text-align: left; padding: 11px 30px; font-size: .95rem; }
.receipt-table th { color: var(--ink-soft); font-weight: 600; width: 44%; }
.receipt-table td { color: var(--maroon-deep); }
.receipt-table tr + tr th, .receipt-table tr + tr td { border-top: 1px dashed #ead9c2; }
.receipt-table small { color: var(--ink-soft); font-size: .8rem; }
.receipt-amount { font-family: var(--font-display); font-size: 1.5rem; color: var(--maroon); font-weight: 700; }
.receipt-words { display: block; color: var(--ink-soft); font-size: .78rem; margin-top: 2px; font-style: italic; }
.receipt-ack { padding: 14px 30px; margin: 14px 30px 0; border: 1px solid #ead9c2; border-radius: 12px; background: linear-gradient(180deg, #fffdf8, #fdf3e1); color: var(--ink-soft); font-size: .92rem; }
.receipt-foot { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; padding: 26px 30px 28px; margin-top: 16px; border-top: 1px solid var(--line); background: var(--cream-2); }
.receipt-sign { text-align: center; }
.receipt-sign-svg { display: block; margin: 0 auto -6px; }
.receipt-sign-name { font-family: var(--font-display); color: var(--maroon-deep); margin: 4px 0 1px; font-size: .95rem; }
.receipt-sign-role { color: var(--ink-soft); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.receipt-note { font-size: .78rem; color: var(--ink-soft); align-self: center; }
.receipt-note p { margin-bottom: 6px; }
.receipt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 720px; margin: 18px auto 0; }
@media (max-width: 620px) {
    .receipt-head { flex-wrap: wrap; padding: 20px 18px 6px; }
    .receipt-type { text-align: left; border-left: none; padding-left: 0; width: 100%; }
    .receipt-table th, .receipt-table td { padding: 10px 18px; }
    .receipt-ack { padding: 12px 18px; margin: 14px 18px 0; }
    .receipt-foot { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; }
    .receipt-ornament { padding: 14px 18px 4px; }
}

/* Printing a receipt: keep only the receipt itself on the page. */
@media print {
    .topbar, .donation-strip, .site-header, .site-footer, .footer-cta,
    .receipt-actions, .breadcrumbs, .no-print { display: none !important; }
    body { background: #fff !important; }
    .receipt { max-width: 100%; box-shadow: none; border: 1px solid #ddd; border-radius: 0; page-break-inside: avoid; }
    .receipt-foot { background: #fff; }
}

/* ---------------- Header — mobile / narrow ---------------- */
@media (max-width: 1200px) {
    .header-inner {
        display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: center;
        min-height: 104px; gap: 10px;
    }
    .brand {
        position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
        grid-column: auto; grid-row: auto; justify-self: auto;
    }
    .brand-logo { width: 72px; height: 72px; }
    .brand-text { display: none; }
    .header-actions { display: none; }
    .nav-toggle { display: flex; order: 1; }

    .main-nav { display: none; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
    .header-inner.open .nav-left { order: 2; justify-content: flex-start; }
    .header-inner.open .nav-right { order: 3; justify-content: flex-start; }
    .header-inner.open .main-nav { display: flex; padding: 10px 0 14px; border-top: 1px solid var(--line); }
    .header-inner.open .nav-right { padding-top: 4px; }
    .nav-links { flex-direction: column; align-items: stretch; }

    .main-nav .nav-link { padding: 11px 12px; font-size: .96rem; }
    .nav-link.active::after { display: none; }

    .nav-dropdown-wrap { flex-direction: column; align-items: stretch; }
    .nav-dropdown {
        position: static; transform: none; display: flex; min-width: 0;
        box-shadow: none; border: 0; background: transparent; padding: 0 0 4px 16px;
    }
    .nav-caret { display: none; }

    .nav-auth-mobile {
        display: flex; flex-direction: column; gap: 8px;
        margin-top: 10px; padding: 12px 12px 0; border-top: 1px solid var(--line);
    }
    .nav-auth-mobile .btn { width: 100%; }
}

/* Between the hamburger breakpoint and full-width desktop the centred logo
   plus the split nav need slightly tighter spacing to fit the container. */
@media (min-width: 1201px) and (max-width: 1340px) {
    .header-inner { gap: 8px; }
    .brand-logo { width: 78px; height: 78px; }
    .main-nav .nav-link { padding: 7px 9px; font-size: .87rem; }
    .nav-right .header-actions { gap: 7px; }
}
