:root {
    --bg-dark: #0a0a12;
    --bg-panel: #14141d;
    --gold: #FFD700;
    --gold-dim: #b89a00;
    --text-white: #e0e0e0;
    --glass: rgba(255, 255, 255, 0.05);

    --font-head: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    margin: 0;
    font-family: var(--font-body);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* 1. INTRO SEQUENCE */
/* =========================================
   1. INTRO SEQUENCE (TEXT VERSION)
   ========================================= */

#intro-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    /* Pure Black */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out;
    /* Smooth fade out for the whole screen */
}

.intro-content {
    text-align: center;
    padding: 20px;
}

.intro-text {
    font-family: var(--font-head);
    color: var(--gold);
    opacity: 0;
    /* Hidden initially */
    transform: translateY(30px);
    /* Pushed down slightly */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* First Line: Guru's Name */
.line-1 {
    font-size: 2.2rem;
    /* Increased from 1.5rem */
    letter-spacing: 2px;
    color: #e0e0e0;
    /* Bright Silver/White */
    margin-bottom: 20px;
    font-weight: 600;
    /* Made slightly bolder */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    /* Soft glow */
}

/* Second Line: Dham Name */
/* 3D GOLD TEXT STYLE */
.line-2 {
    font-size: 5rem;
    /* Large size for Hindi */
    color: var(--gold);
    margin: 0;
    line-height: 1.2;
    font-family: 'Yatra One', cursive;

    /* 3D Gold Effect */
    text-shadow:
        0 1px 0 #c6a300,
        0 2px 0 #b08d00,
        0 3px 0 #967700,
        0 4px 0 #7a6000,
        0 5px 0 #5e4a00,
        0 10px 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(255, 215, 0, 0.5);

    /* Animation Setup */
    transform: perspective(500px) rotateX(10deg) translateY(30px);
    opacity: 0;
    transition: opacity 1s ease-out, transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* When the text appears */
.intro-text.visible {
    opacity: 1;
    /* Moves to final position: Flat, upright, and scaled slightly */
    transform: perspective(500px) rotateX(0deg) translateY(0) scale(1.05);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .line-1 {
        font-size: 1.4rem;
    }

    .line-2 {
        font-size: 3rem;
    }
}

/* 2. MAIN NAV */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 100;
}

.logo {
    font-family: var(--font-head);
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.menu-btn {
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    transition: 0.3s;
}

.menu-btn:hover {
    color: var(--gold);
}

/* 3. HERO SECTION */
.hero-section {
    min-height: 100vh;
    height: auto;
    /* Allows scrolling if text is too big */

    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;

    /* Add padding so text doesn't touch the edges */
    padding-top: 120px;
    padding-bottom: 50px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 10, 18, 0.4), #0a0a12), url('https://source.unsplash.com/1600x900/?himalayas,sunset') no-repeat center/cover;
    z-index: -1;
}

.hero-text h1 {
    font-family: var(--font-head);
    font-size: 4rem;
    background: linear-gradient(to bottom, #fff, #b89a00);
    -webkit-background-clip: text;
    color: transparent;
    margin: 10px 0;
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}

/* 4. PANELS (Alternating Layouts) */
.panel {
    min-height: 90vh;
    padding: 100px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dark-panel {
    background: var(--bg-dark);
}

.light-panel {
    background: #F5F5F0;
    color: #1a1a1a;
}

/* Devi Ji in Light for contrast */

.panel-content {
    display: flex;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
}

.reverse {
    flex-direction: row-reverse;
}

.portrait-frame {
    width: 350px;
    height: 500px;
    border: 2px solid var(--gold);
    padding: 10px;
    position: relative;
}

.portrait-frame img,
.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%);
}

.text-area {
    flex: 1;
}

.text-area h2 {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.text-area h3 {
    font-family: var(--font-head);
    font-size: 3rem;
    margin: 10px 0;
}

.bio-text {
    font-size: 1.4rem;
    line-height: 1.6;
}

.teachings-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.teachings-list li {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 5. BUTTONS */
.gold-btn {
    background: transparent;
    border: 1px solid var(--gold);
    /* Made border brighter gold */
    color: var(--gold);
    /* <--- FIXED: Text is now Gold */
    padding: 15px 40px;
    font-family: var(--font-head);
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
    text-decoration: none;
    /* Ensures no underline on links */
    display: inline-block;
    /* Keeps shape correct */
}

/* Hover State */
.gold-btn:hover {
    background: var(--gold);
    color: #000;
    /* Text turns black on hover for readability */
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    /* Adds a glow */
}

/* 6. SHIVIR & GLASS CARDS */
.image-panel {
    background: url('https://source.unsplash.com/1600x900/?meditation,india') fixed center/cover;
}

.glass-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    padding: 50px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-align: center;
    max-width: 600px;
}

/* 7. FOOTER */
.site-footer {
    padding: 50px;
    background: #050508;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
}

.fund-bar {
    width: 100%;
    height: 10px;
    background: #333;
    margin-top: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gold);
    font-size: 0.7rem;
    color: black;
    display: flex;
    align-items: center;
    padding-left: 5px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .panel-content {
        flex-direction: column;
        text-align: center;
    }

    .portrait-frame {
        width: 280px;
        height: 400px;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* --- MENU OVERLAY STYLES --- */

#menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 18, 0.98);
    /* Deep dark background */
    backdrop-filter: blur(15px);
    /* Glass blur */
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Hidden state: Pushed to the right */
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    /* Cinematic ease */
}

/* Active State (Added via JS) */
#menu-overlay.active {
    transform: translateX(0);
}

/* Close Button */
.close-menu {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    color: var(--text-white);
    cursor: pointer;
    transition: 0.3s;
}

.close-menu:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

/* Menu Layout */
.menu-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    width: 80%;
    margin: 0 auto;
}

/* Left side decoration (Desktop only) */
.menu-left {
    text-align: right;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 50px;
}

.decorative-om {
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.2;
    display: block;
}

.menu-quote {
    font-family: var(--font-body);
    font-style: italic;
    color: #888;
}

/* The Links */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-bottom: 30px;
    overflow: hidden;
}

/* Overflow hidden for text reveal animation */

.nav-item {
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: var(--text-white);
    display: block;
    transition: 0.3s;
    position: relative;
}

.sub-text {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #666;
    letter-spacing: 2px;
    margin-top: -5px;
    transition: 0.3s;
}

/* Hover Effects */
.nav-item:hover {
    color: var(--gold);
    transform: translateX(20px);
}

.nav-item:hover .sub-text {
    color: var(--gold-dim);
}

.donate-link {
    color: var(--gold);
}

/* Menu Footer */
.menu-footer {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.menu-footer a {
    color: #666;
    text-decoration: none;
    margin: 0 15px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: 0.3s;
}

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

/* Mobile Adjustment */
@media (max-width: 768px) {
    .menu-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .menu-left {
        display: none;
    }

    /* Hide decoration on mobile */
    .nav-item {
        font-size: 2rem;
    }

    .close-menu {
        top: 20px;
        right: 20px;
    }
}

/* DONATION SECTION STYLES */
.column-layout {
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.donate-header h2 {
    font-size: 3rem;
    color: var(--gold);
    font-family: var(--font-head);
    margin-bottom: 10px;
}

.donation-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.donate-card {
    background: rgba(255, 255, 255, 0.03);
    /* Subtle glass */
    border: 1px solid rgba(255, 215, 0, 0.2);
    /* Gold border */
    padding: 40px;
    border-radius: 15px;
    width: 300px;
    transition: 0.3s;
    text-align: center;
}

.donate-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.qr-placeholder img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    margin: 15px 0;
    border: 5px solid white;
}

.bank-details p {
    margin: 10px 0;
    font-size: 0.95rem;
    color: #ccc;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.bank-details strong {
    color: var(--gold);
}

.copy-btn {
    margin-top: 20px;
    background: transparent;
    border: 1px solid var(--text-white);
    color: var(--text-white);
    padding: 8px 20px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: 0.3s;
}

.copy-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: black;
}

/* --- DIVINE GALLERY STYLES --- */

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.gallery-header h2 {
    font-family: var(--font-head);
    color: var(--gold);
    font-size: 3rem;
    margin-bottom: 10px;
}

.gallery-header p {
    color: #aaa;
    margin-bottom: 50px;
}

/* Masonry Layout Logic */
.masonry-grid {
    column-count: 3;
    /* 3 Columns on desktop */
    column-gap: 20px;
}

.gallery-item {
    position: relative;
    margin-bottom: 20px;
    break-inside: avoid;
    /* Prevents image from being cut in half */
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover Effect: Zoom & Darken */
.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    opacity: 0;
    transition: 0.3s;
}

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

.overlay span {
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 1.2rem;
}

/* Lightbox (Full Screen View) */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--gold);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.2);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#caption {
    margin-top: 20px;
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
        /* 1 Column on mobile */
    }
}

/* --- IMPACT CARDS (TRUST SECTION) --- */

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive Grid */
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

.impact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    /* Keeps image inside rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--gold-dim);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zoom image slightly on hover */
.impact-card:hover .card-image img {
    transform: scale(1.1);
}

.card-text {
    padding: 25px;
    text-align: left;
}

.card-text h3 {
    font-family: var(--font-head);
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card-text p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
}

/* --- DARSHAN MODAL STYLES --- */

.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Dark background */
    z-index: 3000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    border: 1px solid var(--gold);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.15);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: var(--gold);
    font-family: var(--font-head);
}

.modal-header p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Form Styles */
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    color: var(--gold);
    font-size: 0.8rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: var(--font-body);
    border-radius: 5px;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--gold);
    outline: none;
}

.form-row {
    display: flex;
    gap: 15px;
}

/* Mobile Adjust */
@media (max-width: 480px) {
    .modal-content {
        padding: 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* --- GRAND LEGACY SECTION --- */

.legacy-section {
    background: var(--bg-dark);
    /* Keeps the dark theme */
    padding: 100px 5%;
    position: relative;
    overflow: hidden;
}

/* 1. Header & Portrait */
.guru-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px auto;
}

.guru-portrait-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
}

.guru-portrait {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    position: relative;
    z-index: 2;
}

/* Glowing Halo Effect behind head */
.halo {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    animation: pulseHalo 3s infinite ease-in-out;
    z-index: 1;
}

@keyframes pulseHalo {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.guru-title {
    font-family: var(--font-head);
    font-size: 3.5rem;
    /* BIGGER */
    color: var(--gold);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.guru-subtitle {
    font-size: 1.2rem;
    color: var(--gold-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.guru-bio {
    font-size: 1.3rem;
    /* BIGGER text */
    line-height: 1.8;
    color: #ddd;
}


/* 2. Vertical Timeline */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* The Gold Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    /* Default: Right side */
    padding-bottom: 50px;
    position: relative;
    width: 50%;
}

.timeline-item.left {
    align-self: flex-start;
    justify-content: flex-end;
    text-align: right;
    left: 0;
}

.timeline-item.right {
    align-self: flex-end;
    justify-content: flex-start;
    text-align: left;
    left: 50%;
}

/* The Card Styling */
.timeline-content {
    width: 90%;
    padding: 30px;
    /* Glass Effect inherited from earlier, but adjusted */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    position: relative;
    transition: transform 0.3s;
}

.timeline-content:hover {
    background: rgba(255, 215, 0, 0.05);
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin: 10px 0;
}

.year {
    display: inline-block;
    background: var(--gold);
    color: black;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-family: var(--font-body);
}

/* Dots on the line */
.timeline-dot {
    position: absolute;

    /* CHANGED: Move to vertical center */
    top: 50%;
    transform: translateY(-50%);

    width: 15px;
    height: 15px;
    background: var(--bg-dark);
    border: 2px solid var(--gold);
    border-radius: 50%;
    z-index: 2;
}

.left .timeline-dot {
    right: -58px;
}

/* Adjust based on padding */
.right .timeline-dot {
    left: -8px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0;
        padding-left: 50px;
        text-align: left;
    }

    .timeline-item.left {
        text-align: left;
        justify-content: flex-start;
    }

    .left .timeline-dot,
    .right .timeline-dot {
        left: 13px;
        right: auto;
    }

    .timeline-content {
        width: 100%;
    }

    .guru-title {
        font-size: 2.5rem;
    }
}


/* Fix for the last item in timeline */
.timeline-item.center-end {
    width: 100%;
    left: 0;
    justify-content: center;
    /* Centers the card */
    text-align: center;
    padding-bottom: 0;
}

.center-end .timeline-dot {
    top: -20px;
    /* Keep the last one above the card */
    transform: translateX(-50%);
    /* Only center horizontally */
}

.center-end .timeline-content {
    width: 60%;
    /* Wider card for the finale */
    margin: 20px auto 0;
    /* Center it */
}

/* --- AMENITIES & AREA STYLES --- */

.centered-panel {
    text-align: center;
    background: #0d0d16;
    /* Slightly lighter than pure black for contrast */
}

.section-title {
    font-family: var(--font-head);
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.section-subtitle {
    color: #aaa;
    margin-bottom: 60px;
}

/* 1. Stats Row (Big Numbers) */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 80px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    padding-bottom: 60px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-head);
    font-size: 4rem;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.stat-label {
    margin-top: 10px;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

/* 2. Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.amenity-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 25px;
    border-radius: 15px;
    transition: 0.3s;
    text-align: center;
    /* opacity: 50%; */
}

.amenity-card:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.amenity-card h3 {
    font-family: var(--font-head);
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.amenity-card p {
    color: rgba(255, 255, 255, 0.687);
    font-size: 0.95rem;
    line-height: 1.6;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--gold);
}





/* Mobile Responsive */
@media (max-width: 900px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-row {
        gap: 30px;
    }

    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-direction: column;
        gap: 40px;
    }
}

/* --- GRAND FOOTER STYLES --- */

#site-footer {
    background: #050508;
    /* Darkest shade */
    color: #ccc;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    font-size: 0.95rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    /* Brand col is wider */
    gap: 50px;
    padding: 0 5% 60px;
}

.footer-logo {
    font-family: var(--font-head);
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-family: var(--font-head);
    letter-spacing: 1px;
}

/* Links List */
.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

/* Contact Icons */
.footer-col p i {
    color: var(--gold);
    margin-right: 10px;
    width: 20px;
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Social Buttons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--gold);
    color: black;
    border-color: var(--gold);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    flex: 1;
    outline: none;
}

.newsletter-form button {
    background: var(--gold);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    transform: scale(1.1);
}

/* Bottom Bar */
.footer-bottom {
    background: #000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .social-icons {
        justify-content: center;
    }
}

/* =========================================
   RESPONSIVE MEDIA QUERIES (ADD AT BOTTOM)
   ========================================= */

/* --- TABLETS (iPads, Small Laptops: 769px to 1024px) --- */
@media (max-width: 1024px) {

    /* Shrink the huge Hero text slightly */
    .hero-text h1 {
        font-size: 3rem;
    }

    /* Gallery becomes 2 columns instead of 3 */
    .masonry-grid {
        column-count: 2;
    }

    /* Amenities becomes 2 columns */
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Timeline: Keep alternating but squeeze padding */
    .timeline-container {
        max-width: 90%;
    }
}


/* --- MOBILES (iPhones, Androids: Max 768px) --- */
@media (max-width: 768px) {

    /* 1. GENERAL & TEXT */
    .section-title,
    .guru-title,
    .trust-header h2,
    .gallery-header h2 {
        font-size: 2rem !important;
        /* Force smaller headers */
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    /* 2. NAVIGATION OVERLAY */
    .menu-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .menu-left {
        display: none;
    }

    /* Hide the decorative OM */
    .nav-item {
        font-size: 1.8rem;
    }

    /* Smaller links */
    .close-menu {
        top: 20px;
        right: 20px;
    }

    /* 3. TIMELINE (The Complex Part) - Force Single Column */
    .timeline-line {
        left: 20px;
        /* Move line to far left */
        transform: translateX(0);
    }

    .timeline-item {
        width: 100%;
        /* Full width */
        padding-left: 50px;
        /* Space for the line */
        padding-bottom: 40px;
        text-align: left !important;
        justify-content: flex-start !important;
        left: 0 !important;
    }

    /* Reset both Left and Right items to behave the same */
    .timeline-item.left,
    .timeline-item.right {
        align-self: flex-start;
        text-align: left;
    }

    /* Move all dots to the left line */
    .timeline-dot {
        left: 13px !important;
        /* Align with the new line position */
        right: auto !important;
    }

    /* Fix the "Center-End" (Last item) */
    .timeline-item.center-end {
        padding-left: 0;
        text-align: center !important;
    }

    .center-end .timeline-dot {
        left: 50% !important;
        /* Keep center dot centered */
    }

    .center-end .timeline-content {
        width: 90%;
        /* Wider card on mobile */
    }

    /* 4. AMENITIES & STATS */
    .amenities-grid {
        grid-template-columns: 1fr;
    }

    /* Stack cards */

    .stats-row {
        flex-direction: column;
        gap: 40px;
        padding-bottom: 40px;
        margin-bottom: 40px;
    }

    .stat-number {
        font-size: 3rem;
    }

    /* 5. GALLERY */
    .masonry-grid {
        column-count: 1;
    }

    /* Single column photos */

    /* 6. 3D VIEWER */
    spline-viewer {
        height: 50vh;
    }

    /* Don't take full screen height on mobile */

    /* 7. FOOTER */
    .footer-content {
        grid-template-columns: 1fr;
        /* Stack everything */
        text-align: center;
        gap: 40px;
    }

    .newsletter-form {
        margin: 0 auto;
        max-width: 100%;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* 8. MODALS (Darshan Form) */
    .modal-content {
        width: 95%;
        padding: 25px 15px;
        max-height: 90vh;
        overflow-y: auto;
        /* Allow scrolling if keyboard pops up */
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* 9. INTRO ANIMATION */
    .map-container {
        transform: scale(0.8);
    }

    /* Shrink map slightly */
}

/* --- SMALL MOBILES (Old iPhones: Max 380px) --- */
@media (max-width: 380px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .guru-portrait-container {
        width: 200px;
        height: 200px;
    }
}

/* A Glowing Gold Spinner */
.spiritual-loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    top: 40%;
    /* Position above map */
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- MAP TEASER STYLES --- */
.teaser-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.teaser-text {
    flex: 1;
}

.teaser-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.static-map-preview {
    width: 300px;
    /* Turns the black map into Gold */
    filter: invert(1) sepia(1) saturate(1000%) hue-rotate(0deg) brightness(0.8) contrast(1.2);
    opacity: 0.8;
    animation: floatMap 4s ease-in-out infinite;
}

@keyframes floatMap {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Mobile Fix */
@media (max-width: 768px) {
    .teaser-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .static-map-preview {
        width: 200px;
        margin-bottom: 20px;
    }
}

/* --- PREMIUM SHIVIR SECTION --- */

.shivir-section {
    background: linear-gradient(to bottom, #0a0a12, #111);
    padding: 80px 5%;
}

.shivir-container {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.3);
    /* Gold Border */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* LEFT SIDE: IMAGE */
.shivir-image {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.shivir-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%) brightness(0.8);
    transition: 0.5s;
}

.shivir-container:hover .shivir-image img {
    transform: scale(1.05);
}

.badge-status {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gold);
    color: black;
    padding: 5px 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    z-index: 2;
}

/* RIGHT SIDE: DETAILS */
.shivir-details {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shivir-subtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.shivir-title {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: white;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.gold-divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin-bottom: 30px;
}

.shivir-info-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--gold);
}

.info-item strong {
    display: block;
    color: white;
    font-size: 1.1rem;
}

.info-item span {
    color: #888;
    font-size: 0.9rem;
}

.shivir-desc {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* FORM STYLES */
.shivir-form .input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.shivir-form input {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 5px;
    font-family: var(--font-body);
}

.shivir-form input:focus {
    border-color: var(--gold);
    outline: none;
}

.limited-seats {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #ff6b6b;
    /* Red warning color */
    display: flex;
    align-items: center;
    gap: 8px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
    .shivir-container {
        flex-direction: column;
    }

    .shivir-image {
        height: 250px;
        flex: none;
    }

    .shivir-details {
        padding: 30px;
    }

    .shivir-info-grid {
        flex-direction: column;
        gap: 20px;
    }

    .shivir-form .input-row {
        flex-direction: column;
    }
}

/* --- SHIVIR PAYMENT STYLES --- */

.shivir-select {
    flex: 1;
    padding: 15px;
    background: #1a1a2e;
    /* Distinct dark blue background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 5px;
    font-family: var(--font-body);
    cursor: pointer;
}

.shivir-select option {
    background: #0a0a12;
    color: white;
}

.payment-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 215, 0, 0.1);
    /* Gold tint */
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px dashed var(--gold);
}

.payment-summary span {
    color: #ccc;
    font-size: 1rem;
}

.amount-highlight {
    color: var(--gold) !important;
    font-family: var(--font-head);
    font-size: 1.5rem !important;
    font-weight: bold;
}

/* Add this to style.css */

.big-btn {
    font-size: 1.2rem;
    /* Larger text */
    padding: 18px 50px;
    /* Bigger clickable area */
    border-width: 2px;
    /* Thicker gold border */
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    /* Space between icon and text */
    text-decoration: none;
    /* Removes underline from link */
    margin-top: 30px;
}

.big-btn i {
    font-size: 1.4rem;
    /* Bigger Cube Icon */
}

.big-btn:hover {
    background: var(--gold);
    color: black;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    /* Glowing effect */
    transform: scale(1.05);
    /* Slight zoom */
}

/* --- DONATION FORM STYLES --- */
.amount-presets {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.preset-btn:hover {
    background: var(--gold);
    color: black;
}

/* --- RANDOM GRACE TEXT STYLE --- */
#daily-grace {
    font-family: var(--font-head);
    color: var(--gold);

    /* Responsive Font Size: uses viewport width so it shrinks on laptops */
    font-size: clamp(1.5rem, 4vw, 2.5rem);

    min-height: 1.2em;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    margin-bottom: 10px;
    transition: 0.5s;

    /* Ensure it wraps nicely */
    white-space: normal;
    word-wrap: break-word;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    #daily-grace {
        font-size: 1.8rem;
    }
}

/* --- CAROUSEL STYLES --- */

.carousel-container {
    position: relative;
    max-width: 900px;
    /* Adjust size as needed */
    height: 500px;
    /* Fixed height for consistency */
    margin: 40px auto;
    overflow: hidden;
    /* Hides the other images */
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    /* Gold border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth Slide */
}

.carousel-slide {
    min-width: 100%;
    /* Each slide takes full width */
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

/* Caption Overlay */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px;
    text-align: left;
}

.slide-caption h3 {
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 1.8rem;
    margin: 0;
}

.slide-caption p {
    color: #ddd;
    margin-top: 5px;
}

/* Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--gold);
    border: 1px solid var(--gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.carousel-btn:hover {
    background: var(--gold);
    color: black;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }

    .slide-caption h3 {
        font-size: 1.4rem;
    }
}

/* --- TIMELINE PHOTOS --- */

/* --- OPPOSITE SIDE IMAGES --- */

.timeline-item {
    position: relative;
    overflow: visible;
    /* Important: Allows image to sit outside the box */
}

.timeline-opposite-img {
    position: absolute;
    top: 10px;
    /* Align with top of text card */
    width: 280px;
    /* Fixed width */
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--gold);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.timeline-opposite-img:hover {
    transform: scale(1.05);
    border-color: #fff;
}

/* LOGIC: Push image to the empty side */

/* If Text is LEFT -> Image goes RIGHT */
.left .timeline-opposite-img {
    left: 120%;
    /* 100% is the center line. 120% moves it into the right space */
}

/* If Text is RIGHT -> Image goes LEFT */
.right .timeline-opposite-img {
    right: 120%;
    /* Moves it into the left space */
}


/* --- MOBILE FIX (Stack them) --- */
@media (max-width: 900px) {
    .timeline-opposite-img {
        position: static;
        /* No longer absolute */
        width: 100%;
        /* Full width of the card */
        height: 200px;
        margin-bottom: 20px;
        display: block;
        /* Reset Left/Right pushes */
        left: auto;
        right: auto;
    }
}

/* Hover Effect: Photo brightens up */
.timeline-content:hover .timeline-img {
    filter: sepia(0%) brightness(1.1);
    transform: scale(1.02);
}

/* =========================================
   MOBILE TIMELINE FIX (RESPONSIVE)
   ========================================= */
@media (max-width: 768px) {

    /* 1. Reset Timeline Container */
    .timeline-container {
        padding-left: 0;
        padding-right: 0;
    }

    /* 2. Move the Vertical Line to the Left Edge */
    .timeline-line {
        left: 30px !important;
        /* Line sits near left edge */
        transform: none !important;
    }

    /* 3. Reset Items to Full Width */
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 70px !important;
        /* Make space for the line/dot */
        padding-right: 20px !important;
        margin-bottom: 50px;

        /* Stack content vertically */
        flex-direction: column;
        align-items: flex-start;
    }

    /* 4. Fix the Dots (Align to the new Line position) */
    .timeline-dot {
        left: 21px !important;
        /* Centered on the 30px line */
        right: auto !important;
        top: 0 !important;
    }

    /* 5. Fix the "Opposite" Images */
    .timeline-opposite-img {
        /* Stop floating absolutely */
        position: static !important;

        /* Make it fill the width below the text */
        width: 100% !important;
        height: 200px !important;
        margin-top: 20px;

        /* Reset offsets */
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    /* 6. Ensure Text aligns left */
    .timeline-content {
        text-align: left !important;
        width: 100% !important;
    }

    /* Remove the weird gaps from left/right classes */
    .timeline-item.left,
    .timeline-item.right {
        justify-content: flex-start !important;
    }
}

/* =========================================
   FINAL MOBILE POLISH (ADD TO BOTTOM OF CSS)
   ========================================= */

@media (max-width: 768px) {

    /* --- 1. GLOBAL TEXT SIZING --- */
    html {
        font-size: 14px;
    }

    /* Slightly smaller base text */

    .section-title,
    .guru-title,
    .gallery-header h2 {
        font-size: 2rem !important;
        /* Prevent huge headers */
        line-height: 1.2;
    }

    /* --- 2. NAVIGATION BAR --- */
    .glass-nav {
        width: 95%;
        /* Wider on mobile */
        padding: 10px 20px;
        top: 10px;
    }

    .logo {
        font-size: 1rem;
    }

    /* --- 3. HERO SECTION --- */
    .hero-text h1 {
        font-size: 2.5rem !important;
        /* Fits portrait mode */
    }

    .location {
        font-size: 1.2rem !important;
    }

    /* --- 4. BIO PAGES (Maharaj Ji / Devi Ji) --- */
    .bio-header {
        height: 50vh;
        /* Shorter header on mobile */
        background-position: center top;
    }

    .bio-title-card {
        width: 90%;
        padding: 20px !important;
        /* Reduce padding */
        margin-bottom: 20px;
    }

    .bio-title-card h1 {
        font-size: 1.8rem !important;
    }

    .bio-content {
        padding: 0 15px 50px !important;
    }

    /* --- 5. VIDEO GALLERY FIX --- */
    .video-grid {
        /* Force single column so videos aren't tiny */
        grid-template-columns: 1fr !important;
        padding: 0 15px;
    }

    /* --- 6. SHIVIR PAYMENT FORM --- */
    .shivir-form .input-row {
        flex-direction: column;
        /* Stack inputs */
        gap: 15px;
    }

    .input-group {
        width: 100% !important;
        /* Full width inputs */
    }

    /* --- 7. FOOTER ADJUSTMENTS --- */
    .footer-content {
        padding: 0 20px 40px;
        gap: 30px;
    }
}

/* =========================================
   MOBILE FIXES: TIMELINE & NAVBAR
   ========================================= */

@media (max-width: 768px) {

    /* 1. SOLID NAVBAR (Fixes the messy overlap) */
    .glass-nav {
        background: #0a0a12 !important;
        /* Solid Dark Background */
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
        backdrop-filter: none !important;
        padding: 15px 20px;
        width: 90%;
        top: 10px;
    }

    /* 2. TIMELINE CONTAINER PADDING */
    .timeline-container {
        padding-top: 40px;
        /* Push content down so it doesn't hit nav */
        padding-left: 0;
        padding-right: 0;
    }

    /* 3. TIMELINE ITEM (Vertical Stack) */
    .timeline-item {
        flex-direction: column !important;
        /* Force stack */
        align-items: flex-start !important;
        width: 100% !important;
        padding-left: 60px !important;
        /* Space for the line */
        padding-right: 20px !important;
        margin-bottom: 60px;
        /* Space between events */
        left: 0 !important;
    }

    /* 4. THE VERTICAL LINE */
    .timeline-line {
        left: 25px !important;
        /* Move line to left edge */
        transform: none !important;
    }

    /* 5. THE DOTS */
    .timeline-dot {
        left: 16px !important;
        /* Center on the line (25px - 9px) */
        top: 0 !important;
        right: auto !important;
    }

    /* 6. CONTENT CARD */
    .timeline-content {
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 15px;
        /* Space between Text and Image */
    }

    /* 7. THE IMAGES (Fix alignment) */
    .timeline-opposite-img {
        position: static !important;
        /* Stop floating */
        width: 100% !important;
        /* Full width of the content area */
        height: 200px !important;
        object-fit: cover;
        border-radius: 10px;
        margin-top: 10px;

        /* Reset any weird desktop offsets */
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    /* Remove any weird gaps from desktop classes */
    .timeline-item.left,
    .timeline-item.right {
        justify-content: flex-start !important;
    }
}

/* =========================================
   FIRST TIME VISITOR PATH
   ========================================= */

.visitor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.visitor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
.visitor-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Featured (Middle) Card */
.visitor-card.featured {
    background: rgba(255, 215, 0, 0.05);
    /* Slight Gold Tint */
    border-color: rgba(255, 215, 0, 0.3);
}

.visitor-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.visitor-card h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
}

.visitor-card p {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 60px;
    /* Aligns buttons */
}

/* The Link Style */
.text-link {
    color: var(--gold);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.text-link:hover {
    gap: 15px;
    /* Arrow moves on hover */
    color: #fff;
}

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
    .visitor-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
        max-width: 500px;
    }

    .visitor-card {
        text-align: center;
        padding: 30px;
    }

    .text-link {
        justify-content: center;
    }
}

/* =========================================
   UPDATES & TRUST SECTION
   ========================================= */

/* --- UPDATES GRID --- */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

.update-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    transition: 0.3s;
}

.update-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.update-img {
    position: relative;
    height: 200px;
}

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

.date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: black;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 0.8rem;
    border-radius: 4px;
}

.update-text {
    padding: 20px;
}

.update-text h3 {
    color: white;
    font-family: var(--font-head);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.update-text p {
    color: #aaa;
    font-size: 0.95rem;
}

/* --- TRUST & MAP STRIP --- */
.trust-layout {
    display: flex;
    flex-wrap: wrap;
    min-height: 400px;
}

.trust-info {
    flex: 1;
    min-width: 300px;
    padding: 60px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-frame {
    flex: 1.5;
    min-width: 300px;
    min-height: 400px;
    /* filter: grayscale(100%) invert(90%); Makes map dark/cool */
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    max-width: 350px;
}

.trust-badge i {
    font-size: 2rem;
    color: var(--gold);
}

.trust-badge strong {
    display: block;
    color: var(--gold);
    font-size: 1.1rem;
}

.trust-badge span {
    color: #ccc;
    font-size: 0.9rem;
}

.address-text {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Mobile Adjust */
@media (max-width: 768px) {
    .trust-layout {
        flex-direction: column;
    }

    .map-frame {
        height: 300px;
        min-height: 300px;
    }

    .updates-grid {
        grid-template-columns: 1fr;
    }
}

/* =======================================================
   MOBILE RESPONSIVE FIXES (PASTE AT END OF CSS)
   ======================================================= */

/* 1. GLOBAL RESET FOR MOBILE */
* {
    box-sizing: border-box;
    /* Prevents padding from adding to width */
}

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
        /* Stops horizontal scroll */
    }

    .panel {
        padding: 60px 20px;
        /* Reduce padding */
    }

    /* 2. HEADER & INTRO TEXT */
    .hero-text h1 {
        font-size: 2.5rem !important;
        /* Shrink Hero Text */
        line-height: 1.2;
    }

    .intro-text.line-2 {
        font-size: 3rem !important;
        /* Shrink Hindi Intro */
    }

    .glimmer-text {
        font-size: 3rem !important;
    }

    .location {
        font-size: 1.2rem !important;
    }

    /* 3. FLATTEN ALL GRIDS (Amenities, Updates, Visitor) */
    .amenities-grid,
    .visitor-grid,
    .updates-grid,
    .impact-grid,
    .masonry-grid {
        grid-template-columns: 1fr !important;
        /* Stack vertically */
        gap: 30px;
        width: 100%;
    }

    /* 4. FLATTEN FLEX LAYOUTS (Panels, Footer) */
    .panel-content,
    .footer-content,
    .trust-layout,
    .stats-row,
    .teaser-container {
        flex-direction: column !important;
        text-align: center;
        width: 100%;
        padding: 0 !important;
    }

    .panel-content.reverse {
        flex-direction: column !important;
        /* Don't reverse on mobile */
    }

    /* 5. FIX TIMELINE (The Tricky Part) */
    .timeline-container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    /* Move line to the far left */
    .timeline-line {
        left: 20px !important;
        transform: none !important;
    }

    /* Force all items to align left */
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 60px !important;
        /* Space for the line */
        padding-right: 0 !important;
        text-align: left !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
    }

    /* Move dots to the new line position */
    .timeline-dot {
        left: 11px !important;
        /* Center on the 20px line */
        right: auto !important;
    }

    /* Fix the timeline images */
    .timeline-opposite-img {
        position: relative !important;
        width: 100% !important;
        height: 200px !important;
        left: auto !important;
        right: auto !important;
        margin-top: 20px;
        transform: none !important;
    }

    /* 6. SHIVIR & FORMS */
    .shivir-container {
        flex-direction: column !important;
    }

    .shivir-image {
        height: 250px;
        width: 100%;
    }

    .shivir-form .input-row {
        flex-direction: column;
        gap: 15px;
    }

    .input-group input,
    .input-group select {
        width: 100% !important;
        /* Fix inputs overflowing */
    }

    /* 7. CAROUSEL & GALLERY */
    .carousel-container {
        height: 250px;
        /* Smaller height for mobile */
    }

    .gallery-item {
        width: 100%;
    }

    /* 8. FOOTER MAP & IFRAMES */
    .map-frame {
        width: 100%;
        min-height: 300px;
        margin-top: 30px;
    }

    iframe {
        max-width: 100% !important;
    }

    /* 9. PORTRAIT IMAGES */
    .portrait-frame {
        width: 100%;
        max-width: 300px;
        /* Prevent it getting too wide */
        height: auto;
        aspect-ratio: 3/4;
        margin: 0 auto 30px auto;
    }
}

/* =========================================
   LEGAL LINKS STYLES
   ========================================= */

.legal-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.legal-links a {
    color: #888;
    /* Subtle Gray */
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
    font-family: var(--font-body);
}

.legal-links a:hover {
    color: var(--gold);
    /* Gold on Hover */
    text-decoration: underline;
}

.separator {
    color: #444;
    /* Dark divider line */
}

/* MOBILE ADJUSTMENT */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        /* Stack them vertically */
        gap: 15px;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
        /* Allow wrapping on very small screens */
    }
}

/* =========================================
   GLOBAL FIXED BACKGROUND
   ========================================= */

/* 1. The Fixed Image Layer */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* Puts it behind everything */

    /* MOUNTAIN IMAGE */
    background-image: url('images/background_1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* STYLE: Dark & Ghostly */
    opacity: 0.2;
    /* Adjust visibility (0.1 to 0.3) */
    /* filter: grayscale(100%); /* Black & White */
}

*/

/* 2. THE FIX: Make Sections Transparent 
   (So they don't hide the mountain) */
body {
    background-color: #0a0a12;
    /* Fallback color */
}

section,
footer,
.hero-section,
.about-section,
.timeline-section {
    background: transparent !important;
    /* Force transparency */
    /* If text is hard to read, use a semi-transparent dark tint instead: */
    /* background: rgba(10, 10, 18, 0.8) !important; */
}

/* =========================================
   KRIPALU PADMA TRUST SECTION
   ========================================= */

.trust-section {
    padding: 80px 20px;
    position: relative;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two Columns */
    gap: 40px;
    margin-top: 40px;
}

/* THE CARDS (Glass Effect) */
.trust-card {
    background: rgba(20, 20, 30, 0.6);
    /* Semi-transparent dark */
    backdrop-filter: blur(10px);
    /* Blurs the mountain behind it */
    border: 1px solid rgba(255, 215, 0, 0.2);
    /* Faint Gold Border */
    padding: 40px;
    border-radius: 12px;
    transition: 0.3s;
}

.trust-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* PRESIDENT CARD SPECIFICS */
.leader-badge {
    display: inline-block;
    background: var(--gold);
    color: #000;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.trust-card h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 5px;
}

.honorific {
    color: var(--gold);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.bio-text {
    color: #ccc;
    line-height: 1.8;
}

/* MISSION LIST STYLES */
.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.mission-list i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 5px;
    /* Aligns icon with text */
}

.mission-list span {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

.mission-list strong {
    color: #fff;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr;
        /* Stack vertically on phone */
    }

    .trust-card {
        padding: 30px 20px;
    }
}

/* =========================================
   CUSTOM RADHEY SYMBOL
   ========================================= */

.radhey-symbol {
    font-family: 'Poppins', sans-serif;
    /* Clean, bold font */
    font-weight: 800;
    font-size: 1.6rem;
    /* Adjusted size to fit the box */
    color: var(--gold);
    line-height: 1;
    display: inline-block;
    transform: translateY(-2px);
    /* Slight alignment fix */
    white-space: nowrap;
    /* Ensures it stays on one line */
}

/* If you prefer English "Radhey Radhey", use this font-size instead: */
/* font-size: 0.9rem; */
/* Ensure Video matches the Image styling exactly */
video.timeline-opposite-img {
    object-fit: cover;
    /* Ensures no black bars */
    border: 1px solid var(--gold);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    background: #000;
    /* Background color while loading */
    cursor: pointer;
}

/* =========================================
   DIVINE GUIDANCE (MEET DIDI JI) SECTION
   ========================================= */

.guidance-container {
    margin-top: 50px;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    /* Subtle Gold Line */
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
}

.guidance-content h3 {
    font-family: var(--font-head);
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.guidance-content p {
    color: #e0e0e0;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
    /* Centers text */
    line-height: 1.6;
}

/* Make the button glow to stand out */
.glow-btn {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    border: 1px solid var(--gold);
    transition: 0.4s ease;
}

.glow-btn:hover {
    background: var(--gold);
    color: black;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    transform: translateY(-3px);
}

/* =========================================
   MOBILE TIMELINE DOT FIX (CENTERED)
   ========================================= */

@media (max-width: 768px) {
    .timeline-dot {
        /* Force vertical centering on mobile */
        top: 50% !important;
        transform: translateY(-50%) !important;

        /* Keep left alignment correct */
        left: 16px !important;
        right: auto !important;
    }
}

/* =========================================
   PULSING GLOW BUTTON (For Donation CTA)
   ========================================= */

.glow-effect {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    transform: scale(1);
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(255, 215, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.glow-effect:hover {
    animation: none;
    /* Stops pulsing when they hover to click */
    background: var(--gold);
    color: black;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}