/*
Theme Name: Advanced Learning 
Author: Custom Developer
Description: High-performance education theme with dual side drawers.
Version: 1.0
Text Domain: advanced-learning
*/
        :root {
            --primary: #003087;
            --secondary: #00A3E0;
            --accent: #FFB81C;
            --light: #F4F7FA;
            --dark: #1A1A1B;
            --white: #ffffff;
        }
/* Removes the gap caused by the admin bar */
html { margin-top: 0 !important; }
* html body { margin-top: 0 !important; }
@media screen and (max-width: 782px) {
    html { margin-top: 0 !important; }
}
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Poppins', sans-serif; background-color: var(--white); color: var(--dark); line-height: 1.6; overflow-x: hidden; }

        /* TOP BAR */
        .top-bar {
            background: var(--primary);
            color: white;
            padding: 8px 5%;
            display: flex;
            justify-content: space-between;
            font-size: 13px;
        }
        .top-bar-info span { margin-right: 20px; }
        .top-bar-info i { color: var(--accent); margin-right: 5px; }

        /* HEADER */
        header {
            padding: 15px 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--white);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: -10px;
            z-index: 999900;
        }
        .logo { font-size: 24px; font-weight: 700; color: var(--primary); text-decoration: none; }
        .logo span { color: var(--secondary); }
        /* Mobile Responsive Size */
@media (max-width: 768px) {
    .logo {
        font-size: 18px; /* Adjust this value as needed */
    }
}
        /* Desktop Nav */
        nav ul { display: flex; list-style: none; }
        nav ul li { margin-left: 25px; }
        nav ul li a { text-decoration: none; color: var(--dark); font-weight: 500; font-size: 15px; transition: 0.3s; }
        nav ul li a:hover { color: var(--secondary); }
 /* --- Desktop Menu & Submenu Styles --- */
nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

/* Parent List Item */
nav ul li {
    position: relative; /* Essential for absolute positioning of sub-menu */
    margin-left: 25px;
}

/* Sub-Menu (Hidden by default) */
nav ul .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    display: none; /* Controlled by JS */
    flex-direction: column;
    padding: 10px 0;
    z-index: 999;
    list-style: none;
    border-top: 3px solid var(--secondary);
}

/* Sub-Menu Items */
nav ul .sub-menu li {
    margin: 0;
    width: 100%;
}

nav ul .sub-menu li a {
    padding: 10px 10px;
    display: block;
    font-size: 14px;
    color: var(--dark);
    white-space: nowrap;
}

nav ul .sub-menu li a:hover {
    background: var(--light);
    color: var(--secondary);
}

/* Arrow indicator for items with children */
.menu-item-has-children > a::after {
    content: '\f107'; /* FontAwesome Chevron Down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 12px;
    transition: 0.3s;
    display: inline-block;
}

/* Rotate arrow when open */
.menu-item-has-children.is-open > a::after {
    transform: rotate(180deg);
}

/* Show submenu class */
.sub-menu.is-active {
    display: flex !important;
}

/* --- Mobile Drawer Submenu Adjustments --- */
.drawer-menu .sub-menu {
    display: none;
    list-style: none;
    padding-left: 20px;
}

.drawer-menu .sub-menu.is-active {
    display: block !important;
}

.drawer-menu .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
        .btn-apply {
            background: var(--secondary);
            color: white;
            padding: 10px 25px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 600;
            transition: 0.3s;
        }
        .btn-apply:hover { background: var(--primary); transform: translateY(-2px); }

        /* MOBILE TOGGLES (Hidden on Desktop) */
        .mobile-toggle {
            display: none;
            font-size: 22px;
            color: var(--primary);
            cursor: pointer;
            background: none;
            border: none;
        }

        /* SIDE DRAWERS COMMON STYLE */
        .drawer {
            position: fixed;
            top: 0;
            width: 280px;
            height: 100%;
            z-index: 999955;
            transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 0 20px rgba(0,0,0,0.2);
            padding: 30px 20px;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }
        .drawer-left { left: -300px;
             background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
				color:white;}
        .drawer-right { right: -300px;
          background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);}
        
        .drawer.active { transform: translateX(0); }
        .drawer-left.active { left: 0; }
        .drawer-right.active { right: 0; }

        .drawer-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1500;
            display: none;
        }
        .drawer-overlay.active { display: block; }

        .drawer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            border-bottom: 1px solid #eee;
            padding-bottom: 15px;
        }
        .drawer-header h3 { color: var(--primary); font-size: 1.2rem; }
        .close-drawer { font-size: 24px; cursor: pointer; color: var(--dark); }

 
/* ========== DRAWER MENU - MINIMAL STYLISH ========== */
.drawer-menu { 
    list-style: none; 
    margin: 0;
    padding: 0;
}

.drawer-menu li { 
    margin-bottom: 5px;
}

.drawer-menu li a { 
    text-decoration: none; 
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    display: block;
    padding: 12px 18px;
    border-radius: 10px;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.drawer-menu li a:hover { 
    color: white;
    background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    padding-left: 26px;
}

/* Active state */
.drawer-menu li.current-menu-item a {
    background: rgba(255, 255, 255, 0.12);
    border-left: 3px solid var(--secondary);
    color: white;
}

/* Submenu */
.drawer-menu .sub-menu {
    list-style: none;
    margin: 5px 0 10px 20px;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.drawer-menu .sub-menu li a {
    font-size: 12px;
    font-weight: 400;
    padding: 8px 12px 8px 20px;
    opacity: 0.85;
}

.drawer-menu .sub-menu li a:hover {
    padding-left: 28px;
    opacity: 1;
}

/* Arrow for items with children */
.drawer-menu .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-menu .menu-item-has-children > a::after {
    content: "▼";
    font-size: 9px;
    transition: transform 0.25s ease;
}

.drawer-menu .menu-item-has-children.open > a::after {
    transform: rotate(180deg);
}

/*plugin----csss--menu--/* 1. Base Navigation Item */
.nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

/* 2. Common Link & Header Styles */
.nav-link, 
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #e0e0e0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.nav-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 3. Icon Styling */
.menu-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #a0a0a0;
}

/* 4. Hover & Active States */
.nav-item:hover, 
.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item:hover .menu-icon,
.nav-item.active .menu-icon {
    color: #fff;
}

.nav-item.active {
    border-left: 4px solid #72aee6; /* Blue indicator for current module */
}

/* 5. Submenu (The Dropdown) */
.edu-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out; /* Smooth slide effect */
}

/* 6. Toggle Logic (PHP class) */
.nav-item.is-active .edu-submenu {
    max-height: 500px; /* Large enough to fit any list */
    padding-bottom: 10px;
}

/* 7. Submenu Links */
.edu-submenu li a {
    display: block;
    padding: 10px 20px 10px 52px; /* Indent under the main icon */
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.edu-submenu li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* 8. The Arrow Animation */
.menu-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nav-item.is-active .menu-arrow {
    transform: rotate(180deg);
}
        /* Responsive Design */
        @media (max-width: 992px) {
            nav, .btn-apply { display: none; }
            .mobile-toggle { display: block; }
            .hero-content h1 { font-size: 2.5rem; }
           /* .top-bar { display: none; } /* Hide top bar on mobile for cleaner look */
        }

        /* OTHER SECTIONS (Unchanged from your original CSS) */
        .hero { height: 70vh; background: linear-gradient(rgba(0,48,135,0.7), rgba(0,48,135,0.7)), url('https://images.unsplash.com/photo-1523050853063-bd8012fbb72a?auto=format&fit=crop&q=80&w=1470'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: white; padding: 0 10%; }
        .hero-content h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; margin-bottom: 20px; }
        .hero-content p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; max-width: 700px; margin-left: auto; margin-right: auto; }
       
.features { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; /* Changed from 0 to 20px so cards don't touch while hovering */
    margin-top: -60px; 
    padding: 0 5%; 
    align-items: stretch; /* Ensures grid items take up full height */
}

/* Target the link wrapper */
.features a {
    display: flex; /* Makes the link a flex container */
    text-decoration: none;
    color: inherit;
}

.feature-card { 
    background: var(--white); 
    padding: 40px; 
    text-align: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transition: 0.3s; 
    border-bottom: 4px solid transparent;
    
    /* The Magic: stretch card to fill the anchor tag's height */
    width: 100%; 
    display: flex;
    flex-direction: column;
}

/* Optional: pushes the content to the top but keeps card height */
.feature-card p {
    flex-grow: 1;
}

.feature-card:hover { 
    transform: translateY(-10px); 
    border-bottom: 4px solid var(--secondary); 
}

.feature-card i { 
    font-size: 40px; 
    color: var(--secondary); 
    margin-bottom: 20px; 
}

.feature-card h3 { 
    margin-bottom: 15px; 
    color: var(--primary); 
}


        .section-padding { padding: 80px 5%; }
        .section-header { text-align: center; margin-bottom: 50px; }
        .section-header h2 { font-size: 2.5rem; color: var(--primary); font-family: 'Playfair Display', serif; }
        .section-header .underline { width: 60px; height: 3px; background: var(--accent); margin: 15px auto; }
        .course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
        .course-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: 0.3s; }
        .course-card:hover { transform: scale(1.02); }
        .course-img { width: 100%; height: 200px; background-size: cover; background-position: center; }
        .course-info { padding: 25px; }
        .course-info h4 { font-size: 18px; margin-bottom: 10px; color: var(--primary); }
        .course-meta { display: flex; justify-content: space-between; font-size: 14px; color: #777; margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; }
        .cta { background: var(--primary); color: white; text-align: center; padding: 60px 5%; }
        footer { background: var(--dark); color: white; padding: 60px 5% 20px; }
        .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
        .footer-col h4 { margin-bottom: 20px; font-size: 18px; border-left: 3px solid var(--secondary); padding-left: 10px; }
        .footer-col ul { list-style: none; }
        .footer-col ul li { margin-bottom: 10px; }
        .footer-col ul li a { color: #ccc; text-decoration: none; transition: 0.3s; }
   