/* --- CSS Variables for Easy Theming --- */
:root {
    --primary-color: #0077b6; /* Friendly Blue */
    --secondary-color: #ffc300; /* Sunny Yellow */
    --accent-color: #ff5733; /* Playful Orange */
    --bg-color: #f8f9fa;
    --text-color: #343a40;
    --heading-font: 'Fredoka One', cursive;
    --body-font: 'Nunito', sans-serif;
}

/* --- General Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p.subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

section {
    padding: 60px 0;
}

/* --- Header & Navigation --- */
/* --- Header & Navigation (Reviewing the parent container) --- */
header {
    background: whitesmoke; /* Blue background */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Ensures the entire navigation (logo and links) is centered */
    
}


/* --- Logo Alignment and Styling (The Core Fix) --- */
.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--primary-color); /* Logo text must be white */
    display: flex;
    align-items: center; /* CRITICAL FIX: Vertically centers the image and text */
    gap: 10px; /* Space between the image and the text */
    line-height: 1.2; /* Better line height */
}

.logo img {
    height: 50px; /* Standard size for the logo image */
    width: auto;
    /* Visual separation from the background */
   padding: 2px; /* Small padding inside the white frame */
    border-radius: 5px; 
    object-fit: contain; 
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Hero Section --- */
.hero {
    /* The URL now points to a real image */
    background: linear-gradient(rgba(0, 119, 182, 0.7), rgba(0, 119, 182, 0.7)), url('https://www.thegaudium.com/wp-content/uploads/2016/08/Pooja0002.jpg') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
/* --- About Us Section --- */
.about-us {
    background: #fff;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: 15px;
}
.about-text h3 {
    font-size: 2rem;
}
.about-text ul {
    list-style: none;
    margin: 1rem 0;
}
.about-text ul li {
    margin-bottom: 0.5rem;
}
.about-text ul i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* --- Programs Section --- */
.programs {
    background: var(--bg-color);
}
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.program-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.program-card h3 {
    margin-top: 1.5rem;
    font-size: 1.5rem;
}
.program-card p {
    padding: 0 1.5rem;
    color: #666;
}
.program-card span {
    display: block;
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}

/* --- CTA Section --- */
.cta {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
}
.cta h2, .cta p {
    color: #fff;
}

/* --- Footer --- */
footer {
    background: var(--text-color);
    color: #fff;
    padding-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 30px;
}
.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.footer-col p {
    color: #ccc;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-col ul a:hover {
    color: var(--secondary-color);
}
.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: var(--secondary-color);
}
.footer-bottom {
    border-top: 1px solid #555;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 2rem;
    }
}