:root {
    --bg-color: #fdfaf5; /* Lighter, warmer background, consistent with homepage */
    --text-color: #2b2b2b;
    --card-bg: #ffffff;
    --footer-bg: #eee2c0;
    --primary-color: #8B4513; /* SaddleBrown, consistent */
    --accent-color: #FFA500; /* Orange, consistent */
    --dark-brown: #5A2D0C;
    --light-cream: #FFF8E1;
    --dark-green-whatsapp: #128C7E; /* From homepage styles */
    --light-green-whatsapp: #25D366; /* From homepage styles */
    --primary-header-color: var(--primary-color); /* Alias for clarity */
    --accent-button-color: var(--accent-color); /* Alias for clarity */
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Consistent font */
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative; /* For elements that rely on it */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Common Section Titles */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- Header (Consistent with Homepage) --- */
header {
    width: 100%;
    position: relative;
    z-index: 1000;
}
.top-bar {
    background-color: var(--light-cream);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px; /* Slightly larger logo */
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.8rem; /* Larger font size for title */
    color: var(--dark-brown);
    font-weight: 700;
}

/* Menu Toggle Button with Icon */
.toggle-buttons {
    display: block; /* Ensure toggle button is visible in mobile */
}
.toggle-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1; /* Aligns icon vertically */
}

.menu-icon {
    font-size: 2.0rem; /* Size of the Font Awesome icon */
    color: var(--primary-color); /* Color of the icon */
    transition: transform 0.3s ease, color 0.3s ease;
}

.menu-icon:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* Advanced Fullscreen Navbar (Consistent with Homepage) */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98); /* Semi-transparent white overlay */
    transform: translateX(100%); /* Initially off-screen */
    z-index: 1010; /* Increased z-index */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    visibility: hidden; /* Ensures it's not focusable when hidden */
    opacity: 0; /* For fade effect when shown */
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s ease, visibility 0s linear 0.5s;
}

.main-nav.show {
    transform: translateX(0); /* Slide in */
    visibility: visible; /* Make visible */
    opacity: 1; /* Fade in */
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s ease, visibility 0s linear 0s;
}

.main-nav .close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-nav .close-button:hover {
    transform: rotate(90deg);
}

.main-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.main-nav li {
    margin: 20px 0;
    opacity: 0; /* Initially hidden for animation */
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.main-nav.show li {
    opacity: 1; /* Fade in */
    transform: translateY(0);
}

/* Staggered animation for nav items */
.main-nav.show li:nth-child(1) { transition-delay: 0.1s; }
.main-nav.show li:nth-child(2) { transition-delay: 0.2s; }
.main-nav.show li:nth-child(3) { transition-delay: 0.3s; }
.main-nav.show li:nth-child(4) { transition-delay: 0.4s; }
.main-nav.show li:nth-child(5) { transition-delay: 0.5s; }


.main-nav li a {
    font-size: 2.5rem; /* Large menu items for mobile */
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.main-nav li a:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}


/* About Us Section Styles */
.about-us-section {
    padding: 60px 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.about-us-section.team-section-bg {
    background-color: var(--light-cream); /* Different background for team section */
}

.about-us-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.about-us-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-header-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.about-us-section .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-button-color);
    margin: 10px auto 0;
    border-radius: 5px;
}

.about-block {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    line-height: 1.8;
    /* Initial state for JS animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-block h3 {
    font-size: 1.8rem;
    color: var(--primary-header-color);
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    display: flex; /* For icon alignment */
    align-items: center;
    gap: 10px; /* Space between icon and text */
}

.about-block h3 .icon-left {
    color: var(--accent-color);
    font-size: 1.5em;
}

.about-block p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.about-block ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.about-block ul li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 8px;
    position: relative;
    padding-left: 30px; /* Space for custom bullet */
    display: flex; /* For icon alignment */
    align-items: flex-start;
}

.about-block ul li .list-icon {
    position: absolute;
    left: 0;
    color: var(--accent-button-color); /* Color the bullet */
    font-size: 1.2rem;
    top: 4px; /* Adjust vertical alignment */
}

/* --- New Gau Nandi Aarti Section --- */
.aarti-section {
    padding: 80px 20px;
    background-color: #fdfaf5; /* A slightly different background */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.aarti-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    /* Initial state for JS animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.aarti-image-container {
    position: relative;
    margin-bottom: 30px;
    display: inline-block;
}

.aarti-img {
    width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    filter: brightness(0.9);
    transition: filter 0.5s ease;
}

.aarti-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    animation: pulseGlow 2s infinite alternate; /* Animates only when in view via JS */
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
}


.aarti-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.8;
}

.btn-play-audio {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-play-audio:hover {
    background-color: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-play-audio i {
    font-size: 1.2rem;
}


/* Team Section */
.team-title {
    margin-top: 50px;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.team-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Initial state for JS animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--accent-button-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
    font-size: 1.6rem;
    color: var(--primary-header-color);
    margin-bottom: 5px;
}

.team-card p {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 10px;
}

.team-card p strong {
    color: var(--text-color);
}


/* Footer (Consistent with Homepage) */
footer {
    background-color: var(--footer-bg);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: var(--dark-brown);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

footer p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer p a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    /* Desktop-specific navbar underline effect (Consistent with Homepage) */
    .main-nav {
        position: static;
        transform: translateX(0);
        background: none;
        height: auto;
        flex-direction: row;
        box-shadow: none;
        transition: none;
        visibility: visible;
        opacity: 1;
    }
    .main-nav .close-button, .toggle-buttons {
        display: none;
    }
    .main-nav ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
    .main-nav li {
        margin: 0 15px;
        opacity: 1;
        transform: none;
    }
    .main-nav li a {
        font-size: 1.1rem;
        color: var(--text-color);
    }
    .main-nav li a:hover {
        color: var(--primary-color);
    }
    .main-nav li a {
        position: relative;
        overflow: hidden;
    }
    .main-nav li a::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 5px;
        height: 2px;
        width: 0;
        background-color: var(--accent-color);
        transition: width 0.3s ease, left 0.3s ease;
    }
    .main-nav li a:hover::after {
        width: 100%;
        left: 0;
    }

    .about-block h3 {
        font-size: 2rem;
    }

    .about-block p,
    .about-block ul li {
        font-size: 1.05rem;
    }

    .team-card {
        width: calc(33.33% - 20px);
    }
}

@media (max-width: 767px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    /* Mobile Navbar Font Alignment Fix (Consistent with Homepage) */
    .main-nav li a {
        font-size: 1.8rem;
        padding: 8px 0;
    }
    .main-nav ul {
        width: 100%;
        padding: 0 15px;
    }


    .about-us-section {
        padding: 40px 15px;
    }

    .about-us-section .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .about-block {
        padding: 20px;
        margin-bottom: 25px;
    }

    .about-block h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .about-block p,
    .about-block ul li {
        font-size: 0.9rem;
    }

    /* Aarti Section Mobile */
    .aarti-section {
        padding: 50px 15px;
    }
    .aarti-content {
        padding: 25px;
    }
    .aarti-img {
        width: 200px;
    }
    .aarti-content p {
        font-size: 1rem;
    }
    .btn-play-audio {
        font-size: 0.9rem;
        padding: 10px 20px;
    }


    .team-card {
        max-width: 90%; /* Allow cards to take more width on small screens */
    }
}