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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #faf8f5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Colors */
:root {
    --deep-maroon: #722f37;
    --gold: #d4af37;
    --ivory: #faf8f5;
    --dark-charcoal: #2c2c2c;
    --light-gray: #f5f5f5;
    --medium-gray: #666;
    --white: #ffffff;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--deep-maroon);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

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

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

.nav-link {
    text-decoration: none;
    color: var(--dark-charcoal);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--deep-maroon);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-charcoal);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('assets/church_exterior.jpg.jpg') center/cover;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .hero {
        background: url('assets/mobile_version.jpeg') center/cover !important;
        background-attachment: scroll;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--deep-maroon);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--dark-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--dark-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-secondary-dark {
    background: var(--deep-maroon);
    color: var(--white);
    border-color: var(--deep-maroon);
}

.btn-secondary-dark:hover {
    background: var(--dark-charcoal);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(114, 47, 55, 0.3);
}

/* Section Styles */
section {
    padding: 80px 0;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
}

/* About Section */
.about {
    background: var(--white);
}

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

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--dark-charcoal);
}

/* Heritage Section */
.heritage {
    background: var(--light-gray);
}

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

.heritage-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.heritage-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(114, 47, 55, 0.2);
}

.heritage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--deep-maroon), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.heritage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--deep-maroon);
}

.heritage-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Live Stream Section */
.live-stream {
    background: var(--white);
}

.live-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.video-placeholder {
    background: linear-gradient(135deg, #2c2c2c, #666);
    border-radius: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.video-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.video-content p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.live-schedule {
    font-size: 1rem;
    opacity: 0.8;
}

.live-info {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
}

.live-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--deep-maroon);
}

.schedule-list {
    list-style: none;
    margin-bottom: 2rem;
}

.schedule-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--dark-charcoal);
}

.schedule-list i {
    color: var(--gold);
    width: 20px;
}

.live-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Festivals Section */
.festivals {
    background: var(--light-gray);
}

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

.calendar-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.festival-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.festival-image {
    width: 100%;
    height: auto;
    overflow: visible;
    border-radius: 10px;
    position: relative;
}

.festival-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.festival-card:hover .festival-image img {
    transform: none;
}

.festival-image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.festival-image-title {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    color: var(--white);
    font-weight: 700;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.festival-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(114, 47, 55, 0.2);
}

.festival-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.festival-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--deep-maroon);
}

.festival-date {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
}

.festival-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.gallery-date-heading {
    grid-column: 1 / -1;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--deep-maroon);
    margin: 0.25rem 0 0.25rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item:nth-child(2) {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(114, 47, 55, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

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

/* Visit Section */
.visit {
    background: var(--light-gray);
}

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

.visit-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--deep-maroon);
}

.address {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--dark-charcoal);
}

.address i {
    color: var(--gold);
    margin-right: 0.5rem;
}

.visit-details {
    margin-bottom: 2rem;
}

.visit-details p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-charcoal);
}

.visit-details i {
    color: var(--gold);
    width: 20px;
}

.visit-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    min-height: 0;
    display: block;
    padding: 0;
    background: var(--light-gray);
}

.map-embed-link {
    display: block;
    width: 100%;
    line-height: 0;
}

.map-iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
    pointer-events: none;
}

.map-placeholder {
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--medium-gray);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--deep-maroon);
}

/* Contact Section */
.contact {
    background: var(--white);
}

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

.contact-form {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    transition: border-color 0.3s ease;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--deep-maroon);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-charcoal);
}

.contact-item i {
    color: var(--gold);
    width: 20px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: var(--deep-maroon);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold);
    color: var(--dark-charcoal);
    transform: translateY(-3px);
}

/* Inspirational Section */
.inspirational {
    position: relative;
    padding: 120px 0;
    background: url('assets/valliyapalli.jpg.jpg') center/cover;
    background-attachment: fixed;
}

.inspirational-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.inspirational-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.inspirational-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* History Page Styles */
.history-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f4e6 0%, #f0e6d2 100%);
}

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

.history-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(114, 47, 55, 0.2);
    transition: transform 0.3s ease;
}

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

.history-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.history-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #722f37;
    margin-bottom: 2rem;
    text-align: center;
}

.history-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Responsive History */
@media (max-width: 768px) {
    .history-images {
        grid-template-columns: 1fr;
    }
    
    .history-content {
        padding: 0 20px;
    }
    
    .history-content h3 {
        font-size: 2rem;
    }
}

/* Footer */
.footer {
    background: var(--dark-charcoal);
    color: var(--white);
    padding: 60px 0 20px;
}

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

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

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Donations Section */
.donations {
    background: var(--light-gray);
}

/* Priests Section */
.priests-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.priest-card {
    background: var(--white);
    padding: 2.25rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.priest-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(114, 47, 55, 0.2);
}

.priest-card-center {
    border: 2px solid rgba(212, 175, 55, 0.7);
    transform: translateY(-10px);
}

.priest-image img {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    margin-bottom: 1.25rem;
}

.priest-details h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--deep-maroon);
}

.priest-details p {
    color: var(--medium-gray);
    line-height: 1.6;
}

.priest-role {
    font-weight: 700;
    color: var(--deep-maroon);
    margin-top: 0.25rem;
}

/* Nercha purchase modal */
.nercha-purchase-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nercha-purchase-modal.active {
    display: flex;
}

.nercha-purchase-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.nercha-purchase-modal-dialog {
    position: relative;
    background: var(--white);
    border-radius: 15px;
    max-width: 480px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(114, 47, 55, 0.15);
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;
}

.nercha-purchase-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--deep-maroon);
    cursor: pointer;
    line-height: 1;
}

.nercha-purchase-modal-title {
    font-family: 'Cinzel', serif;
    color: var(--deep-maroon);
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.nercha-purchase-modal-sub {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.nercha-purchase-form .form-group {
    margin-bottom: 1.25rem;
}

.nercha-purchase-form label {
    display: block;
    font-weight: 600;
    color: var(--deep-maroon);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.nercha-purchase-form input,
.nercha-purchase-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid rgba(114, 47, 55, 0.12);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--light-gray);
}

.nercha-purchase-form textarea {
    resize: vertical;
    min-height: 80px;
}

.nercha-purchase-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Calendar Modal */
.calendar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2500;
    padding: 20px;
}

.calendar-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-modal-content {
    background: var(--white);
    border-radius: 15px;
    width: min(900px, 100%);
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 1.5rem;
    position: relative;
}

.calendar-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--deep-maroon);
    cursor: pointer;
}

.calendar-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calendar-title {
    text-align: center;
    color: var(--deep-maroon);
    font-size: 1.6rem;
    margin: 0;
}

.calendar-body img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.nerchas-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.nercha-compact-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.nercha-ml {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--deep-maroon);
}

.nercha-en {
    font-size: 0.95rem;
    color: var(--medium-gray);
    margin-top: 0.25rem;
}

.nercha-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-top: 0.5rem;
}

.nercha-coupon-wrap {
    width: 100%;
    margin-bottom: 0.75rem;
}

.nercha-coupon-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.nercha-coupon-placeholder {
    width: 100%;
    min-height: 120px;
    border: 1px dashed rgba(114, 47, 55, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.gallery-item-date {
    margin-top: 0.5rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
    text-align: center;
}

/* Admin layout */
.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.gallery-admin-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.gallery-admin-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    background: rgba(0, 0, 0, 0.05);
}

.gallery-admin-item video.gallery-admin-thumb {
    object-fit: cover;
}

.donations-grid {
    display: flex;
    justify-content: center;
}

.donation-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 2rem;
    align-items: center;
    max-width: 800px;
    width: 100%;
}

.donation-qr {
    flex-shrink: 0;
}

.donation-qr img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: contain;
    border: 2px solid var(--gold);
}

.donation-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--deep-maroon);
}

.bank-info {
    margin-bottom: 1.5rem;
}

.bank-info p {
    margin-bottom: 0.5rem;
    color: var(--dark-charcoal);
}

.donation-note {
    font-style: italic;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Upcoming Event Highlight */
.upcoming-event {
    background: linear-gradient(135deg, var(--deep-maroon), var(--gold));
    color: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(114, 47, 55, 0.3);
}

.upcoming-event::before {
    background: linear-gradient(90deg, var(--gold), var(--white));
}

.upcoming-event .festival-icon {
    background: var(--white);
    color: var(--deep-maroon);
}

.upcoming-event h3,
.upcoming-event .festival-date {
    color: var(--white);
}

.upcoming-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: var(--deep-maroon);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: 0;
        top: 70px;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        text-align: center;
        padding: 2.5rem 1.25rem;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
        gap: 1.75rem;
        justify-content: center;
    }
    
    .nav-menu.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .priest-image img {
        width: 170px;
        height: 170px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid,
    .live-container,
    .visit-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .heritage-grid,
    .festivals-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

    .priest-card-left {
        order: 2;
    }

    .priest-card-center {
        order: 1;
        transform: none;
    }

    .priest-card-right {
        order: 3;
    }
    
    .gallery-item:nth-child(2) {
        grid-row: span 1;
    }

    .admin-two-col {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .inspirational-content h2 {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .donation-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .donation-qr img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        height: 80vh;
        min-height: auto;
    }
    
    .heritage-card,
    .festival-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}
