/* =====================================================
   HEADER
===================================================== */

.header-wrapper {
      position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.header-wrapper.header-show {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Header hidden while scrolling down */
.header-wrapper.header-hide {
    transform: translateY(-100%);
}

/* Keep WordPress admin bar from covering the header */
body.admin-bar .header-wrapper {
    top: 32px;
}


.header-layout {
    min-height: 75px;
    height: 75px;

    display: flex;
    align-items: center;

    width: 100%;
}


/* =====================================================
   LOGO
===================================================== */

.header-wrapper .header-logo {
    position: relative;
    z-index: 15;
}

.header-wrapper .header-logo img,
.header-wrapper .header-logo .custom-logo {
    width: 150px !important;
    max-width: none !important;
    height: auto !important;
    transform: scale(1.35);
    transform-origin: left center;
}

.header-wrapper .header-logo .custom-logo-link {
    display: block !important;
    width: 150px !important;
}



/* =====================================================
   MAIN MENU
===================================================== */

.main-menu {
      flex: 1;
    display: flex;
    justify-content: center;

}

.main-menu .menu-list {
    display: flex;
    align-items: center;

    gap: 32px;

    margin: 0;
    padding: 0;

    list-style: none;
}


/* Main menu items */

.main-menu .menu-list > li {
    position: relative;

    margin: 0;
    padding: 0;

    list-style: none;
}


/* Main menu links */

.main-menu .menu-list > li > a {

    display: flex;
    align-items: center;

    position: relative;

    padding: 34px 0;

    color: #102f34 !important;

    font-size: 16px;

    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    transition: all 0.3s ease;
}


/* Hover */

.main-menu .menu-list > li > a:hover {
    color: #08A63C !important;
}


body.home .main-menu .menu-list > li > a {
    color: #102f34 !important;
}

/* Home menu item */
body.home .main-menu .menu-list > li.current-menu-item > a,
body.home .main-menu .menu-list > li.current_page_item > a {
    color: #08A63C !important;
}

/* Active */

.main-menu .menu-list > li.current-menu-item > a,
.main-menu .menu-list > li.current_page_item > a {
    color: #08A63C !important;
}


main-menu .menu-list > li.menu-item-has-children > a {
    color: #102f34 !important;
}

.main-menu .menu-list > li.menu-item-has-children.current-menu-item > a,
.main-menu .menu-list > li.menu-item-has-children.current-menu-ancestor > a {
    color: #08A63C !important;
}

/* =====================================================
   RESOURCES DROPDOWN
===================================================== */

.main-menu .menu-item-has-children > a::after {

    content: "\f107";

    font-family: "Font Awesome 5 Free";

    font-weight: 900;

    font-size: 11px;

    margin-left: 7px;

    transition: transform 0.3s ease;
}


.main-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}


/* Dropdown */

.main-menu .sub-menu {

    position: absolute;

    top: calc(100% - 5px);
    left: -15px;

    min-width: 210px;

    padding: 10px 0;

    margin: 0;

    background: #ffffff;

    border-radius: 8px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.12);

    list-style: none;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 9999;
}


/* Show dropdown */

.main-menu .menu-item-has-children:hover > .sub-menu {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}


/* Dropdown items */

.main-menu .sub-menu li {

    width: 100%;

    margin: 0;

    padding: 0;

    list-style: none;
}


/* Dropdown links */

.main-menu .sub-menu li a {

    display: block;

    width: 100%;

    padding: 11px 20px;

    color: #102f34;

    font-size: 15px;

    font-weight: 500;

    text-decoration: none;

    transition: all 0.25s ease;
}


.main-menu .sub-menu li a:hover {

    color: #08A63C;

    background: #f5f7ff;

    padding-left: 25px;

}

/* Dropdown timeline/dots */
.main-menu .sub-menu li::before,
.main-menu .sub-menu li::after,
.main-menu .sub-menu li a::before,
.main-menu .sub-menu li a::after {
    background: #F9B900 !important;
    border-color: #F9B900 !important;
}

/* Dropdown vertical line */
.main-menu .sub-menu li::before {
    background-color: #F9B900 !important;
}

/* Resources dropdown - yellow bottom line */
.main-menu ul.sub-menu {
    border-bottom: 3px solid #F9B900 !important;
}

/* If the theme uses a pseudo-element for the bottom line */
.main-menu ul.sub-menu::after {
    background-color: #F9B900 !important;
}

/* =====================================================
   ENROLL NOW BUTTON
===================================================== */
.header-button {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: 50px;
}


.enroll-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-width: 165px;

    height: 52px;

    padding: 0 24px;

    background: #08A63C;

    color: #ffffff !important;

    border-radius: 30px;

    font-size: 15px;

    font-weight: 600;

    text-decoration: none !important;

    box-shadow: 0 7px 18px rgba(48, 79, 254, 0.20);

    transition: all 0.3s ease;
}


.enroll-btn:hover {

    background: #F9B900;

    color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(48, 79, 254, 0.30);
}


.enroll-icon {

    width: 28px;

    height: 28px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);
}


.enroll-icon i {

    font-size: 14px;

}


/* =====================================================
   MOBILE BUTTON
===================================================== */

.menu-toggle {

    display: none;

    width: 42px;

    height: 42px;

    border: 0;

    background: transparent;

    color: #08A63C;

    font-size: 22px;

    cursor: pointer;

}


/* =====================================================
   LARGE LAPTOP
   1200px - 1399px
===================================================== */

@media (max-width: 1399px) {

    .header-layout {
        min-height: 74px;
        height: 74px;
    }

    .header-wrapper .header-logo img,
    .header-wrapper .header-logo .custom-logo {
        width: 120px !important;
        max-width: 120px !important;
    }

    .main-menu .menu-list {
        gap: 24px;
    }

    .main-menu .menu-list > li > a {
        font-size: 14px;
    }

    .header-button {
        margin-left: 25px;
    }

    .enroll-btn {
        min-width: 140px;
        height: 46px;

        padding: 0 18px;
    }
}


/* =====================================================
   TABLET / SMALL LAPTOP
   992px - 1199px
===================================================== */

@media (max-width: 1199px) {

    .header-layout {
        min-height: 72px;
        height: 72px;
    }

    .header-wrapper .header-logo img,
    .header-wrapper .header-logo .custom-logo {
        width: 115px !important;
        max-width: 115px !important;
    }

    .main-menu .menu-list {
        gap: 17px;
    }

    .main-menu .menu-list > li > a {
        font-size: 13px;
    }

    .header-button {
        margin-left: 15px;
    }

    .enroll-btn {
        min-width: 125px;
        height: 44px;

        padding: 0 15px;

        font-size: 13px;
    }

    .enroll-icon {
        width: 24px;
        height: 24px;
    }
}

/* =====================================================
   MOBILE HEADER
===================================================== */

@media (max-width: 991px) {

    /* HEADER */
    .header-wrapper {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 72px !important;

        z-index: 99999 !important;

        background: #ffffff !important;

        transform: translateY(0);
        transition: transform 0.35s ease, box-shadow 0.35s ease;
    }

    /* HEADER VISIBLE */
    .header-wrapper.header-show {
        transform: translateY(0) !important;
        box-shadow: 0 5px 25px rgba(23, 43, 58, 0.10);
    }

    /* HEADER HIDDEN */
    .header-wrapper.header-hide {
        transform: translateY(-100%) !important;
    }


    /* ADMIN BAR */
    body.admin-bar .header-wrapper {
        top: 46px !important;
    }


    /* HEADER INNER */
    .header-layout {
        width: 100%;
        height: 72px !important;
        min-height: 72px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        padding: 0 15px;

        position: relative;
    }


    /* LOGO */
    .header-wrapper .header-logo {
        position: relative;
        z-index: 100002;

        flex-shrink: 0;
    }

    .header-wrapper .header-logo img,
    .header-wrapper .header-logo .custom-logo {
        width: 110px !important;
        max-width: 110px !important;
        height: auto !important;

        transform: none !important;
    }


    /* HIDE DESKTOP ENROLL BUTTON */
    .header-wrapper .header-button {
        display: none !important;
    }


    /* =================================================
       HAMBURGER
    ================================================= */

    .header-wrapper .menu-toggle {
        display: flex !important;

        align-items: center;
        justify-content: center;

        width: 44px !important;
        height: 44px !important;

        margin-left: auto !important;
        padding: 0 !important;

        border: 1px solid rgba(8, 166, 60, 0.20) !important;
        border-radius: 10px !important;

        background: #F2FCF5 !important;
        color: #08A63C !important;

        font-size: 20px !important;

        cursor: pointer;

        position: relative;
        z-index: 100003;

        pointer-events: auto !important;
    }

    .header-wrapper .menu-toggle i {
        pointer-events: none;
        color: inherit !important;
    }


    /* =================================================
       MOBILE MENU
    ================================================= */

    .header-wrapper .main-menu {
        display: none !important;
    }

    /* SHOW MOBILE MENU */
    .header-wrapper .main-menu.mobile-open {
        display: block !important;

        position: fixed !important;

        top: 72px;
        left: 0;
        right: 0;

        width: 100% !important;

        max-height: calc(100vh - 72px);
        overflow-y: auto;

        background: #ffffff !important;

        padding: 18px 20px 25px;

        box-shadow:
            0 15px 35px rgba(23, 43, 58, 0.12);

        z-index: 100000;

        animation: mobileMenuDown 0.25s ease;
    }


    @keyframes mobileMenuDown {

        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }

    }


    /* MOBILE MENU LIST */
    .header-wrapper .main-menu.mobile-open .menu-list {
        display: flex !important;

        flex-direction: column !important;

        align-items: stretch !important;

        gap: 0 !important;

        width: 100%;

        margin: 0;
        padding: 0;

        list-style: none;
    }


    /* MOBILE MENU ITEMS */
    .header-wrapper .main-menu.mobile-open .menu-list > li {
        width: 100%;

        border-bottom: 1px solid #edf1ef;
    }


    /* MOBILE LINKS */
    .header-wrapper .main-menu.mobile-open .menu-list > li > a {
        display: flex !important;

        align-items: center;
        justify-content: space-between;

        width: 100%;

        padding: 15px 5px !important;

        color: #102f34 !important;

        font-size: 15px !important;
        font-weight: 600;

        line-height: 1.4;

        text-decoration: none;
    }


    /* HOVER / ACTIVE */
    .header-wrapper .main-menu.mobile-open .menu-list > li > a:hover,
    .header-wrapper .main-menu.mobile-open .menu-list > li.current-menu-item > a,
    .header-wrapper .main-menu.mobile-open .menu-list > li.current_page_item > a {
        color: #08A63C !important;
    }


    /* =================================================
       MOBILE DROPDOWN
    ================================================= */

    .header-wrapper .main-menu.mobile-open .sub-menu {
        position: static !important;

        display: none;

        width: 100%;

        min-width: 0;

        padding: 0 0 8px;

        margin: 0;

        background: #F7FBF8 !important;

        border-radius: 8px;

        box-shadow: none;

        opacity: 1 !important;
        visibility: visible !important;

        transform: none !important;
    }


    .header-wrapper .main-menu.mobile-open
    .menu-item-has-children.mobile-sub-open > .sub-menu {
        display: block !important;
    }


    .header-wrapper .main-menu.mobile-open .sub-menu li a {
        display: block;

        padding: 11px 15px !important;

        font-size: 14px;

        color: #63727D !important;
    }


    .header-wrapper .main-menu.mobile-open .sub-menu li a:hover {
        color: #08A63C !important;

        background: transparent !important;

        padding-left: 20px !important;
    }


    /* MOBILE DROPDOWN ARROW */
    .header-wrapper .main-menu.mobile-open
    .menu-item-has-children > a::after {
        content: "\f107";

        font-family: "Font Awesome 5 Free";

        font-weight: 900;

        margin-left: auto;

        transition: transform 0.25s ease;
    }


    .header-wrapper .main-menu.mobile-open
    .menu-item-has-children.mobile-sub-open > a::after {
        transform: rotate(180deg);
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 575px) {

    .header-wrapper {
        height: 66px !important;
    }

    .header-layout {
        height: 66px !important;
        min-height: 66px !important;

        padding: 0 14px;
    }

    .header-wrapper .header-logo img,
    .header-wrapper .header-logo .custom-logo {
        width: 100px !important;
        max-width: 100px !important;
    }

    .header-wrapper .menu-toggle {
        width: 42px !important;
        height: 42px !important;
    }

    .header-wrapper .main-menu.mobile-open {
        top: 66px;
        max-height: calc(100vh - 66px);
    }
}


/* =====================================================
   EXTRA SMALL MOBILE
===================================================== */

@media (max-width: 400px) {

    .header-wrapper {
        height: 62px !important;
    }

    .header-layout {
        height: 62px !important;
        min-height: 62px !important;

        padding: 0 12px;
    }

    .header-wrapper .header-logo img,
    .header-wrapper .header-logo .custom-logo {
        width: 92px !important;
        max-width: 92px !important;
    }

    .header-wrapper .menu-toggle {
        width: 40px !important;
        height: 40px !important;
    }

    .header-wrapper .main-menu.mobile-open {
        top: 62px;
        max-height: calc(100vh - 62px);
    }
}