/* Base Styles */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFD93D;
    --text-color: #2C3E50;
    --light-bg: #F8F9FA;
    --dark-bg: #343A40;
    --gold: #D4AF37;
}

/* Language Switcher Styles */
.lang-switch {
    margin-left: 1rem;
}

.lang-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

/* Language specific styles */
html[lang="en"] .lang-kn {
    display: none;
}

html[lang="kn"] .lang-en {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    padding: 3px;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
    .nav-logo {
        width: 38px;
        height: 38px;
        padding: 2px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        width: 34px;
        height: 34px;
    }
}

.nav-brand span {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive adjustments for navigation */
@media (max-width: 768px) {
    .nav-brand {
        gap: 0.5rem;
    }

    .nav-logo {
        width: 32px;
        height: 32px;
    }

    .nav-brand span {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .navbar {
        padding: 0.75rem;
    }

    .nav-toggle {
        margin-left: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-brand span {
        font-size: 0.95rem;
    }

    .nav-logo {
        width: 28px;
        height: 28px;
    }
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.donate-btn {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-image picture {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: zoomEffect 20s ease-in-out infinite alternate;
}

@media (max-width: 768px) {
    .hero-bg-image {
        content: url("../images/GaradiNew.png"); /* Switch to mobile image */
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease-out;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.8;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Raleway', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Raleway', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.primary:hover {
    background: #ff5252;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes zoomEffect {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

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

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .hero {
        height: 100vh; /* Ensure full viewport height on mobile */
        min-height: 500px; /* Minimum height to prevent too small display */
    }

    .hero-image {
        position: absolute;
        width: 100%;
        height: 100%;
    }

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

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

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .hero-content {
        padding: 1.5rem;
        margin: 0 1rem;
        max-width: 100%;
    }

    .hero-content p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 100vh;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* About Section */
.about {
    padding: 4rem 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto;
}

.about-content {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin: 2rem 0;
    align-items: flex-start;
}

.about-text-wrapper {
    flex: 1;
    min-width: 0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    min-height: 0;
}

.about-gallery {
    flex: 0 0 50%;  /* Increased from 45% */
    position: sticky;
    top: 100px;
    align-self: flex-start;
    padding: 1rem;
}

.about-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;  /* Increased from 1rem */
    overflow-y: auto;
    max-height: 900px;  /* Increased from 800px */
    padding-right: 15px;
}

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

.about-gallery .gallery-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.about-gallery .gallery-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.about-gallery .gallery-item {
    position: relative;
    border-radius: 12px;  /* Increased from 8px */
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-gallery .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.about-gallery .gallery-item:first-child {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

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

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

.about-gallery .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1rem 1rem;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.about-gallery .gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.about-gallery .gallery-overlay h3 {
    font-size: 1.2rem;
    margin: 0;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.second-part {
    margin-top: 2rem;
    clear: both;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Deities Section */
.deities {
    padding: 6rem 0;
}

.deity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.deity-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.deity-card:hover {
    transform: translateY(-10px);
}

.deity-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.deity-card h3 {
    padding: 1.5rem;
    text-align: center;
    margin: 0;
    background: var(--light-bg);
}

.deity-card p {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
    color: #666;
}

/* Events Section */
.events {
    padding: 6rem 0;
    background: var(--light-bg);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-date {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 100px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: bold;
}

.event-details {
    padding: 1.5rem;
}

.event-details h3 {
    margin-bottom: 1rem;
}

.event-details p {
    color: #666;
    margin-bottom: 0.5rem;
}

.event-details i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Darshan Timings Section */
.darshan {
    padding: 6rem 0;
}

.timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.timing-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timing-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timing-card .time {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.timing-card ul {
    list-style: none;
}

.timing-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.timing-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Donation Section */
.donate {
    padding: 6rem 0;
    background: var(--light-bg);
}

.donation-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.donation-info {
    text-align: center;
    margin-bottom: 3rem;
}

.donation-description {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.donation-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.donation-progress-section {
    max-width: 600px;
    margin: 2rem auto;
}

.donation-progress-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(var(--primary-color-rgb), 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    transition: width 1s ease-in-out;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

.donation-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    align-items: stretch;
}

.bank-details {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.bank-details, .qr-section {
    height: 100%;
}

.bank-details h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.details-grid {
    display: grid;
    gap: 1.5rem;
}

.detail-item {
    display: grid;
    gap: 0.5rem;
}

.detail-item .label {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

.detail-item .value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
}

.qr-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.qr-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.qr-code {
    width: 360px;
    height: 360px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-section p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.upi-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.upi-link:hover {
    background: rgba(var(--primary-color-rgb), 0.9);
}

.donation-note {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 10px;
}

.donation-note p {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Contact Form */
.contact-form-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.contact-form-section h3 {
    margin: 0;
}

.contact-form-section h3:last-of-type {
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
}

.form-field input {
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    background: #fff;
}

.form-field textarea {
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    background: #fff;
    min-height: 120px;
    resize: vertical;
}

.form-field input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
}

.form-field textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
}

.message-field {
    grid-column: 1 / -1;
}

.submit-button {
    display: inline-block;
    padding: 0.8rem 1.4rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 0.5rem;
}

.submit-button:hover {
    background: rgba(var(--primary-color-rgb), 0.9);
}

.form-status {
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.form-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.85;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #333;
    color: #fff;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.toast.success {
    background: #1f8b4c;
}

.toast.error {
    background: #b00020;
}
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .donation-methods {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .donation-content {
        padding: 1rem;
    }

    .bank-details, .qr-section {
        padding: 1.5rem;
    }

    .donation-description p {
        font-size: 1rem;
    }

    .detail-item .value {
        font-size: 1rem;
    }

    .qr-code {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .bank-details, .qr-section {
        padding: 1rem;
    }

    .qr-code {
        width: 240px;
        height: 240px;
    }

    .donation-note {
        margin: 1rem 0;
        padding: 0.75rem;
    }
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 4rem 0 2rem;
}

/* News Section */
.news {
    padding: 4rem 0;
    background: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.news-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: hidden;
}

.news-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-media img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* consistent like other images */
}

.news-content {
    padding: 1rem 1.25rem;
}

.news-content h3 {
    color: var(--primary-color);
    margin: 0 0 0.5rem;
}

.news-content p {
    margin: 0.25rem 0;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .news-card {
        grid-template-columns: 1fr;
    }
    .news-media img {
        aspect-ratio: 16/9;
    }
}

/* Grid for multiple news images */
.news-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    padding: 0 1.25rem 1rem;
}

.news-media-grid .news-media {
    aspect-ratio: 16 / 9;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-text-wrapper {
        padding-right: 0;
    }

    .about-gallery {
        max-width: 600px;
        margin: 0 auto;
    }

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title,
.feature,
.deity-card,
.event-card,
.timing-card,
.donation-card {
    animation: fadeIn 1s ease-out;
}

.loading-indicator {
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 2rem;
}

.temple-description {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Gallery Section Styles */
.gallery {
    padding: 6rem 0;
    background: var(--light-bg);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.gallery-container.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.progress-gallery-section .gallery-img {
    object-fit: contain;
    object-position: center;
}

.progress-gallery-section .gallery-item:hover .gallery-img {
    transform: none;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1rem 1rem;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-container.three-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
        padding: 1.5rem 1rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }

    .gallery-container.three-col {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        aspect-ratio: 16/9;
    }
} 

@media (max-width: 1400px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-gallery {
        position: static;
        width: 100%;
        padding: 0;
    }
    
    .about-gallery .gallery-grid {
        max-height: none;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .about-gallery .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .about-gallery .gallery-item {
        aspect-ratio: 3/2;
    }
}

@media (max-width: 480px) {
    .about-gallery .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .about-gallery .gallery-item {
        aspect-ratio: 1/1;
    }

    .about-gallery .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
        padding: 1rem 0.75rem 0.75rem;
    }

    .about-gallery .gallery-overlay h3 {
        font-size: 1rem;
    }
} 

/* Renovation Section */
.renovation {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.renovation-content {
    margin: 3rem auto;
    max-width: 900px;
    width: 100%;
}

.renovation-timeline {
    position: relative;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.renovation-timeline::before {
    content: '';
    position: absolute;
    left: 44px;
    top: 80px;
    height: calc(100% - 100px);
    width: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 20px;
}

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

.timeline-marker {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    flex: 1;
    padding: 1.5rem 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.timeline-details p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.renovation-progress {
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: var(--light-bg);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 1024px) {
    .renovation-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .renovation-progress {
        margin-top: 2rem;
    }

    .progress-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .stat-item {
        flex: 1;
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .progress-stats {
        flex-direction: column;
    }

    .stat-item {
        margin: 1rem 0;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
    }

    .timeline-content {
        padding: 1rem 1.5rem;
    }

    .renovation-timeline::before {
        left: 34px;
    }
}

/* Construction Plans Section */
.construction-plans {
    margin-top: 4rem;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.plan-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
}

.plan-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plan-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 1rem;
    transition: transform 0.5s ease;
}

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

.plan-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1rem 1rem;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.plan-item:hover .plan-overlay {
    opacity: 1;
    transform: translateY(0);
}

.plan-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.plan-overlay p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .construction-plans {
        padding: 1.5rem;
    }

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

    .plan-item {
        aspect-ratio: 16/9;
    }

    .plan-overlay {
        opacity: 1;
        transform: translateY(0);
        padding: 1.5rem 1rem 0.8rem;
    }
}

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

    .plans-grid {
        gap: 1rem;
    }

    .plan-overlay h4 {
        font-size: 1.1rem;
    }

    .plan-overlay p {
        font-size: 0.8rem;
    }
}

/* Divine Message Section */
.divine-message {
    margin-bottom: 4rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.message-content {
    padding: 3rem;
}

.historical-context,
.divine-revelation,
.call-to-action {
    margin-bottom: 3rem;
}

.historical-context:last-child,
.divine-revelation:last-child,
.call-to-action:last-child {
    margin-bottom: 0;
}

.divine-message h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Raleway', sans-serif;
    position: relative;
    padding-bottom: 0.5rem;
}

.divine-message h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.divine-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.divine-message p:last-child {
    margin-bottom: 0;
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .message-content {
        padding: 2rem;
    }

    .divine-message h3 {
        font-size: 1.3rem;
    }

    .divine-message p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .message-content {
        padding: 1.5rem;
    }
} 

/* Donation Carousel Styles */
.donation-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.donation-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.donation-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.donation-amount {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 10px;
}

.donation-amount span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.donation-amount .amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-prev,
.carousel-next {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #ff5252;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .donation-card {
        padding: 1.5rem;
    }

    .donation-icon {
        font-size: 2rem;
    }

    .donation-amount .amount {
        font-size: 1.75rem;
    }
} 

/* Donation Banner Styles */
.donation-banner {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.8s ease-out forwards;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.banner-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
}

.banner-text h2 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    font-family: 'Raleway', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.donation-progress {
    flex: 0 1 200px;
    margin: 0 1rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(var(--primary-color-rgb), 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.2rem;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

.progress-text {
    font-size: 0.7rem;
    color: var(--text-color);
    opacity: 0.8;
    text-align: center;
}

.banner-cta {
    flex-shrink: 0;
}

.donate-now-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.donate-now-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Responsive styles for donation banner */
@media (max-width: 768px) {
    .donation-banner {
        bottom: 1rem;
        width: 92%;
        padding: 0.75rem;
        border-radius: 20px;
    }

    .banner-content {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .banner-icon {
        display: none;
    }

    .banner-text {
        text-align: center;
        width: 100%;
    }

    .banner-text h2 {
        font-size: 0.9rem;
        white-space: normal;
        line-height: 1.4;
        padding: 0 0.5rem;
    }

    .donation-progress {
        flex: none;
        width: 80%;
        margin: 0.5rem auto;
    }

    .progress-bar {
        margin-bottom: 0.3rem;
    }

    .progress-text {
        font-size: 0.75rem;
    }

    .banner-cta {
        width: 100%;
        text-align: center;
    }

    .donate-now-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
        display: inline-block;
    }
} 

@media (max-width: 480px) {
    .donation-banner {
        padding: 0.6rem;
    }

    .banner-text h2 {
        font-size: 0.85rem;
        padding: 0;
    }

    .donation-progress {
        width: 90%;
    }

    .progress-text {
        font-size: 0.7rem;
    }
} 