/*
 * Sri Jadarayar Temple – public website theme.
 * Fonts: Noto Serif Tamil & Hind Madurai (SIL Open Font License), self-hosted.
 */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Hind Madurai'; font-weight: 400; font-display: swap; src: url('../../vendor/fonts/hind-madurai-tamil-400-normal.woff2') format('woff2'); unicode-range: U+0B82-0BFA, U+200C-200D, U+25CC; }
@font-face { font-family: 'Hind Madurai'; font-weight: 600; font-display: swap; src: url('../../vendor/fonts/hind-madurai-tamil-600-normal.woff2') format('woff2'); unicode-range: U+0B82-0BFA, U+200C-200D, U+25CC; }
@font-face { font-family: 'Hind Madurai'; font-weight: 700; font-display: swap; src: url('../../vendor/fonts/hind-madurai-tamil-700-normal.woff2') format('woff2'); unicode-range: U+0B82-0BFA, U+200C-200D, U+25CC; }
@font-face { font-family: 'Hind Madurai'; font-weight: 400; font-display: swap; src: url('../../vendor/fonts/hind-madurai-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2212; }
@font-face { font-family: 'Hind Madurai'; font-weight: 600 700; font-display: swap; src: url('../../vendor/fonts/hind-madurai-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2212; }
@font-face { font-family: 'Noto Serif Tamil'; font-weight: 600; font-display: swap; src: url('../../vendor/fonts/noto-serif-tamil-tamil-600-normal.woff2') format('woff2'); unicode-range: U+0B82-0BFA, U+200C-200D, U+25CC; }
@font-face { font-family: 'Noto Serif Tamil'; font-weight: 700; font-display: swap; src: url('../../vendor/fonts/noto-serif-tamil-tamil-700-normal.woff2') format('woff2'); unicode-range: U+0B82-0BFA, U+200C-200D, U+25CC; }
@font-face { font-family: 'Noto Serif Tamil'; font-weight: 600; font-display: swap; src: url('../../vendor/fonts/noto-serif-tamil-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20B9; }
@font-face { font-family: 'Noto Serif Tamil'; font-weight: 700; font-display: swap; src: url('../../vendor/fonts/noto-serif-tamil-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20B9; }

/* ---------- Palette ---------- */
:root {
    /* Theme 1: Temple Maroon (default). Variable names are generic: "maroon" = main dark colour, "saffron" = accent. */
    --maroon: #6e1414;
    --maroon-dark: #4a0c0c;
    --maroon-soft: #8c2323;
    --saffron: #e8761a;
    --saffron-light: #f7a440;
    --accent-dark: #c2410c;
    --gold: #e0b03b;
    --gold-light: #f6d77a;
    --gold-deep: #a87412;
    --gold-shine: #fff3c4;
    --cream: #fdf6e9;
    --cream-dark: #f5e6c8;
    --card-tint: #fffaf0;
    --ink: #3b2a1f;
    --muted: #7a6656;
    --header-end: #9b2c12;
    --footer-end: #2e0707;
    --footer-muted: #d9c6a6;
    --primary-rgb: 110, 20, 20;
    --dark-rgb: 74, 12, 12;
    --deep-rgb: 40, 6, 6;
    --gold-rgb: 224, 176, 59;
    --gold-light-rgb: 246, 215, 122;
    --glow-rgb: 247, 164, 64;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(var(--dark-rgb), 0.12);
    --shadow-lg: 0 16px 40px rgba(var(--dark-rgb), 0.22);
    --font-body: 'Hind Madurai', 'Noto Sans Tamil', 'Latha', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --font-head: 'Noto Serif Tamil', 'Hind Madurai', Georgia, serif;
}

/* Theme 2: Leaf Green, built around #a9d66f (the colour of the original website). */
html[data-theme="green"] {
    --maroon: #2f6b1f;
    --maroon-dark: #1d4712;
    --maroon-soft: #3f8a2a;
    --saffron: #e39b17;
    --saffron-light: #f4c04e;
    --accent-dark: #b9730a;
    --gold: #a9d66f;
    --gold-light: #d8f0b4;
    --gold-deep: #6d9a37;
    --gold-shine: #f3fbe6;
    --cream: #f3f9e8;
    --cream-dark: #dcecc4;
    --card-tint: #f8fcf1;
    --ink: #24301b;
    --muted: #5c6b4f;
    --header-end: #4f8f2b;
    --footer-end: #10290a;
    --footer-muted: #c6d9ad;
    --primary-rgb: 47, 107, 31;
    --dark-rgb: 29, 71, 18;
    --deep-rgb: 14, 36, 8;
    --gold-rgb: 169, 214, 111;
    --gold-light-rgb: 216, 240, 180;
    --glow-rgb: 169, 214, 111;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.85;
    color: var(--ink);
    background-color: var(--cream);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(var(--gold-rgb), 0.18) 1px, transparent 0);
    background-size: 22px 22px;
}
a { color: var(--maroon-soft); }
a:hover { color: var(--saffron); text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--maroon); line-height: 1.45; }
img { max-width: 100%; }
::selection { background: var(--gold-light); color: var(--maroon-dark); }
.container-xl { max-width: 1240px; }

/* ---------- Top strip ---------- */
.topbar {
    background: var(--maroon-dark);
    color: var(--cream-dark);
    font-size: 14px;
    line-height: 1.4;
}
.topbar .container-xl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 18px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--cream-dark); }
.topbar a:hover { color: var(--gold-light); }
.topbar .contact span { margin-right: 18px; white-space: nowrap; }
.topbar i { color: var(--gold); margin-right: 5px; }
.topbar .social a { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); margin-left: 6px; }
.topbar .social a i { margin: 0; color: var(--gold-light); }
.topbar .social a:hover { background: var(--gold); }
.topbar .social a:hover i { color: var(--maroon-dark); }

/* ---------- Header ---------- */
.site-header {
    position: relative;
    color: var(--white);
    background:
        radial-gradient(ellipse at 50% -20%, rgba(var(--glow-rgb), .55), transparent 60%),
        linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 45%, var(--header-end) 100%);
    overflow: hidden;
}
.site-header.has-photo { background-size: cover; background-position: center; }
.site-header.has-photo::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(var(--dark-rgb), .92) 0%, rgba(var(--primary-rgb), .72) 50%, rgba(var(--dark-rgb), .92) 100%);
}
/* Kolam-like dotted pattern */
.site-header::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle, rgba(var(--gold-light-rgb), .16) 1.5px, transparent 1.6px);
    background-size: 26px 26px;
}
.site-header .container-xl { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 20px; padding-top: 12px; padding-bottom: 14px; text-align: center; }
.site-header a { color: inherit; }
.emblem {
    flex: 0 0 auto;
    width: 72px; height: 72px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 30%, var(--gold-shine), var(--gold) 55%, var(--gold-deep) 100%);
    box-shadow: 0 0 0 4px rgba(var(--gold-light-rgb), .35), 0 0 0 8px rgba(var(--gold-light-rgb), .12), 0 6px 16px rgba(0,0,0,.35);
    color: var(--maroon-dark);
    font-size: 40px; line-height: 1; font-family: Georgia, serif;
    overflow: hidden;
}
.emblem img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.emblem.right { display: none; }
.site-title { min-width: 0; }
.site-title .line1 { font-family: var(--font-head); font-size: 15px; line-height: 1.4; color: var(--gold-light); letter-spacing: .3px; margin: 0; }
.site-title .name {
    font-family: var(--font-head); font-weight: 700;
    font-size: clamp(22px, 2.6vw, 34px); line-height: 1.25; margin: 2px 0;
    color: #fff;
    background: linear-gradient(180deg, var(--gold-shine) 0%, var(--gold-light) 55%, var(--gold) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    /* Room for Tamil marks that go above/below the line (e.g. the loop of ஸ்ரீ), which the gradient would otherwise not paint */
    padding: .12em .08em .3em; margin-top: -.1em; margin-bottom: -.26em;
    text-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.site-title .line2 { font-size: 14.5px; line-height: 1.4; color: var(--cream-dark); margin: 0; }
.site-title .line2 i { color: var(--gold); margin-right: 6px; }
.site-title .logo-image { max-height: 80px; }
@media (min-width: 992px) { .emblem.right { display: flex; } }

/* Temple-style zig-zag border below the header */
.temple-border {
    height: 8px;
    background:
        linear-gradient(135deg, var(--gold) 25%, transparent 25%) -5px 0 / 10px 10px,
        linear-gradient(225deg, var(--gold) 25%, transparent 25%) -5px 0 / 10px 10px,
        var(--saffron);
}

/* ---------- Navigation ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 1030;
    background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 6px 18px rgba(var(--dark-rgb), .25);
}
.site-nav .navbar { padding: 0; }
.site-nav .navbar-nav { flex-wrap: wrap; justify-content: center; width: 100%; }
.site-nav .nav-link {
    position: relative;
    color: var(--cream) !important;
    font-weight: 600; font-size: 14.5px; line-height: 1.4;
    padding: 7px 9px !important;
    transition: color .2s, background .2s;
}
.site-nav .nav-link::after {
    content: ''; position: absolute; left: 50%; right: 50%; bottom: 3px; height: 2px;
    background: var(--gold-light); transition: left .25s, right .25s;
}
.site-nav .nav-link:hover { color: var(--gold-light) !important; }
.site-nav .nav-link:hover::after, .site-nav .active > .nav-link::after { left: 9px; right: 9px; }
.site-nav .active > .nav-link { color: var(--gold-light) !important; background: rgba(255,255,255,.06); }
.site-nav .navbar-toggler {
    color: var(--gold-light); border: 1px solid rgba(var(--gold-light-rgb), .5); margin: 5px 0; padding: 3px 12px; font-weight: 600; font-size: 15px;
}
.site-nav .navbar-toggler:focus { outline: 2px solid var(--gold); }
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { padding-bottom: 10px; }
    .site-nav .nav-link { padding: 9px 12px !important; border-bottom: 1px solid rgba(255,255,255,.07); }
    .site-nav .nav-link::after { display: none; }
}

/* ---------- Announcement bar ---------- */
.announcement {
    display: flex; align-items: stretch;
    background: #fff; border: 1px solid var(--cream-dark); border-radius: 50px;
    box-shadow: var(--shadow); overflow: hidden; margin: 22px 0;
}
.announcement .badge-label {
    flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--saffron), var(--accent-dark));
    color: #fff; font-weight: 700; padding: 8px 20px; font-size: 15px;
}
.announcement .badge-label i { animation: ring 2.5s infinite; }
.announcement .track { flex: 1; overflow: hidden; white-space: nowrap; display: flex; align-items: center; }
.announcement .track a, .announcement .track span.static { color: var(--maroon); font-weight: 600; }
.announcement .scroll { display: inline-block; padding-left: 100%; animation: ticker 26s linear infinite; }
.announcement:hover .scroll { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes ring { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-15deg); } 96% { transform: rotate(15deg); } }
@media (prefers-reduced-motion: reduce) {
    .announcement .track { white-space: normal; padding: 8px 14px; }
    .announcement .scroll { animation: none; padding-left: 0; }
}

/* ---------- Main ---------- */
.site-main { padding: 0 0 50px; min-height: 50vh; }

/* Page title banner */
.page-hero {
    position: relative; text-align: center; color: #fff;
    background:
        radial-gradient(circle, rgba(var(--gold-light-rgb), .14) 1.5px, transparent 1.6px) 0 0 / 22px 22px,
        linear-gradient(135deg, var(--maroon-soft), var(--maroon-dark));
    padding: 16px 15px 14px; margin-bottom: 24px;
}
.page-hero h1 { color: #fff; font-size: clamp(18px, 1.75vw, 23px); line-height: 1.4; margin: 0 0 2px; letter-spacing: .2px; }
.page-hero .ornament { display: none; }
.page-hero .crumbs { font-size: 13.5px; line-height: 1.4; color: var(--cream-dark); margin-top: 0; }
.page-hero .crumbs a { color: var(--gold-light); }
.page-hero p.intro { max-width: 760px; margin: 6px auto 0; line-height: 1.5; font-size: 15px; color: var(--cream); }

/* White content card */
.content-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: clamp(20px, 4vw, 44px); border-top: 4px solid var(--gold);
}

/* Section heading with ornament */
.section-title { text-align: center; margin: 46px 0 26px; }
.section-title h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0; }
.section-title .divider { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--saffron); margin-top: 6px; }
.section-title .divider::before, .section-title .divider::after { content: ''; width: 70px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.section-title .divider::after { transform: scaleX(-1); }

/* ---------- Rich text from the CMS ---------- */
.cms-content { font-size: 17.5px; }
.cms-content p { text-align: justify; margin-bottom: 1.1em; line-height: 1.95; color: var(--ink); }
.cms-content h1, .cms-content h2, .cms-content h3, .cms-content .header-title {
    font-family: var(--font-head); color: var(--maroon);
    font-size: clamp(18px, 1.6vw, 21px); text-align: left;
    background: none !important; border: 0 !important; padding: 0 0 8px !important;
    margin: 1.8em 0 .8em; position: relative; display: block;
}
.cms-content h1::after, .cms-content h2::after, .cms-content .header-title::after {
    content: ''; display: block; width: 70px; height: 3px; margin-top: 8px;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    border-radius: 3px;
}
.cms-content h4 { font-size: 20px; }
.cms-content img { max-width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow); }
.cms-content iframe { max-width: 100%; border-radius: 10px; }
.cms-content table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.cms-content table td, .cms-content table th { border: 1px solid var(--cream-dark); padding: 6px 10px; }
.cms-content ul, .cms-content ol { padding-left: 1.4em; }
.cms-content blockquote { border-left: 4px solid var(--gold); background: var(--cream); padding: 12px 18px; border-radius: 0 10px 10px 0; }
.cms-content > :first-child { margin-top: 0; }

/* ---------- Home ---------- */
.hero-slider { margin-top: 26px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid #fff; }
.hero-slider .carousel-item { background: var(--maroon-dark); }
.hero-slider .carousel-item img { width: 100%; height: clamp(260px, 52vw, 560px); object-fit: cover; }
.hero-slider .carousel-caption {
    left: 0; right: 0; bottom: 0; padding: 50px 20px 24px;
    background: linear-gradient(180deg, transparent, rgba(var(--deep-rgb), .85));
}
.hero-slider .carousel-caption p { font-family: var(--font-head); font-size: 22px; margin: 0; color: #fff; }
.hero-slider .carousel-indicators li { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; opacity: 1; margin: 0 5px; }
.hero-slider .carousel-indicators .active { background: var(--gold); border-color: var(--gold); }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 8%; }
.hero-slider .carousel-control-prev-icon, .hero-slider .carousel-control-next-icon {
    width: 46px; height: 46px; border-radius: 50%; background-color: rgba(var(--dark-rgb), .55); background-size: 45%;
}

/* Home body: the old "hymn" columns become decorated cards */
.home-content .row > [class*="col-"] { margin-bottom: 24px; }
.home-content .row > [class*="col-"] > .header-title,
.home-content .row > [class*="col-"] > h4 {
    margin: 0 !important; padding: 16px 20px !important; text-align: center;
    color: #fff !important; font-size: 21px;
    background: linear-gradient(135deg, var(--maroon-soft), var(--maroon-dark)) !important;
    border-radius: var(--radius) var(--radius) 0 0;
}
.home-content .row > [class*="col-"] > .header-title::after,
.home-content .row > [class*="col-"] > h4::after { display: none; }
.home-content .studi_para {
    margin: 0; padding: 22px 26px; text-align: left;
    background: #fff; border: 1px solid var(--cream-dark); border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
    font-size: 17.5px; line-height: 2;
    background-image: radial-gradient(circle at 100% 100%, rgba(var(--gold-rgb), .12) 0, transparent 45%);
}
.home-content .studi_para span { display: inline-block; padding-left: 2em; }

/* Quick links on home page */
.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.quick-link {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    color: var(--maroon); font-weight: 600; line-height: 1.4;
    border-left: 4px solid var(--saffron); transition: transform .2s, box-shadow .2s;
}
.quick-link i { color: var(--saffron); font-size: 22px; width: 28px; text-align: center; }
.quick-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--maroon-dark); }

/* ---------- Activities / galleries ---------- */
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 24px; }
.jump-links a {
    background: #fff; border: 1px solid var(--cream-dark); border-radius: 30px;
    padding: 4px 14px; font-size: 14px; color: var(--maroon); box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.jump-links a:hover { background: var(--maroon); color: var(--gold-light); border-color: var(--maroon); }

.activity-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    margin-bottom: 34px; overflow: hidden; scroll-margin-top: 80px;
    border: 1px solid rgba(var(--gold-rgb), .25);
}
.activity-head {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 22px 26px 16px;
    background: linear-gradient(180deg, var(--card-tint), #fff);
    border-bottom: 1px dashed var(--cream-dark);
}
.date-badge {
    flex: 0 0 auto; width: 74px; text-align: center; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), .2); line-height: 1.15; background: #fff;
}
.date-badge .month { background: var(--maroon); color: var(--gold-light); font-size: 13px; font-weight: 700; padding: 4px 0; text-transform: uppercase; letter-spacing: 1px; }
.date-badge .day { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--maroon); padding-top: 4px; }
.date-badge .year { font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.date-badge.no-date { display: flex; align-items: center; justify-content: center; height: 74px; background: linear-gradient(135deg, var(--saffron), var(--maroon-soft)); color: #fff; font-size: 30px; }
.activity-head h2 { font-size: clamp(17px, 1.6vw, 21px); margin: 0 0 6px; }
.activity-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.activity-meta i { color: var(--saffron); margin-right: 4px; }
.activity-desc { margin: 10px 0 0; color: var(--ink); line-height: 1.9; text-align: justify; }
.activity-body { padding: 20px 26px 26px; }
.media-label { font-family: var(--font-head); color: var(--maroon); font-size: 17px; margin: 4px 0 12px; display: flex; align-items: center; gap: 8px; }
.media-label i { color: var(--saffron); }
@media (max-width: 575.98px) {
    .activity-head { padding: 16px; gap: 12px; }
    .date-badge { width: 60px; }
    .date-badge .day { font-size: 22px; }
    .activity-body { padding: 14px 16px 20px; }
}

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.photo-grid .photo {
    position: relative; display: block; border-radius: 10px; overflow: hidden;
    aspect-ratio: 4 / 3; background: var(--cream-dark);
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}
.photo-grid .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.photo-grid .photo::after {
    content: '\f00e'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; background: rgba(var(--dark-rgb), .45); opacity: 0; transition: opacity .3s;
}
.photo-grid .photo:hover img { transform: scale(1.08); }
.photo-grid .photo:hover::after { opacity: 1; }
.photo-grid .photo.is-hidden { display: none; }
.photo-grid .photo .caption {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 14px 8px 5px; font-size: 13px; line-height: 1.3;
    color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
}
@media (max-width: 575.98px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.btn-more {
    display: block; margin: 16px auto 0; border: 2px solid var(--saffron); color: var(--maroon);
    background: #fff; border-radius: 30px; padding: 6px 22px; font-weight: 700; transition: all .2s;
}
.btn-more:hover { background: var(--saffron); color: #fff; }

/* Video cards */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 22px; }
.video-card { display: block; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.1); transition: transform .25s, box-shadow .25s; color: var(--ink); }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--maroon); }
.video-card .thumb { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .5s, opacity .3s; }
.video-card:hover .thumb img { transform: scale(1.06); opacity: 1; }
.video-card .play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 62px; height: 62px; border-radius: 50%;
    background: rgba(200, 16, 16, .92); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 22px; padding-left: 4px; box-shadow: 0 0 0 8px rgba(255,255,255,.25); transition: transform .25s;
}
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.12); }
.video-card .title { padding: 10px 14px 12px; font-weight: 600; font-size: 15.5px; line-height: 1.5; }
.video-card .title small { display: block; font-weight: 400; color: var(--muted); }

/* Image-only pages (invitations) */
.poster-list { display: grid; gap: 30px; justify-items: center; }
.poster {
    margin: 0; background: #fff; padding: 12px; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); max-width: 900px; width: 100%; text-align: center;
    border: 1px solid var(--cream-dark);
}
.poster img { width: 100%; height: auto; border-radius: 8px; }
.poster figcaption { font-family: var(--font-head); color: var(--maroon); padding-top: 10px; }

/* Empty state */
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state i { font-size: 40px; color: var(--gold); margin-bottom: 10px; display: block; }

/* Inactive page preview notice */
.preview-notice { margin: 16px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
    background:
        radial-gradient(circle, rgba(var(--gold-light-rgb), .08) 1.5px, transparent 1.6px) 0 0 / 24px 24px,
        linear-gradient(180deg, var(--maroon-dark), var(--footer-end));
    color: var(--cream-dark); font-size: 15.5px; line-height: 1.8;
}
.site-footer .temple-border { transform: scaleY(-1); }
.site-footer .container-xl { padding-top: 44px; padding-bottom: 20px; }
.site-footer h3 { color: var(--gold-light); font-size: 19px; margin-bottom: 14px; }
.site-footer h3::after { content: ''; display: block; width: 46px; height: 2px; background: var(--saffron); margin-top: 8px; }
.site-footer a { color: var(--cream-dark); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .contact-list { list-style: none; padding: 0; margin: 0; }
.site-footer .contact-list li { display: flex; gap: 10px; margin-bottom: 8px; }
.site-footer .contact-list i { color: var(--gold); margin-top: 6px; width: 16px; text-align: center; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; }
.site-footer .footer-links li { break-inside: avoid; margin-bottom: 4px; font-size: 15px; }
.site-footer .footer-links li a { display: block; position: relative; padding-left: 16px; line-height: 1.55; padding-top: 2px; padding-bottom: 2px; }
.site-footer .footer-links li a::before { content: '\203A'; position: absolute; left: 2px; top: 2px; color: var(--saffron); font-weight: 700; }
.site-footer .signboard { border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.35); border: 3px solid rgba(var(--gold-light-rgb), .3); max-height: 230px; }
.site-footer .facebook-box { border-radius: 10px; overflow: hidden; margin-top: 14px; max-width: 340px; }
.site-footer .copyright { border-top: 1px solid rgba(var(--gold-light-rgb), .18); margin-top: 26px; padding-top: 16px; text-align: center; font-size: 14px; color: var(--footer-muted); }
@media (max-width: 575.98px) { .site-footer .footer-links { columns: 1; } }

/* Back to top */
.to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 1040;
    width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: linear-gradient(135deg, var(--saffron), var(--maroon-soft)); color: #fff;
    box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .3s;
}
.to-top.show { opacity: 1; visibility: visible; }

/* GLightbox tweaks */
.glightbox-clean .gslide-description { background: var(--maroon-dark); }
.glightbox-clean .gslide-title { color: #fff; font-family: var(--font-head); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Small screens: emblem above the title */
@media (max-width: 575.98px) {
    .site-header .container-xl { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
    .emblem { width: 48px; height: 48px; font-size: 27px; box-shadow: 0 0 0 3px rgba(var(--gold-light-rgb), .35), 0 4px 10px rgba(0,0,0,.35); }
    .site-title { text-align: left; }
    .site-title .line1 { font-size: 12px; line-height: 1.35; }
    .site-title .name { font-size: 20px; margin: 1px 0; }
    .site-title .line2 { font-size: 12.5px; }
    .home-content .studi_para { padding: 18px; font-size: 16.5px; }
    .home-content .studi_para span { padding-left: 1.2em; }
}
@media (max-width: 767.98px) {
    .jump-links { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: -8px -15px 18px; padding: 4px 15px 10px; scrollbar-width: thin; }
    .jump-links a { flex: 0 0 auto; white-space: nowrap; }
}

/* Footer social icons */
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--gold-light-rgb), .12); border: 1px solid rgba(var(--gold-light-rgb), .35); color: var(--gold-light); font-size: 18px;
    transition: background .2s, color .2s, transform .2s;
}
.footer-social a:hover { background: var(--gold); color: var(--maroon-dark); transform: translateY(-2px); }

/* Facebook box must never be wider than its column */
.site-footer .facebook-box { max-width: 100%; }
.site-footer .facebook-box iframe, .site-footer .facebook-box .fb-page, .site-footer .facebook-box span { max-width: 100% !important; }

/* Phones: left-aligned text avoids large gaps between long Tamil words */
@media (max-width: 575.98px) {
    .cms-content p, .activity-desc { text-align: left; }
}

/* Location / Google Maps links */
.site-title .title-link { color: inherit; display: block; }
.site-title .title-link:hover { color: inherit; }
.site-title .map-link { color: var(--cream-dark); border-bottom: 1px dashed rgba(var(--gold-light-rgb), .5); }
.site-title .map-link:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }
.site-title .map-link .small-icon { font-size: .7em; margin-left: 4px; opacity: .8; color: inherit; }
.btn-directions {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
    padding: 8px 18px; border-radius: 30px; font-weight: 700;
    background: var(--gold); color: var(--maroon-dark) !important; box-shadow: 0 6px 16px rgba(0,0,0,.25);
    transition: transform .2s, background .2s;
}
.btn-directions:hover { background: var(--gold-light); transform: translateY(-2px); }

/* Footer: sign board and location QR code side by side */
.footer-location { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.footer-location .signboard { max-height: 190px; }
.qr-card {
    margin: 0; flex: 0 0 auto; background: #fff; padding: 6px; border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.35); border: 3px solid rgba(var(--gold-light-rgb), .3);
}
.qr-card img { display: block; width: 150px; height: 150px; }
