/* ==========================================================================
   THIRUKOVALUR - Sacred Temple Design System
   Gold on Darkness - Royal, Calm, Sacred
   Converted from TailwindCSS to Vanilla CSS
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Bodoni+Moda:wght@400;500;600;700;800;900&family=Cinzel:wght@400;500;600;700&family=Noto+Serif+Tamil:wght@400;500;600;700&family=Noto+Serif+Kannada:wght@400;500;600;700&family=Noto+Serif+Telugu:wght@400;500;600;700&family=Noto+Serif+Devanagari:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES / DESIGN TOKENS
   ========================================================================== */

:root {
    /* Sacred Gold Palette */
    --gold: 43 80% 63%;
    --gold-bright: 43 85% 70%;
    --gold-dim: 43 70% 50%;
    --gold-dark: 35 60% 35%;

    /* Deep Darkness */
    --background: 0 0% 5%;
    --foreground: 43 80% 63%;

    /* Antique Cream */
    --cream: 40 45% 92%;
    --cream-dark: 35 35% 85%;

    /* Sacred Brown */
    --brown-deep: 30 35% 20%;
    --brown-hover: 30 30% 25%;

    /* Card Surfaces */
    --card: 0 0% 8%;
    --card-foreground: 43 80% 63%;

    --popover: 0 0% 8%;
    --popover-foreground: 43 80% 63%;

    --primary: 43 80% 63%;
    --primary-foreground: 0 0% 5%;

    --secondary: 40 45% 92%;
    --secondary-foreground: 30 35% 20%;

    --muted: 0 0% 12%;
    --muted-foreground: 43 50% 55%;

    --accent: 43 80% 63%;
    --accent-foreground: 0 0% 5%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;

    --border: 43 40% 25%;
    --input: 43 40% 25%;
    --ring: 43 80% 63%;
    --radius: 0.5rem;

    /* Overlay Opacity */
    --overlay-desktop: 0.70;
    --overlay-mobile: 0.75;
}

/* Dark mode (default sacred theme) */
.dark {
    --background: 0 0% 5%;
    --foreground: 43 80% 63%;
    --card: 0 0% 8%;
    --card-foreground: 43 80% 63%;
    --popover: 0 0% 8%;
    --popover-foreground: 43 80% 63%;
    --primary: 43 80% 63%;
    --primary-foreground: 0 0% 5%;
    --secondary: 40 45% 92%;
    --secondary-foreground: 30 35% 20%;
    --muted: 0 0% 12%;
    --muted-foreground: 43 50% 55%;
    --accent: 43 80% 63%;
    --accent-foreground: 0 0% 5%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 43 40% 25%;
    --input: 43 40% 25%;
    --ring: 43 80% 63%;
}

/* Light mode */
.light {
    --background: 39 50% 96%;
    --foreground: 25 50% 15%;
    --card: 40 40% 98%;
    --card-foreground: 25 50% 15%;
    --popover: 40 40% 98%;
    --popover-foreground: 25 50% 15%;
    --primary: 30 65% 30%;
    --primary-foreground: 40 50% 97%;
    --secondary: 35 40% 90%;
    --secondary-foreground: 25 50% 15%;
    --muted: 35 25% 91%;
    --muted-foreground: 25 30% 35%;
    --accent: 30 65% 30%;
    --accent-foreground: 40 50% 97%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 35 35% 78%;
    --input: 35 35% 78%;
    --ring: 30 65% 30%;
    --gold: 30 60% 28%;
    --gold-bright: 35 55% 35%;
    --gold-dim: 30 50% 25%;
    --gold-dark: 25 45% 20%;
    --cream: 38 45% 95%;
    --cream-dark: 35 35% 88%;
    --brown-deep: 25 50% 15%;
    --brown-hover: 25 40% 22%;
    --overlay-desktop: 0.35;
    --overlay-mobile: 0.40;
}

/* ==========================================================================
   2. CSS RESET & BASE
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: hsl(var(--border));
}

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

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ==========================================================================
   3. FONT CLASSES
   ========================================================================== */

.font-tamil { font-family: 'Noto Serif Tamil', 'Cormorant Garamond', serif; }
.font-kannada { font-family: 'Noto Serif Kannada', 'Cormorant Garamond', serif; }
.font-telugu { font-family: 'Noto Serif Telugu', 'Cormorant Garamond', serif; }
.font-hindi { font-family: 'Noto Serif Devanagari', 'Cormorant Garamond', serif; }
.font-display { font-family: 'Bodoni Moda', 'Cormorant Garamond', serif; }
.font-cinzel { font-family: 'Cinzel', 'Bodoni Moda', serif; }

/* ==========================================================================
   4. SACRED TEXT STYLING
   ========================================================================== */

.sacred-text {
    color: hsl(var(--gold));
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.5;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}

.light .sacred-text {
    color: hsl(25 50% 15%);
    text-shadow: 0 2px 12px rgba(120, 80, 20, 0.25);
}

.sacred-text-large {
    color: hsl(var(--gold));
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.5;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    font-size: clamp(20px, 5vw, 48px);
}

.light .sacred-text-large {
    color: hsl(25 50% 15%);
    text-shadow: 0 2px 12px rgba(120, 80, 20, 0.25);
}

.sacred-text-medium {
    color: hsl(var(--gold));
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.5;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    font-size: clamp(16px, 3.5vw, 32px);
}

.light .sacred-text-medium {
    color: hsl(25 50% 15%);
    text-shadow: 0 2px 12px rgba(120, 80, 20, 0.25);
}

.sacred-text-small {
    color: hsl(var(--gold));
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.5;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    font-size: clamp(14px, 2.5vw, 20px);
}

.light .sacred-text-small {
    color: hsl(25 50% 15%);
    text-shadow: 0 2px 12px rgba(120, 80, 20, 0.25);
}

/* ==========================================================================
   5. LAYOUT UTILITIES
   ========================================================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.left-4 { left: 1rem; }
.bottom-0 { bottom: 0; }
.bottom-4 { bottom: 1rem; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.text-center { text-align: center; }
.text-left { text-align: left; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* ==========================================================================
   6. SPACING UTILITIES
   ========================================================================== */

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-36 { padding-bottom: 9rem; }

.m-0 { margin: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mr-1 { margin-right: 0.25rem; }

/* ==========================================================================
   7. TEXT & TYPOGRAPHY UTILITIES
   ========================================================================== */

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }

.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre-line { white-space: pre-line; }
.break-all { word-break: break-all; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   8. COLOR UTILITIES
   ========================================================================== */

.text-gold { color: hsl(var(--gold)); }
.text-gold-90 { color: hsl(var(--gold) / 0.9); }
.text-gold-85 { color: hsl(var(--gold) / 0.85); }
.text-gold-80 { color: hsl(var(--gold) / 0.8); }
.text-gold-70 { color: hsl(var(--gold) / 0.7); }
.text-gold-60 { color: hsl(var(--gold) / 0.6); }
.text-gold-50 { color: hsl(var(--gold) / 0.5); }
.text-gold-40 { color: hsl(var(--gold) / 0.4); }
.text-gold-30 { color: hsl(var(--gold) / 0.3); }
.text-gold-20 { color: hsl(var(--gold) / 0.2); }
.text-brown-deep { color: hsl(var(--brown-deep)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-white { color: #fff; }
.text-white-60 { color: rgba(255,255,255,0.6); }

.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-primary-foreground { background-color: hsl(var(--primary-foreground)); }
.bg-gold { background-color: hsl(var(--gold)); }
.bg-gold-10 { background-color: hsl(var(--gold) / 0.1); }
.bg-gold-15 { background-color: hsl(var(--gold) / 0.15); }
.bg-gold-20 { background-color: hsl(var(--gold) / 0.2); }
.bg-gold-30 { background-color: hsl(var(--gold) / 0.3); }
.bg-brown-deep { background-color: hsl(var(--brown-deep)); }
.bg-brown-deep-30 { background-color: hsl(var(--brown-deep) / 0.3); }
.bg-brown-deep-40 { background-color: hsl(var(--brown-deep) / 0.4); }
.bg-brown-deep-50 { background-color: hsl(var(--brown-deep) / 0.5); }
.bg-brown-deep-80 { background-color: hsl(var(--brown-deep) / 0.8); }
.bg-background-80 { background-color: hsl(var(--background) / 0.8); }
.bg-background-90 { background-color: hsl(var(--background) / 0.9); }
.bg-background-95 { background-color: hsl(var(--background) / 0.95); }
.bg-black { background-color: #000; }
.bg-black-95 { background-color: rgba(0,0,0,0.95); }
.bg-white-10 { background-color: rgba(255,255,255,0.1); }
.bg-white-20 { background-color: rgba(255,255,255,0.2); }

.border-gold { border-color: hsl(var(--gold)); }
.border-gold-10 { border-color: hsl(var(--gold) / 0.1); }
.border-gold-15 { border-color: hsl(var(--gold) / 0.15); }
.border-gold-20 { border-color: hsl(var(--gold) / 0.2); }
.border-gold-30 { border-color: hsl(var(--gold) / 0.3); }
.border-gold-40 { border-color: hsl(var(--gold) / 0.4); }
.border-gold-50 { border-color: hsl(var(--gold) / 0.5); }
.border-border { border-color: hsl(var(--border)); }
.border-primary { border-color: hsl(var(--primary)); }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-100 { opacity: 1; }

/* ==========================================================================
   9. BORDERS & SHAPES
   ========================================================================== */

.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: calc(var(--radius) + 2px); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-md { border-radius: calc(var(--radius) - 2px); }

/* ==========================================================================
   10. EFFECTS & TRANSFORMS
   ========================================================================== */

.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px rgba(0,0,0,0.25); }

.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }

.transition-all { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition: color 0.3s, background-color 0.3s, border-color 0.3s; }
.transition-transform { transition: transform 0.3s; }
.transition-opacity { transition: opacity 0.3s; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-400 { transition-duration: 400ms; }
.duration-500 { transition-duration: 500ms; }

.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.bg-no-repeat { background-repeat: no-repeat; }

.translate-x-center { transform: translateX(-50%); }
.translate-y-center { transform: translateY(-50%); }

.underline { text-decoration: underline; }

/* Touch Target Size */
.touch-target {
    min-height: 44px;
    min-width: 44px;
}

/* Scrollbar hide */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   11. HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--overlay-desktop));
}

@media (max-width: 768px) {
    .hero__overlay {
        background: rgba(0, 0, 0, var(--overlay-mobile));
    }
}

.light .hero__overlay {
    background: linear-gradient(
        180deg,
        rgba(255, 248, 235, 0.70) 0%,
        rgba(255, 245, 225, 0.55) 40%,
        rgba(245, 235, 210, 0.65) 100%
    );
}

@media (max-width: 768px) {
    .light .hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(255, 248, 235, 0.80) 0%,
            rgba(255, 245, 225, 0.65) 40%,
            rgba(245, 235, 210, 0.75) 100%
        );
    }
}

.hero__content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 4rem 1rem;
}

.hero__symbol {
    margin-bottom: 2rem;
    opacity: 0;
    transform: scale(0.95);
    animation: thiruman-fade 1.2s ease-in-out 0.8s forwards;
}

.hero__symbol img {
    height: 5rem;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px hsl(var(--gold) / 0.2));
}

.hero__text {
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
    opacity: 0;
    animation: fade-in 0.5s ease-out 2s forwards;
}

.hero__text > * + * {
    margin-top: 1rem;
}

.hero__title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.hero__word {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.3em;
    opacity: 0;
}

.hero__slokas {
    padding-top: 1.5rem;
}

.hero__slokas > * + * {
    margin-top: 0.75rem;
}

.hero__sloka {
    opacity: 0;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fade-in 0.6s ease-out 3s forwards;
}

.hero__scroll-dot {
    width: 1.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid hsl(var(--gold) / 0.5);
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.hero__scroll-dot-inner {
    width: 0.25rem;
    height: 0.5rem;
    background: hsl(var(--gold));
    border-radius: 9999px;
}

/* Light beam */
.hero__beam {
    position: absolute;
    left: 50%;
    top: 0;
    width: 0.25rem;
    height: 100%;
    transform: translateX(-50%);
    transform-origin: top;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.1) 30%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 70%, transparent 100%);
    animation: light-beam-appear 2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.light .hero__beam {
    background: linear-gradient(180deg, transparent 0%, rgba(180,140,50,0.15) 30%, rgba(180,140,50,0.30) 50%, rgba(180,140,50,0.15) 70%, transparent 100%);
}

/* ==========================================================================
   12. GALLERY CAROUSEL (Home Page)
   ========================================================================== */

.gallery-section {
    padding: 4rem 0;
    background-color: hsl(var(--background));
    overflow: hidden;
}

.gallery-section__header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.gallery-section__divider {
    width: 6rem;
    height: 2px;
    background: hsl(var(--gold));
    margin: 0 auto;
    opacity: 0.5;
}

.gallery-scroll-container {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 2.5rem 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-item {
    flex-shrink: 0;
    width: 75vw;
    scroll-snap-align: center;
}

.gallery-card {
    border-radius: 1rem;
    overflow: hidden;
    background: hsl(var(--cream));
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    cursor: pointer;
}

.gallery-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px hsl(var(--gold) / 0.3);
}

.gallery-card__image-wrapper {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.gallery-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card__image {
    transform: scale(1.05);
}

.gallery-card__label {
    padding: 1rem;
    text-align: center;
    color: hsl(var(--brown-deep));
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Bodoni Moda', 'Cormorant Garamond', serif;
}

.light .gallery-card {
    background: white;
    box-shadow: 0 2px 16px rgba(120, 90, 30, 0.10);
    border: 1px solid hsl(35 40% 85%);
}

.light .gallery-card:hover {
    box-shadow: 0 8px 30px rgba(120, 90, 30, 0.18);
    border-color: hsl(35 50% 70%);
}

/* Gallery arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 3rem;
    height: 3rem;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: hsl(var(--gold) / 0.2);
    border: 1px solid hsl(var(--gold) / 0.4);
    color: hsl(var(--gold));
    backdrop-filter: blur(4px);
    transition: all 0.3s;
    font-size: 1.5rem;
    cursor: pointer;
}

.gallery-arrow:hover { background: hsl(var(--gold) / 0.4); }
.gallery-arrow--left { left: 0; }
.gallery-arrow--right { right: 0; }
.gallery-arrow--hidden { opacity: 0; pointer-events: none; }

/* Gallery dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.gallery-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: hsl(var(--gold) / 0.3);
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    padding: 0;
}

.gallery-dot:hover { background: hsl(var(--gold) / 0.5); }
.gallery-dot--active {
    background: hsl(var(--gold));
    width: 1.5rem;
}

/* ==========================================================================
   13. CATEGORY NAVIGATION
   ========================================================================== */

.categories-section {
    padding: 4rem 0;
    background-color: hsl(var(--background));
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.category-block {
    position: relative;
    overflow: hidden;
    background: hsl(var(--cream));
    border: 2px solid hsl(var(--gold));
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    display: block;
    min-height: 44px;
    min-width: 44px;
}

.category-block:hover {
    background: hsl(var(--gold));
}

.category-block:hover .category-text {
    color: hsl(var(--brown-deep));
}

.light .category-block {
    background: hsl(40 50% 98%);
    border-color: hsl(35 50% 65%);
    box-shadow: 0 2px 12px rgba(160, 120, 50, 0.10);
}

.light .category-block:hover {
    background: hsl(35 55% 88%);
    border-color: hsl(30 60% 45%);
    box-shadow: 0 4px 20px rgba(160, 120, 50, 0.18);
}

.light .category-block:hover .category-text {
    color: hsl(25 55% 12%);
}

.category-text {
    color: hsl(var(--brown-deep));
    font-family: 'Bodoni Moda', 'Cormorant Garamond', serif;
    font-weight: 600;
    transition: color 0.4s ease;
    font-size: 1.125rem;
}

.light .category-text {
    color: hsl(25 50% 15%);
    font-weight: 700;
}

/* ==========================================================================
   14. HANUMAN TEMPLES SECTION
   ========================================================================== */

.temples-section {
    padding: 4rem 0;
    background-color: hsl(var(--background));
}

.temples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.temple-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--gold) / 0.2);
    background: hsl(var(--brown-deep) / 0.3);
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    transition: all 0.4s ease;
    display: block;
    color: inherit;
    text-decoration: none;
}

.temple-card:hover {
    border-color: hsl(var(--gold) / 0.5);
    background: hsl(var(--brown-deep) / 0.5);
}

.temple-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: hsl(var(--gold) / 0.1);
    color: hsl(var(--gold) / 0.7);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid hsl(var(--gold) / 0.2);
    transition: all 0.3s;
}

.temple-card:hover .temple-card__badge {
    background: hsl(var(--gold) / 0.2);
    color: hsl(var(--gold));
}

.temple-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: hsl(var(--gold) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.temple-card:hover .temple-card__icon {
    background: hsl(var(--gold) / 0.2);
}

.temple-card__icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: hsl(var(--gold) / 0.7);
    transition: color 0.3s;
}

.temple-card:hover .temple-card__icon svg {
    color: hsl(var(--gold));
}

.temple-card__name {
    color: hsl(var(--gold) / 0.9);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-right: 2.5rem;
    transition: color 0.3s;
}

.temple-card:hover .temple-card__name {
    color: hsl(var(--gold));
}

.temple-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: hsl(var(--gold) / 0.5);
    font-size: 0.875rem;
    transition: color 0.3s;
}

.temple-card:hover .temple-card__link {
    color: hsl(var(--gold) / 0.8);
}

/* ==========================================================================
   15. LEGAL LINKS SECTION
   ========================================================================== */

.legal-section {
    padding: 2.5rem 0;
    background-color: hsl(var(--background));
    border-top: 1px solid hsl(var(--gold) / 0.1);
}

.legal-grid {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.site-footer {
    padding: 2rem 0 3rem;
    text-align: center;
    border-top: 1px solid hsl(var(--gold) / 0.2);
    padding-left: 1rem;
    padding-right: 1rem;
}

.site-footer__text {
    color: hsl(var(--gold) / 0.6);
    font-size: 0.875rem;
}

/* ==========================================================================
   17. FIXED UI ELEMENTS
   ========================================================================== */

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    padding: 0.625rem;
    border-radius: 9999px;
    background: hsl(var(--background) / 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid hsl(var(--gold) / 0.2);
    color: hsl(var(--gold));
    transition: all 0.3s;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    animation: fade-in 0.6s ease-out 3.2s forwards;
}

.theme-toggle:hover {
    background: hsl(var(--gold) / 0.1);
}

.theme-toggle svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: hsl(var(--background) / 0.8);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    border: 1px solid hsl(var(--gold) / 0.2);
    opacity: 0;
    animation: fade-in 0.6s ease-out 3s forwards;
}

.lang-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s;
    color: hsl(var(--gold) / 0.7);
    border-radius: 9999px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.lang-btn:hover, .lang-btn.active {
    color: hsl(var(--gold));
    text-shadow: 0 0 10px hsl(var(--gold) / 0.5);
}

.light .lang-btn { color: hsl(25 40% 35%); }
.light .lang-btn:hover, .light .lang-btn.active {
    color: hsl(25 55% 18%);
    text-shadow: none;
    font-weight: 700;
}

.lang-separator {
    color: hsl(var(--gold) / 0.3);
    font-size: 0.75rem;
}

/* Social Media Sidebar */
.social-sidebar {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: none;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    animation: fade-slide-in-right 0.6s ease-out 3.5s forwards;
}

.social-sidebar__link {
    padding: 0.75rem;
    border-radius: 9999px;
    background: hsl(var(--background) / 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid hsl(var(--gold) / 0.2);
    color: hsl(var(--gold) / 0.7);
    transition: all 0.3s;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-sidebar__link:hover {
    transform: scale(1.1);
    border-color: hsl(var(--gold) / 0.4);
    box-shadow: 0 10px 15px hsl(var(--gold) / 0.2);
}

.social-sidebar__link--instagram:hover { color: #E1306C; }
.social-sidebar__link--facebook:hover { color: #3b82f6; }
.social-sidebar__link--whatsapp:hover { color: #22c55e; }
.social-sidebar__link--youtube:hover { color: #ef4444; }
.social-sidebar__link--gmail:hover { color: #f97316; }

/* Social mobile bar */
.social-mobile {
    position: fixed;
    bottom: 1rem;
    right: 0.75rem;
    z-index: 40;
    display: flex;
    flex-direction: row;
    gap: 0.375rem;
    opacity: 0;
    animation: fade-slide-in-up 0.6s ease-out 3.5s forwards;
}

.social-mobile__link {
    padding: 0.625rem;
    border-radius: 9999px;
    background: hsl(var(--background) / 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid hsl(var(--gold) / 0.2);
    color: hsl(var(--gold) / 0.7);
    transition: all 0.3s;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-mobile__link svg { width: 1rem; height: 1rem; }

/* ==========================================================================
   18. BACK BUTTON
   ========================================================================== */

.back-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 20;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid hsl(var(--gold) / 0.5);
    color: hsl(var(--gold));
    background: transparent;
    transition: all 0.3s;
    min-height: 44px;
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.back-btn:hover {
    background: hsl(var(--gold));
    color: hsl(var(--brown-deep));
}

.light .back-btn {
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}

.light .back-btn:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* ==========================================================================
   19. CONTENT PAGE LAYOUT (bg image + overlay + text card)
   ========================================================================== */

.content-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.content-page__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.content-page__body {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 1rem;
}

.content-page__card {
    backdrop-filter: blur(4px);
    background: hsl(var(--brown-deep) / 0.5);
    border: 1px solid hsl(var(--gold) / 0.2);
    border-radius: calc(var(--radius) + 2px);
    padding: 2rem 3rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    max-height: 70vh;
    overflow-y: auto;
    width: 100%;
    max-width: 56rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.content-page__card::-webkit-scrollbar { display: none; }

.content-page__paragraph {
    color: hsl(var(--gold) / 0.9);
    font-size: 1rem;
    line-height: 1.625;
    margin-bottom: 1.5rem;
    white-space: pre-line;
}

.content-page__paragraph:last-child { margin-bottom: 0; }

.content-page__link {
    color: hsl(var(--gold));
    text-decoration: underline;
    transition: color 0.2s;
    word-break: break-all;
}

.content-page__link:hover { color: hsl(var(--gold) / 0.7); }

/* ==========================================================================
   20. INTERACTIVE PAGES (chanting-audios, publications, slokams, gallery)
   ========================================================================== */

.interactive-page {
    min-height: 100vh;
    background: linear-gradient(to bottom, hsl(var(--brown-deep)), hsl(var(--brown-deep) / 0.95), hsl(var(--brown-deep)));
}

.light .interactive-page {
    background: hsl(var(--background));
}

.interactive-page__header {
    position: relative;
    z-index: 10;
    padding: 2rem 1rem 1rem;
}

.interactive-page__subtitle {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 1.125rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    color: hsl(var(--gold) / 0.6);
}

.light .interactive-page__subtitle {
    color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   21. AUDIO PLAYER
   ========================================================================== */

.track-list { max-width: 56rem; margin: 0 auto; padding: 1.5rem 1rem 9rem; }

.track-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--gold) / 0.1);
    background: hsl(var(--brown-deep) / 0.4);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.75rem;
    position: relative;
}

.track-item:hover {
    border-color: hsl(var(--gold) / 0.3);
    background: hsl(var(--gold) / 0.05);
}

.track-item--active {
    background: hsl(var(--gold) / 0.1);
    border-color: hsl(var(--gold) / 0.4);
    box-shadow: 0 10px 15px hsl(var(--gold) / 0.05);
}

.light .track-item {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
}

.light .track-item:hover {
    border-color: hsl(var(--primary) / 0.3);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.light .track-item--active {
    background: hsl(var(--primary) / 0.05);
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: 0 4px 6px hsl(var(--primary) / 0.1);
}

.track-item__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: hsl(var(--gold) / 0.1);
    color: hsl(var(--gold) / 0.5);
}

.track-item--active .track-item__icon {
    background: hsl(var(--gold));
    color: hsl(var(--brown-deep));
    box-shadow: 0 10px 15px hsl(var(--gold) / 0.3);
}

.light .track-item__icon {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

.light .track-item--active .track-item__icon {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.track-item__info { flex: 1; min-width: 0; }

.track-item__title {
    font-size: 1rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
    color: hsl(var(--gold) / 0.85);
}

.track-item--active .track-item__title { color: hsl(var(--gold)); }
.light .track-item__title { color: hsl(var(--foreground)); }
.light .track-item--active .track-item__title { color: hsl(var(--primary)); }

.track-item__meta {
    font-size: 0.75rem;
    margin-top: 0.125rem;
    color: hsl(var(--gold) / 0.4);
}

.light .track-item__meta { color: hsl(var(--muted-foreground)); }

.track-item__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.track-item__download {
    padding: 0.5rem;
    border-radius: 9999px;
    transition: all 0.3s;
    opacity: 0;
    color: hsl(var(--gold) / 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-item:hover .track-item__download { opacity: 1; }
.track-item__download:hover { background: hsl(var(--gold) / 0.1); color: hsl(var(--gold)); }

/* Track progress bar */
.track-item__progress {
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    border-radius: 9999px;
    background: hsl(var(--gold) / 0.15);
}

.track-item__progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: hsl(var(--gold));
    transition: width 0.1s linear;
}

.light .track-item__progress { background: hsl(var(--primary) / 0.2); }
.light .track-item__progress-fill { background: hsl(var(--primary)); }

/* Fixed bottom player */
.audio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsl(var(--brown-deep) / 0.95);
    border-top: 1px solid hsl(var(--gold) / 0.2);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
    backdrop-filter: blur(24px);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.audio-player-bar--visible { transform: translateY(0); }

.light .audio-player-bar {
    background: hsl(var(--card) / 0.95);
    border-top-color: hsl(var(--border));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.player-progress {
    height: 0.375rem;
    width: 100%;
    cursor: pointer;
    background: hsl(var(--gold) / 0.1);
}

.player-progress__fill {
    height: 100%;
    transition: width 0.15s;
    background: linear-gradient(to right, hsl(var(--gold)), hsl(var(--gold) / 0.8));
    position: relative;
}

.light .player-progress { background: hsl(var(--muted)); }
.light .player-progress__fill {
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--primary) / 0.8));
}

.player-progress__thumb {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: hsl(var(--gold));
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.player-progress:hover .player-progress__thumb { opacity: 1; }
.light .player-progress__thumb { background: hsl(var(--primary)); }

.player-controls {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-track-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.player-track-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: calc(var(--radius) + 2px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--gold) / 0.25), hsl(var(--gold) / 0.1));
}

.light .player-track-icon { background: hsl(var(--primary) / 0.1); }

.player-track-name {
    font-size: 0.875rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: hsl(var(--gold) / 0.9);
}

.light .player-track-name { color: hsl(var(--foreground)); }

.player-track-time {
    font-size: 0.75rem;
    color: hsl(var(--gold) / 0.4);
}

.light .player-track-time { color: hsl(var(--muted-foreground)); }

.player-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-btn {
    padding: 0.5rem;
    border-radius: 9999px;
    transition: all 0.2s;
    color: hsl(var(--gold) / 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

.player-btn:hover {
    color: hsl(var(--gold));
    background: hsl(var(--gold) / 0.1);
}

.light .player-btn { color: hsl(var(--foreground)); }
.light .player-btn:hover { background: hsl(var(--muted)); }

.player-btn--main {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: hsl(var(--gold));
    color: hsl(var(--brown-deep));
    box-shadow: 0 10px 15px hsl(var(--gold) / 0.3);
}

.player-btn--main:hover {
    background: hsl(var(--gold) / 0.9);
    color: hsl(var(--brown-deep));
}

.light .player-btn--main {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 10px 15px hsl(var(--primary) / 0.2);
}

.player-btn--active {
    color: hsl(var(--gold));
    background: hsl(var(--gold) / 0.15);
}

.light .player-btn--active {
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
}

.player-volume {
    display: none;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.player-volume input[type="range"] {
    width: 5rem;
    height: 0.25rem;
    border-radius: 9999px;
    appearance: none;
    cursor: pointer;
    background: hsl(var(--gold) / 0.1);
}

.player-volume input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: hsl(var(--gold));
}

/* ==========================================================================
   22. PUBLICATIONS & SLOKAMS GRID
   ========================================================================== */

.pub-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}

.pub-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid hsl(var(--gold) / 0.15);
    background: linear-gradient(to bottom, hsl(var(--brown-deep) / 0.4), hsl(var(--brown-deep) / 0.8));
    backdrop-filter: blur(4px);
    transition: all 0.4s;
}

.pub-card:hover {
    border-color: hsl(var(--gold) / 0.4);
}

.light .pub-card {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.light .pub-card:hover {
    border-color: hsl(var(--primary) / 0.5);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.pub-card__cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.pub-card__thumbnail {
    width: 8rem;
    height: 11rem;
    border-radius: calc(var(--radius) - 2px);
    overflow: hidden;
    border: 1px solid hsl(var(--gold) / 0.3);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.pub-card:hover .pub-card__thumbnail {
    border-color: hsl(var(--gold) / 0.5);
    box-shadow: 0 20px 25px rgba(0,0,0,0.2);
}

.pub-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.pub-card:hover .pub-card__thumbnail img {
    transform: scale(1.05);
}

.pub-card__title {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.375;
    color: hsl(var(--gold) / 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.5rem;
}

.light .pub-card__title { color: hsl(var(--foreground)); }

.pub-card__actions {
    display: flex;
    border-top: 1px solid hsl(var(--gold) / 0.1);
}

.light .pub-card__actions { border-top-color: hsl(var(--border)); }

.pub-card__action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem;
    transition: all 0.3s;
    font-size: 0.875rem;
    color: hsl(var(--gold) / 0.6);
    text-decoration: none;
    cursor: pointer;
}

.pub-card__action:hover {
    color: hsl(var(--gold));
    background: hsl(var(--gold) / 0.1);
}

.light .pub-card__action { color: hsl(var(--muted-foreground)); }
.light .pub-card__action:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted));
}

.pub-card__action-divider {
    width: 1px;
    background: hsl(var(--gold) / 0.1);
    align-self: stretch;
}

.light .pub-card__action-divider { background: hsl(var(--border)); }

/* Book fallback icon */
.pub-card__fallback {
    width: 7rem;
    height: 9rem;
    border-radius: calc(var(--radius) - 2px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid hsl(var(--gold) / 0.3);
    background: linear-gradient(135deg, hsl(var(--gold) / 0.2), hsl(var(--gold) / 0.05));
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.pub-card__fallback svg {
    width: 2.25rem;
    height: 2.25rem;
    color: hsl(var(--gold) / 0.6);
}

/* ==========================================================================
   23. GALLERY PAGE
   ========================================================================== */

.gallery-tabs {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--gold) / 0.1);
    padding: 0.75rem 1rem;
    background: hsl(var(--brown-deep) / 0.9);
}

.light .gallery-tabs {
    background: hsl(var(--background) / 0.95);
}

.gallery-tabs__inner {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    max-width: 64rem;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-tabs__inner::-webkit-scrollbar { display: none; }

.gallery-tab {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s;
    border: 1px solid hsl(var(--gold) / 0.3);
    color: hsl(var(--gold) / 0.7);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.gallery-tab:hover {
    border-color: hsl(var(--gold) / 0.6);
    color: hsl(var(--gold));
}

.gallery-tab--active {
    background: hsl(var(--gold));
    color: hsl(var(--brown-deep));
    border-color: hsl(var(--gold));
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.light .gallery-tab {
    border-color: hsl(var(--border));
    color: hsl(var(--foreground) / 0.7);
}

.light .gallery-tab--active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.gallery-tab__count {
    margin-left: 0.375rem;
    font-size: 0.75rem;
    opacity: 0.7;
}

.gallery-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.gallery-grid-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: calc(var(--radius) + 2px);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid hsl(var(--gold) / 0.1);
    transition: all 0.3s;
}

.gallery-grid-item:hover {
    border-color: hsl(var(--gold) / 0.4);
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-grid-item:hover img { transform: scale(1.1); }

.gallery-grid-item__overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background 0.3s;
}

.gallery-grid-item:hover .gallery-grid-item__overlay {
    background: rgba(0,0,0,0.2);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.lightbox--open {
    opacity: 1;
    visibility: visible;
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 60;
    padding: 0.5rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__close:hover { background: rgba(255,255,255,0.2); }

.lightbox__counter {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.lightbox__nav {
    position: absolute;
    z-index: 60;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav--prev { left: 0.5rem; }
.lightbox__nav--next { right: 0.5rem; }

.lightbox__image {
    max-height: 85vh;
    max-width: 90vw;
    object-fit: contain;
    border-radius: calc(var(--radius) + 2px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/* ==========================================================================
   24. CONTACT US PAGE
   ========================================================================== */

.contact-card {
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--gold) / 0.2);
    backdrop-filter: blur(4px);
    background: hsl(var(--brown-deep) / 0.3);
    padding: 2rem 3rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    max-width: 42rem;
    width: 100%;
}

.light .contact-card {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item:last-child { margin-bottom: 0; }

.contact-item__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--gold) / 0.15);
    color: hsl(var(--gold));
    margin-top: 0.25rem;
}

.light .contact-item__icon {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.contact-item__label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: hsl(var(--gold) / 0.5);
}

.light .contact-item__label { color: hsl(var(--muted-foreground)); }

.contact-item__text {
    font-size: 1rem;
    line-height: 1.625;
    color: hsl(var(--gold) / 0.9);
}

.light .contact-item__text { color: hsl(var(--foreground)); }

.contact-item__link {
    font-size: 1rem;
    color: hsl(var(--gold));
    transition: color 0.2s;
}

.contact-item__link:hover { color: hsl(var(--gold) / 0.7); }

.light .contact-item__link { color: hsl(var(--primary)); }
.light .contact-item__link:hover { color: hsl(var(--primary) / 0.8); }

/* ==========================================================================
   25. LOADING & SKELETON STATES
   ========================================================================== */

.skeleton {
    background: hsl(var(--gold) / 0.1);
    border-radius: var(--radius);
    animation: skeleton-pulse 2s ease-in-out infinite;
}

.light .skeleton { background: hsl(var(--muted)); }

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Equalizer animation bars */
.eq-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 1rem;
}

.eq-bar {
    width: 3px;
    border-radius: 9999px;
    background: hsl(var(--brown-deep));
}

.eq-bar:nth-child(1) { animation: eq-1 1.2s ease-in-out infinite; }
.eq-bar:nth-child(2) { animation: eq-2 1.2s ease-in-out 0.2s infinite; }
.eq-bar:nth-child(3) { animation: eq-3 1.2s ease-in-out 0.4s infinite; }

.light .eq-bar { background: hsl(var(--primary-foreground)); }

@keyframes eq-1 { 0%,100%{height:40%} 25%{height:100%} 50%{height:60%} 75%{height:100%} }
@keyframes eq-2 { 0%,100%{height:100%} 25%{height:40%} 50%{height:100%} 75%{height:60%} }
@keyframes eq-3 { 0%,100%{height:60%} 25%{height:100%} 50%{height:40%} 75%{height:100%} }

/* ==========================================================================
   26. ANIMATIONS
   ========================================================================== */

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-simple {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes light-beam-appear {
    0% { opacity: 0; transform: translateX(-50%) scaleY(0); }
    50% { opacity: 1; transform: translateX(-50%) scaleY(1); }
    100% { opacity: 0; transform: translateX(-50%) scaleY(1); }
}

@keyframes thiruman-fade {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes word-slide-left {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes word-slide-right {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes fade-slide-in-right {
    from { opacity: 0; transform: translateY(-50%) translateX(20px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@keyframes fade-slide-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   27. LIGHT MODE GLOBAL OVERRIDES
   ========================================================================== */

.light .text-gold-90 { color: hsl(25 50% 18%) !important; }
.light .text-gold-80 { color: hsl(25 45% 22%) !important; }
.light .text-gold-70 { color: hsl(25 40% 28%) !important; }
.light .text-gold-60 { color: hsl(25 35% 35%) !important; }
.light .text-gold-50 { color: hsl(25 30% 40%) !important; }
.light .text-gold-30 { color: hsl(25 20% 55%) !important; }

.light .bg-brown-deep-30,
.light .bg-brown-deep-40,
.light .bg-brown-deep-50 {
    background-color: hsl(38 45% 96% / 0.88) !important;
}

.light .bg-brown-deep-80 {
    background-color: hsl(38 40% 95% / 0.92) !important;
}

.light .bg-background-80 {
    background-color: hsl(39 50% 96% / 0.92) !important;
}

.light .border-gold-10 { border-color: hsl(35 30% 85%) !important; }
.light .border-gold-20 { border-color: hsl(35 40% 78%) !important; }
.light .border-gold-30 { border-color: hsl(35 45% 70%) !important; }
.light .border-gold-40 { border-color: hsl(35 50% 62%) !important; }
.light .border-gold-50 { border-color: hsl(35 50% 55%) !important; }

.light .bg-gold-10 { background-color: hsl(35 45% 90%) !important; }
.light .bg-gold-20 { background-color: hsl(35 50% 84%) !important; }
.light .bg-gold-30 { background-color: hsl(35 50% 78%) !important; }

.light .text-brown-deep { color: hsl(25 50% 15%) !important; }

/* Gold glow effect */
.gold-glow { box-shadow: 0 0 30px hsl(var(--gold) / 0.2); }
.light .gold-glow { box-shadow: 0 0 25px rgba(180, 140, 50, 0.20); }

/* ==========================================================================
   28. RESPONSIVE DESIGN
   ========================================================================== */

/* SM: 640px+ */
@media (min-width: 640px) {
    .sm-flex { display: flex; }
    .sm-hidden { display: none !important; }
    .sm-inline { display: inline !important; }  /* Add !important here */
    .sm-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm-text-sm { font-size: 0.875rem; }
    .sm-px-8 { padding-left: 2rem; padding-right: 2rem; }

    .touch-target { min-height: 48px; min-width: 48px; }
    .lang-btn { font-size: 0.875rem; padding: 0.5rem 0.75rem; min-height: 44px; min-width: 44px; }

    .legal-grid { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 1rem; }

    .gallery-item { width: 60vw; }

    .pub-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-image-grid { grid-template-columns: repeat(3, 1fr); }

    .theme-toggle svg { width: 1.25rem; height: 1.25rem; }
    .theme-toggle { padding: 0.75rem; }
}

/* MD: 768px+ */
@media (min-width: 768px) {
    .md-flex { display: flex; }
    .md-hidden { display: none; }
    .md-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

    .social-sidebar { display: flex; }
    .social-mobile { display: none; }

    .gallery-arrow { display: flex; }
    .gallery-item { width: 40vw; }

    .hero__symbol img { height: 8rem; }
    .hero__symbol { margin-bottom: 3rem; }

    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .temples-grid { grid-template-columns: repeat(2, 1fr); }

    .pub-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-image-grid { grid-template-columns: repeat(4, 1fr); }

    .player-volume { display: flex; }
    .content-page__card { padding: 3rem; }

    .site-footer { padding: 3rem 0; }
}

/* LG: 1024px+ */
@media (min-width: 1024px) {
    .lg-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

    .gallery-item { width: 22vw; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }

    .hero__symbol img { height: 10rem; }

    .pub-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-image-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Phone: tighter spacing */
@media (max-width: 480px) {
    .sacred-text-large { font-size: clamp(18px, 6vw, 32px) !important; }
    .sacred-text-medium { font-size: clamp(14px, 4vw, 24px) !important; }
    .sacred-text-small { font-size: clamp(12px, 3vw, 18px) !important; }
    .category-block { padding: 0.75rem 1rem !important; }

    .lang-btn { font-size: 0.6875rem; padding: 0.25rem 0.375rem; min-height: 36px; min-width: 36px; }
    .language-switcher { padding: 0.125rem 0.25rem; gap: 0; }
    .lang-separator { font-size: 0.625rem; }

    .back-btn { top: 0.75rem; left: 0.75rem; font-size: 0.8rem; padding: 0.4rem 0.75rem; }
    .content-page__card { padding: 1.5rem; }

    .track-item { gap: 0.75rem; padding: 0.75rem; }
    .track-item__icon { width: 2.5rem; height: 2.5rem; }
}

/* Tablet: 481-1024px */
@media (min-width: 481px) and (max-width: 1024px) {
    .sacred-text-large { font-size: clamp(20px, 4.5vw, 40px) !important; }
}

/* ==========================================================================
   29. PRINT STYLES
   ========================================================================== */

@media print {
    .theme-toggle, .language-switcher, .social-sidebar, .social-mobile,
    .audio-player-bar, .gallery-arrow, .lightbox, .back-btn {
        display: none !important;
    }

    body { background: white; color: black; }
    .sacred-text, .sacred-text-large, .sacred-text-medium, .sacred-text-small {
        color: black !important;
        text-shadow: none !important;
    }
}

.light .content-page__card {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
}
