/* 
   Variable Definitions 
   Theme: Modern Traditional - Saffron, Deep Red, Gold, Off-White
*/
:root {
    /* Temple Pink/Red */
    --color-primary: #D81B60;
    /* Deeper Temple Red/Pink */
    --color-secondary: #FFC107;
    /* Richer Creamy Yellow (Original Title Color) */
    --color-accent: #00695C;
    /* Profound Temple Teal (Original Title Color) */

    /* Soft Backgrounds */
    --color-bg-pink-light: #FCE4EC;
    /* Soft Pink */
    --color-bg-teal-light: #E0F2F1;
    /* Soft Teal */
    --color-bg-yellow-light: #FFFDE7;
    /* Soft Creamy Yellow */

    --color-text: #2c2c2c;
    --color-text-light: #555;
    --color-bg: #FAFAFA;
    /* Crisp Off-White */

    /* Map Frame & Cards */
    --color-bg-light: #FFFFFF;
    /* crisp white for cards to pop against warm bg */
    --color-white: #ffffff;
    --color-dark: #1a1a1a;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);

    --transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    /* Webkit sharpness */
    image-rendering: auto;
    transform: translateZ(0);
    /* GPU acceleration for smoother rendering */
    backface-visibility: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

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

/* BACKGROUND UTILITIES */
.bg-yellow-soft {
    background-color: var(--color-bg-yellow-light);
}

.bg-pink-soft {
    background-color: var(--color-bg-pink-light);
    /* Pink is light, keep default text */
}

.bg-teal-soft {
    background-color: var(--color-bg-teal-light);
}

.bg-white {
    background-color: var(--color-white);
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-celestial-soft {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1f5fe 100%);
}

.onirique-text {
    font-style: italic;
    line-height: 1.8;
    color: #455a64;
    font-size: 1.05rem;
}

/* Multi-Stage History */
.history-chapter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.history-chapter:last-child {
    margin-bottom: 0;
}

.history-chapter.chapter-reverse {
    direction: rtl;
}

.history-chapter.chapter-reverse .chapter-content {
    direction: ltr; /* Reset text direction for content */
}

.chapter-image-box {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(103, 58, 183, 0.2);
    transition: transform 0.5s ease;
}

/* 
   The Chapter 1 image (old_taleye/21.jpg) is a PORTRAIT (vertical) image.
   To reduce its height (length) without cropping (cutting), we reduce its width.
*/
.history-chapter:first-of-type .chapter-image-box {
    max-width: 350px;
    margin: 0 auto;
}

.chapter-image-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Ensure no parts of the image are ever cut */
}

/* Triple Grid Utility for History Section */
.chapter-grid-3 {
    display: grid;
    grid-template-areas: 
        "main main"
        "sub1 sub2";
    gap: 15px; /* Re-separating the photos */
    max-width: 600px;
    margin: 0 auto;
}

.chapter-grid-x {
    border-radius: var(--border-radius-lg, 15px);
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 15px rgba(0,0,0,0.1));
    transition: transform 0.4s ease;
}

.chapter-grid-x:hover {
    transform: translateY(-5px);
}

.chapter-grid-x img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-main { grid-area: main; height: 350px; }
.grid-sub1 { grid-area: sub1; height: 180px; }
.grid-sub2 { grid-area: sub2; height: 180px; }

@media (max-width: 768px) {
    .chapter-grid-3 {
        grid-template-areas: 
            "main"
            "sub1"
            "sub2";
        grid-template-columns: 1fr;
    }
    
    .grid-main { height: 250px; }
    .grid-sub1, .grid-sub2 { height: 200px; }
}

.chapter-image-box:hover {
    transform: scale(1.02);
}


.chapter-number {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--color-accent);
}

.chapter-title {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
}

@media (max-width: 900px) {
    .history-chapter {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 80px;
        text-align: center;
    }

    .chapter-content {
        order: 1;
    }

    .chapter-image-box {
        order: 2;
    }
    
    .history-chapter.chapter-reverse {
        direction: ltr;
    }

    .chapter-number {
        margin-left: auto;
        margin-right: auto;
    }
}

.text-temple-gold {
    color: var(--color-secondary) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    /* Ensure readability on all backgrounds */
}

/* Lightbox Gallery (Enhanced v86) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
}

.lightbox-content img {
    max-width: 95vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    image-rendering: high-quality;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox.active img {
    animation: lightboxAppear 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes lightboxAppear {
    from { transform: scale(0.95) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* True Fullscreen Immersive Mode */
.lightbox.fullscreen-active {
    background-color: #000000;
    backdrop-filter: none;
}

.lightbox.fullscreen-active .lightbox-content {
    padding: 0;
}

.lightbox.fullscreen-active .lightbox-content img {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

/* Smart UI Auto-Hide */
.lightbox.fullscreen-active.ui-hidden .lightbox-close,
.lightbox.fullscreen-active.ui-hidden .lightbox-prev,
.lightbox.fullscreen-active.ui-hidden .lightbox-next,
.lightbox.fullscreen-active.ui-hidden .lightbox-counter,
.lightbox.fullscreen-active.ui-hidden .lightbox-toolbar {
    opacity: 0;
    pointer-events: none;
}

/* Transitions for image swapping */
.lightbox.changing img {
    opacity: 0;
    transform: scale(0.98);
}

/* Glassmorphism Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next,
.lightbox-counter,
.toolbar-btn {
    position: absolute;
    z-index: 2005;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close i,
.toolbar-btn i {
    pointer-events: none; /* Icon won't block the button click */
}

.lightbox-toolbar {
    position: absolute;
    top: 25px;
    left: 25px;
    display: flex;
    gap: 15px;
    z-index: 9999 !important; /* Force to top most layer */
    pointer-events: auto !important;
}

.toolbar-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.3rem;
    pointer-events: auto !important;
}


.lightbox-close {
    top: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.3rem;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

/* Navigation Touch Zones (Enhanced Mobile UX) */
.nav-zone-prev,
.nav-zone-next {
    position: absolute;
    top: 0;
    height: 100%;
    width: 25vw; /* 25% of screen width as a trigger zone */
    z-index: 9990; /* Just below utility buttons but above the image */
    display: flex;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s ease;
}

.nav-zone-prev {
    left: 0;
    justify-content: flex-start;
    padding-left: 30px;
}

.nav-zone-next {
    right: 0;
    justify-content: flex-end;
    padding-right: 30px;
}

/* Highlight zone on hover for desktop, subtle hint */
@media (hover: hover) {
    .nav-zone-prev:hover,
    .nav-zone-next:hover {
        background: rgba(255, 255, 255, 0.03);
    }
}

/* Ensure the visual buttons are still centered in their zones */
.lightbox-prev,
.lightbox-next {
    position: relative !important;
    top: auto !important;
    margin-top: 0 !important;
    left: auto !important;
    right: auto !important;
    pointer-events: none !important; /* Touch zones handle the clicking now */
}

@media (max-width: 768px) {
    .nav-zone-prev,
    .nav-zone-next {
        width: 30vw; /* Even larger hit area on small mobile */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
    }
}

/* Grid Overlay */
.lightbox-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2100;
    display: none;
    flex-direction: column;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox-grid-overlay.active {
    display: flex;
    opacity: 1;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

.grid-header h3 {
    color: white;
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin: 0;
}

.grid-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.grid-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    grid-auto-rows: min-content;
    gap: 15px;
    overflow-y: auto;
    padding: 10px;
    min-height: 0;
    flex-grow: 1;
}

.grid-thumbnails::-webkit-scrollbar {
    width: 6px;
}

.grid-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.grid-thumb {
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: 0.3s;
}

.grid-thumb:hover {
    transform: translateY(-5px);
}

.grid-thumb.active {
    border-color: var(--color-secondary);
}

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

.lightbox-counter {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    pointer-events: none;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.lightbox-prev,
.lightbox-next {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    top: 50%;
    margin-top: -30px;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-close:hover,
.nav-zone-prev:hover .lightbox-prev,
.nav-zone-next:hover .lightbox-next {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* Captions */
.lightbox-caption {
    margin-bottom: 80px; /* Space for counter below it */
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-align: center;
    max-width: 80%;
    padding: 10px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.lightbox.active .lightbox-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Loader */
.lightbox-loader {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--color-secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

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

/* Hide controls on mobile for cleaner view, show on tap logic in JS */
@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 40px;
        top: auto;
        margin-top: 0;
    }
    .lightbox-prev { left: 25%; transform: translateX(-50%); }
    .lightbox-next { right: 25%; transform: translateX(50%); }
    
    .lightbox-caption {
        font-size: 1rem;
        bottom: 100px;
        position: absolute;
        width: 90%;
        max-width: none;
        padding: 10px;
    }
    
    .lightbox-close { top: 15px; right: 15px; width: 44px; height: 44px; }
    .lightbox-counter { 
        bottom: 30px; 
        top: auto; 
        transform: translateX(-50%);
        font-size: 0.9rem;
        background: rgba(0, 0, 0, 0.7);
    }
}

/* Make Today Card Clickable */
.transform-card.new {
    /* cursor: pointer; removed */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transform-card.new:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Main Temple Card - Gallery Trigger */
#main-temple-card {
    cursor: pointer;
    position: relative;
    /* Ensure overlay positioning */
}

#main-temple-card::after {
    content: 'View Gallery';
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 1;
    /* Permanent visibility */
    transition: 0.3s;
    pointer-events: none;
    /* Let click pass through */
    z-index: 10;
}

/* removed hover::after rule as it is now permanent */

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-primary);
    color: var(--color-white);
    /* White text on Pink */
    border-radius: 50px;
    font-weight: 600;
    /* Slightly bolder */
    letter-spacing: 0.5px;
    border: 2px solid var(--color-primary);
}

.nav-links .btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
    padding: 8px 20px;
}

.nav-links .btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

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

.btn-outline {
    display: inline-block;
    padding: 14px 32px;
    background-color: transparent;
    color: var(--color-white);
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-text);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: var(--color-primary);
    /* Bold Pink Header */
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    /* Logo Left, Links Right */
    align-items: center;
    width: 95%;
    /* Wider than standard container */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    /* Minimal padding */
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--color-white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
    margin-left: 0;
    /* Reset margin */
}

.nav-scroll-arrow {
    display: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: var(--color-white);
    /* White text on pink */
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-secondary);
    /* Yellow underline */
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-secondary);
    /* Yellow hover */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-white);
    /* White toggle */
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    /* Keep content at bottom */
    justify-content: center;
    /* Center horizontally */
    text-align: center;
    /* Center text */
    position: relative;
    color: var(--color-white);
    /* Background moved to ::before for brightness filter */
    margin-bottom: 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/hero_background_optimized.webp') no-repeat center center;
    background-size: cover;
    filter: brightness(1.35);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Stronger gradient at bottom for text readability */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px 130px;
    /* Reduced bottom padding to lower buttons */
    max-width: 1000px;
    /* Slightly wider for modern feel */
    width: 100%;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 8px;
    /* Increased letter spacing */
    margin-bottom: 30px;
    color: var(--color-primary);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(216, 27, 96, 0.4);
    /* Subtle pink glow */
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.hero-title {
    color: var(--color-white);
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    /* Reduced size */
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 30px;
    text-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
    letter-spacing: -2px;
}

.hero-text {
    color: var(--color-white);
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 1;
    max-width: 700px;
    /* Increased max-width for centered text */
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 170px;
    /* Increased margin to separate from text (pushes text up) */
}

.hero .btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #ff4081);
    /* Vibrant gradient */
    border: none;
    padding: 12px 30px;
    /* Reduced padding */
    font-size: 0.95rem;
    /* Slightly smaller text */
    box-shadow: 0 10px 30px rgba(216, 27, 96, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero .btn-primary:hover {
    transform: translateY(-5px);
    /* Gentle hover lift */
    box-shadow: 0 15px 40px rgba(216, 27, 96, 0.6);
}

.hero .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    /* Glassmorphism effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    /* Reduced padding */
    font-size: 0.95rem;
    /* Slightly smaller text */
    color: var(--color-white);
    transition: all 0.4s ease;
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-5px);
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: transform, opacity;
}

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

/* Welcome Section */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 30px;
    background: rgba(0, 137, 123, 0.1);
    padding: 12px 35px;
    border-radius: 50px;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 25px;
}

.welcome-text p {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.quote-box {
    border-left: 4px solid var(--color-secondary);
    padding-left: 20px;
    margin-top: 30px;
}

.quote-box i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.quote-box p {
    font-weight: 500;
    color: var(--color-dark);
    font-style: italic;
    margin-bottom: 0;
}

.image-frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Placeholders for images */
.img-placeholder {
    width: 100%;
    height: 400px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
}



.transformation-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.transform-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--color-bg-light);
}

.card-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.transform-card.new .card-tag {
    background: var(--color-primary);
}

.transform-img {
    height: 300px;
    overflow: hidden;
}

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

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

.transform-info {
    padding: 25px;
}

.transform-info h3 {
    margin-bottom: 10px;
    color: var(--color-dark);
}

.transform-arrow {
    font-size: 3rem;
    color: var(--color-secondary);
}

@media (max-width: 768px) {
    .transform-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

/* Sites Section */
/* Video Carousel */
.video-carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.video-card {
    display: none;
    /* Hide by default */
    background: var(--color-white);
    border-radius: 20px;
    padding: 10px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(240, 173, 78, 0.3);
    animation: fadeIn 0.5s ease-in-out;
}

.video-card.active {
    display: block;
    /* Show active */
}

.video-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-white);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--color-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.video-btn.prev {
    left: -30px;
}

.video-btn.next {
    right: -30px;
}

@media (max-width: 1100px) {
    .video-btn.prev {
        left: 10px;
    }

    .video-btn.next {
        right: 10px;
    }
}

.video-frame {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.video-frame iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.video-info {
    padding: 20px 10px 10px;
    text-align: center;
}

.video-info h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin: 0;
    font-family: 'Cinzel', serif;
    /* Explicitly matching the main heading font */
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.site-card {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.site-img {
    height: 250px;
}

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

.site-content {
    padding: 30px;
}

.site-content h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.site-features {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.site-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.site-features i {
    color: var(--color-secondary);
}



.carousel-container {
    position: relative;
    padding: 0 50px;
}

.deities-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.deities-carousel::-webkit-scrollbar {
    display: none;
}

.deity-card {
    flex: 0 0 calc(33.333% - 20px);
    /* Show 3 items */
    min-width: 300px;
    scroll-snap-align: center;
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.deity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.deity-img-box {
    width: 100%;
    height: 400px; /* Uniform height for all deity pictures */
    background: #fffaf0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deity-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Professional un-cropped look */
    transition: transform 0.5s ease;
}

.deity-card:hover .deity-img-box img {
    transform: scale(1.05);
}

.deity-info {
    padding: 20px;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid #ddd;
    box-shadow: var(--shadow-sm);
    color: var(--color-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

@media (max-width: 992px) {
    .deity-card {
        flex: 0 0 calc(50% - 15px);
        /* Show 2 items */
    }
}

@media (max-width: 768px) {
    .deity-card {
        flex: 0 0 100%;
        /* Show 1 item */
    }

    .carousel-container {
        padding: 0;
    }

    .carousel-btn {
        display: flex;
        /* Show arrows on mobile */
        width: 35px;
        /* Slightly smaller */
        height: 35px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.9);
        /* More visible bg */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    /* Puranas Mobile Arrows on Picture */
    .story-btn {
        top: 200px;
        /* Center on the 400px image */
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.9);
    }
}

/* Events Section */
.events-list {
    max-width: 900px;
    margin: 0 auto;
}

.calendar-update-indicator {
    margin-top: 30px;
    font-size: 0.95rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(216, 27, 96, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(216, 27, 96, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(216, 27, 96, 0);
    }
}

.event-item {
    display: flex;
    align-items: center;
    background: var(--color-white);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 5px solid transparent;
    min-height: 160px;
}

.event-item:hover {
    border-left-color: var(--color-primary);
    transform: translateX(10px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    margin-right: 30px;
    text-align: center;
    background: var(--color-bg-light);
    padding: 15px;
    border-radius: 15px;
    border: 2px solid var(--color-secondary);
    /* Yellow Border */
    color: var(--color-secondary);
    /* Yellow Text */
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.event-date .month {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
}

.event-details {
    flex-grow: 1;
}

.event-details h3 {
    margin-bottom: 8px;
}

.event-details .time {
    font-size: 0.9rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.event-link {
    width: 50px;
    height: 50px;
    background: var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: var(--transition);
    border: 2px solid var(--color-secondary);
    /* Yellow Border */
    color: var(--color-secondary);
    /* Yellow Icon */
}

.event-link:hover {
    background: var(--color-secondary);
    /* Yellow Background on Hover */
    color: var(--color-white);
}

/* Event Item Premium Styling (Applied to All) */
.event-item {
    background: linear-gradient(135deg, #fffbf2 0%, #fff 100%);
    border: 1px solid rgba(149, 129, 70, 0.3);
    /* User Gold Border */
    border-left: 5px solid var(--color-secondary);
    /* User Gold Left Border */
    position: relative;
    overflow: hidden;
}



/* Executive Members Section */
.executive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.member-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid var(--color-secondary);
    /* Yellow accent */
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.member-img-placeholder {
    width: 100px;
    height: 100px;
    background: var(--color-bg-light);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 3rem;
    border: 3px solid var(--color-bg-pink-light);
}

.member-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--color-dark);
}

.member-role {
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Premises Gallery */
.gallery-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-card-img {
    height: 250px;
    /* Fixed height for uniformity */
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
    /* Default background */
}

.coming-soon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #757575;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

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

.gallery-overlay i {
    font-size: 3rem;
    color: var(--color-white);
}

.gallery-info {
    padding: 20px;
    text-align: center;
}

.gallery-info h3 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 5px;
}

.gallery-info p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.event-item .event-date .day {
    color: var(--color-secondary);
}

.event-item .event-link {
    background-color: rgba(149, 129, 70, 0.1);
    color: var(--color-secondary);
}

.event-item .event-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Remove specific Thaipoosam rules as they are now generic */

/* Puranas (Stories) Section */
/* Puranas (Stories) Section */
/* .puranas background handled by utility class */

.story-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    max-width: 1000px;
    margin: 0 auto;
}

.story-img {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

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

.story-card:hover .story-img img {
    transform: scale(1.03);
}

.story-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.story-content h3 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.story-intro {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 25px;
    font-style: italic;
}

.story-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.story-text strong {
    color: var(--color-secondary);
}

@media (max-width: 900px) {
    .story-card {
        grid-template-columns: 1fr;
    }

    .story-img {
        min-height: 300px;
        max-height: 400px;
    }

    .story-content {
        padding: 30px;
    }
}

/* Stories Carousel Styles */
.stories-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.stories-track {
    display: grid;
}

.story-card {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

.story-card.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.story-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-white);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--color-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.story-btn.prev {
    left: -30px;
}

.story-btn.next {
    right: -30px;
}

@media (max-width: 1100px) {
    .story-btn.prev {
        left: 10px;
        top: 100px;
        /* Position over image (moved up) */
    }

    .story-btn.next {
        right: 10px;
        top: 100px;
        /* Position over image (moved up) */
    }
}

/* Video Section */
/* Video Section */
.video-section {
    position: relative;
    /* Clean background for section separation */
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    /* Deep shadow + Gold Glow */
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 8px rgba(255, 255, 255, 1),
        0 0 0 9px var(--color-secondary);
    background: #000;
    transform: translateZ(0);
    /* Fix for Safari radius clipping */
}

.video-container iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    /* Override fixed height for responsiveness */
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border-left: 4px solid var(--color-secondary);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-bg-light);
    border-radius: 8px;
    padding: 5px 10px;
    text-align: center;
    border: 1px solid #eee;
}

.news-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.news-content h3 {
    margin-bottom: 15px;
    padding-right: 50px;
    /* Space for date */
    font-size: 1.1rem;
    color: var(--color-dark);
}

.news-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.read-more {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 8px;
}

/* Prayer Items Section */
.prayers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.prayer-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid var(--color-accent);
    /* Match Teal Section */
}

.prayer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.prayer-icon {
    width: 70px;
    height: 70px;
    background: var(--color-bg-teal-light); /* Soft teal tint for visibility */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-accent);
    /* Match Teal Section */
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.trishul-icon, .vel-icon {
    width: 58px;
    height: 58px;
    display: block;
}

.prayer-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.prayer-card:hover .prayer-icon {
    background: var(--color-accent);
    color: var(--color-white);
    transform: scale(1.05);
}

.prayer-card:hover .prayer-icon-img {
    filter: brightness(0) invert(1); /* Only invert to white on hover */
    transform: scale(1.1);
}

.prayer-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.prayer-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.prayer-list {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0;
}

.prayer-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.prayer-list li:last-child {
    border-bottom: none;
}

.prayer-list li i {
    color: var(--color-secondary);
    font-size: 1.1rem;
}

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

.donate-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.donate-card:hover {
    border-color: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.donate-card i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: block;
}

.donate-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.donate-card p {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.6;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: #f0f0f0;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #999;
    border: 2px dashed #ddd;
    border-radius: 10px;
}

/* removed scroll-indicator styles */

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Active Nav Link */
.nav-links li a.active {
    color: var(--color-secondary);
    font-weight: 700;
}

.nav-links li a.btn-primary.active {
    color: var(--color-primary);
    /* Keep pink text on saffron even when active */
}

.location {
    padding: 80px 0;
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* --- Location Section --- */
.location-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #252525;
    /* Restored Dark Theme */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding: 60px;
    /* Increased padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    /* White text */
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    /* Keep brand color for title */
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.contact-info>p {
    color: #ccc;
    /* Lighter grey for text */
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.info-item {
    display: flex;
    gap: 20px;
    /* More space between icon and text */
    margin-bottom: 30px;
    align-items: flex-start;
    /* Align to top */
}

.info-item > i {
    font-size: 1.8rem;
    /* Larger icon */
    color: var(--color-secondary);
    background: rgba(var(--color-secondary-rgb), 0.1);
    /* Soft background for icon (needs rgb var or specific color) */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Circle icon background */
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.info-item:hover > i {
    transform: scale(1.1);
    background: var(--color-secondary);
    color: #fff;
}

.info-item h4 {
    font-size: 1.2rem;
    color: #fff;
    /* White headings */
    margin-bottom: 8px;
    font-weight: 600;
}

.info-item p {
    color: #bbb;
    /* Light grey text */
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.map-frame {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}

.map-container {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.map-label {
    background: var(--color-primary);
    color: white;
    padding: 6px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
}

.map-container iframe {
    flex: 1;
    width: 100%;
    border: none;
    display: block;
}

/* Responsive adjustments for Location */
@media (max-width: 992px) {
    .location-card {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 40px 30px;
    }

    .map-frame {
        height: 600px;
    }
}

/* --- Story Arrows Fix --- */
.stories-carousel-container {
    position: relative;
    /* Ensure buttons position relative to this */
}




.map-placeholder {
    width: 100%;
    height: 100%;
    background: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    gap: 10px;
}

/* Footer */
footer {
    background: #252525;
    border-top: 4px solid var(--color-secondary);
    /* Gold Border */
    color: #aeaeae;
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand h3 {
    color: var(--color-secondary);
    /* Gold */
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #888;
}

.footer-links h4,
.footer-contact h4,
.social-links h4 {
    color: var(--color-white);
    font-size: 1.3rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    font-family: var(--font-heading);
}

/* Decorative underline */
.footer-links h4::after,
.footer-contact h4::after,
.social-links h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--color-secondary);
    bottom: -10px;
    left: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: #aeaeae;
    transition: var(--transition);
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
    /* Subtle movement */
    display: inline-block;
}

.social-links {
    display: flex;
    flex-direction: column;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-secondary);
    color: var(--color-dark);
    border-color: var(--color-secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.footer-contact-group {
    display: flex;
    gap: 10px;
    color: #888;
    margin-bottom: 10px;
}

.footer-contact-group i {
    margin-top: 5px;
    /* Align icon with first line */
}

.footer-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-numbers li {
    margin-bottom: 5px;
}

.footer-numbers strong {
    color: #ccc;
    /* Slightly lighter than label */
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    html {
        scroll-padding-top: 110px; /* Offset for taller mobile header */
    }

    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .welcome-image {
        order: -1; /* Image on top of text on mobile for welcome only */
    }

    .priest-text {
        order: 1;
    }

    .priest-image {
        order: 2;
    }
    .menu-toggle {
        display: none !important;
    }

    .navbar {
        padding: 8px 0;
        /* Much slimmer header */
    }

    .nav-container {
        flex-direction: column;
        gap: 5px;
        align-items: center;
        max-width: 100vw;
        overflow: hidden;
    }

    .logo {
        text-align: center;
        margin-bottom: 5px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }

    .nav-links-wrapper {
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .nav-scroll-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        color: white;
        cursor: pointer;
        z-index: 30;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        transition: all 0.3s;
        text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }

    .nav-scroll-arrow.left {
        left: -5px;
    }

    .nav-scroll-arrow.right {
        right: -5px;
    }

    /* Elegant gradient fade on the edges */
    .nav-links-wrapper::before,
    .nav-links-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 60px;
        pointer-events: none;
        z-index: 10;
        transition: opacity 0.3s;
        opacity: 0; /* Hidden by default */
    }

    .nav-links-wrapper.fade-left::before {
        opacity: 1;
        left: 0;
        background: linear-gradient(to right, var(--color-primary) 30%, transparent);
    }

    .nav-links-wrapper.fade-right::after {
        opacity: 1;
        right: 0;
        background: linear-gradient(to left, var(--color-primary) 30%, transparent);
    }

    .nav-scroll-arrow i {
        font-size: 1.5rem;
        line-height: 1;
    }

    .nav-links {
        position: static;
        width: 100%;
        background: transparent;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        /* Single line scroll */
        overflow-x: auto;
        /* Enable horizontal scroll */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        /* Smooth physics on iOS */
        padding: 5px 40px 10px;
        /* Balanced padding for better look with fades */
        gap: 25px;
        /* Clear separation for links */
        justify-content: flex-start;
        /* Start from left for scrolling */
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .nav-links::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .nav-links li {
        margin-left: 0;
        flex: 0 0 auto;
        /* Don't shrink links */
        display: flex;
        align-items: center;
    }

    .nav-links .btn-primary {
        padding: 8px 18px !important;
        font-size: 0.9rem !important;
        height: auto !important;
        line-height: 1 !important;
        background: var(--color-secondary) !important;
        color: var(--color-primary) !important; /* PINK text on YELLOW button */
        border-radius: 50px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        font-weight: 700 !important;
        text-decoration: none !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 5;
        margin: 0 !important; /* Fix any overlapping margins */
    }

    .nav-scroll-arrow i {
        font-size: 1.5rem;
        line-height: 1;
    }

    /* Mobile Nav Fixes */
    .nav-links a {
        font-size: 0.95rem;
        font-weight: 600;
        padding: 5px 2px;
        border-bottom: 2px solid transparent;
        display: inline-block;
        width: auto;
        text-align: center;
        white-space: nowrap;
    }

    .nav-links a.active {
        color: var(--color-secondary) !important;
        border-bottom-color: var(--color-secondary);
    }

    /* Fixed Donate text invisibility when active on mobile */
    .nav-links a.btn-primary.active {
        color: var(--color-primary) !important;
        border-bottom-color: transparent !important;
    }


    .mobile-kovil-toggle-wrapper {
        display: block !important;
    }

    /* Footer Mobile Adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 40px;
        text-align: center;
    }

    .footer-brand,
    .footer-links,
    .footer-contact,
    .social-links {
        align-items: center;
    }

    .footer-links h4::after,
    .footer-contact h4::after,
    .social-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact p,
    .footer-contact-group {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-left: 0;
        /* text-align center doesn't support padding shift neatly */
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .event-item {
        flex-direction: column;
        text-align: center;
    }

    .event-date {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .event-link {
        margin-top: 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
    }

    .footer-section {
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
        /* Center the underline */
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .contact-info li {
        justify-content: center;
        /* Center flex contact items */
    }

    .social-links {
        align-items: center;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        /* Better scaling */
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .hero .btn-primary,
    .hero .btn-outline {
        width: 100%;
        /* Full width buttons on mobile */
    }

    .committee-grid {
        grid-template-columns: 1fr !important;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    .prayer-list li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

/* Priest Section */
/* Using standard grid layout now */
.priest-image img {
    box-shadow: var(--shadow-md);
}

/* Executive Committee Section */
.committee {
    background-color: var(--bg-primary);
    /* Use primary layout bg */
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.committee-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px 15px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: none;
}

.committee-grid.show-all .committee-card {
    display: block;
}

.committee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    z-index: 2;
    transition: height 0.3s ease;
}

.committee-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(216, 27, 96, 0.15);
}

.committee-card:hover::before {
    height: 6px;
}

.member-img-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-bg-pink-light), var(--color-bg-teal-light));
    border: 3px solid white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--color-primary);
    transition: all 0.4s ease;
}

.committee-card:hover .member-img-placeholder {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

.member-info h3 {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.member-info .role {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 105, 92, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Executive Committee Group Photo */
/* Executive Committee Group Photo */
.committee-group-img {
    width: 100%;
    /* Increased max-width as requested */
    max-width: 1000px;
    height: auto;
    border-radius: 20px;
    /* var(--border-radius-lg) was undefined in snippet, using direct value or standard */
    margin: 0 auto 3rem;
    display: block;
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

/* Calendar Grid - Partially Collapsible */
.calendar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    transition: all 0.5s ease;
}

.event-item.extra-event {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.calendar-grid.show-all .event-item.extra-event,
.calendar-column.show-all .event-item.extra-event {
    display: flex;
    opacity: 1;
}

.calendar-column h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.calendar-toggle-btn {
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}

.calendar-toggle-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.calendar-toggle-btn i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.calendar-toggle-btn.active i {
    transform: rotate(180deg);
}

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

.bg-gradient-pink-teal {
    background: linear-gradient(180deg, var(--color-bg-pink-light) 0%, var(--color-bg-teal-light) 100%);
}

/* Mobile Landscape Responsiveness */
@media (max-height: 500px) and (orientation: landscape) {
    .section-padding {
        padding: 40px 0;
    }
    
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-badge {
        font-size: 1.5rem;
    }

    /* Lightbox tweaks for landscape */
    .lightbox-content img {
        max-height: 95vh;
        width: auto;
    }
    
    .lightbox-caption {
        font-size: 0.9rem;
        padding: 5px 15px;
        margin-bottom: 60px;
    }
    
    .lightbox-counter {
        bottom: 15px;
    }

    .lightbox-toolbar {
        top: 15px;
        left: 15px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
    }

    /* Committee landscape */
    .committee-group-img {
        max-width: 600px;
        margin-bottom: 2rem;
    }
    
    .committee-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .priest-image {
        max-width: 300px;
        margin: 0 auto;
    }
}
/* Footer Credits styling */
.footer-credits {
    padding: 30px 0;
    margin: 20px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-credits h4 {
    color: white;
    font-family: var(--font-header);
    font-size: 1.2rem;
    margin-bottom: 30px; /* Increased spacing */
    letter-spacing: 3px; /* Slightly more elegant spacing */
    text-transform: uppercase;
    opacity: 0.9;
}

.credit-row {
    margin: 12px 0; /* Better vertical rhythm */
}

.footer-credits p {
    color: #ffffff; /* Higher contrast for names */
    font-size: 0.95rem;
    margin: 5px 0;
    letter-spacing: 0.5px;
}

.footer-credits span {
    color: var(--color-secondary); /* Use the golden accent for roles */
    font-weight: 600;
    margin-right: 8px;
    text-transform: none; /* Respect HTML casing */
}


/* Captions */
