/* ==========================================================================
   AL-FAIZ MODEL ACADEMY - COMPREHENSIVE HEADER SYSTEM (header.css)
   ========================================================================== */

:root {
    --primary-green: #20a366;
    --dark-blue: #007696;
    --active-blue: #0056b3; /* Vibrant Blue for Active Page Highlight */
    --top-gradient: linear-gradient(135deg, #004d26 0%, #007696 100%);
    --white: #ffffff;
    --text-color: #2c3e50;
}

body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: #f4f7f6;
    background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
    color: #333;
}

/* 1. TOP BAR RIBBON */
.top-info-bar {
    background: var(--top-gradient);
    color: white;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}
.top-info-bar span i {
    margin-right: 6px;
    color: #a3e2c9;
}

/* 2. MAIN HEADER & LOGO BANNER */
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}
.logo-area { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}
.logo-area img { 
    height: 90px; 
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.15)); 
}
.logo-area h1 { 
    font-size: 32px; 
    color: #1a1a1a; 
    text-transform: uppercase; 
    margin: 0; 
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* 3. STICKY NAVIGATION BAR */
nav {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: sticky; 
    top: 0; 
    z-index: 1000;
}
nav ul { 
    list-style: none; 
    display: flex; 
    justify-content: center; 
    margin: 0; 
    padding: 0; 
}
nav ul li a {
    display: block; 
    padding: 18px 22px;
    color: var(--text-color); 
    text-decoration: none;
    font-weight: 700; 
    font-size: 13px;
    text-transform: uppercase; 
    position: relative;
    transition: all 0.3s ease-in-out;
}

/* --- HOVER EFFECTS --- */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0; 
    height: 4px;
    background: var(--primary-green);
    bottom: 0; 
    left: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
nav ul li a:hover::after { 
    width: 100%; 
}
nav ul li a:hover { 
    color: var(--primary-green); 
    background: #fdfdfd; 
}

/* --- DYNAMIC LAST-TIME ACTIVE MENU HIGHLIGHT --- */
nav ul li a.active {
    background: var(--active-blue) !important;
    color: var(--white) !important;
}
/* Disable hover underline decoration on the active menu element */
nav ul li a.active::after { 
    display: none; 
}

/* 4. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
    .header-main { 
        flex-direction: column; 
        text-align: center; 
        gap: 12px; 
    }
    .logo-area h1 { font-size: 26px; }
}

@media (max-width: 768px) {
    .top-info-bar { 
        flex-direction: column; 
        text-align: center; 
        gap: 6px; 
        font-size: 12px;
    }
    nav ul { 
        flex-wrap: wrap; 
    }
    nav ul li a { 
        padding: 12px 14px; 
        font-size: 12px; 
    }
}

@media (max-width: 480px) {
    .logo-area img { height: 65px; }
    .logo-area h1 { font-size: 20px; }
    nav ul li a { padding: 10px 8px; }
}