/*
================================================================================
    SGGM TEMPLE WEBSITE - STYLES.CSS
    Optimized for Responsiveness (Desktop, Tablet, Mobile)
================================================================================
*/

/* --- 0. General Styles and Color Palette --- */
:root {
    --color-saffron: #ff9933; /* Primary Accent (e.g., Orange/Saffron) */
    --color-pink: #e6007a;/* Secondary Accent/CTA (e.g., Fuchsia/Pink) */
    --color-text: #333;  /* Dark Text */
    --color-light: #f5f5f5; /* Light Background */
    --color-dark: #222;  /* Deep Background (Footer) */
    --color-primary: #800000; /* Primary Temple Color (e.g., Maroon/Red) */
    --color-background: #ffffff;/* General page background */
}
body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    color: var(--color-text); 
    background-color: var(--color-background); 
}
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}
.section { 
    padding: 50px 0; 
}
h2 { 
    text-align: center; 
    color: var(--color-saffron); 
    margin-bottom: 30px; 
}
.cta-button {
    display: inline-block;
    background-color: var(--color-pink);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    white-space: nowrap;
}
.cta-button:hover { 
    background-color: #cc006a; 
}
/* Bottom CTA Section */
.section-cta-bottom {
    text-align: center;
    background-color: var(--color-background);
    padding: 50px 0;
}
.section-cta-bottom h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* ========================================
    1. Header & Navigation (Responsive)
    ======================================== */
.header { 
    background-color: var(--color-saffron); 
    color: white; 
    padding: 10px 0; 
    position: relative;
    z-index: 1000; /* Ensure header is on top of content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.nav-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo { 
    font-size: 24px; 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
}
.logo img { 
    width: 30px; 
    margin-right: 8px; 
}

/* Menu Grid */
.section-menu-options {
    padding: 60px 0;
    text-align: center;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.menu-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}
.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.menu-card h3 {
    color: var(--color-pink);
    margin-top: 0;
}
.section-description {
    font-style: italic;
    color: #666;
}
.note {
    margin-top: 30px;
    font-weight: bold;
}
/* Desktop Menu Styles */
.menu { 
    display: flex; 
    padding: 0; 
    margin: 0; 
    list-style: none; 
}
.menu-item { 
    position: relative; 
    margin: 0; 
}
.menu-item > a {
    color: white;
    text-decoration: none;
    padding: 10px 10px;
    display: block;
}
.menu-item > a:hover {
    background-color: #cc7a29; 
}

/* New container for social icons and donate button */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px; /* Space between social icons and donate button */
}
.header-actions .cta-button {
    /* Ensure the donate button doesn't have extra margin on desktop */
    margin: 0;
}

/* Hide the mobile-only donate button on desktop */
.donate-item-mobile {
    display: none;
}

/* Submenu Styling (Desktop/Mobile) */
.submenu {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: var(--color-saffron);
    min-width: 250px;
    z-index: 1000;
    padding: 10px 0;
    border-top: 2px solid var(--color-pink);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    list-style: none;
}
.submenu.active {
    display: block;
}
.submenu li {
    padding: 0;
    margin: 0;
}
.submenu li a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    display: block;
    white-space: nowrap;
}
.submenu li a:hover {
    background-color: #cc7a29; 
}

/* Header Right Side Grouping (Social Icons) */
.social-icons {
    display: flex; 
    gap: 10px; 
    align-items: center; 
}
/* Social Icon Hover */
.social-icons a {
    display: block;
}
.social-icons img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Makes icons white on the saffron bar */
    transition: opacity 0.3s;
}
.social-icons img:hover {
    opacity: 0.7;
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle { display: none; }


/* ========================================
    2. Hero & Main Content Sections
    ======================================== */

/* Hero Slider (Index Page) */
.hero {
    height: 450px;
    background: url('altar2.png') center/cover no-repeat; 
    position: relative;
}

/* New Hero Title Section Below the Image */
.hero-title-section {
    background-color: var(--color-background);
    text-align: center;
    padding: 20px 30px;
    margin-top: 0;
    position: relative;
    z-index: 10;
    max-width: 950px; /* Limits the width of the title box */
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.hero-title-section h1 {
    color: var(--color-primary); /* Your theme's maroon color */
    font-size: 2.8rem;
    margin: 0 0 10px 0;
}

.hero-title-section p {
    color: var(--color-text);
    font-size: 1.2rem;
    font-style: italic;
}


/* Video Embed Section */
.video-section {
    background-color: var(--color-light); 
    padding: 50px 0;
}
.video-grid {
    display: flex;
    gap: 20px; 
    justify-content: center; 
    flex-wrap: wrap; 
    margin-top: 30px;
}
.video-item {
    flex: 1 1 45%; 
    min-width: 300px; 
    text-align: center;
    padding: 15px; 
}
.video-item h4 {
    color: var(--color-pink); 
    margin-bottom: 5px;
}
.responsive-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.responsive-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
@media (max-width: 650px) {
    .video-item {
        flex-basis: 100%;
        min-width: unset;
    }
}

/* Schedules & Events (Grid Layout) */
.schedules-events { background-color: var(--color-light); }
.schedules-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}
.schedule-box {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes pulse-attention {
    0% { box-shadow: 0 0 0 0 rgba(230, 0, 122, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(230, 0, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 0, 122, 0); }
}

#todays-special-event {
    display: none;
    background-color: #fff9fb;
    border-left: 4px solid var(--color-pink);
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    color: var(--color-primary);
    font-weight: bold;
    animation: pulse-attention 2s infinite;
}

#todays-special-event.active {
    display: block;
}

.special-event-header {
    margin-bottom: 8px;
}

.special-event-list {
    display: inline-block; /* This centers the block of text */
    text-align: left;      /* Aligns the text within the block to the left */
    font-weight: normal;
}

.special-event-item:not(:last-child) {
    margin-bottom: 3px;
}

.schedule-box h3 { color: var(--color-saffron); margin-top: 0; border-bottom: 2px solid var(--color-light); padding-bottom: 10px;}
.schedule-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--color-light); }
.schedule-item:last-child { border-bottom: none; }
.time { font-weight: bold; color: var(--color-pink); }

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}


.event-tile {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.event-tile img { 
    width: 100%; 
    height: 180px; 
    object-fit: cover; 
    display: block;
}
.event-info { padding: 15px; }
.event-info h4 { margin: 0 0 5px 0; color: var(--color-text); }
.event-info p { margin: 0 0 10px 0; font-size: 0.9em; color: var(--color-saffron); }

@media (max-width: 900px) {
    .schedules-container {
        grid-template-columns: 1fr;
    }
}

/* About Us Summary */
.about-summary { text-align: center; }
.about-content { max-width: 800px; margin: 0 auto 30px auto; line-height: 1.6; }

/* Pre-footer CTA Block */
.pre-footer-cta {
    background-color: var(--color-saffron);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 20px;
}
.pre-footer-cta h3 {
    margin: 0 0 10px 0;
    font-size: 2em;
}
.pre-footer-cta p {
    font-size: 1.1em;
    margin-bottom: 25px;
    opacity: 0.9;
}
.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.secondary-cta {
    background-color: white !important;
    color: var(--color-saffron) !important;
    border: 2px solid var(--color-pink);
}
.secondary-cta:hover {
    background-color: var(--color-light) !important;
}


/* ========================================
    3. Page Specific Styles (Volunteer, FAQ, etc.)
    ======================================== */

/* --- Volunteer Page --- */
.donate-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), center/cover no-repeat url('altar2.png');
}

.tax-exempt-banner {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.volunteer-hero {
    background: center/cover no-repeat url('https://via.placeholder.com/1200x350/ff9933/222?text=VOLUNTEER+HERO+IMAGE'); 
    min-height: 300px; /* Ensure a minimum height */
    display: flex;
    padding: 60px 0; /* Use padding instead of fixed height */
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}
.volunteer-hero::before { 
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); 
}
.volunteer-hero .container { position: relative; z-index: 1; }
.volunteer-hero h2 { color: white; font-size: 40px; margin-bottom: 10px; }
.volunteer-hero p { font-size: 1.3em; margin-bottom: 30px; }

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.opportunity-card {
    background-color: var(--color-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--color-pink);
}
.opportunity-card h4 {
    color: var(--color-saffron);
    margin-top: 0;
    font-size: 1.3em;
}
.cta-box {
    text-align: center;
    padding: 40px;
    background-color: var(--color-light);
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 50px;
}
.cta-box h3 {
    color: var(--color-saffron);
    font-size: 2em;
    margin-top: 0;
}

/* --- Registration Form Styles --- */
.registration-form-section {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.registration-form-section h3 {
    color: var(--color-pink);
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
/* Add spacing below every standard form group */
.form-group {
    margin-bottom: 15px; 
}

.form-group.full-width {
    grid-column: 1 / -1;
   
}
/* Ensure labels are block elements for proper stacking */
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-group input[type="text"], 
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

/* Add/Check this rule outside of any @media query */

.form-group-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px; /* Add space between this row and the next */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.form-group-row .form-group {
    flex: 1; /* Allow groups to grow */
    min-width: 200px; /* Prevent them from becoming too narrow */
}

/* Ensure individual form groups inside the row flex equally */
.form-group-row .form-group {
    flex: 1 1 50%; /* Make each group take roughly half the row */
    margin-bottom: 0; /* Remove extra margin if added by general form-group rule */
}

.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.service-options label {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: normal;
    margin-bottom: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    line-height: 1.3;
}

.service-options label:hover {
    border-color: var(--color-pink);
    background-color: #fff9fb;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.service-options input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin: 0 12px 0 0 !important;
    accent-color: var(--color-pink);
    border: none;
    box-shadow: none;
    padding: 0;
    flex-shrink: 0;
}: 0 12px 0 0 !important;
    accent-color: var(--color-pink);
    border: none;
    box-shadow: none;
    padding: 0;
    flex-shrink: 0;
}: 0 12px 0 0 !important;
    accent-color: var(--color-pink);
    border: none;
    box-shadow: none;
    padding: 0;
    flex-shrink: 0;
}: 0 12px 0 0 !important;
    accent-color: var(--color-pink);
    border: none;
    box-shadow: none;
    paddinea {
    text-align: center;
    margin-top: 40px;
}
@media (max-width: 600px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile responsiveness */

    .acharya-list {
        grid-template-columns: 1fr;
    }

}

/* --- FAQ Page --- */
.faq-intro {
    text-align: center;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 50px auto;
}
.faq-category {
    margin-bottom: 40px;
    padding: 20px;
    border-left: 5px solid var(--color-saffron);
    background-color: var(--color-light);
    border-radius: 5px;
}
.faq-category h3 {
    color: var(--color-pink);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}
.faq-item {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px dotted #ddd;
}
.faq-question {
    font-weight: bold;
    color: var(--color-saffron);
    margin-bottom: 8px;
    cursor: pointer; 
    font-size: 1.1em;
}
.faq-answer {
    line-height: 1.6;
    padding-left: 15px;
    color: var(--color-text);
}
.faq-answer ul {
    list-style: none; /* Remove default bullet points */
    padding-left: 10px;
    margin-top: 15px;
}
.faq-answer li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px; /* Space between list items */
}
.faq-answer li::before {
    content: "•"; /* Use a standard bullet character */
    color: var(--color-pink); /* Match your theme's accent color */
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* --- Community Page --- */
.community-hero {
    background: center/cover no-repeat url('https://via.placeholder.com/1200x350/e6007a/ffffff?text=COMMUNITY+CONNECTION+IMAGE'); 
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}
.community-hero::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); 
}
.community-hero .container {
    position: relative;
    z-index: 1;
}
.community-hero h2 {
    color: white;
    font-size: 40px;
    margin-bottom: 10px;
}
.community-hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
}
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.channel-card {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--color-saffron);
}

/* --- Services Page --- */
.services-hero {
    background: center/cover no-repeat url('https://via.placeholder.com/1200x300/ff9933/222?text=VEDIC+CEREMONY+BACKGROUND');
    height: 300px;
    /* ... other hero styles ... */
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.service-tile {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--color-saffron);
}
.service-contact {
    text-align: center;
    padding: 50px;
    background-color: var(--color-light);
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* --- Donate Page --- */
.donate-options {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.option-box {
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    background-color: white;
}
.mail-ach-group {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.mail-ach-group .check-donate, 
.mail-ach-group .ach-donate {
    flex: 1 1 45%; 
    min-width: 280px; 
    margin: 0; 
    box-sizing: border-box;
}
.online-donate {
    /* Ensure the online box is full width above a certain point */
    flex: 1 1 100%; 
    max-width: 610px; /* This limits the box width on very wide screens */
}
@media (max-width: 768px) {

    .global-list {
        grid-template-columns: 1fr;
    }

    .tour-stop, .tour-stop.reverse {
        flex-direction: column;
        gap: 30px;
    }
    .tour-container {
        gap: 60px;
    }

    .donate-options {
        flex-direction: column;
    }
    .mail-ach-group {
        flex-direction: column; 
        min-width: 100%;
    }
    .option-box, .mail-ach-group .check-donate, .mail-ach-group .ach-donate {
        min-width: 100%;
        flex-basis: auto;
    }
    .mission-grid, .history-flex {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}
.highlight { font-weight: bold; color: var(--color-pink); }

/* --- Catering Pages --- */
.hero-catering {
    background: url('catering.png') center center / cover no-repeat; /* Replace with a high-quality food image */
    height: 350px; /* Adjust height as needed */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.hero-catering::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
}
.hero-catering .hero-content {
    z-index: 10;
}
.hero-catering h1 {
    font-size: 3em;
    margin-bottom: 10px;
}
.hero-catering p {
    font-size: 1.2em;
}
.section-purity {
    background-color: var(--color-saffron); 
    color: var(--color-light); 
    text-align: center;
    padding: 40px 20px;
}
.purity-feature {
    max-width: 800px;
    margin: 0 auto;
}
.purity-feature h2 {
    color: var(--color-light);
    border-bottom: 2px solid var(--color-light);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.hero-quote {
    background-color: var(--color-primary); 
    color: var(--color-light); 
    height: 250px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative; 
}
.hero-quote h1 { font-size: 2.5em; margin-bottom: 5px; }

/* --- WhatsApp Join Page --- */
.hero-whatsapp {
    background-color: #25D366; 
    color: white;
    height: 200px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.cta-whatsapp {
    background-color: #25D366; 
    color: white;
    border: 2px solid #128C7E;
    font-size: 1.4em;
    padding: 15px 40px;
    text-decoration: none;
    display: inline-flex; 
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    transition: background-color 0.3s;
}
.cta-whatsapp:hover {
    background-color: #128C7E;
}


/* ========================================
    4. Footer (Responsive)
    ======================================== */
.footer { 
    background-color: var(--color-dark); 
    color: #e0e0e0;
    padding: 60px 0 30px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding-bottom: 30px;
}
.footer-grid h4 { 
    position: relative; /* This is the key fix to anchor the ::after pseudo-element */
    color: var(--color-saffron); 
    margin-bottom: 15px; 
    font-size: 1.2em;
    padding-bottom: 10px; /* Add space for the line */
}
.footer-grid h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0; /* Align to the bottom of the padding area */
    width: 30px;
    height: 2px;
    background-color: var(--color-pink);
}
.footer-grid p, .footer-grid a { 
    color: #ccc; 
    line-height: 1.8; 
    font-size: 1em; 
}
.footer-grid a {
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-grid a:hover { 
    color: var(--color-pink);
    transform: translateX(5px);
}
/* Social icons in footer (Already styled in section 1) */
.footer-bottom { 
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #888;
    text-align: center;
}

/* Footer Tablet/Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }

    .hero-title-section {
        margin-top: 0;
        padding: 15px 20px;
    }
    .hero-title-section h1 {
        font-size: 2rem;
    }
    .hero-title-section p {
        font-size: 1rem;
    }
}
@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-grid > div {
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .footer-grid > div:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .footer-grid > div {
        /* Center align text on mobile for a cleaner look */
        text-align: center;
    }
    /* Center the decorative line on mobile */
    .footer-grid h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}


/* ----------------------------------------
   Header Mobile Responsiveness (CORRECTED & CONSOLIDATED)
   ---------------------------------------- */

/* Prevents background from moving when mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

@media (max-width: 992px) {

    .ask-container {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
    }

    /* Inside styles.css, inside @media (max-width: 992px) { ... } */

/* Ensure all inputs and selects still take full width on mobile */
    .option-box input[type="text"],
    .option-box input[type="email"],
    .option-box input[type="number"],
    .option-box select {
        width: 100%;
        /* Increase the top/bottom padding to make the input taller */
        padding: 14px 12px; /* Changed from 10px 12px */
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box; 
    }

    /* --- CRITICAL FIX FOR DONATION AMOUNT INPUT HEIGHT --- */
.option-box.check-donate {
        margin-top: 20px !important;
        padding: 20px !important;
    }
#donation-amount {
    /* Sets a specific, noticeable height (e.g., 50px total height) */
    height: 50px !important; 
    
    /* Re-apply generous padding to center the text vertically */
    padding-top: 14px !important; 
    padding-bottom: 14px !important;
    
    /* Ensure the width remains responsive */
    width: 100% !important; 
    box-sizing: border-box !important;
}
    
    .nav-bar {
        padding: 0 20px;
    }

    /* Show the hamburger menu icon */
    .menu-toggle {
        display: block; 
        cursor: pointer;
        padding: 15px 5px;
        z-index: 1010; 
    }
    .menu-toggle .bar {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
        transition: 0.4s;
    }

    /* Hamburger Icon Transformation (When JS adds .open) */
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* ------------------------------------- */
    /* THE MOBILE MENU (Hidden by default) */
    /* ------------------------------------- */
    .menu { 
        display: none; /* CRITICAL: Hides the menu by default on mobile */
        position: absolute;
        flex-direction: column;
        width: 100%;
        top: 60px; /* Aligned just below the header bar */
        left: 0;
        z-index: 999; 
        
        background-color: #f0f0f0; /* Forced background for visibility */
        box-shadow: 0 5px 10pxrgba(0, 0, 0, 0.1);
        padding-bottom: 10px;
    } 

    .menu.active {
        /* CRITICAL: This rule forces the menu to display */
        display: flex !important; 
        /* Extreme Overrides for Visibility Conflicts */
        min-height: 200px !important; 
        overflow: visible !important;
        opacity: 1 !important;
    }
    
    /* Mobile Menu Item Styling */
    .menu-item {
        width: 100%; 
        border-bottom: 1px dashed #e0e0e0;
        text-align: left;
    }
    .menu-item:last-child {
        border-bottom: none;
    }
    
    /* Mobile text color is dark for better contrast on light background */
    .menu-item > a {
        color: var(--color-text); 
        padding: 12px 20px;
    }
    /* FIX: Ensure the mobile donate button text is white */
    .donate-item-mobile > a.cta-button {
        color: white !important;
    }
    /* FIX: Restore White text on the Pink Donate button inside the mobile menu */
    .donate-item a {
    color: white !important;
}
/* Ensure the pink background is also visible if it was affected */
    .donate-item a.cta-button {
        /* Set color back to white and background to pink (as previously fixed) */
        color: white !important;
        background-color: var(--color-pink) !important;
        
        /* THE KEY FIX: Override display: block to stop stretching */
        display: inline-block !important; /* Forces the anchor to only size to its content */
        width: auto !important; /* Explicitly prevent stretching */
        
        /* Ensure default spacing */
        padding: 10px 20px !important; 
        margin: 0;
}

    .menu-item > a:hover {
        background-color: var(--color-light); 
        display: inline-block !important; /* Forces the anchor to only size to its content */
        margin: 0 auto; /* Ensures centering if needed */
        padding: 10px 20px; /* Keep standard padding */
        width: auto !important; /* Explicitly prevent stretching */
    }

    /* FIX 3: Prevent the Donate item from stretching full width */
    .donate-item {
        width: 100%; /* Keep the LI full width */
    /* Correct styling for the mobile donate button's container */
    .donate-item-mobile {
        text-align: center; /* Centers the button inside the list item */
        padding: 15px 0; 
        border-bottom: none;
}
    }

#donation-amount {
    /* Sets a specific, noticeable height (e.g., 50px total height) */
    height: 40px !important; 
    
    /* Re-apply generous padding to center the text vertically */
    padding-top: 14px !important; 
    padding-bottom: 14px !important;
    
    /* Ensure the width remains responsive */
    width: 100% !important; 
    box-sizing: border-box !important;
}

    /* Mobile Submenu Positioning */
    .submenu {
        position: static; 
        width: 100%;
        box-shadow: none; 
        background-color: #e0e0e0; 
        border-top: none;
        padding-left: 20px;
    }
    .submenu li a {
        color: var(--color-text);
        padding: 8px 10px;
    }
    .submenu li a:hover {
        background-color: #d0d0d0;
    }

    /* Hide the social icons in the header bar on mobile */
    .social-icons {
        display: none;
    }
    .header-actions {
        /* Hide the new container on mobile, as donate button is in the menu */
        display: none;
    }
    /* Show the mobile-only donate button inside the hamburger menu */
    .donate-item-mobile {
        display: list-item;
        text-align: center;
    }
    /* BUT, ensure the footer social icons are ALWAYS visible */
    .footer-social {
        display: flex !important;
        justify-content: center; /* Center the icons within their container */
    }
}

/* New rule for Donation Page button spacing */
#paypal-button-container {
    padding-top: 20px;
    padding-bottom: 5px; /* Reduce space below the button if needed */
    text-align: left; /* Ensure the button and text are aligned with the form */
}

/* Add margin to the button itself for extra space */
.online-donate .cta-button {
    margin: 15px 0 5px 0; /* Top, Right, Bottom, Left margin */
}

/* And ensure the descriptive text is styled correctly */
#paypal-button-container p {
    margin-top: 10px; 
    margin-bottom: 0; 
}

/* --- Acharya Page Styles --- */
.acharya-hero {
    background-color: #f4f4f4;
    padding: 60px 0;
    text-align: center;
    border-bottom: 3px solid #d81b60; /* Using your theme pink */
}

.acharya-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.acharya-content {
    padding-top: 40px;
}

.acharya-profile {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.acharya-image {
    flex: 1;
    max-width: 400px;
}

.acharya-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.acharya-bio {
    flex: 2;
}

.highlight-text {
    font-weight: bold;
    color: #d81b60;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.acharya-bio h3 {
    margin-top: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.acharya-bio ul {
    list-style: none;
    padding-left: 0;
}

.acharya-bio ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.acharya-bio ul li::before {
    content: "•";
    color: #d81b60;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .bio-block {
        flex-direction: column;
        gap: 15px;
    }
    .bio-date {
        border-right: none;
        border-bottom: 2px solid var(--color-pink);
        padding-bottom: 5px;
        width: 100%;
    }

    .acharya-profile {
        flex-direction: column;
        align-items: center;
    }
    .acharya-image {
        max-width: 100%;
        margin-bottom: 30px;
    }
}

.acharya-bio strong {
    color: #d81b60; /* Using your theme pink/maroon color */
    font-weight: 600;
}

.acharya-bio em {
    font-style: italic;
    color: #555; /* Slightly muted color for Sanskrit terms */
}

/* --- Hero Video Styling --- */
.hero-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px; /* Limits the size on desktop */
    margin: 30px auto 0 auto; /* Centers the video and adds space above */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.acharya-hero {
    padding-bottom: 80px; /* Extra padding since the video is large */
}

/* --- About Page Enhancements --- */
.large-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #444;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    font-style: italic;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.mission-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--color-pink, #d81b60);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.history-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 60px 0;
}

.history-content { flex: 1.5; }
.history-image { flex: 1; }
.history-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 10px 10px 0px var(--color-pink, #d81b60); /* Decorative offset shadow */
}

.tax-info-section {
    background-color: #f9f9f9;
}

.tax-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 12px;
}

/* --- Lineage Page Styles --- */

.lineage-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.intro-paragraph {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
}

.lineage-chart {
    margin: 40px auto;
    max-width: 800px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
}

.lineage-chart img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.acharya-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.acharya-card {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.acharya-card h3 {
    color: var(--color-saffron);
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.acharya-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.acharya-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Highlight for the most recent Acharyas in your specific branch */
.current-line {
    border-top: 4px solid var(--color-pink);
}

/* Add a connector for visual flow (optional, for decorative arrows/lines) */
/* .acharya-list::before { ... } */

/* --- Virtual Tour Styles --- */
.tour-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 40px 0;
}

.tour-stop {
    display: flex;
    align-items: center;
    gap: 50px;
}

.tour-stop.reverse {
    flex-direction: row-reverse;
}

.tour-text {
    flex: 1;
}

.stop-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(216, 27, 96, 0.1); /* Very faint pink */
    display: block;
    margin-bottom: -20px;
}

.tour-text h2 {
    color: var(--color-pink);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.tour-media {
    flex: 1;
}

.tour-media img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.tour-media img:hover {
    transform: scale(1.02);
}

.visit-cta {
    background-color: #f9f9f9;
    text-align: center;
    border-top: 1px solid #eee;
}

/* --- Gallery Styles --- */
.gallery-section {
    background-color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    color: var(--color-pink, #d81b60);
    margin-bottom: 10px;
}

.section-subtitle {
    color: #777;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This crops images perfectly into the square box */
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1); /* Subtle zoom effect on hover */
}

.category-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    color: #666;
}

.global-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.continent h3 {
    color: var(--color-pink);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.continent ul {
    list-style: none;
    padding: 0;
}

.continent li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-outline {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid var(--color-pink);
    color: var(--color-pink);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--color-pink);
    color: white;
}

/* --- Ask a Question Styles --- */
.ask-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.ask-intro blockquote {
    margin-top: 30px;
    padding: 20px;
    background: #fff5f8;
    border-left: 4px solid var(--color-pink);
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.styled-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

/* Ensure the row doesn't allow items to overflow */
.form-row {
    display: flex;
    flex-wrap: wrap; /* Allows items to drop to next line if no space */
    gap: 20px;
    width: 100%;
}

/* Explicitly manage the width of the groups within the row */
.form-row .form-group {
    flex: 1; /* Distributed evenly */
    min-width: 200px; /* Prevents them from getting too skinny */
}

/* Specific fix for number/age inputs that don't need much width */
input[type="number"] {
    max-width: 100%; /* Keeps it inside its parent */
    box-sizing: border-box; /* Includes padding in the width calculation */
}

/* Ensure the dashed container itself has hidden overflow just in case */
.child-entry {
    overflow: hidden;
    word-wrap: break-word;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}



.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-pink);
}

.submit-btn {
    background-color: var(--color-pink);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #b0154b;
}

/* --- Bio Timeline Styles --- */
.bio-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 40px 20px;
}

.bio-block {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.bio-date {
    flex: 0 0 120px;
    font-weight: 800;
    color: var(--color-pink);
    font-size: 1.1rem;
    padding-top: 5px;
    border-right: 2px solid #eee;
}

.bio-content {
    flex: 1;
}

.bio-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.6rem;
}

.bio-content p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.bio-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.final-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-pink);
    text-align: center;
    padding: 30px 0;
    font-weight: bold;
}

.bio-prayer {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 40px;
    font-style: italic;
    color: #666;
}

/* Bio Action Buttons */
.bio-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--color-pink, #D81B60);
    color: white;
    border: 2px solid var(--color-pink, #D81B60);
    box-shadow: 0 4px 15px rgba(216, 27, 96, 0.3);
}

.btn-primary:hover {
    background-color: #b0154b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-pink, #D81B60);
    border: 2px solid var(--color-pink, #D81B60);
}

.btn-secondary:hover {
    background-color: rgba(216, 27, 96, 0.05);
    transform: translateY(-2px);
}

/* Ensure buttons stack on small screens */
@media (max-width: 480px) {
    .bio-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 250px;
    }
    .bio-profile-area {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .profile-image-gallery {
        /* Stack the side images below the main one on mobile */
        flex-direction: column;
    }
}

.bio-prayer.tight-bottom {
    padding-top: 20px;
    padding-bottom: 0; /* Removes bottom padding inside the bio container */
    margin-bottom: 0;
}

/* --- Acharya Bio Page Enhancements --- */
.bio-section {
    background-color: #fcfcfc;
}

.bio-profile-area {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.profile-image-gallery {
    display: flex;
    gap: 10px;
    align-items: center; /* Vertically align all items */
}

.main-image-container {
    flex: 1.5; /* Give the main image slightly more space */
    order: 2; /* Place the main image in the center */
}

.main-bio-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: #777;
    font-size: 0.9rem;
    margin-top: 10px;
}

.side-images {
    flex: 1;
    order: 1; /* Default order for the first side-images div */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Place the second side-images div at the end */
.side-images:last-child {
    order: 3;
}

.profile-intro-text .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #444;
}

.soft-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 40px 0;
}
/* --- Bio Footer CTA Styles --- */
.bio-footer-cta {
    padding-top: 40px; /* Reduced from 100px */
    padding-bottom: 80px;
    background-color: #fff;
}

.cta-card {
    background: linear-gradient(135deg, var(--color-pink, #D81B60) 0%, #ad1457 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(216, 27, 96, 0.2);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Optional: Add a subtle lotus pattern overlay if you have an icon */
.cta-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
    opacity: 0.9;
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-card p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-main {
    background-color: white;
    color: var(--color-pink);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-main:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    padding: 13px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--color-pink);
}

.cta-info {
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

@media (max-width: 768px) {
    .cta-card { padding: 40px 20px; }
    .cta-card h2 { font-size: 1.8rem; }
    .cta-buttons { flex-direction: column; }
}

/* --- Sunday School Styles --- */
.school-hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('school-bg.jpg'); /* Add a nice background image of children or art */
    background-size: cover;
    background-position: center;
}

.school-intro {
    max-width: 800px;
    margin: 0 auto 50px;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.school-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--color-pink);
    text-align: center;
}

.school-card:hover {
    transform: translateY(-10px);
}

.school-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.school-card h3 {
    margin-bottom: 20px;
    color: var(--color-pink);
}

.school-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
}

.school-card li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.school-card li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--color-pink);
}

.registration-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section h3 {
    color: var(--color-pink);
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.child-entry {
    background: #fff9fb;
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed var(--color-pink);
    margin-top: 20px;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
}

/* Payment Selection Grid */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.payment-option {
    cursor: pointer;
    position: relative;
}

.payment-option input {
    position: absolute;
    opacity: 0; /* Hide the default radio circle */
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.option-content i {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 10px;
}

.option-title {
    font-weight: bold;
    color: #333;
    display: block;
}

.option-details {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* Active State: When the radio is checked, change the card style */
.payment-option input:checked + .option-content {
    border-color: var(--color-pink);
    background-color: #fff9fb;
    box-shadow: 0 4px 12px rgba(216, 27, 96, 0.1);
}

.payment-option input:checked + .option-content i {
    color: var(--color-pink);
}

.payment-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.fee-summary-container {
    background: #fdfdfd;
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 12px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
}

.fee-row.discount {
    color: #28a745; /* Green for discounts */
    font-weight: 500;
}

.fee-row.total {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-pink);
    margin-top: 10px;
}

.fee-breakdown hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 15px 0;
}
.child-header {
    display: flex;
    justify-content: space-between; /* Pushes title to left, button to right */
    align-items: center;
    margin-bottom: 15px;
}

.remove-btn {
    background-color: #ffeded;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    position: relative;
    cursor: pointer;
    pointer-events: auto; /* Ensures the button is actually clickable */
}

.remove-btn:hover {
    background-color: #d32f2f;
    color: white;
}
/* Make the total fee pop */
.fee-row.total {
    background-color: #fff9fb;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--color-pink);
    margin-top: 20px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.zelle-copy-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--color-pink);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px;
    transition: transform 0.2s ease;
}

.copy-btn:hover {
    transform: scale(1.2);
}

.copy-status {
    font-size: 0.75rem;
    color: #28a745;
    font-weight: bold;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-status.show {
    opacity: 1;
}

/* Coming Soon Page Styles */
.construction-body {
    background-color: #fdf2f5;
}

.full-height-center {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.construction-card {
    background: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto;
}

.construction-icon {
    font-size: 4rem;
    color: var(--color-pink);
    margin-bottom: 20px;
    animation: wrench-wiggle 2s infinite ease-in-out;
}

/* Animation for the icon */
@keyframes wrench-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.progress-container {
    width: 100%;
    background-color: #eee;
    border-radius: 10px;
    height: 10px;
    margin: 30px 0 10px;
    overflow: hidden;
}

.progress-bar {
    width: 65%; /* You can change this % */
    height: 100%;
    background-color: var(--color-pink);
    border-radius: 10px;
    animation: progress-slide 3s infinite alternate ease-in-out;
}

@keyframes progress-slide {
    from { width: 40%; }
    to { width: 85%; }
}

.status-text {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.mt-4 {
    margin-top: 2rem;
}
/* Coming Soon Page Styles */
.construction-body {
    background-color: #fdf2f5;
}

.full-height-center {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.construction-card {
    background: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto;
}

.construction-icon {
    font-size: 4rem;
    color: var(--color-pink);
    margin-bottom: 20px;
    animation: wrench-wiggle 2s infinite ease-in-out;
}

/* Animation for the icon */
@keyframes wrench-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.progress-container {
    width: 100%;
    background-color: #eee;
    border-radius: 10px;
    height: 10px;
    margin: 30px 0 10px;
    overflow: hidden;
}

.progress-bar {
    width: 65%; /* You can change this % */
    height: 100%;
    background-color: var(--color-pink);
    border-radius: 10px;
    animation: progress-slide 3s infinite alternate ease-in-out;
}

@keyframes progress-slide {
    from { width: 40%; }
    to { width: 85%; }
}

.status-text {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.mt-4 {
    margin-top: 2rem;
}
.construction-icon i {
    animation: bounce 2s infinite;
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Fix for hero sections with background images */
.school-hero {
    color: white;
}

/* --- Calendar Page Styles --- */
#calendar-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.8em;
}

.calendar-header button {
    background-color: var(--color-saffron);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.calendar-header button:hover {
    background-color: #cc7a29;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-grid div {
    padding: 15px 5px;
    text-align: center;
    border-radius: 4px;
}

.day-name {
    font-weight: bold;
    color: var(--color-text);
    background-color: var(--color-light);
}

.day.ekadasi {
    background-color: var(--color-pink);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}
.day.ekadasi:hover {
    transform: scale(1.1);
}

.event-details-box {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff9fb;
    border: 1px solid var(--color-pink);
    border-left: 5px solid var(--color-pink);
    border-radius: 5px;
}

/* --- Reusable Content Page Styles --- */
.page-image-container {
    text-align: center;
    margin: 40px 0;
}

.page-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.page-blockquote {
    margin: 30px auto 40px;
    padding: 30px;
    background: #fff9fb;
    border-left: 6px solid var(--color-pink);
    font-size: 1.1em;
    color: #444;
    line-height: 1.7;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 90%;
}
.page-blockquote strong {
    font-style: normal;
    font-size: 0.9em;
    color: #777;
    display: block;
    margin-top: 10px;
}
}

/* --- Bhagavad-gita Class Schedule Styles --- */
.class-schedule-container {
    max-width: 900px;
    margin: 60px auto 0;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.schedule-item-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    border-left: 5px solid var(--color-saffron);
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.schedule-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.schedule-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    background-color: var(--color-light);
    border-radius: 8px;
    padding: 10px 5px;
    font-weight: bold;
}

.schedule-date .month {
    display: block;
    font-size: 0.8rem;
    color: var(--color-pink);
    text-transform: uppercase;
}

.schedule-date .day {
    display: block;
    font-size: 2.2rem;
    color: var(--color-text);
    line-height: 1;
}

.schedule-date .year {
    display: block;
    font-size: 0.8rem;
    color: #888;
}

.schedule-details {
    flex-grow: 1;
}

.schedule-details h4 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #555;
}

.info-tags span i {
    margin-right: 5px;
    color: var(--color-pink);
}

.schedule-action .btn-main {
    padding: 10px 20px;
    border-radius: 8px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .schedule-item-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .info-tags {
        justify-content: center;
    }
    .schedule-action {
        margin-top: 15px;
    }
}
}

/* --- Gaudiya Math Worldwide Page Styles --- */
.bg-light {
    background-color: var(--color-light);
}

.intro-box {
    max-width: 800px;
    margin: 0 auto;
}

.intro-box h2 {
    color: var(--color-primary);
}

.centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.center-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.center-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.center-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.center-info h3 {
    margin: 0 0 5px 0;
    color: var(--color-pink);
}

.math-name {
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 5px;
}

.address {
    font-size: 0.9rem;
    color: #666;
    flex-grow: 1;
    margin-bottom: 15px;
}

.global-list-container {
    margin-top: 40px;
}

.global-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.continent h3 {
    color: var(--color-pink);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
}

/* --- New Donation Page Layout --- */
.donation-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.donation-form-container .styled-form {
    padding: 30px;
    border: 1px solid #eee;
}

.donation-impact-container .impact-box {
    background-color: #fdf9f5;
    border: 1px solid #fbe5d3;
    border-radius: 12px;
    padding: 30px;
    position: sticky;
    top: 100px; /* Sticks below the header */
}

.donation-impact-container img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.donation-impact-container h3 {
    color: var(--color-primary);
    margin-top: 0;
}

.donation-impact-container ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.donation-impact-container li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.donation-impact-container li i {
    color: var(--color-pink);
}

.other-ways-to-give .other-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.other-ways-to-give .option-box {
    background-color: #f9f9f9;
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.other-ways-to-give .other-icon {
    font-size: 2rem; color: var(--color-saffron); position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
}

/* Responsive adjustments for the new layout */
@media (max-width: 992px) {
    .donation-layout {
        grid-template-columns: 1fr;
    }
    .other-ways-to-give .other-options-grid {
        grid-template-columns: 1fr;
    }
}

/* Bank name display for ACH form */
.bank-name-display {
    font-size: 0.9em;
    font-weight: bold;
    margin-top: -10px; /* Pull it up closer to the input field */
    margin-bottom: 15px;
    padding-left: 5px;
    height: 1.2em; /* Reserve space to prevent layout shift */
}

/* Fix for Tray Row layout to prevent wrapping */
.tray-row {
    flex-direction: row !important; /* Prevent column stacking on tablets */
    flex-wrap: nowrap;
}
.tray-row .form-group {
    min-width: 0 !important; /* Override global 200px min-width */
}

/* --- Catering Tray Order Responsiveness --- */
@media (max-width: 768px) {
    .tray-row {
        flex-direction: row !important; /* Override column direction from .form-row */
        flex-wrap: wrap;
        background-color: #f8f9fa;
        padding: 15px;
        border-radius: 8px;
        border: 1px solid #e9ecef;
        gap: 10px;
        align-items: flex-end !important;
        margin-bottom: 20px !important;
    }

    /* Reset margins/padding that might interfere */
    .tray-row .form-group {
        margin: 0;
        padding: 0;
    }

    /* Food Item: Full Width on its own line */
    .tray-row .form-group:nth-child(1) {
        flex: 1 1 100% !important;
        width: 100%;
    }

    /* Size: Takes up about half of the second line */
    .tray-row .form-group:nth-child(2) {
        flex: 1 1 40% !important;
    }

    /* Qty: Takes up space next to size */
    .tray-row .form-group:nth-child(3) {
        flex: 1 1 25% !important;
    }

    /* Remove Button: Fixed size at the end */
    .tray-row .form-group:nth-child(4) {
        flex: 0 0 auto !important;
        margin-left: 10px !important; /* Ensure space from Qty field on mobile */
    }

    /* Adjust button size for touch targets */
    .tray-row button {
        width: 42px !important;
        height: 42px !important;
        margin-bottom: 1px !important;
    }
    
    /* Make the Add Button full width */
    #tray-order-section .cta-button {
        width: 100% !important;
        display: block !important;
        text-align: center;
        margin-top: 10px;
    }
}

/* Compact Service Options on Mobile to save space */
@media (max-width: 600px) {
    .service-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .service-options label {
        padding: 10px;
        font-size: 0.95rem;
    }
}
