/* =========================================================
   KIYA LEARNING HEADER
   FULL RESPONSIVE
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --primary: #e53935;
    --primary-dark: #c62828;

    --dark: #1f2937;
    --text: #4b5563;

    --light: #fffafa;

    --border: #f1eeee;
}


/* =========================================================
   GLOBAL
========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}


/* =========================================================
   HEADER
========================================================= */

#mainHeader {
    width: 100%;

    position: relative;

    background: #fff;

    z-index: 9999;
}


/* =========================================================
   TOP HEADER
========================================================= */

.top-header {
    width: 100%;
    height: 48px;

    background: var(--light);

    border-bottom: 1px solid #f3e6e6;

    display: flex;
    align-items: center;
}


.header-container {
    width: 100%;
    max-width: 100%;

    padding-left: 45px;
    padding-right: 45px;
}


.top-header-wrapper {
    width: 100%;

    height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   TOP CONTACT
========================================================= */

.top-contact {
    display: flex;
    align-items: center;

    gap: 28px;
}


.top-contact a {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #444;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition: .3s ease;
}


.top-contact a:hover {
    color: var(--primary);
}


.top-contact i {
    color: var(--primary);

    font-size: 14px;
}


/* =========================================================
   SOCIAL
========================================================= */

.top-social {
    display: flex;
    align-items: center;

    gap: 9px;
}


.top-social a {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #444;

    background: #fff;

    border-radius: 50%;

    text-decoration: none;

    box-shadow: 0 4px 15px rgba(0,0,0,.07);

    transition: .3s ease;
}


.top-social a:hover {
    color: #fff;

    background: var(--primary);

    transform: translateY(-2px);
}


/* =========================================================
   MAIN HEADER
========================================================= */

.main-header-inner {
    width: 100%;

    background: #fff;
}


/* =========================================================
   NAVBAR
========================================================= */

.main-navbar {
    width: 100%;

    min-height: 105px;

    display: flex;
    align-items: center;

    position: relative;
}


/* =========================================================
   LOGO
========================================================= */

.navbar-brand {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    padding: 0;

    margin-right: 30px;

    text-decoration: none;
}


.main-logo {
    display: block;

    width: auto;

    height: 70px;

    max-width: 245px;

    object-fit: contain;
}


/* =========================================================
   MAIN MENU
========================================================= */

.main-menu {
    flex: 1;

    min-width: 0;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   NAV LIST
========================================================= */

.main-nav-list {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 1px;

    margin: 0;

    padding: 0;

    list-style: none;

    flex: 1;
}


/* =========================================================
   NAV ITEM
========================================================= */

.main-nav-list > .nav-item {
    position: relative;

    flex-shrink: 0;
}


/* =========================================================
   NAV LINK
========================================================= */

.main-nav-list .nav-link {
    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    padding: 12px 9px;

    color: var(--dark);

    font-size: 16px;

    font-weight: 600;

    white-space: nowrap;

    text-decoration: none;

    transition: .3s ease;
}


/* =========================================================
   NAV HOVER
========================================================= */

.main-nav-list .nav-link:hover {
    color: var(--primary);
}


/* =========================================================
   ACTIVE / HOVER LINE
========================================================= */

.main-nav-list .nav-link::after {
    content: "";

    position: absolute;

    left: 50%;

    bottom: 3px;

    width: 0;

    height: 2px;

    background: var(--primary);

    border-radius: 10px;

    transform: translateX(-50%);

    opacity: 0;

    transition: .3s ease;
}


.main-nav-list .nav-link:hover::after,
.main-nav-list .nav-link.active::after {
    width: 65%;

    opacity: 1;
}


/* =========================================================
   DROPDOWN ARROW
========================================================= */

.dropdown-arrow {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 10px;

    transition: .25s ease;
}


/* =========================================================
   CUSTOM DROPDOWN
========================================================= */

.custom-dropdown {
    position: absolute;

    top: calc(100% + 12px);

    left: 50%;

    min-width: 220px;

    padding: 10px;

    background: #fff;

    border-radius: 14px;

    box-shadow: 0 15px 45px rgba(0,0,0,.13);

    transform: translate(-50%, 10px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;

    z-index: 99999;
}


/* =========================================================
   DROPDOWN ITEM
========================================================= */

.custom-dropdown a {
    display: block;

    width: 100%;

    padding: 11px 14px;

    color: var(--dark);

    background: transparent;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 500;

    text-decoration: none;

    transition: .25s ease;
}


.custom-dropdown a:hover {
    color: var(--primary);

    background: #fff2f2;

    padding-left: 18px;
}


/* =========================================================
   DESKTOP HOVER DROPDOWN
========================================================= */

@media (min-width: 1200px) {

    .has-dropdown:hover > .custom-dropdown {

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: translate(-50%, 0);
    }


    .has-dropdown:hover .dropdown-arrow {

        transform: rotate(180deg);

        color: var(--primary);
    }


    /*
       Invisible bridge between menu and dropdown
    */

    .custom-dropdown::before {

        content: "";

        position: absolute;

        top: -14px;

        left: 0;

        width: 100%;

        height: 14px;
    }

}


/* =========================================================
   FREE TRIAL
========================================================= */

.header-action {
    flex-shrink: 0;

    margin-left:0px;
}


.trial-btn {
    min-height: 54px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 10px 20px;

    color: #fff !important;

    background: var(--primary);

    border-radius: 50px;

    font-size: 15px;

    font-weight: 700;

    white-space: nowrap;

    text-decoration: none;

    box-shadow: 0 10px 25px rgba(229,57,53,.25);

    transition: .35s ease;
}


.trial-btn:hover {
    color: #fff !important;

    background: var(--primary-dark);

    transform: translateY(-2px);

    box-shadow: 0 14px 30px rgba(229,57,53,.30);
}


.trial-btn i {
    transition: .3s ease;
}


.trial-btn:hover i {
    transform: translateX(3px);
}


/* =========================================================
   MOBILE BUTTON
========================================================= */

.mobile-menu-btn {

    display: none;

    width: 46px;

    height: 46px;

    flex-shrink: 0;

    padding: 0;

    background: #fff;

    border: 1px solid #eee;

    border-radius: 10px;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;

    cursor: pointer;
}


.mobile-menu-btn span {

    display: block;

    width: 22px;

    height: 2px;

    background: #444;

    border-radius: 10px;

    transition: .3s ease;
}


/* =========================================================
   MOBILE BUTTON ACTIVE
========================================================= */

.mobile-menu-btn.active span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);
}


.mobile-menu-btn.active span:nth-child(2) {

    opacity: 0;
}


.mobile-menu-btn.active span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   LAPTOP
   1200 - 1399
========================================================= */

@media (max-width: 1399px) {

    .header-container {
        padding-left: 30px;
        padding-right: 30px;
    }


    .main-logo {
        height: 64px;

        max-width: 220px;
    }


    .main-nav-list .nav-link {
        font-size: 15px;

        padding-left: 7px;
        padding-right: 7px;
    }


    .trial-btn {
        padding-left: 19px;

        padding-right: 19px;

        font-size: 14px;
    }


    .navbar-brand {
        margin-right: 18px;
    }

}


/* =========================================================
   TABLET + MOBILE
   BELOW 1200
========================================================= */

@media (max-width: 1199px) {

    .header-container {
        padding-left: 25px;
        padding-right: 25px;
    }


    .main-navbar {
        min-height: 88px;

        justify-content: space-between;
    }


    /* =====================================================
       LOGO
    ===================================================== */

    .navbar-brand {
        margin-right: 0;
    }


    .main-logo {
        height: 60px;

        max-width: 210px;
    }


    /* =====================================================
       MOBILE BUTTON SHOW
    ===================================================== */

    .mobile-menu-btn {

        display: flex;

        margin-left: auto;
    }


    /* =====================================================
       MENU CLOSED BY DEFAULT
    ===================================================== */

    .main-menu {

        display: none;

        position: absolute;

        top: calc(100% + 10px);

        left: 0;

        width: 100%;

        padding: 18px;

        background: #fff;

        border-radius: 16px;

        box-shadow: 0 15px 40px rgba(0,0,0,.12);

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        max-height: calc(100vh - 110px);

        overflow-y: auto;

        z-index: 99999;
    }


    /* =====================================================
       MENU OPEN
    ===================================================== */

    .main-menu.mobile-open {

        display: flex;
    }


    /* =====================================================
       NAV LIST
    ===================================================== */

    .main-nav-list {

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 2px;
    }


    .main-nav-list > .nav-item {

        width: 100%;
    }


    /* =====================================================
       LINKS
    ===================================================== */

    .main-nav-list .nav-link {

        width: 100%;

        min-height: 48px;

        padding: 12px 14px;

        justify-content: space-between;

        font-size: 16px;

        border-radius: 9px;
    }


    .main-nav-list .nav-link:hover {

        background: #fff5f5;
    }


    /* Remove underline mobile */

    .main-nav-list .nav-link::after {

        display: none;
    }


    /* =====================================================
       MOBILE DROPDOWN
    ===================================================== */

    .custom-dropdown {

        position: static;

        width: 100%;

        min-width: 0;

        padding: 5px;

        margin: 0;

        background: #fafafa;

        border-radius: 10px;

        box-shadow: none;

        transform: none;

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        display: none;
    }


    /*
       JS se open hone par
    */

    .has-dropdown.dropdown-open > .custom-dropdown {

        display: block;
    }


    .has-dropdown.dropdown-open .dropdown-arrow {

        transform: rotate(180deg);

        color: var(--primary);
    }


    .custom-dropdown a {

        padding: 10px 14px;

        font-size: 14px;
    }


    /* =====================================================
       TRIAL BUTTON
    ===================================================== */

    .header-action {

        width: 100%;

        margin: 15px 0 0;
    }


    .trial-btn {

        width: 100%;

        min-height: 50px;
    }

}


/* =========================================================
   TABLET
   BELOW 991
========================================================= */

@media (max-width: 991px) {

    .header-container {

        padding-left: 20px;

        padding-right: 20px;
    }


    .main-navbar {

        min-height: 82px;
    }


    .main-logo {

        height: 58px;

        max-width: 200px;
    }


    .main-menu {

        padding: 15px;
    }


    .top-contact {

        gap: 15px;
    }


    .top-contact a {

        font-size: 13px;
    }

}


/* =========================================================
   MOBILE
   BELOW 767
========================================================= */

@media (max-width: 767px) {

    /* Hide top bar */

    .top-header {

        display: none;
    }


    .header-container {

        padding-left: 15px;

        padding-right: 15px;
    }


    .main-navbar {

        min-height: 72px;

        padding: 8px 0;
    }


    .main-logo {

        height: 52px;

        max-width: 180px;
    }


    .mobile-menu-btn {

        width: 44px;

        height: 44px;
    }


    .main-menu {

        top: calc(100% + 6px);

        padding: 12px;

        border-radius: 14px;

        max-height: calc(100vh - 85px);
    }


    .main-nav-list .nav-link {

        min-height: 46px;

        font-size: 15px;
    }


    .trial-btn {

        min-height: 48px;

        font-size: 14px;
    }

}


/* =========================================================
   SMALL MOBILE
   BELOW 480
========================================================= */

@media (max-width: 480px) {

    .header-container {

        padding-left: 12px;

        padding-right: 12px;
    }


    .main-logo {

        height: 47px;

        max-width: 165px;
    }


    .mobile-menu-btn {

        width: 42px;

        height: 42px;
    }


    .main-menu {

        top: calc(100% + 5px);

        padding: 10px;
    }


    .main-nav-list .nav-link {

        font-size: 14px;

        padding: 11px 12px;
    }


    .custom-dropdown a {

        font-size: 13px;

        padding: 9px 12px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   BELOW 360
========================================================= */

@media (max-width: 360px) {

    .header-container {

        padding-left: 10px;

        padding-right: 10px;
    }


    .main-logo {

        height: 43px;

        max-width: 150px;
    }


    .mobile-menu-btn {

        width: 40px;

        height: 40px;
    }


    .main-menu {

        padding: 8px;
    }

}




