body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f8f8;
    color: #333;
}

/* Navbar */
nav {
    position: fixed;
    width: 100%;
    background: linear-gradient(90deg, purple, white);
    padding: 10px 40px; /* Increased padding on left & right */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    box-sizing: border-box;
}
nav .logo {
    font-size: 1.2em;
    font-weight: bold;
    color: white;
}
nav .logo span {
    font-size: 0.8em;
    display: block;
    font-style: italic;
}
nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 25px; /* Even space between menu items */
}
nav ul li {
    flex-shrink: 0; /* Prevent items from squeezing too much */
}
nav ul li a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    display: inline-block;
    padding: 5px 8px; /* Clickable space */
}
nav ul li a:hover {
    color: yellow;
}

/* Prevent overflow on small screens */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 10px 20px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* Sections */
section {
    padding: 80px 20px;
    min-height: 100vh;
}

.hero {
    background-image: url('../img/hero-background.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100vh; /* Makes the hero fill the screen */
    display: flex;
    padding-top: 80px; /* avoid overlap with navbar */
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 2.5em;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
}

/* About Section */
.about {
    background: white;
    margin: 20px auto;
    max-width: 1000px;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.about-text {
    flex: 1;
}
.about-img {
    flex: 1;
}
.about-img img {
    width: 100%;
    border-radius: 8px;
}

/* Programs */
.programs {
    background: white;
    margin: 20px auto;
    max-width: 1000px;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.program-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.card {
    flex: 1 1 calc(50% - 20px);
    background: #f0f0ff;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.card h3 {
    color: purple;
}

/* Gallery */
.gallery {
    background: white;
    margin: 20px auto;
    max-width: 1000px;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}
.gallery img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    margin: 10px;
    transition: transform 0.3s;
}
.gallery img:hover {
    transform: scale(1.05);
}

/* Contact */
.contact {
    background: white;
    margin: 20px auto;
    max-width: 1000px;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: purple;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        flex: 1 1 100%;
    }
    .about {
        flex-direction: column;
    }
}
