:root {
    --main-color: #880016;
    --gray: #7f7f7f;
    --white: #ffffff;
}

.dropdown-menu {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: var(--white);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--main-color);
    color: var(--white);
}

/* Logo section */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

/* Hero */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('banner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
}

.hero button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background: var(--main-color);
    color: white;
    cursor: pointer;
}

/* Sections */
.section {
    padding: 50px 20px;
    text-align: center;
}

.gray {
    background: #f4f4f4;
}

.red {
    background: #880016;
    color: #f1c720;
}

.dark {
    background: #413f3f;
    color: #f1c720;
}

/* Cards */
.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    width: 200px;
    border-radius: 10px;    
}

.card1 {
    background: #880016;
    padding: 20px;
    border: 1px solid #ddd;
    width: 250px;
    border-radius: 10px;  
    color: #ffffff;  
}

.card2 {
    background: #413f3f;
    padding: 20px;
    border: 1px solid #ddd;
    width: 250px;
    border-radius: 10px;    
}

/* Footer */
footer {
    background: var(--main-color);
    color: white;
    text-align: center;
    padding: 15px;
}

/* Logo + School Name */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 5px; /* change to 50% if you want circle */
}

/* About Section Styling */
.about h2 {
    color: #880016; /* your main color */
    font-size: 2rem;
}

.about p {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    color: #2c2626;
    margin-top: 10px;

    text-align: justify;
    max-width: 750px;
    margin: 10px auto;
    line-height: 1.6;
}

/* About Images */
.about-images {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap; /* makes it responsive */
}

.about-images img {
    width: 350px;
    height: 250px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
}

.dropdown-menu li {
    border-bottom: 1px solid #eee;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #880016;
    text-decoration: none;
    white-space: nowrap;
}

/* Show only on hover */
.dropdown:hover .dropdown-menu {
    display: block !important;
}

.enroll-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background: var(--main-color);
    color: white;
    text-decoration: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease;
}

.enroll-btn:hover {
    background: #6d0012;
}

.app-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap; /* keeps it responsive on small screens */
}

/* Gallery Page */
.gallery {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
    margin-top: 40px;
    padding: 0 20px;
}

.gallery-grid img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Google Maps Button */
.map-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    background: #880016;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease;
}

.map-btn:hover {
    background: #6d0012;
    transform: scale(1.05);
}

/* Container forces vertical layout */
.apk-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Button */
.apk-btn {
    padding: 12px 20px;
    background: #880016;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
}

/* Note */
.apk-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* ================= MOBILE OPTIMIZATION ================= */
@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    /* Hero */
    .hero {
        height: auto;
        padding: 60px 20px;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    /* About text */
    .about p {
        max-width: 100%;
        padding: 0 10px;
        font-size: 1rem;
    }

    /* About images */
    .about-images {
        flex-direction: column;
        gap: 20px;
    }

    .about-images img {
        width: 100%;
        height: auto;
    }

    /* Cards */
    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card, .card1, .card2 {
        width: 90%;
    }

    /* App buttons */
    .app-buttons {
        flex-direction: column;
    }

    .app-btn {
        width: 90%;
        justify-content: center;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: auto;
    }

}