
/* ================= TOP BAR ================= */
.top-bar{
    background:#0b3c8a;
    color:#fff;
    font-size:14px;
}
.top-bar a{color:#fff;text-decoration:none}

/* ================= NAVBAR ================= */
.navbar{
    position:relative;
    z-index:1050;
}
.nav-link{
    font-weight:600;
    color:#000!important;
}

/* ================= MEGA MENU ================= */
.mega-dropdown{position:static;}

/* ================= MEGA MENU (80% CENTERED) ================= */
.mega-menu{
    position: absolute;
    top: 100%;
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
    background: #eaf7e8;
    border: none;
    border-radius: 18px;
    padding: 30px;
    display: none;
    z-index: 2000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.mega-menu.show{
    display:block;
}

/* Titles */
.mega-title{
    font-weight:700;
    margin-bottom:15px;
    border-left:4px solid #ffc107;
    padding-left:10px;
}

/* ================= COURSE IMAGE CARDS ================= */
.course-card{
    position:relative;
    border-radius:10px;
    overflow:hidden;
    display: block;
    text-decoration: none;
}
.course-card img{
    width:100%;
    height:85px;
    object-fit:cover;
    transition: transform 0.3s ease;
}
.course-card:hover img{
    transform: scale(1.05);
}
.course-card span{
    position:absolute;
    bottom:0;
    width:100%;
    background:rgba(0,0,0,0.65);
    color:#fff;
    font-size:13px;
    font-weight:600;
    padding:4px;
    text-align:center;
}

/* ================= ONLINE BOX ================= */
.online-box{
    background:#fff;
    padding:12px;
    border-radius:12px;
    text-align:center;
    width:130px;
    border:2px solid transparent;
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.online-box:hover{
    transform: translateY(-2px);
}
.online-box.blue{border-color:#0d6efd}
.online-box.red{border-color:#dc3545}
.online-box img{
    width:100%;
    height:60px;
    object-fit:contain;
}
.online-box p{
    margin:6px 0 0;
    font-weight:600;
    font-size:13px;
    color: #000;
}

/* ================= OTHER LIST ================= */
.other-list li{
    margin-bottom:6px;
    font-weight:600;
}
.other-list a{
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}
.other-list a:hover{
    color: #0b3c8a;
}

/* ================= IMPORTANT LINKS DROPDOWN ================= */
.simple-dropdown{
    position: relative;
}

.simple-menu{
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #eaf7e8;
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    display: none;
    z-index: 3000;
}

.simple-menu.show{
    display: block;
}

.simple-menu a{
    display: block;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    padding: 6px 0;
    transition: all 0.2s ease;
}

.simple-menu a:hover{
    color: #0b3c8a;
    padding-left: 6px;
}

/* ================= BRAND LOGO FIX ================= */
.navbar-brand{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.navbar-brand img{
    height: 45px;
    width: auto;
    object-fit: contain;
}

/* ================= CUSTOM HAMBURGER ================= */
.custom-toggler {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
}
.custom-toggler:focus { outline: none; }

.custom-toggler .bar {
    display: block;
    height: 2.5px;
    background: #0b3c8a;
    border-radius: 2px;
    transition: transform 0.32s ease, opacity 0.32s ease, width 0.32s ease;
    transform-origin: center center;
}
.custom-toggler .bar:nth-child(1) { width: 24px; }
.custom-toggler .bar:nth-child(2) { width: 17px; }
.custom-toggler .bar:nth-child(3) { width: 24px; }

/* open state → X */
.custom-toggler.is-open .bar:nth-child(1) {
    width: 22px;
    transform: translateY(7.5px) rotate(45deg);
}
.custom-toggler.is-open .bar:nth-child(2) {
    width: 17px;
    opacity: 0;
}
.custom-toggler.is-open .bar:nth-child(3) {
    width: 22px;
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ================= SLIDE OVERLAY ================= */
.slide-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.38s ease, visibility 0.38s ease;
}
.slide-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ================= SLIDE PANEL ================= */
.slide-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 310px;
    max-width: 82vw;
    height: 100vh;
    background: #fff;
    z-index: 1050;
    overflow-y: auto;
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.18);
    transform: translateX(-100%);
    transition: transform 0.40s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-panel.is-open {
    transform: translateX(0);
}

/* ---- Panel top row: logo + close X ---- */
.panel-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 12px;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 5;
}
.panel-topbar .panel-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}
.panel-topbar .panel-brand img {
    height: 34px;
    width: auto;
    object-fit: contain;
}
.panel-topbar .panel-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #0b3c8a;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

/* ---- Main nav list ---- */
.panel-nav-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.panel-nav-list > li {
    border-bottom: 1px solid #f0f0f0;
}
.panel-nav-list > li:last-child {
    border-bottom: none;
}

/* every top-level link row */
.panel-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    font-weight: 600;
    font-size: 15px;
    color: #222;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s ease;
}
.panel-link-row:hover,
.panel-link-row:active { background: #f5fbf5; }

.panel-link-row .chevron {
    font-size: 12px;
    color: #999;
    transition: transform 0.28s ease;
}
.panel-link-row.is-active .chevron {
    transform: rotate(90deg);
}

/* ---- Collapsible sub area (max-height trick) ---- */
.panel-sub {
    max-height: 0;
    overflow: hidden;
    background: #f7faf7;
    transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.panel-sub.is-open {
    max-height: 1400px;
}

/* sub section titles */
.panel-sub-title {
    font-weight: 700;
    font-size: 13px;
    color: #0b3c8a;
    padding: 14px 18px 7px;
    border-left: 3px solid #ffc107;
    margin-left: 18px;
}

/* course cards grid inside panel */
.panel-course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 18px 14px;
}
.panel-course-grid .course-card img { height: 88px; }

/* online boxes row inside panel */
.panel-online-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 18px 14px;
}
.panel-online-row .online-box {
    width: 100%;
}

/* simple links (Important Links sub + Other Courses in panel) */
.panel-simple-links {
    padding: 0 18px 14px;
}
.panel-simple-links a {
    display: block;
    padding: 12px 0;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.18s ease, padding-left 0.18s ease;
}
.panel-simple-links a:last-child { border-bottom: none; }
.panel-simple-links a:hover { background: #edf7ed; padding-left: 8px; }

/* ---- Button wrappers in panel ---- */
.panel-button-wrap {
    padding: 12px 18px;
}
.panel-button-wrap .btn {
    width: 100%;
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 25px;
}

/* ================= MOBILE STYLES ================= */
@media (max-width: 991px) {

    /* hide the default Bootstrap collapse entirely */
    #mainNav {
        display: none !important;
    }

    /* ---- Mega Menu (desktop only, kept here for >991) ---- */
    .mega-menu{
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100vh;
        background: #eef9ec;
        z-index: 9999;
        overflow-y: auto;
        padding: 15px;
        border-radius: 0;
        display: none;
        transform: none;
    }
    .mega-menu.show { display: block; }

    .simple-menu{
        position: static;
        box-shadow: none;
        border-radius: 10px;
        background: #eaf7e8;
        margin-top: 8px;
        padding: 12px 16px;
        min-width: unset;
        width: 100%;
    }
    .simple-menu.show { display: block; }

    .mobile-close{
        font-size: 22px;
        font-weight: 700;
        text-align: right;
        cursor: pointer;
        margin-bottom: 10px;
    }

    .mega-title{ font-size:16px; margin-bottom:10px; }
    .course-card img{ height:110px; }
    .online-box{ width:48%; }
    .other-list{ flex-direction:column; }
    .navbar-nav .btn{ margin-top:10px; width:100%; }
    .nav-link.dropdown-toggle::after{ float:right; }
}

/* ================= MOBILE LOGO FIX ================= */
@media (max-width: 576px){
    .navbar-brand{
        font-size: 14px;
    }
    .navbar-brand img{
        height: 38px;
    }
}