/* =====================================
   DESKTOP-SPECIFIC NAV / MEGA MENU
   ===================================== */

/* Icons (can be shared but fine here) */
.facebook {
    background: url('/images/icons/facebook.png') no-repeat center center;
    background-size: cover;
    width: 30px;
    height: 30px;
    display: inline-block;
}

.instagram {
    background: url('/images/icons/instagram.png') no-repeat center center;
    background-size: cover;
    width: 30px;
    height: 30px;
    display: inline-block;
}

.tiktok {
    background: url('/images/icons/tiktok.png') no-repeat center center;
    background-size: cover;
    width: 30px;
    height: 30px;
    display: inline-block;
}

/* TOP BAR (your existing styles, unchanged) */
.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
}

.topbar-container .offer-text {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.contact-icons-wrapper {
    display: flex;
    align-items: center;
}

.top-bar .contact-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar .contact-icons a {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top-bar .contact-icons a.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.top-bar .contact-icons a.contact-link .contact-text {
    color: #ffffff;
    white-space: nowrap;
}

.icon-white {
    width: 20px;
    height: 20px;
    filter: invert(1);
    opacity: 0.9;
    transition: 0.2s ease;
}

.icon-white:hover {
    opacity: 1;
    transform: scale(1.12);
}

@media (max-width: 1024px) {

    .topbar-container {
        flex-wrap: wrap;
        padding: 6px 12px;
    }

    .topbar-container > div:first-child {
        flex: 0 0 100%;
        text-align: center;
        font-size: 14px;
        margin-bottom: 4px;
    }

    #top-bar .row {
        width: 100%;
        margin-top: 0;
    }

    #top-bar .row .col-12 {
        justify-content: center !important;
    }

    .top-bar .contact-icons {
        justify-content: center;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .top-bar .contact-link .contact-text {
        display: none;
    }
}

/* ===== DESKTOP MEGA MENU (only ≥ 992px) ===== */
@media (min-width: 992px) {

    /* Parent needs position context */
    .navigation .parent {
        position: relative;
    }

    /* Base hidden panel */
    .navigation .submenu {
        display: none;
        position: absolute;
        top: 100%;                          /* sits directly under Courses label */
        left: 50%;
        transform: translateX(-50%);
        width: min(1180px, 100vw - 40px);
        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
        border: 1px solid rgba(148, 163, 184, 0.35);
        z-index: 999;
        cursor: default;
    }

    /* Inner padding / layout */
    .navigation .submenu .submenu-inner {
        padding: 28px 34px 30px;
        max-height: 440px;
        overflow-y: auto;
    }

    /* remove row negative margins (bootstrap) so panel borders align */
    .navigation .submenu .submenu-inner .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* columns */
    .navigation .submenu .submenu-column {
        padding: 0 28px 10px 0;
        border-right: none;
    }

    /* remove default bullets completely */
    .navigation .submenu ul {
        list-style: none !important;
        padding-left: 0 !important;
        margin: 0;
    }

    /* scrollbar styling */
    .navigation .submenu .submenu-inner::-webkit-scrollbar {
        width: 6px;
    }
    .navigation .submenu .submenu-inner::-webkit-scrollbar-track {
        background: transparent;
    }
    .navigation .submenu .submenu-inner::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.7);
        border-radius: 999px;
    }

    /* SHOW submenu on hover (desktop only) */
    .navigation .dropdown-parent:hover > .submenu {
        display: block;
    }

    /* ensure desktop nav uses flex layout */
    #main-navigation.ds-nav {
        display: flex !important;
    }
}
