/* NUS Business School Navigation Styles - Mobile First */

/* =================================================
   BASE STYLES (MOBILE DEFAULT)
   ================================================= */

/* Top Bar Styles - Hidden on mobile by default */
.nus-top-bar {
    display: none;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.nus-top-bar .top-bar-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.nus-top-bar .logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.nus-top-bar .nus-logo img {
    height: 32px;
    width: auto;
}

.nus-top-bar .bschool-logo img {
    height: 36px;
    width: auto;
}

.nus-top-bar .top-bar-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    width: 100%;
}

.nus-top-bar .top-bar-links li {
    margin: 0;
    padding: 0;
}

.nus-top-bar .top-bar-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nus-top-bar .top-bar-links a:hover {
    color: #003d7a;
    text-decoration: underline;
}

/* Main Navigation Styles - Mobile First */
.biz-theme-main-nav {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000;
    display: none;
}

.biz-theme-main-nav .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.biz-theme-megamenu {
    width: 100%;
}

.biz-theme-megamenu .biz-theme-navbar-nav {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.biz-theme-megamenu .biz-theme-nav-item {
    margin: 0!important;
}

.biz-theme-megamenu .biz-theme-nav-link {
    display: block;
    padding: 15px 14px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.biz-theme-megamenu .biz-theme-nav-link:hover,
.biz-theme-megamenu .biz-theme-nav-item:hover > .biz-theme-nav-link {
    color: #003d7a;
    background-color: #f8f9fa;
}

/* Remove Bootstrap dropdown arrow */
.biz-theme-megamenu .biz-theme-dropdown-toggle::after {
    display: none;
}

/* Mega Menu Dropdown Styles - Mobile First */
.biz-theme-mega-dropdown {
    position: static;
}

.biz-theme-mega-dropdown-menu {
    position: relative;
    width: 100%;
    background-color: #f8f9fa;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 20px;
    margin: 0;
    display: none;
}

.biz-theme-mega-dropdown:hover .biz-theme-mega-dropdown-menu {
    display: block;
}

.biz-theme-mega-menu-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

.biz-theme-mega-menu-column {
    min-width: auto;
}

.biz-theme-menu-section-title {
    color: #003d7a;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 8px;
    letter-spacing: 0.5px;
}

.biz-theme-menu-section-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.biz-theme-menu-section-items li {
    margin-bottom: 5px;
}

.biz-theme-menu-section-items a {
    color: #141414;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    display: flex;
    padding: 3px 0;
    transition: all 0.3s ease;
    position: relative;
    gap:5px;
}

.biz-theme-menu-section-items a:hover {
    color: #ef7c00;
}

.biz-theme-menu-section-items svg {
    color: #ef7c00;
    width: 12px;
    height: 12px;
}

/* Search Button Styles - Mobile First */
.biz-theme-search-btn-box {
    margin: 10px 0 0 0;
    padding: 0 20px;
}

.biz-theme-toggle-search {
    background: none;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.biz-theme-toggle-search:hover {
    background-color: #f8f9fa;
    color: #003d7a;
}

.biz-theme-toggle-search:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 61, 122, 0.2);
}

/* Search Box Styles - Mobile First */
.biz-theme-search-box {
    background-color: #f8f9fa;
    padding: 30px 0;
    border-bottom: 2px solid #ef7c00;
}

.biz-theme-search-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.biz-theme-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.biz-theme-search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.biz-theme-search-input:focus {
    outline: none;
    border-color: #003d7a;
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

.biz-theme-search-submit {
    width: 100%;
    padding: 12px 24px;
    background-color: #003d7a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biz-theme-search-submit:hover {
    background-color: #002a57;
}

.biz-theme-search-submit svg {
    width: 20px;
    height: 20px;
}

/* Animation for dropdown appearance */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.biz-theme-mega-dropdown:hover .biz-theme-mega-dropdown-menu {
    animation: fadeInDown 0.3s ease;
}

/* Override Bootstrap styles if needed */
.biz-theme-megamenu .biz-theme-dropdown-menu {
    border: none;
    border-radius: 0;
}

.biz-theme-megamenu .biz-theme-nav-link:focus {
    outline: none;
    box-shadow: none;
}

/* =================================================
   TABLET STYLES (768px and up)
   ================================================= */
@media (min-width: 768px) {
    /* Top Bar - Show on tablets */
    .nus-top-bar {
        display: block;
    }

    .nus-top-bar .top-bar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nus-top-bar .logo-section {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        width: auto;
    }

    .nus-top-bar .nus-logo img {
        height: 40px;
    }

    .nus-top-bar .bschool-logo img {
        height: 45px;
    }

    .nus-top-bar .top-bar-links {
        flex-wrap: nowrap;
        gap: 20px;
        width: auto;
    }

    /* Search Form - Horizontal on tablets */
    .biz-theme-search-form {
        flex-direction: row;
    }

    .biz-theme-search-input {
        flex: 1;
    }

    .biz-theme-search-submit {
        width: auto;
    }

    .biz-theme-search-inner {
        padding: 0;
    }
}

/* =================================================
   DESKTOP STYLES (992px and up)
   ================================================= */
@media (min-width: 992px) {
    /* Main Navigation - Horizontal layout */
    .biz-theme-main-nav {
        display: block;
    }

    .biz-theme-main-nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .biz-theme-megamenu {
        flex: 1;
    }

    .biz-theme-megamenu .biz-theme-navbar-nav {
        flex-direction: row;
    }

    .biz-theme-megamenu .biz-theme-nav-link {
        padding: 15px 14px;
    }

    /* Mega Menu Dropdown - Full width desktop version */
    .biz-theme-mega-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100vw;
        background-color: #fff;
        border-top: 3px solid #ef7c00;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        padding: 40px 0;
        z-index: 1050;
    }

    .biz-theme-mega-menu-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 60px;
        margin: 0 auto;
    }

    .biz-theme-mega-menu-column {
        min-width: 200px;
    }

    .biz-theme-menu-section {
        margin-bottom: 30px;
    }

    .biz-theme-menu-section-title {
        margin-bottom: 15px;
    }


    /* Search Button - Desktop positioning */
    .biz-theme-search-btn-box {
        margin: 0 0 0 20px;
        padding: 0;
    }
}

/* =================================================
   LARGE DESKTOP STYLES (1200px and up)
   ================================================= */
@media (min-width: 1200px) {
    .biz-theme-mega-menu-content {
        max-width: 1140px;
    }
}