/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary-teal: #004d4d;
    /* Deep Teal */
    --dark-teal: #003333;
    --light-teal: #006666;
    --content-white: #fdfbf7;
    /* Off-white */
    --accent-gold: #ffd700;
    --temple-orange: #ff8c00;
    --highlight-purple: #800080;
    --text-dark: #333333;
    --text-light: #fdfbf7;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;

    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: var(--font-body);
    background-color: var(--content-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-teal);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background-color: var(--primary-teal);
    padding: 0.8rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled .nav-links a {
    color: var(--text-light);
    /* Ensure text is white on scrolled background */
}

.navbar.scrolled .logo {
    color: var(--text-light);
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    align-items: flex-start;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.logo-sub {
    font-family: var(--font-heading);
    /* Keeping heading font for consistency */
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--content-white);
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--content-white);
    /* Default white for transparent header over hero */
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: var(--content-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0, 77, 77, 0.7), rgba(0, 51, 51, 0.5)), url('../images/home.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--content-white);
    padding: 120px 20px 0;
    /* Added top padding to push content down */
}

.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.hero h1 {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 800px;
    margin-bottom: 2rem;
}

.hero .date-badge {
    background-color: var(--temple-orange);
    color: var(--content-white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    border: 2px solid var(--accent-gold);
}

/* Section General */
section {
    padding: 2rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 10px auto 0;
}

/* Alternating Layout Utility Classes */
.content-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
    /* max-width: 1200px; */
    margin-left: auto;
    margin-right: auto;
}

.content-row.reverse {
    flex-direction: row-reverse;
}

.content-text {
    flex: 1;
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 1.2rem;
    text-align: center;
}

.content-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.full-width-text {
    /* max-width: 1200px; */
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.full-width-text p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

/* Mobile responsive for alternating layout */
@media (max-width: 850px) {

    .content-row,
    .content-row.reverse {
        flex-direction: column;
        gap: 1.5rem;
    }

    .content-image {
        width: 100%;
        max-height: 300px;
        order: -1;
        /* Image always appears first on mobile */
    }

    .content-text p,
    .full-width-text p {
        text-align: center;
    }
}

/* History Section */
.history-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.history-text {
    width: 100%;
}

.history-text p {
    margin-bottom: 1.5rem;
    text-align: center;
}

.history-image {
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 4px solid var(--accent-gold);
}

.history-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

/* .history-image:hover img {
    transform: scale(1.05);
} */

/* News & Events */
.news-section {
    background-color: #f4f4f4;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--content-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border-top: 5px solid var(--primary-teal);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.news-card .date {
    text-align: center;
    color: var(--temple-orange);
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.news-card p {
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.6;
}

/* Programs Section - Slider Style */
.programs-container {
    width: 100%;
    overflow: hidden;
    /* To contain the slider */
    padding: 1rem 0;
    position: relative;
}

.program-slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0 40px;
    /* Make space for buttons */
}

.slider-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background-color: var(--primary-teal);
    color: var(--content-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background-color: var(--temple-orange);
    color: white;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.program-slider-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    /* Allow track to be as long as needed */
    will-change: transform;
    transition: transform 0.5s ease-in-out;
    /* Smooth slide for stepping */
}

/* Card Design - Matching News & Events */
.program-card {
    background: #f4f4f4;
    width: 300px;
    /* Fixed width for desktop, responsive below */
    max-width: 100%;
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border-top: 5px solid var(--temple-orange);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 430px;
    /* Fixed height for uniformity */
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.program-card .card-image {
    height: 150px;
    width: 100%;
    background-color: #ffffff;
    /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.program-card .card-image img {
    height: 100%;
    width: 100%;
    opacity: 1;
}

.program-card .card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-card .card-day {
    background-color: var(--primary-teal);
    color: var(--content-white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.program-card .card-date {
    color: var(--temple-orange);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.program-card h4 {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--primary-teal);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.program-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    /* Truncate text after 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    /* Push to bottom */
    align-self: flex-end;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-teal);
    cursor: pointer;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--temple-orange);
    transform: translateX(5px);
}

/* Modal Styles */
.program-modal {
    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.8);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--content-white);
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--temple-orange);
}

.modal-body {
    display: flex;
    flex-direction: row;
}

.modal-image {
    flex: 1;
    background-color: #eee;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.modal-text {
    flex: 1.2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-day-badge {
    background-color: var(--temple-orange);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    align-self: flex-start;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.modal-date-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.modal-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-teal);
    line-height: 1.2;
}

.modal-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }

    .history-image {
        width: 100%;
    }

    .modal-image {
        min-height: 200px;
        height: 250px;
    }

    .modal-text {
        padding: 1.5rem;
    }

    .modal-text h3 {
        font-size: 1.5rem;
    }
}

/* Day-wise Detail Page Styles */
.day-wise-page {
    background-color: var(--content-white);
}

.day-wise-main {
    padding-top: 100px;
    /* Space for fixed navbar */
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 5%;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--temple-orange);
    font-weight: 700;
    font-size: 1.2rem;
}

.day-section {
    scroll-margin-top: 50px;
    /* padding: 3rem 5%; */
    border-bottom: 1px solid rgba(0, 77, 77, 0.1);
}

.day-section:last-of-type {
    border-bottom: none;
}

.day-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.day-text {
    flex: 1.2;
}

.day-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 3px solid var(--accent-gold);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.day-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Alternating Layout */
.day-section:nth-child(even) .day-container {
    flex-direction: row-reverse;
}

.day-badge {
    background-color: var(--primary-teal);
    color: var(--content-white);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.day-date {
    display: block;
    color: var(--temple-orange);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.day-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-teal);
}

.day-desc p {
    margin-bottom: 1.2rem;
    text-align: center;
    line-height: 1.8;
    color: #444;
}



@media (max-width: 850px) {
    .day-container {
        flex-direction: column !important;
        gap: 2rem;
    }

    .day-image {
        width: 100%;
        height: 250px;
    }

    .day-text {
        text-align: center;
    }

    .day-badge {
        margin: 0 auto 1rem;
    }
}

/* Gallery Section */
#gallery {
    min-height: 100vh;
    /* Ensure section has minimum height */
    padding: 120px 5% 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    min-height: 500px;
    /* Ensure grid has minimum height */
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
    /* height: 250px;
    min-height: 250px; */
    /* Prevent collapsing */
    width: 100%;
    background-color: #f0f0f0;
    /* Fallback background while images load */
    border: 1px solid #e0e0e0;
    /* Visible border to show items exist */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    /* Ensures no extra space below image */
    background-color: #e0e0e0;
    /* Fallback if image fails to load */
    /* min-height: 250px; */
    /* Match parent height */
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Static Navbar for Gallery Page */
.navbar.static-nav {
    background-color: var(--primary-teal);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar.static-nav .nav-links a {
    color: var(--text-light);
}

.gallery-overlay {
    display: none;
    /* Removed overlay and icon as per user request */
}



.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 2rem;
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Location Content */
.location-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    text-align: left;
}

.map-container {
    flex: 1;
    height: 300px;
    width: 50%;
    border: 2px solid var(--primary-teal);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    /* Fixes border radius clipping and potentially gap */
}

.map-container iframe {
    display: block;
    /* Removes bottom gap caused by inline spacing */
    width: 100%;
    height: 100%;
}

.address-box {
    flex: 1;
}

.direction-btn {
    display: inline-block;
    background-color: var(--primary-teal);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
}

.direction-btn:hover {
    background-color: var(--temple-orange);
    color: white;
}

@media (max-width: 768px) {
    .location-content {
        flex-direction: column;
    }

    .map-container {
        width: 100%;
        margin-bottom: 2rem;
    }

    .address-box {
        text-align: center;
    }

    /* Gallery mobile fixes */
    #gallery {
        min-height: 100vh;
        padding: 100px 3% 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
        min-height: 600px;
        /* Increased for mobile */
        width: 100%;
        padding: 0;
    }

    .gallery-item {
        /* height: 180px;
        min-height: 180px; */
        /* Ensure items don't collapse */
        width: 100%;
        aspect-ratio: 1/1;
        border: 2px solid #d0d0d0;
        /* More visible border on mobile */
    }

    .gallery-item img {
        min-height: 180px;
        /* Ensure images have minimum height */
        width: 100%;
        height: 100%;
    }
}

/* Footer */
footer {
    background-color: var(--dark-teal);
    color: var(--content-white);
    text-align: center;
    padding: 2rem;
    margin-top: 0;
}

footer p {
    opacity: 0.8;
}

footer a {
    /* text-decoration: underline; */
    color: inherit;
    opacity: 1;
}

footer a:hover {
    color: var(--accent-gold);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border: 4px solid var(--content-white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 2002;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--temple-orange);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 3rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    user-select: none;
    z-index: 2001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-gold);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    /* Disable hamburger for Gallery/Static pages */
    .navbar.static-nav .menu-toggle {
        display: none;
    }

    .navbar.static-nav .nav-links {
        position: static;
        transform: none;
        width: auto;
        padding: 0;
        background: transparent;
        flex-direction: row;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-teal);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .history-container {
        flex-direction: column;
    }

    .program-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .program-card {
        width: 80vw;
        /* Responsive width for slider */
    }

    .navbar {
        padding: 1rem 1rem;
    }

    .navbar.scrolled {
        padding: 1rem 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .logo img {
        height: 45px;
    }

    .logo-text {
        gap: 2px;
    }

    .logo-main {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .logo-sub {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

.lightbox-controls {
    position: absolute;
    top: 20px;
    right: 80px;
    display: flex;
    gap: 15px;
    z-index: 1001;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-teal);
    border-color: var(--accent-gold);
}

.lightbox-btn svg {
    width: 20px;
    height: 20px;
}

/* Media Section */
.media-section {
    background-color: var(--content-white);
    padding: 2rem 5%;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 6 images in row for desktop */
    gap: 15px;
    /* max-width: 1400px; */
    margin: 0 auto;
}

.media-card {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.media-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive adjustments for media grid */
@media (max-width: 1200px) {
    .media-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer Enhancements */
footer {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
    color: white;
    padding: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding: 2rem 5%;
    align-items: start;
}

/* Footer Column Styles */
.footer-column {
    text-align: center;
}

.footer-column h3 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Left Column - Donation Details */
.footer-info p {
    margin-bottom: 1rem;
    line-height: 1;
    font-size: 0.95rem;
}

.footer-info strong {
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.3rem;
}

/* Center Column - Logo */
.footer-logo-column {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.footer-temple-name {
    font-size: 1rem;
    font-weight: 500;
    color: white;
    margin: 0;
}

/* Right Column - Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-teal);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.footer-contact-info p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Bottom Bar */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-bottom a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: rgba(1, 143, 20, 0.904);
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-logo-column {
        grid-column: 1 / -1;
        order: -1;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-logo {
        width: 120px;
    }

    .footer-column h3 {
        font-size: 1.2rem;
    }
}

/* Donation Section */
.donation-table-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}

.donation-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.donation-table thead {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
    color: white;
}

.donation-table th {
    padding: 0.5rem 0.7rem;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.donation-table th:last-child {
    border-right: none;
}

.donation-table tbody tr {
    border-bottom: 1px solid #ccc;
    transition: background-color 0.2s ease;
}

.donation-table tbody tr:hover {
    background-color: #f5f9f9;
}

.donation-table tbody tr:last-child {
    border-bottom: none;
}

.donation-table td {
    padding: 0.45rem 0.7rem;
    color: var(--text-dark);
    font-size: 0.88rem;
    line-height: 1.3;
    border-right: 1px solid #ddd;
}

.donation-table td:last-child {
    border-right: none;
}

.donation-table td:nth-child(1) {
    font-weight: 500;
}

.donation-table td:nth-child(2),
.donation-table td:nth-child(3),
.donation-table td:nth-child(4),
.donation-table th:nth-child(2),
.donation-table th:nth-child(3),
.donation-table th:nth-child(4) {
    text-align: center;
    width: 100px;
}

.donation-table th:nth-child(1) {
    width: auto;
}

.donation-table .date-info {
    display: block;
    font-size: 0.75rem;
    color: var(--temple-orange);
    font-weight: 500;
    margin-top: 0.15rem;
    font-style: italic;
}

/* Responsive table */
@media (max-width: 768px) {
    .donation-table-container {
        max-width: 100%;
    }

    .donation-table {
        font-size: 0.82rem;
    }

    .donation-table th,
    .donation-table td {
        padding: 0.55rem 0.5rem;
    }

    .donation-table th {
        font-size: 0.88rem;
    }

    .donation-table td {
        font-size: 0.82rem;
    }

    .donation-table td:nth-child(2),
    .donation-table td:nth-child(3),
    .donation-table td:nth-child(4),
    .donation-table th:nth-child(2),
    .donation-table th:nth-child(3),
    .donation-table th:nth-child(4) {
        width: 55px;
        padding: 0.45rem 0.2rem;
    }

    .donation-table td {
        word-break: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .donation-table {
        font-size: 0.75rem;
    }

    .donation-table th,
    .donation-table td {
        padding: 0.45rem 0.35rem;
    }

    .donation-table th {
        font-size: 0.8rem;
    }

    .donation-table td {
        font-size: 0.75rem;
    }

    .donation-table .date-info {
        font-size: 0.68rem;
    }

    .donation-table td:nth-child(2),
    .donation-table td:nth-child(3),
    .donation-table th:nth-child(2),
    .donation-table th:nth-child(3) {
        width: 60px;
    }
}

/* Handbook Download Link */
.handbook-download-container {
    width: 100%;
    padding: 0 40px;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.handbook-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    color: var(--primary-teal);
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-teal);
    border-radius: 6px;
    transition: var(--transition);
    background-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.handbook-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.handbook-link:hover {
    background-color: var(--primary-teal);
    color: var(--content-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.handbook-link:hover svg {
    transform: translateY(2px);
}

@media (max-width: 768px) {
    .handbook-download-container {
        padding: 0 5%;
        text-align: center;
    }

    .handbook-link {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}