/* ==========================================================================
   Dayal Dham Website Stylesheet
   Devotional, Serene, Responsive & Premium Aesthetics
   ========================================================================== */

/* Custom Design Tokens & Color Palettes */
:root {
    --bg-cream: #faf7f2;
    --bg-card: #ffffff;
    --primary-maroon: #601414;
    --primary-maroon-hover: #4a0d0d;
    --secondary-gold: #cba153;
    --secondary-gold-hover: #b89047;
    --accent-saffron: #d97706;
    --text-dark: #2d2424;
    --text-muted: #6b5b5b;
    --border-gold: rgba(203, 161, 83, 0.3);
    --border-light: rgba(107, 91, 91, 0.1);
    --shadow-soft: 0 10px 30px rgba(96, 20, 20, 0.05);
    --shadow-glow: 0 0 25px rgba(203, 161, 83, 0.25);
    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-maroon);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gold);
}

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Headings and Typography */
h1, h2, h3, h4, .logo-title {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--primary-maroon);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-maroon);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-maroon-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(96, 20, 20, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-maroon);
    border-color: var(--primary-maroon);
}

.btn-secondary:hover {
    background-color: var(--primary-maroon);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--secondary-gold);
    color: #ffffff;
    font-weight: 600;
}

.btn-gold:hover {
    background-color: var(--secondary-gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-white {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--primary-maroon);
    transform: translateY(-2px);
}

.btn-small-gold {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    background-color: var(--secondary-gold);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-small-gold:hover {
    background-color: var(--secondary-gold-hover);
}

.btn-text-gold {
    color: var(--secondary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-text-gold:hover {
    color: var(--primary-maroon);
}

/* Sections */
.section {
    padding: 8rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
}

.section-header.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary-gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-tag.white {
    color: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Gold Dividers */
.gold-divider {
    width: 60px;
    height: 2px;
    background-color: var(--secondary-gold);
    margin-top: 1rem;
}

.gold-divider.center {
    margin-left: auto;
    margin-right: auto;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gold);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.4rem;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary-gold);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.3rem 0;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--secondary-gold);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-maroon);
}

.nav-link:hover:after, .nav-link.active:after {
    width: 100%;
}

.nav-link.highlight {
    color: var(--accent-saffron);
    font-weight: 600;
}

.nav-link.highlight:after {
    background-color: var(--accent-saffron);
}

.nav-link.btn-gold {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #ffffff;
}

.nav-link.btn-gold:after {
    display: none;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Sound Toggle */
.sound-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid var(--border-gold);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    color: var(--primary-maroon);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.sound-toggle:hover {
    background-color: var(--primary-maroon);
    color: #ffffff;
    border-color: var(--primary-maroon);
}

.sound-toggle svg {
    flex-shrink: 0;
}

.sound-toggle .hide {
    display: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 2px;
    background-color: var(--primary-maroon);
    transition: var(--transition-fast);
}

/* 1. Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/valley.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    z-index: 0;
    /* Soft parallax slow zoom in */
    animation: zoomParallax 30s infinite alternate linear;
}

@keyframes zoomParallax {
    0% { transform: scale(1.02) translate(0, 0); }
    100% { transform: scale(1.1) translate(0, -2%); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(96, 20, 20, 0.4) 0%, rgba(31, 26, 26, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-welcome {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--secondary-gold);
    display: block;
    margin-bottom: 1.5rem;
}

.hero-title {
    color: #ffffff;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Scroll Cue */
.scroll-cue {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.scroll-cue:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* 2. About Shri Paramhans Dayal Maharaj Ji */
.section-maharaj {
    background-color: var(--bg-cream);
}

.maharaj-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: flex-start;
}

.maharaj-image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-gold);
    max-width: 480px;
}

.maharaj-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.maharaj-image-container:hover .maharaj-image {
    transform: scale(1.03);
}

.image-frame-decor {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(203, 161, 83, 0.4);
    pointer-events: none;
}

.maharaj-info .spiritual-quote {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-maroon);
    border-left: 3px solid var(--secondary-gold);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.maharaj-info .text-content {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.subsection-title {
    font-size: 1.6rem;
    margin: 3rem 0 2rem 0;
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 0.5rem;
}

/* Vertical Timeline */
.timeline {
    position: relative;
    padding-left: 7rem;        /* wide enough for year (4ch) + gap + dot */
    margin-top: 2rem;
}

/* Vertical connecting line — sits at the dot column */
.timeline:before {
    content: '';
    position: absolute;
    left: 5.6rem;             /* aligns with centre of .timeline-dot */
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--secondary-gold) 8%,
        var(--secondary-gold) 92%,
        transparent 100%
    );
    opacity: 0.5;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.8rem;
    padding-left: 1.4rem;     /* gap between dot and content text */
}

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

/* Year label — floats in the left gutter, never clipped */
.timeline-year {
    position: absolute;
    left: -6.8rem;            /* sits inside the 7rem left-padding band */
    top: 0;
    width: 5.2rem;            /* enough for 4 digit year */
    text-align: right;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary-maroon);
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;      /* never wraps or clips */
}

/* Golden dot centred on the vertical line */
.timeline-dot {
    position: absolute;
    left: -1.55rem;           /* aligns with .timeline:before */
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-gold);
    border: 2px solid var(--bg-cream);
    box-shadow: 0 0 8px rgba(203, 161, 83, 0.6);
    z-index: 2;
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--primary-maroon);
    transform: scale(1.3);
    box-shadow: 0 0 14px rgba(96, 20, 20, 0.4);
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 3. About Dayal Dham - Mission & Vision */
.section-dham {
    background-color: #ffffff;
}

.dham-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.dham-card {
    background-color: var(--bg-cream);
    padding: 3rem 2rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.dham-card:hover {
    border-color: var(--border-gold);
    background-color: #ffffff;
    transform: translateY(-5px);
}

.dham-card-icon {
    color: var(--secondary-gold);
    margin-bottom: 1.5rem;
}

.dham-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-maroon);
}

.dham-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Image Banner with Quote overlay */
.dham-banner {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 4rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-gold);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(96, 20, 20, 0.6) 0%, rgba(31, 26, 26, 0.2) 100%);
}

.banner-text {
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    right: 3rem;
    color: #ffffff;
    max-width: 600px;
}

.banner-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* 4. Teachings & Practices */
.section-teachings {
    background-color: var(--bg-cream);
}

.teachings-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Accordion Component */
.accordion {
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid var(--border-gold);
    margin-bottom: 1rem;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    cursor: pointer;
    text-align: left;
}

.accordion-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-maroon);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.accordion-icon-svg {
    color: var(--secondary-gold);
}

.accordion-arrow {
    color: var(--secondary-gold);
    transition: var(--transition-fast);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-content p {
    padding-bottom: 1.5rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Accordion Active States */
.accordion-item.active .accordion-content {
    max-height: 300px;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-item.active {
    border-bottom: 1px solid var(--primary-maroon);
}

/* Wisdom Card */
.teachings-wisdom-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-gold);
    height: 480px;
}

.teachings-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wisdom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(96, 20, 20, 0) 40%, rgba(96, 20, 20, 0.8) 100%);
}

.wisdom-text {
    position: absolute;
    bottom: 3rem;
    left: 2.5rem;
    right: 2.5rem;
    color: #ffffff;
}

.wisdom-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 0.8rem;
}

.wisdom-quote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* 5. Virtual Pūjā (Interactive Altar) */
.section-puja {
    background-color: #ffffff;
    border-bottom: 2px solid var(--secondary-gold);
}

.puja-app {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    background-color: var(--bg-cream);
    border-radius: 8px;
    border: 1px solid var(--border-gold);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
}

/* Deity Selector Carousel */
.deity-selector-wrapper {
    width: 100%;
}

.deity-selector-wrapper h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    color: var(--primary-maroon);
}

.deity-carousel {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none; /* Firefox */
}

.deity-carousel::-webkit-scrollbar {
    display: none; /* Safari & Chrome */
}

.deity-card {
    flex: 0 0 140px;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.deity-card:hover {
    border-color: var(--secondary-gold);
    transform: translateY(-3px);
}

.deity-card.active {
    border-color: var(--primary-maroon);
    background-color: var(--primary-maroon);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.deity-card-img-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 0.8rem auto;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--secondary-gold);
}


/* Dynamic Deity Card Wrappers — replaces emoji placeholders */
.deity-card-img-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 0.8rem auto;
    overflow: hidden;
    border: 2px solid var(--secondary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 12px rgba(203, 161, 83, 0.2);
    transition: var(--transition-smooth);
}

.deity-card:hover .deity-card-img-wrapper,
.deity-card.active .deity-card-img-wrapper {
    box-shadow: 0 0 20px rgba(203, 161, 83, 0.5);
    border-color: #f0c870;
}

/* Swaroop — uses the real portrait photograph */
.deity-swaroop {
    background-image: url('assets/portrait.jpg');
    background-size: cover;
    background-position: center top;
}

/* Shiv Ji — deep indigo gradient */
.deity-shiv {
    background: radial-gradient(circle at 40% 30%, #1e3a5f 0%, #0d1f3c 100%);
}

/* Parvati Ji — deep crimson gradient */
.deity-parvati {
    background: radial-gradient(circle at 40% 30%, #7f1d1d 0%, #450a0a 100%);
}

/* Hanuman Ji — saffron / amber gradient */
.deity-hanuman {
    background: radial-gradient(circle at 40% 30%, #c2410c 0%, #7c2d12 100%);
}

/* Rama & Sita Ji — emerald forest gradient */
.deity-rama {
    background: radial-gradient(circle at 40% 30%, #15803d 0%, #064e3b 100%);
}

/* SVG inside deity card wrapper */
.deity-card-svg {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
    transition: var(--transition-smooth);
}

.deity-card:hover .deity-card-svg,
.deity-card.active .deity-card-svg {
    filter: drop-shadow(0 2px 8px rgba(203, 161, 83, 0.6));
    transform: scale(1.08);
}




.deity-name {
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    margin-top: 0.2rem;
    letter-spacing: 0.02em;
}

/* Workspace Grid */

.puja-workspace {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Central Altar */
.altar-area {
    position: relative;
    background: radial-gradient(circle, #2d2424 0%, #150f0f 100%);
    border-radius: 8px;
    padding: 3rem;
    border: 2px solid var(--secondary-gold);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 480px;
    overflow: hidden;
}

.altar-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(203, 161, 83, 0.15) 0%, rgba(203, 161, 83, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* Deity Frame inside Altar */
.deity-frame {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.deity-display-img {
    width: 180px;
    height: 230px;
    border-radius: 4px;
    border: 4px solid var(--secondary-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    margin-bottom: 1.2rem;
    background-color: #222;
}

.deity-artwork {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

/* Altar Deity Styles */
.deity-artwork.swaroop { background-image: url('assets/portrait.jpg'); }
.deity-artwork.shiv {
    background-image: linear-gradient(135deg, #0f172a, #1e3a8a);
    position: relative;
}
.deity-artwork.shiv::after {
    content: 'ॐ नमः शिवाय';
    color: rgba(255,255,255,0.7);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.deity-artwork.parvati {
    background-image: linear-gradient(135deg, #450a0a, #7f1d1d);
    position: relative;
}
.deity-artwork.parvati::after {
    content: 'श्री पार्वती नमः';
    color: rgba(255,255,255,0.7);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.deity-artwork.hanuman {
    background-image: linear-gradient(135deg, #7c2d12, #c2410c);
    position: relative;
}
.deity-artwork.hanuman::after {
    content: 'जय हनुमान';
    color: rgba(255,255,255,0.7);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.deity-artwork.rama {
    background-image: linear-gradient(135deg, #064e3b, #15803d);
    position: relative;
}
.deity-artwork.rama::after {
    content: 'जय श्री राम';
    color: rgba(255,255,255,0.7);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.altar-title {
    color: #ffffff;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Animations Overlays on Altar */

/* Diya Flame Overlay */
.overlay-diya-flame {
    position: absolute;
    width: 24px;
    height: 32px;
    background: radial-gradient(circle at bottom, #ff9800 0%, #ff5722 50%, rgba(255,87,34,0) 100%);
    border-radius: 50% 50% 20% 20%;
    bottom: 50px;
    left: calc(50% - 12px);
    z-index: 5;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-smooth);
}

.overlay-diya-flame.active {
    opacity: 1;
    transform: scale(1);
    animation: flameFlicker 0.15s infinite alternate ease-in-out;
}

@keyframes flameFlicker {
    0% { transform: scale(1) rotate(-1deg); }
    100% { transform: scale(1.08) rotate(1deg) skewX(2deg); }
}

/* Incense Smoke Canvas */
.overlay-incense-smoke {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

/* Flower Shower Area */
.overlay-flower-shower {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
    overflow: hidden;
}

.falling-petal {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #fca5a5; /* soft rose petal color */
    border-radius: 50% 0 50% 50%;
    opacity: 0.8;
    animation: fallDown 3s linear forwards;
}

.falling-petal.gold {
    background-color: #fcd34d; /* marigold petal */
}

@keyframes fallDown {
    0% {
        transform: translateY(-20px) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    100% {
        transform: translateY(300px) rotate(360deg) translateX(30px);
        opacity: 0;
    }
}

/* Abhishek Stream */
.overlay-abhishek-stream {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
    box-shadow: 0 0 10px rgba(255,255,255,0.9);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
}

.overlay-abhishek-stream.pouring {
    animation: pourMilk 1.5s ease-in-out;
}

@keyframes pourMilk {
    0% {
        height: 0;
        opacity: 0;
    }
    20% {
        height: 200px;
        opacity: 1;
    }
    80% {
        height: 200px;
        opacity: 1;
    }
    100% {
        height: 200px;
        opacity: 0;
    }
}

/* Sankalp & Intention Overlay */
.altar-prompt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 26, 26, 0.95);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.altar-prompt.hide {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}

.prompt-content {
    max-width: 320px;
}

.prompt-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary-gold);
    display: block;
    margin-bottom: 0.8rem;
}

.prompt-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Blessings Final Overlay */
.blessing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(96, 20, 20, 0.92);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.blessing-overlay.hide {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.blessing-content {
    max-width: 320px;
    color: #ffffff;
}

.blessing-icon {
    color: var(--secondary-gold);
    margin-bottom: 1rem;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--secondary-gold)); }
    100% { transform: scale(1.1); filter: drop-shadow(0 0 10px var(--secondary-gold)); }
}

.blessing-content h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.blessing-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.blessing-mantra {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--secondary-gold);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

/* Side controls */
.puja-controls {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 2rem;
    border: 1px solid var(--border-gold);
}

.puja-controls h3 {
    font-size: 1.2rem;
    color: var(--primary-maroon);
    margin-bottom: 0.5rem;
}

.controls-guide {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.puja-elements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.puja-btn {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    background-color: var(--bg-cream);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 1rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.puja-btn:hover:not(:disabled) {
    border-color: var(--secondary-gold);
    background-color: #ffffff;
}

.puja-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.puja-btn.completed {
    border-color: var(--secondary-gold);
    background-color: rgba(203, 161, 83, 0.08);
}

.element-icon {
    color: var(--secondary-gold);
    flex-shrink: 0;
}

.element-label {
    font-size: 0.9rem;
    font-weight: 500;
    flex-grow: 1;
    color: var(--text-dark);
}

.element-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.puja-btn.completed .element-status {
    color: var(--primary-maroon);
}

/* Progress Tracker */
.puja-progress-bar-container {
    margin-top: 2rem;
}

.progress-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.puja-progress-track {
    width: 100%;
    height: 4px;
    background-color: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.puja-progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--secondary-gold);
    transition: width 0.4s ease;
}

.puja-notes {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-light);
}

.note-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 6. Events & Retreats */
.section-events {
    background-color: var(--bg-cream);
}

/* Filters */
.filters-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    padding: 0.6rem 1.4rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-dark);
}

.filter-btn:hover {
    border-color: var(--secondary-gold);
}

.filter-btn.active {
    background-color: var(--primary-maroon);
    border-color: var(--primary-maroon);
    color: #ffffff;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.event-card {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-gold);
    box-shadow: 0 15px 35px rgba(96, 20, 20, 0.08);
}

.event-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.8rem;
    background-color: var(--bg-cream);
    color: var(--primary-maroon);
    font-weight: 600;
    border-bottom-right-radius: 4px;
    border-right: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
}

.event-content {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-date {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-day {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-maroon);
    line-height: 1;
}

.event-month {
    font-size: 0.85rem;
    color: var(--secondary-gold);
    text-transform: uppercase;
    font-weight: 600;
}

.event-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.event-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 1.2rem;
    margin-top: auto;
}

.event-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* 7. Photo & Bhajan Gallery */
.section-gallery {
    background-color: #ffffff;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.gallery-tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.gallery-tab-btn:hover, .gallery-tab-btn.active {
    color: var(--primary-maroon);
    border-bottom-color: var(--primary-maroon);
}

.gallery-content-pane {
    display: none;
}

.gallery-content-pane.active {
    display: block;
}

/* Masonry grid for photos */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.gallery-item-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(96, 20, 20, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-item-hover span {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

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

.gallery-item:hover .gallery-item-hover {
    opacity: 1;
}

.gallery-item:hover .gallery-item-hover span {
    transform: translateY(0);
}

/* Bhajan Gallery List */
.bhajans-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bhajan-card {
    background-color: var(--bg-cream);
    border-radius: 6px;
    border: 1px solid var(--border-light);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition-fast);
}

.bhajan-card:hover {
    border-color: var(--secondary-gold);
    background-color: #ffffff;
}

.bhajan-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-maroon);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.bhajan-play-btn:hover {
    background-color: var(--secondary-gold);
    transform: scale(1.08);
}

.bhajan-info {
    flex-grow: 1;
}

.bhajan-info h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.bhajan-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bhajan-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Custom Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 26, 26, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border: 3px solid var(--secondary-gold);
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: block;
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
    padding: 0 2rem;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--secondary-gold);
}

/* 8. Visit & Contact Section */
.section-contact {
    background-color: var(--bg-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.travel-info h3, .contact-form-container h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.travel-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.address-block {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-svg-icon {
    color: var(--secondary-gold);
    flex-shrink: 0;
    margin-top: 3px;
}

.address-block p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.how-to-reach-title {
    font-size: 1.15rem;
    margin: 2.5rem 0 1rem 0;
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 0.4rem;
}

.route-directions {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.route-item h5 {
    font-size: 0.9rem;
    color: var(--primary-maroon);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.route-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Custom styled Map Mock */
.map-container {
    width: 100%;
    height: 220px;
    border-radius: 6px;
    border: 1px solid var(--border-gold);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.custom-map-mock {
    width: 100%;
    height: 100%;
    background-color: #eae3d8;
    background-image: radial-gradient(#d3c9b7 10%, transparent 11%), radial-gradient(#d3c9b7 10%, transparent 11%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.map-pin {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-maroon);
    border: 3px solid #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    position: relative;
    animation: bouncePin 1.5s infinite alternate ease-in-out;
}

@keyframes bouncePin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.map-pin:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--primary-maroon);
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
}

.map-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    color: var(--primary-maroon);
}

.map-coord {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Contact Form Container */
.contact-form-container {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 3rem;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-soft);
}

.form-instructions {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.8rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    background-color: var(--bg-cream);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-gold);
    background-color: #ffffff;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input {
    margin-top: 4px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.5;
    font-weight: 400;
    cursor: pointer;
}

.inline-gold-link {
    color: var(--secondary-gold);
    text-decoration: none;
    font-weight: 500;
}

.inline-gold-link:hover {
    text-decoration: underline;
}

.form-group.checkbox-group label a {
    display: inline-block;
    margin-top: 3px;
}

.form-response-msg {
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 0.8rem;
    border-radius: 4px;
    display: none;
}

.form-response-msg.success {
    display: block;
    background-color: rgba(21, 128, 61, 0.1);
    color: #15803d;
    border: 1px solid rgba(21, 128, 61, 0.2);
}

.form-response-msg.error {
    display: block;
    background-color: rgba(185, 28, 28, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.2);
}

/* Rules Modal */
.rules-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 26, 26, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rules-modal.active {
    display: flex;
    opacity: 1;
}

.rules-modal-content {
    background-color: #ffffff;
    max-width: 500px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    padding: 2.5rem;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.rules-modal.active .rules-modal-content {
    transform: scale(1);
}

.rules-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
}

.rules-modal-close:hover {
    color: var(--primary-maroon);
}

.rules-body {
    margin-top: 1.5rem;
}

.rules-body p {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.rules-body ul {
    list-style: none;
    margin-bottom: 1.8rem;
}

.rules-body li {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.rules-body li:before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--secondary-gold);
}

.rules-body li strong {
    color: var(--text-dark);
}

.rules-body .btn {
    width: 100%;
    margin-top: 1rem;
}

/* 9. Donate / Support */
.section-donate {
    background-color: #ffffff;
}

.donate-box {
    background-color: var(--primary-maroon);
    border-radius: 8px;
    padding: 5rem 4rem;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--secondary-gold);
}

.donate-decor {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.donate-title {
    color: #ffffff;
    font-size: 2.2rem;
    margin-top: 0.5rem;
}

.donate-desc {
    max-width: 700px;
    margin: 1.5rem auto 3rem auto;
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.6;
}

.donate-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.donate-option-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.donate-option-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--secondary-gold);
    margin-bottom: 0.8rem;
}

.donate-option-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.5;
}

.donate-option-card .btn {
    align-self: flex-start;
}

/* 10. Footer */
.footer {
    background-color: #1f1a1a;
    color: rgba(255, 255, 255, 0.6);
    padding: 5rem 0 2rem 0;
    border-top: 2px solid var(--secondary-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--secondary-gold);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.footer-copyright {
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-links h4, .footer-social h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: var(--transition-fast);
    align-self: flex-start;
}

.footer-links a:hover {
    color: var(--secondary-gold);
}

.footer-social p {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

.social-icons a:hover {
    color: var(--secondary-gold);
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
}

/* Reveal Transitions (Scroll reveal setup) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animations Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section {
        padding: 6rem 0;
    }

    .maharaj-grid, .teachings-container, .puja-workspace, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .maharaj-image-container {
        margin: 0 auto;
    }

    .teachings-wisdom-card {
        height: 350px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Mobile Header/Menu */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 66px;
        left: 0;
        width: 100%;
        height: calc(100vh - 66px);
        background-color: var(--bg-cream);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        gap: 2rem;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        border-top: 1px solid var(--border-gold);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Animate mobile menu icon toggle */
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Timeline — tablet */
    .timeline {
        padding-left: 7rem;   /* same as desktop; year always visible */
        margin-left: 0;
    }

    .timeline:before {
        left: 5.6rem;
    }

    .timeline-dot {
        left: -1.55rem;
    }

    .puja-app {
        padding: 1.5rem;
    }

    .altar-area {
        height: 380px;
        padding: 1.5rem;
    }

    .deity-frame {
        width: 220px;
    }

    .deity-display-img {
        width: 140px;
        height: 180px;
    }

    .overlay-diya-flame {
        bottom: 25px;
    }

    .donate-box {
        padding: 3rem 1.5rem;
    }

    .donate-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-welcome {
        font-size: 0.9rem;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
    }

    /* Timeline — mobile: year moves above content, no absolute positioning */
    .timeline {
        padding-left: 2rem;   /* only dot gutter needed */
        margin-left: 0;
    }

    .timeline:before {
        left: 0.6rem;         /* re-aligns line to new dot position */
    }

    .timeline-year {
        position: relative;   /* flows in normal document order */
        left: auto;
        display: block;
        width: auto;
        text-align: left;
        margin-bottom: 0.25rem;
        font-size: 1rem;
        white-space: nowrap;
    }

    .timeline-dot {
        left: -1.6rem;
        top: 28px;            /* sits next to the title line */
    }

    .timeline-content {
        margin-top: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ==========================================================================
   Guru Medallion — Single-Deity Puja Card
   ========================================================================== */
.deity-selector-wrapper.deity-single {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0 3rem;
}

.deity-single-card {
    text-align: center;
    animation: fadeInUp 0.8s ease forwards;
}

.guru-medallion {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.4rem;
}

.guru-photo-ring {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    margin: 20px auto 0;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #cba153 0%, #8b4513 50%, #cba153 100%);
    box-shadow: 0 0 30px rgba(203,161,83,0.5), 0 0 60px rgba(203,161,83,0.15);
    animation: pulsateGold 3s ease-in-out infinite;
}

@keyframes pulsateGold {
    0%, 100% { box-shadow: 0 0 20px rgba(203,161,83,0.4), 0 0 50px rgba(203,161,83,0.1); }
    50%       { box-shadow: 0 0 40px rgba(203,161,83,0.7), 0 0 80px rgba(203,161,83,0.25); }
}

.guru-halo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(203,161,83,0.15) 40%, transparent 70%);
    animation: haloBreath 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes haloBreath {
    0%, 100% { transform: scale(1);   opacity: 0.5; }
    50%       { transform: scale(1.2); opacity: 1;   }
}

.guru-om-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 44px;
    height: 44px;
    z-index: 3;
    filter: drop-shadow(0 2px 6px rgba(139,69,19,0.6));
}

.guru-card-name {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--primary-maroon);
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
}

.guru-card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.guru-card-mantra {
    font-size: 1rem;
    color: var(--secondary-gold);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

/* ==========================================================================
   Sadhana Section
   ========================================================================== */
.section-sadhana {
    background: linear-gradient(180deg, var(--bg-cream) 0%, #f0e8d8 100%);
}

/* Tab Navigation */
.sadhana-tabs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2.5rem 0 2rem;
}

.sadhana-tab {
    padding: 0.6rem 1.4rem;
    border: 1.5px solid rgba(203,161,83,0.4);
    border-radius: 30px;
    background: transparent;
    color: var(--text-body);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.03em;
}

.sadhana-tab:hover {
    border-color: var(--secondary-gold);
    color: var(--primary-maroon);
}

.sadhana-tab.active {
    background: var(--primary-maroon);
    border-color: var(--primary-maroon);
    color: #fff;
    box-shadow: 0 4px 14px rgba(96,20,20,0.25);
}

/* Content Panels */
.sadhana-panel {
    display: none;
    animation: fadeInUp 0.5s ease forwards;
}

.sadhana-panel.active {
    display: block;
}

/* Video Card Grid */
.sadhana-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.sadhana-video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(203,161,83,0.15);
    transition: var(--transition-smooth);
}

.sadhana-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(96,20,20,0.12);
    border-color: rgba(203,161,83,0.4);
}

/* Thumbnail area — for real iframes */
.sadhana-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #1a0f0f;
    overflow: hidden;
}

.sadhana-thumb iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* SVG placeholder thumbnail */
.sadhana-thumb-placeholder {
    padding-bottom: 0;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sadhana-thumb-placeholder svg {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.sadhana-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.sadhana-video-card:hover .sadhana-play-overlay { opacity: 1; }

/* Card Info */
.sadhana-info {
    padding: 1.2rem 1.4rem 1.4rem;
}

.sadhana-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary-gold);
    background: rgba(203,161,83,0.1);
    border: 1px solid rgba(203,161,83,0.3);
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    margin-bottom: 0.6rem;
}

.sadhana-info h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--primary-maroon);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.sadhana-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.9rem;
}

.sadhana-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-maroon);
    text-decoration: none;
    transition: gap 0.2s, color 0.2s;
}

.sadhana-link:hover {
    gap: 0.7rem;
    color: var(--secondary-gold);
}

/* YouTube Channel CTA banner */
.sadhana-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #1a0f0f 0%, #2d1212 100%);
    border: 1px solid rgba(203,161,83,0.25);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.sadhana-cta svg { flex-shrink: 0; }

.sadhana-cta div { flex: 1; min-width: 200px; }

.sadhana-cta h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--secondary-gold);
    margin-bottom: 0.3rem;
}

.sadhana-cta p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .sadhana-grid { grid-template-columns: 1fr; }
    .sadhana-cta  { flex-direction: column; text-align: center; padding: 1.5rem; }
    .guru-medallion { width: 130px; height: 130px; }
}

/* ── Thumbnail-link card (replaces iframes, avoids Error 153) ── */
.sadhana-thumb-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f0707;
    cursor: pointer;
    text-decoration: none;
}

.sadhana-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.85);
}

.sadhana-thumb-link:hover img {
    transform: scale(1.04);
    filter: brightness(0.7);
}

/* YouTube-style play button */
.sadhana-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sadhana-play-btn svg {
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6));
    transform: scale(1);
    transition: transform 0.25s ease;
}

.sadhana-thumb-link:hover .sadhana-play-btn svg {
    transform: scale(1.15);
}


