
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* TOP BAR */
.top-bar {
    background: linear-gradient(90deg, #1e2a78, #2e3aa5);
    color: #fff;
    padding: 8px 60px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 15px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color:transparent;
   
}
.header.scrolled{
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* LOGO */
.logo img {
    height: 60px;
    transition: 0.3s;
}
.logo img:hover {
    transform: scale(1.05);
}

/* NAVBAR */
.navbar .nav-ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar ul .nav-li {
    position: relative;
}

/* NAV LINKS */
.navbar ul .nav-li a {
    text-decoration: none;
    color: #1A1A5E;
    font-weight: 500;
    padding: 10px;
    position: relative;
    transition: 0.3s;
}
/* Scroll hone ke baad blue color */
.navbar.scrolled .nav-li a {
    color: #1A1A5E; /* dark blue */
}



/* UNDERLINE ANIMATION */
.navbar ul .nav-li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: #f37c05;
    transition: 0.4s;
}


.navbar ul .nav-li a:hover::after,
.navbar ul .nav-li a.active::after {
    width: 100%;
    
}
.navbar ul .nav-li a:hover,
.navbar ul .nav-li a.active {
    color: #f57c00;
    
}

/* MEGA MENU */
.mega-menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 650px;
    display: flex;
    gap: 40px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
     background: rgba(255, 255, 255, 0.1); /* transparent */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* safari support */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.4s ease;
    
}
#megaMenu.active + .nav-li a,
#megaMenu.active ~ .nav-li a {
  color: orange;
}

/* SHOW */
.navbar ul .nav-li:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    
}

/* COLUMNS */
.mega-column h4 {
    color: #f57c00;
    margin-bottom: 10px;
    font-size: 16px;
}

.mega-column a {
    display: block;
    color: #333333f6;
    padding: 6px 0;
    font-size: 14px;
    transition: 0.3s;
}

.mega-column a:hover {
    color: #f57c00;
    padding-left: 6px;
}

/* BUTTON */
.btn {
    background: linear-gradient(45deg, #f57c00, #ff9800);
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(245,124,0,0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(245,124,0,0.4);
}

        /* ================= BUTTON ================= */
        #openMenu {
            padding: 12px 20px;
            border: none;
            cursor: pointer;
        }

        /* ================= MAIN DROPDOWN PANEL ================= */
        #megaMenu {
            position:absolute; /* Positioned relative to button */
            width: 1200px;
           margin-right:500px;
            top: 100px; /* Appears below button */
            left: 10px;            

            height: 80vh; /* Fixed height for scroll system */
            overflow: hidden; /* Prevent outer scroll */
            background-color: white;
            z-index: 999;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgb(255, 255, 255);

            /* Animation initial state (hidden) */
            opacity: 0;
            transform: translateY(20px) scale(0.95);
            visibility: hidden;
            transition: all 0.3s ease;
        }

        /* Active class → shows menu with animation */
        #megaMenu.active {
            opacity: 1;
            transform: translateY(0) scale(1);
            visibility: visible;
        }

        /* ================= FLEX LAYOUT ================= */
        .menu-container {
            display: flex; /* Sidebar + content side by side */
            height: 100%;
        }

        /* ================= SIDEBAR ================= */
        .sidebar {
            width: 250px;
             background:white;
            padding: 20px;
            height: 100%;
            overflow: hidden; /* No scroll in sidebar */
            flex-shrink: 0; /* Prevent shrinking */
        }
        
        /* Remove list style */
        .sidebar ul {
            list-style: none;
            padding: 0;
        }

        /* Sidebar items */
        .sidebar li {
            padding: 12px;
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.25s ease;
        }

        /* Hover effect for sidebar */
        .sidebar li.active {
            background: linear-gradient(45deg, #f57c00, #ff9800);
            color: white;
            transform: translateX(5px);
        }

        /* ================= RIGHT CONTENT AREA ================= */
        .content {
            flex: 1; /* Take remaining width */
            padding: 40px;
            height: 100%;
            overflow-y: auto; /* Scroll only here */
            animation: fadeIn 0.3s ease;
        }

        /* Custom scrollbar */
        .content::-webkit-scrollbar {
            width: 6px;
        }

        .content::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 10px;
        }

        /* Fade animation when content changes */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateX(10px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }



.course-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.course-item {
  width: 180px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}



.course-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.course-item h4 {
  font-size: 16px;
  margin: 8px 0 5px;
}

.course-item p {
  font-size: 13px;
  color: #555;
}

.course-item:hover {
  transform: translateY(-5px);
}



/* DEFAULT → Desktop */
.menu-toggle {
    display: none;
}
/* HIDE MOBILE SIDEBAR ON DESKTOP */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100%;
    background:#1A1A5E;
    color: #fff;
    z-index: 9999;
    transition: 0.4s ease;
    padding: 20px;
}

/* OPEN STATE */
.mobile-sidebar.active {
    left: 0;
}

/* HEADER */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    margin-bottom: 20px;
}

.sidebar-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* MENU */
.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin: 15px 0;
}

.sidebar-menu a {
    color: #fff;
    text-decoration: none;
}

/* DROPDOWN */
.dropdown-content {
    display: none;
    padding-left: 15px;
    margin-top: 10px;
}

.sidebar-dropdown.active .dropdown-content {
    display: block;
}

/* OVERLAY */
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 🔥 IMPORTANT: SHOW ONLY ON MOBILE */
@media (min-width: 992px) {
    .mobile-sidebar,
    .overlay {
        display: none;
    }
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {

    .top-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
        padding: 10px;
        font-size: 12px;
    }

    .header {
        padding: 10px 20px;
    }

    .logo img {
        height: 45px;
    }

    .menu-toggle {
        display: block;
        font-size: 26px;
        cursor: pointer;
        color: #1A1A5E;
    }
    /* NAVBAR MOBILE */
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: white;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: 0.3s;
        z-index: 1000;
        padding-top: 80px;
    }

    .navbar.active {
        right: 0;
    }

    .navbar .nav-ul {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }

    .nav-li {
        width: 100%;
    }

    .nav-li a {
        display: block;
        padding: 12px;
        font-size: 16px;
    }

    /* HIDE MEGA MENU ON MOBILE */
    .mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: none;
        backdrop-filter: none;
        padding: 10px 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    /* Show dropdown on click */
    .nav-li.active .mega-menu {
        display: block;
    }

    /* BUTTON */
    .btn {
        display: none; /* hide enroll button in header */
    }

    /* FIX BIG MEGA MENU */
     #megaMenu {
        display: none;
        position: static;
        width: 100%;
        height: auto;
        box-shadow: none;
        background: white;
    }

    #megaMenu.active {
        display: block;
    }

    .menu-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .content {
        padding: 20px;
        height: auto;
    }
}
.top-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 20px;
    background:#fff;
    border-bottom:1px solid #eee;
}

.top-bar-left{
    display:flex;
    align-items:center;
    gap:15px;
    flex:1;
    min-width:0; /* important: flex item ko shrink karne deta hai, warna news-wrapper overflow kar sakta hai */
}

    .enroll-trigger{
        background:#1a1a5e;
        color:#fff;
        padding:8px 18px;
        border-radius:5px;
        text-decoration:none;
        font-weight:600;
        white-space:nowrap;
    }

/* News Ticker */

.news-ticker{
    display:flex;
    align-items:center;
    overflow:hidden;
    width:100%;
    border-radius:5px;
    background:#fff7ed;
}

.news-label{
    background:#ff7a00;
    color:#fff;
    padding:8px 15px;
    font-weight:700;
    white-space:nowrap;
    display:flex;
    align-items:center;
    gap:6px;
    z-index:2;
}

.news-wrapper{
    overflow:hidden;
    width:100%;
    min-width:0;
}

.news-content{
    display:inline-block;
    white-space:nowrap;
    padding-left:100%;
    animation:news-scroll 22s linear infinite;
    color:#333;
    font-weight:600;
}

.news-content:hover{
    animation-play-state:paused;
}

@keyframes news-scroll{
    0%{
        transform:translateX(0);
    }
    100%{
        transform:translateX(-100%);
    }
}

/* ✅ FIXED: ab ye properly media queries ke andar hain */
@media (max-width: 1024px){
    .news-wrapper{
        width:220px;
    }
}

@media (max-width: 768px){
    .top-bar{
        padding:6px 14px;
        gap:8px;
    }
    .top-bar-right{
        display:none;
    }
    .enroll-pill{
        padding:5px 11px 5px 9px;
        font-size:10.5px;
    }
    .news-label{
        font-size:9px;
        padding:5px 8px;
    }
}

.search-bar{
    position: relative;
}

.search-results-dropdown{
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    min-width: 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results-dropdown.active{
    display: block;
}

.search-result-item{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: #1a1a5e;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.2s;
}

.search-result-item:hover{
    background: #f7f7fb;
}

.search-result-item img{
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.search-result-item .sr-placeholder{
    width: 46px;
    height: 46px;
    border-radius: 6px;
    background: #e8ebfa;
    color: #1a1a6e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-result-name{
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

.search-result-cat{
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.search-no-results{
    padding: 22px 15px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.search-view-all{
    display: block;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    font-size: 13px;
    color: #f57c00;
    text-decoration: none;
    border-top: 1px solid #eee;
}

.search-view-all:hover{
    background: #fff7ed;
}

@media (max-width: 768px){
    .search-results-dropdown{
        position: fixed;
        top: 110px;
        left: 10px;
        right: 10px;
        width: auto;
    }
}/* Sticky ke pehle hidden */
.nav-sticky-enroll{
    display: none;
    margin-left: auto;
    white-space: nowrap;
}

/* Jab nav-bar sticky ho jaye, tab dikhao */
.nav-bar.sticky{
    display: flex;
    align-items: center;
}

.nav-bar.sticky .nav-sticky-enroll{
    display: inline-block;
}