/* =====================================================
   SVH RESPONSIVE MENU
   Completely separated / namespaced CSS
===================================================== */

.svh-banner .svh-main-nav {
    position: relative;
    display: flex;
    align-items: center;
}

/* Desktop menu */

.svh-banner .svh-menu-wrapper > ul {
    display: flex !important;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.svh-banner .svh-menu-wrapper > ul > li {
    position: relative;
    list-style: none;
	background: transparent;
}

.svh-banner .svh-menu-wrapper > ul > li > a {
    display: block;
    padding: 12px 14px;
    color: #e2e8f0 !important;
    text-decoration: none;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.svh-banner .svh-menu-wrapper > ul > li > a:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
}


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

.svh-banner .svh-menu-wrapper ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 230px;

    margin: 0;
    padding: 8px 0;

    list-style: none;

    background: #ffffff;

    border-radius: 8px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.18);

    z-index: 9999;
}


/* Desktop hover */

@media (min-width: 993px) {

    .svh-banner .svh-menu-wrapper > ul > li:hover > ul {
        display: block !important;
    }

}


/* Dropdown items */

.svh-banner .svh-menu-wrapper ul li ul li {
    display: block;
    width: 100%;
    position: relative;
}

.svh-banner .svh-menu-wrapper ul li ul li a {
    display: block;

    padding: 10px 18px;

    color: #334155 !important;

    font-size: 13px !important;

    text-decoration: none;

    white-space: nowrap;

    transition: all 0.2s ease;
}

.svh-banner .svh-menu-wrapper ul li ul li a:hover {
    background: #f1f5f9;

    color: #2563eb !important;
}


/* ==========================================
   SECOND LEVEL DROPDOWN
========================================== */

.svh-banner .svh-menu-wrapper ul li ul li ul {
    top: 0;
    left: 100%;
}

@media (min-width: 993px) {

    .svh-banner .svh-menu-wrapper ul li ul li:hover > ul {
        display: block !important;
    }

}


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

.svh-banner .svh-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;

    border: 1px solid rgba(255,255,255,0.3);

    border-radius: 6px;

    background: transparent;

    cursor: pointer;

    flex-direction: column;

    justify-content: center;

    gap: 5px;
}

.svh-banner .svh-menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    background: #ffffff;

    border-radius: 2px;

    transition: all 0.3s ease;
}


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

@media (max-width: 992px) {

    .svh-banner .svh-header-inner {
        padding: 12px 20px;
    }

    .svh-banner .svh-main-nav {
        margin-left: auto;
    }

    .svh-banner .svh-menu-toggle {
        display: flex;
    }


    /* Hide desktop menu initially */

    .svh-banner .svh-menu-wrapper {
        display: none;

        position: absolute;

        top: calc(100% + 10px);

        right: 0;

        width: min(360px, calc(100vw - 30px));

        max-height: 75vh;

        overflow-y: auto;

        background: #ffffff;

        border-radius: 10px;

        box-shadow: 0 15px 40px rgba(0,0,0,0.3);

        z-index: 99999;
    }


    /* Open menu */

    .svh-banner .svh-menu-wrapper.svh-menu-open {
        display: block;
    }


    /* Main UL */

    .svh-banner .svh-menu-wrapper > ul {
        display: block !important;

        margin: 0;

        padding: 8px 0;
    }


    /* Main LI */

    .svh-banner .svh-menu-wrapper > ul > li {
        display: block;

        width: 100%;

        border-bottom: 1px solid #e5e7eb;
    }

    .svh-banner .svh-menu-wrapper > ul > li:last-child {
        border-bottom: none;
    }


    /* Main links */

    .svh-banner .svh-menu-wrapper > ul > li > a {
        display: block;

        padding: 14px 20px;

        color: #1e293b !important;

        background: transparent !important;

        border-radius: 0;

        font-size: 14px !important;
    }


    .svh-banner .svh-menu-wrapper > ul > li > a:hover {
        color: #2563eb !important;

        background: #f8fafc !important;
    }


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

    .svh-banner .svh-menu-wrapper ul li ul {
        display: none;

        position: static;

        width: 100%;

        min-width: 0;

        padding: 0;

        margin: 0;

        background: #f8fafc;

        box-shadow: none;

        border-radius: 0;
    }


    /* Open submenu */

    .svh-banner .svh-menu-wrapper li.svh-dropdown-open > ul {
        display: block !important;
    }


    /* Submenu links */

    .svh-banner .svh-menu-wrapper ul li ul li a {
        padding: 12px 20px 12px 38px;

        color: #475569 !important;

        white-space: normal;
    }


    /* Second level */

    .svh-banner .svh-menu-wrapper ul li ul li ul {
        position: static;
    }

    .svh-banner .svh-menu-wrapper ul li ul li ul li a {
        padding-left: 55px;
    }


    /* Dropdown indicator */

    .svh-banner .svh-menu-wrapper li.svh-has-dropdown > a {
        position: relative;

        padding-right: 50px;
    }

    .svh-banner .svh-menu-wrapper li.svh-has-dropdown > a:after {
        content: "+";

        position: absolute;

        right: 20px;

        top: 50%;

        transform: translateY(-50%);

        font-size: 20px;

        font-weight: 400;

        color: #2563eb;
    }

    .svh-banner .svh-menu-wrapper li.svh-has-dropdown.svh-dropdown-open > a:after {
        content: "−";
    }


    /* Existing nav actions */

    .svh-banner .nav-actions {
        display: none;
    }

}


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

@media (max-width: 576px) {

    .svh-banner .svh-header-inner {
        padding: 10px 15px;
    }

    .svh-banner .logo-container img {
        max-width: 50px;
        height: auto;
    }

    .svh-banner .svh-menu-wrapper {
        width: calc(88vw - 22px);
        right: 0px;
    }

}