@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --- 1. RESET & VARS --- */
:root {
    --primary: #2c3e50;
    --accent: #ff7f00;
    --white: #ffffff;
    --dark: #1e293b;
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; overflow-x: hidden; color: #333; background: #f4f7f6; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- 2. HEADER --- */
.header { 
    background: #fff; padding: 10px 0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    position: sticky; top: 0; z-index: 1000; 
    border-bottom: 3px solid var(--accent); 
}
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }

/* Logo Text Cleaned */
.logo-link { display: flex; align-items: center; gap: 12px; }
.main-logo { height: 65px; width: auto; }
.logo-text { display: flex; flex-direction: column; justify-content: center; }
.school-top { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.school-bottom { font-size: .75rem; font-weight: 600; color: var(--primary); letter-spacing: 0.5px; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 15px; }
.social-links-top { display: flex; align-items: center; gap: 10px; }

/* Social Icons */
.social-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; transition: var(--transition); }
.fb { background: #3b5998; }
.insta { background: #E1306C; }
.social-icon:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 5px 10px rgba(0,0,0,0.2); }

/* OASIS Button */
.oasis-badge { background: var(--accent); color: #fff !important; padding: 7px 15px; border-radius: 20px; font-weight: 700; font-size: 13px; white-space: nowrap; transition: var(--transition); }
.oasis-badge:hover { background: #e67200; transform: scale(1.05); }

/* Mobile Hamburger (Hidden on Desktop) */
.mobile-toggle { display: none; background: none; border: 2px solid var(--primary); border-radius: 5px; cursor: pointer; padding: 5px; flex-direction: column; gap: 4px; }
.mobile-toggle .bar { width: 22px; height: 3px; background: var(--primary); border-radius: 2px; }

/* --- 3. MENU (Navbar) - DESKTOP FIX HERE --- */
.navbar { 
    background: var(--primary); 
    position: relative; /* Important for Z-Index */
    z-index: 2000;      /* Higher than Header(1000) and Slider(1000) */
}
.navbar ul { display: flex; list-style: none; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.navbar ul li { position: relative; } /* Dropdown positioning context */

.navbar ul li a { 
    color: #fff; padding: 15px 20px; display: block; 
    font-weight: 500; border-bottom: 3px solid transparent; 
    transition: 0.3s; 
    white-space: nowrap;
}
.navbar ul li a:hover, .navbar ul li a.active { background: rgba(255,255,255,0.1); border-bottom-color: var(--accent); color: var(--accent); }

/* Dropdown - FIXED Z-INDEX */
.dropdown-content { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: #fff; 
    min-width: 220px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    z-index: 3000; /* Super High Z-Index to stay above everything */
    border-top: 3px solid var(--accent); 
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { color: var(--primary) !important; padding: 12px 15px !important; border-bottom: 1px solid #eee; }

/* --- 4. FOOTER --- */
.footer { background-color: #111827 !important; color: #e2e8f0; padding-top: 60px; margin-top: 50px; border-top: 5px solid var(--accent); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; }
.footer-section h3 { color: #38bdf8; font-size: 1.2rem; margin-bottom: 20px; text-transform: uppercase; font-weight: 700; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 5px; }
.footer-links li { margin-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 5px; }
.footer-links a { color: #cbd5e1; font-size: 14px; } 
.footer-links a:hover { color: #fff; padding-left: 5px; }
.social-icons { display: flex; gap: 15px; margin-top: 15px; }
.social-fb, .social-insta, .social-yt { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); color: #fff; font-size: 18px; transition: 0.3s; }
.social-fb:hover { background: #1877F2; transform: translateY(-3px); }
.social-insta:hover { background: #E1306C; transform: translateY(-3px); }
.social-yt:hover { background: #FF0000; transform: translateY(-3px); }
.footer-bottom { background: #000; padding: 20px; text-align: center; font-size: 13px; color: #888; }

/* --- 5. POPUP & LIGHTBOX --- */
#popup-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 9999; justify-content: center; align-items: center; }
#popup-content { position: relative; background: #fff; padding: 10px; width: 90%; max-width: 450px; border-radius: 10px; }
#popup-content img { width: 100%; display: block; border-radius: 5px; }
#close-popup { position: absolute; top: -15px; right: -15px; width: 35px; height: 35px; background: var(--accent); color: #fff; border: 2px solid #fff; border-radius: 50%; cursor: pointer; font-weight: bold; }

.lb-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 10000; justify-content: center; align-items: center; gap: 15px; }
.lb-shell { position: relative; max-width: 80%; max-height: 80%; }
.lb-image { max-width: 100%; max-height: 80vh; border: 5px solid #fff; border-radius: 5px; }
.lb-arrow { background: transparent; border: none; color: #fff; font-size: 40px; cursor: pointer; padding: 10px; z-index: 10001; transition: 0.2s; }
.lb-arrow:hover { color: var(--accent); transform: scale(1.2); }
.lb-close-btn { position: absolute; top: -20px; right: -20px; width: 40px; height: 40px; background: var(--accent); color: #fff; border: 3px solid #fff; border-radius: 50%; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.lb-close-btn:hover { background: #fff; color: var(--accent); transform: rotate(90deg); }

/* --- 6. MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .school-top { font-size: 1.1rem; }
    .school-bottom { font-size: 0.8rem; }
    .social-links-top { display: none; }
    .mobile-toggle { display: flex; }
    
    /* MENU STICKY BELOW HEADER */
    .navbar { 
        display: none; 
        position: fixed; /* FIXED for Mobile */
        top: 85px; 
        left: 0; width: 100%; 
        height: auto; max-height: 80vh; overflow-y: auto; 
        background: var(--primary); 
        box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
        z-index: 10001; /* Very High for Mobile overlay */
    }
    .navbar ul { flex-direction: column; padding: 0; }
    .navbar ul li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .dropdown-content { position: static; width: 100%; background: #1e2b3a; box-shadow: none; border: none; }
    .dropdown-content a { color: #ccc !important; padding-left: 40px !important; }
}