/* =========================
   MAIN MENU BAR
========================= */

.main-menu {
    background: #fff;
    border-bottom: 1px solid #e3e8ef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1000;
}

.main-menu .navbar {
    min-height: 64px;
    padding: 0;
}

.main-menu .navbar-nav {
    align-items: stretch;
}

.main-menu .nav-item {
    position: relative;
}

.main-menu .nav-link {
    color: var(--nav-text);
    font-size: 15px;
    font-weight: 500;
    padding: 21px 22px !important;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 64px;
    transition: all 0.2s ease;
}

.main-menu .nav-link:hover {
    color: var(--primary-blue);
    background: #f8fbff;
}

/* Active menu */

.main-menu .nav-link.active {
    color: var(--primary-blue);
    position: relative;
}

.main-menu .nav-link.active::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px 3px 0 0;
}


/* =========================
   HOME ICON
========================= */

.home-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}


/* =========================
   DROPDOWN ARROW
========================= */

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}


/* =========================
   MEGA DROPDOWN
========================= */

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 270px;

    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0 0 6px 6px;

    box-shadow:
        0 8px 25px rgba(30, 55, 90, 0.12);

    padding: 8px 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.nav-item.dropdown:hover > .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Dropdown items */

.mega-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 18px;

    color: #344d78;
    text-decoration: none;
    font-size: 14px;

    transition: all 0.15s ease;
}

.mega-dropdown a:hover {
    background: #f4f8ff;
    color: var(--primary-blue);
    padding-left: 22px;
}

.mega-dropdown .item-arrow {
    font-size: 15px;
    color: #7183a0;
}

.mega-dropdown a:hover .item-arrow {
    color: var(--primary-blue);
}


/* View All */

.view-all {
    border-top: 1px solid #e8edf4;
    margin-top: 5px;
    padding-top: 6px !important;
    padding-bottom: 12px !important;

    color: var(--primary-blue) !important;
    font-weight: 500;
}


/* =========================
   SEARCH BUTTON
========================= */

.search-button {
    border: 0;
    background: transparent;
    color: var(--primary-blue);
    width: 52px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
}

.search-button:hover {
    background: #f5f9ff;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 991.98px) {

    .top-header {
        height: auto;
        min-height: 70px;
        padding: 15px 0;
    }

    .top-links {
        gap: 15px;
    }

    .main-menu .navbar {
        padding: 8px 0;
    }

    .main-menu .nav-link {
        height: auto;
        padding: 12px 15px !important;
    }

    .main-menu .nav-link.active::after {
        display: none;
    }

    .mega-dropdown {
        position: static;
        width: 100%;
        min-width: 0;

        box-shadow: none;
        border-radius: 4px;

        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-item.dropdown:hover > .mega-dropdown {
        display: none;
    }

    .nav-item.dropdown .mega-dropdown.show {
        display: block;
    }

    .search-button {
        width: auto;
        height: 45px;
        padding: 0 15px;
    }
}


/* =========================
   DEMO CONTENT
========================= */

.demo-content {
    background: #f8f9fa;
    min-height: 500px;
    padding: 40px 0;
}