/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

/* BODY */
body {
    background: #f5f5f5;
    margin: 0;
}

.logo img {
    width: 150px;
    height: auto;
}

/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
    background: #004080;
    color: white;
    position: relative;
}

/* LOGO */
.logo h2 {
    font-size: 24px;
}

/* ================= DESKTOP NAV ================= */
.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    position: static; /* 🔥 FIX */
    background: none;
    width: auto;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ffd700;
}

/* DROPDOWN DESKTOP */
.dropdown-menu {
    position: absolute;
    top: 40px;
    left: 0;
    background: white;
    list-style: none;
    width: 180px;
    border-radius: 5px;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;
    z-index: 999;
}

.dropdown-menu li {
    padding: 10px;
}

.dropdown-menu li a {
    color: black;
    display: block;
}

.dropdown-menu li:hover {
    background: #f0f0f0;
}

/* SHOW DROPDOWN (DESKTOP) */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ================= RIGHT BUTTONS ================= */
.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s ease;
}

/* CAREER BUTTON */
.career {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.career:hover {
    background: white;
    color: #004080;
}

/* ADMISSION BUTTON */
.admission {
    background: #ffd700;
    color: black;
    font-weight: bold;
}

.admission:hover {
    background: #ffcc00;
    transform: scale(1.05);
}

/* MENU TOGGLE */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #004080;

        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        gap: 15px;

        display: none; /* hidden by default */
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-buttons {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* MOBILE DROPDOWN */
    .dropdown-menu {
        position: static;
        background: #003060;
        color: white;

        opacity: 1;
        visibility: visible;
        transform: none;

        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        color: white;
    }
 
}



/* FOOTER */
.footer {
    background: linear-gradient(135deg, #0a3d62, #1e5f9e);
    color: white;
    padding: 50px 60px 20px;
}

/* CONTAINER */
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

/* SECTIONS */
.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h2 {
    margin-bottom: 15px;
    font-size: 22px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section p {
    margin: 8px 0;
    font-size: 14px;
}

/* LINKS */
.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: #00c3ff;
}

/* BRANCH */
.branch {
    margin-top: 15px;
}

.branch h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

/* BOTTOM */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
}


.footer {
    background: #004080;
    color: #fff;
    text-align: center;
    padding: 15px;
}

/* BODY */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
}

/* SECTION */
.gallery-section {
    padding: 60px 40px;
    text-align: center;
}

/* TITLE */
.title {
    font-size: 32px;
    color: #004080;
    margin-bottom: 40px;
}

/* CONTAINER */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: auto;
}

/* CARD */
.card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* HOVER EFFECT */
.card:hover {
    background: #004080;
    color: white;
    transform: translateY(-6px) scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
}