/* =========================================================
   KEDCO HEADER
   Approved Design
========================================================= */

.site-header {
    width: 100%;
    background: #ffffff;
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    width: 100%;
    height: 24px;
    background: #011174;
    color: #ffffff;

    font-family: "Candara", Arial, sans-serif;
    font-size: 13px;
}

.topbar-inner {
    width: calc(100% - 80px);
    max-width: 1600px;
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-left {
    gap: 22px;
}

.topbar-right {
    gap: 14px;
}

.topbar-item,
.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.topbar-item i,
.topbar-link i {
    color: #E8DE03;
    font-size: 12px;
}

.topbar-link:hover {
    color: #ffffff;
}

.topbar-social {
    width: 16px;
    height: 16px;

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

    color: #ffffff;
    text-decoration: none;
}

.topbar-social i {
    color: #ffffff;
    font-size: 12px;
}

.topbar-social:hover i {
    color: #E8DE03;
}


/* =========================================================
   MAIN HEADER
========================================================= */

.main-header {
    width: 100%;
    height: 66px;

    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    width: calc(100% - 80px);
    max-width: 1600px;
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;
    margin-right: auto;
}

.logo img {
    display: block;
    width: 135px;
    height: auto;
}

/* Light mode logo */
.kedco-logo-dark {
    display: none !important;
}

/* Dark mode logo */
[data-theme="dark"] .kedco-logo-light {
    display: none !important;
}

[data-theme="dark"] .kedco-logo-dark {
    display: block !important;
}


/* =========================================================
   MAIN NAVIGATION
========================================================= */

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation .nav-menu {
    display: flex;
    align-items: center;

    list-style: none;
    margin: 0;
    padding: 0;

    gap: 15px;
}

.main-navigation .nav-menu > li {
    position: relative;

    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu > li > a {
    height: 66px;

    display: flex;
    align-items: center;

    gap: 5px;

    color: #011174;
    text-decoration: none;

    font-family: "Candara", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;
}

.main-navigation .nav-menu > li > a:hover {
    color: #E8DE03;
}


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

.main-navigation
.nav-menu
.menu-item-has-children > a::after {

    content: "\f078";

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    font-size: 9px;

    margin-left: 3px;

    color: #011174;
}

.main-navigation
.nav-menu
.menu-item-has-children > a:hover::after {
    color: #E8DE03;
}


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

.main-navigation .sub-menu {
    position: absolute;

    top: 66px;
    left: 50%;

    transform: translateX(-50%);

    min-width: 210px;

    margin: 0;
    padding: 8px 0;

    list-style: none;

    background: #ffffff;

    border-top: 3px solid #E8DE03;

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

    opacity: 0;
    visibility: hidden;

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

    z-index: 1000;
}

.main-navigation
.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.main-navigation .sub-menu li {
    margin: 0;
    padding: 0;
}

.main-navigation .sub-menu li a {
    display: block;

    padding: 9px 18px;

    color: #011174;
    background: #ffffff;

    font-family: "Candara", Arial, sans-serif;
    font-size: 15px;

    text-decoration: none;

    white-space: nowrap;
}

.main-navigation .sub-menu li a:hover {
    color: #011174;
    background: #f7f7f7;
}


/* =========================================================
   RIGHT SIDE
========================================================= */

.nav-right {
    display: flex;
    align-items: center;

    gap: 10px;
    margin-left: 24px;
}


/* =========================================================
   MY ACCOUNT
========================================================= */

.account-btn {
    height: 38px;

    padding: 0 18px;

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

    gap: 8px;

    background: #E8DE03;
    
    color: #011174;

    border-radius: 22px;

    font-family: "Candara", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition: all 0.2s ease;
}

.account-btn i {
    font-size: 14px;
}

.account-btn:hover {
    background: #011174;
    color: #ffffff;
}


.account-btn.nerc-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.account-btn.nerc-order-btn .nerc-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}


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

.search-btn {
    width: 38px;
    height: 38px;

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

    border: none;
    border-radius: 50%;

    background: #f5f7fb;
    color: #011174;

    cursor: pointer;

    font-size: 15px;

    transition: all 0.2s ease;
}

.search-btn:hover {
    background: #E8DE03;
}


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

.mobile-menu-toggle {
    display: none;

    width: 38px;
    height: 38px;

    padding: 0;
    margin: 0;

    border: none;
    background: transparent;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;

    width: 20px;
    height: 2px;

    background: #011174;

    border-radius: 2px;

    transition: all 0.2s ease;
}



.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   KEDCO SUNLIGHT / MOONLIGHT TOGGLE
   ========================================================= */

.kedco-theme-toggle {

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: transparent;

    color: var(--kedco-primary);

    cursor: pointer;

    font-size: 16px;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}


.kedco-theme-toggle:hover {

    background: rgba(1, 17, 116, 0.08);

    transform: rotate(15deg);
}


/* DARK MODE */

[data-theme="dark"] .kedco-theme-toggle {

    color: var(--kedco-yellow);
}


[data-theme="dark"] .kedco-theme-toggle:hover {

    background: rgba(232, 222, 3, 0.10);
}


/* ICON */

.kedco-theme-toggle i {

    display: block;

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

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .topbar-inner,
    .navbar {
        width: calc(100% - 40px);
    }

    .main-navigation .nav-menu {
        gap: 18px;
    }

    .nav-right {
        margin-left: 18px;
    }
}

@media (max-width: 900px) {

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

    .navbar {
        position: relative;

        width: 100%;
        padding: 0 12px;
        box-sizing: border-box;

        display: flex;
        align-items: center;
    }

    /* Logo */

    .logo {
        margin-right: auto;
        flex-shrink: 0;
    }

    .logo img {
        width: 125px;
        height: auto;
    }


    /* Desktop navigation hidden */

    .main-navigation {
        display: none;
    }


    /* Right side: Account + Search */

    .nav-right {
        display: flex;
        align-items: center;

        gap: 6px;

        margin-left: 0;

        flex-shrink: 0;
    }


    /* Hamburger */

    .mobile-menu-toggle {
        display: flex;

        width: 38px;
        height: 38px;

        margin-left: 2px;
        padding: 0;

        border: none;
        background: transparent;

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

        flex-direction: column;

        gap: 5px;

        flex-shrink: 0;

        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;

        width: 20px;
        height: 2px;

        background: #011174;

        border-radius: 2px;

        transition: all 0.2s ease;
    }


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

    .main-navigation.is-open {
        display: block;

        position: absolute;

        top: 64px;
        left: 0;
        right: 0;

        width: 100%;

        background: #ffffff;

        border-top: 1px solid #eeeeee;

        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);

        z-index: 1000;
    }

    .main-navigation.is-open .nav-menu {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        width: 100%;

        margin: 0;
        padding: 10px 0;

        background: #ffffff;

        list-style: none;
    }

    .main-navigation.is-open .nav-menu > li {
        width: 100%;

        margin: 0;
        padding: 0;
    }

    .main-navigation.is-open .nav-menu > li > a {
        display: flex;

        width: 100%;
        height: auto;

        padding: 13px 20px;

        box-sizing: border-box;

        color: #011174;

        font-family: "Candara", Arial, sans-serif;
        font-size: 16px;
        font-weight: 600;

        text-decoration: none;

        border-bottom: 1px solid #f1f1f1;
    }

}


@media (max-width: 600px) {

    .topbar {
        height: auto;
        min-height: 30px;
    }

    .topbar-inner {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        justify-content: center;
    }

    .topbar-left {
        gap: 10px;
    }

    .topbar-right {
        display: none;
    }

    .topbar-item {
        font-size: 12px;
    }

    .main-header {
        height: 62px;
    }

    .navbar {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .logo img {
        width: 125px;
    }

    .account-btn {
        width: 38px;
        padding: 0;
    }

    .account-btn span {
        display: none;
    }
}


/* =========================================================
   KEDCO HEADER — DARK MODE
   ========================================================= */

[data-theme="dark"] .site-header {
    background: #0B1020;
}


/* =========================================================
   MAIN HEADER
   ========================================================= */

[data-theme="dark"] .main-header {
    background: #050A24;
    border-bottom-color: #1F2937;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

[data-theme="dark"] .main-navigation .nav-menu > li > a {
    color: #FFFFFF;
}

[data-theme="dark"] .main-navigation .nav-menu > li > a:hover {
    color: #E8DE03;
}


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

[data-theme="dark"]
.main-navigation
.nav-menu
.menu-item-has-children > a::after {
    color: #FFFFFF;
}

[data-theme="dark"]
.main-navigation
.nav-menu
.menu-item-has-children > a:hover::after {
    color: #E8DE03;
}


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

[data-theme="dark"] .main-navigation .sub-menu {
    background: #111827;
    border-top-color: #E8DE03;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.40);
}

[data-theme="dark"] .main-navigation .sub-menu li a {
    color: #FFFFFF;
    background: #111827;
}

[data-theme="dark"] .main-navigation .sub-menu li a:hover {
    color: #011174;
    background: #E8DE03;
}


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

[data-theme="dark"] .search-btn {
    background: #182033;
    color: #FFFFFF;
}

[data-theme="dark"] .search-btn:hover {
    background: #E8DE03;
    color: #011174;
}


/* =========================================================
   ACCOUNT BUTTON
   ========================================================= */

[data-theme="dark"] .account-btn {
    background: #E8DE03;
    color: #011174;
}

[data-theme="dark"] .account-btn:hover {
    background: #FFFFFF;
    color: #011174;
}


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

[data-theme="dark"] .mobile-menu-toggle span {
    background: #FFFFFF;
}


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

@media (max-width: 900px) {

    [data-theme="dark"] .main-navigation.is-open {
        background: #0B1020;
        border-top-color: #1F2937;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.40);
    }

    [data-theme="dark"] .main-navigation.is-open .nav-menu {
        background: #0B1020;
    }

    [data-theme="dark"] .main-navigation.is-open .nav-menu > li > a {
        color: #FFFFFF;
        border-bottom-color: #1F2937;
    }

    [data-theme="dark"] .main-navigation.is-open .nav-menu > li > a:hover {
        color: #E8DE03;
        background: #111827;
    }

}


/* =========================================================
   THEME TOGGLE
   ========================================================= */

[data-theme="dark"] .kedco-theme-toggle {
    color: #E8DE03;
}

[data-theme="dark"] .kedco-theme-toggle:hover {
    background: rgba(232, 222, 3, 0.10);
}


/* =========================================================
   KEDCO TOP BAR — DARK MODE
   ========================================================= */

[data-theme="dark"] .topbar {
    background: #0B1020;
    color: #FFFFFF;
}

[data-theme="dark"] .topbar-item,
[data-theme="dark"] .topbar-link {
    color: #FFFFFF;
}

[data-theme="dark"] .topbar-item i,
[data-theme="dark"] .topbar-link i {
    color: #E8DE03;
}

[data-theme="dark"] .topbar-link:hover {
    color: #E8DE03;
}

[data-theme="dark"] .topbar-social {
    color: #FFFFFF;
}

[data-theme="dark"] .topbar-social i {
    color: #FFFFFF;
}

[data-theme="dark"] .topbar-social:hover i {
    color: #E8DE03;
}


