/* =========================================================
   KIYA LEARNING
   CODING HEADER
   ORANGE + LIGHT RED
========================================================= */

:root{

    --kl-orange:#F4511E;
    --kl-orange-dark:#D83D10;
    --kl-orange-light:#FFF1EC;

    --kl-red:#FF6B5C;
    --kl-dark:#17181C;
    --kl-text:#303136;
    --kl-muted:#777A82;

    --kl-border:#EDE6E3;

}


/* =========================================================
   TOP BAR
========================================================= */

.kl-topbar{

    position:relative;

    z-index:1100;

    min-height:36px;

    background:#17181C;

    color:#D9DADF;

    font-size:9px;

}


.kl-topbar-inner{

    min-height:36px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

}


.kl-topbar-left{

    display:flex;

    align-items:center;

    gap:20px;

}


.kl-topbar-left a{

    display:inline-flex;

    align-items:center;

    gap:6px;

    color:#D9DADF;

    text-decoration:none;

    transition:.2s ease;

}


.kl-topbar-left a:hover{

    color:#FF765F;

}


.kl-topbar-left i{

    color:#FF765F;

    font-size:11px;

}


.kl-topbar-right{

    display:flex;

    align-items:center;

    gap:11px;

}


.kl-topbar-right>a{

    width:23px;

    height:23px;

    display:grid;

    place-items:center;

    color:#C9CBD0;

    border-radius:6px;

    text-decoration:none;

    transition:.2s ease;

}


.kl-topbar-right>a:hover{

    color:#fff;

    background:var(--kl-orange);

}


.kl-topbar-text{

    margin-right:6px;

    color:#92959C;

    font-size:8px;

    letter-spacing:.3px;

}


/* =========================================================
   MAIN HEADER
========================================================= */

.kl-header{

    position:relative;

    z-index:1050;

    width:100%;

    background:rgba(255,255,255,.98);

    border-bottom:1px solid rgba(20,20,20,.06);

    transition:
        .3s ease;

}


/* =========================================================
   NAVBAR
========================================================= */

.kl-header .navbar{

    min-height:82px;

    padding:0;

    transition:
        min-height .3s ease;

}


/* =========================================================
   STICKY / SCROLLED STATE
========================================================= */

.kl-header.is-scrolled{

    position:fixed;

    top:0;

    left:0;

    right:0;

    background:rgba(255,255,255,.94);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    border-bottom:1px solid rgba(244,81,30,.10);

    box-shadow:
        0 10px 35px rgba(20,20,20,.08);

    animation:
        klHeaderDown .25s ease;

}


@keyframes klHeaderDown{

    from{

        transform:translateY(-100%);

    }

    to{

        transform:translateY(0);

    }

}


.kl-header.is-scrolled .navbar{

    min-height:68px;

}


/* =========================================================
   LOGO
========================================================= */

.kl-brand{

    display:flex;

    align-items:center;

    padding:0 !important;

    margin:0;

}


.kl-logo{

    display:block;

    width:175px;

    height:auto;

    max-height:58px;

    object-fit:contain;

    transition:
        width .3s ease;

}


.kl-header.is-scrolled .kl-logo{

    width:155px;

}


/* =========================================================
   NAVIGATION
========================================================= */

.kl-header .navbar-nav{

    gap:3px;

}


.kl-nav-link{

    position:relative;

    display:flex;

    align-items:center;

    gap:4px;

    min-height:42px;

    padding:
        9px 11px !important;

    color:#303136 !important;

    font-size:12px;

    font-weight:500;

    border-radius:8px;

    transition:
        color .2s ease,
        background .2s ease;

}


.kl-nav-link:hover{

    color:var(--kl-orange) !important;

    background:var(--kl-orange-light);

}


.kl-nav-link.active{

    color:var(--kl-orange) !important;

    font-weight:600;

}


.kl-nav-link.active:after{

    content:"";

    position:absolute;

    left:11px;

    right:11px;

    bottom:3px;

    height:2px;

    border-radius:5px;

    background:var(--kl-orange);

}


/* =========================================================
   DROPDOWN ARROW
========================================================= */

.kl-courses-dropdown
.dropdown-toggle::after{

    margin-left:4px;

    vertical-align:middle;

    border-top:
        4px solid currentColor;

    border-right:
        4px solid transparent;

    border-left:
        4px solid transparent;

    transition:
        transform .2s ease;

}


.kl-courses-dropdown.show
.dropdown-toggle::after{

    transform:rotate(180deg);

}


/* =========================================================
   COURSE DROPDOWN
========================================================= */

.kl-courses-menu{

    width:375px;

    margin-top:11px !important;

    padding:9px;

    border:1px solid #F0E4DF;

    border-radius:16px;

    background:#fff;

    box-shadow:
        0 25px 65px rgba(28,20,18,.13),
        0 5px 18px rgba(28,20,18,.05);

    overflow:hidden;

}


.kl-courses-menu.show{

    animation:
        klDropdownShow .2s ease;

}


@keyframes klDropdownShow{

    from{

        opacity:0;

        transform:
            translateY(6px);

    }

    to{

        opacity:1;

        transform:
            translateY(0);

    }

}


/* =========================================================
   DROPDOWN HEADING
========================================================= */

.kl-dropdown-heading{

    display:flex;

    align-items:center;

    gap:10px;

    padding:
        8px 9px;

}


.kl-dropdown-heading>span{

    width:38px;

    height:38px;

    display:grid;

    place-items:center;

    flex-shrink:0;

    border-radius:10px;

    color:var(--kl-orange);

    background:var(--kl-orange-light);

}


.kl-dropdown-heading strong{

    display:block;

    color:var(--kl-dark);

    font-size:12px;

    font-weight:700;

}


.kl-dropdown-heading small{

    display:block;

    margin-top:2px;

    color:#8A8C92;

    font-size:8px;

}


/* =========================================================
   DIVIDER
========================================================= */

.kl-courses-menu
.dropdown-divider{

    margin:
        5px 0 7px;

    border-color:#F0E8E5;

}


/* =========================================================
   COURSE ITEM
========================================================= */

.kl-course-item{

    display:flex;

    align-items:center;

    gap:10px;

    width:100%;

    padding:
        9px 8px;

    color:var(--kl-text);

    border-radius:10px;

    text-decoration:none;

    transition:
        background .2s ease,
        transform .2s ease;

}


.kl-course-item:hover{

    color:var(--kl-text);

    background:#FFF6F3;

    transform:translateX(2px);

}


/* =========================================================
   COURSE ICON
========================================================= */

.kl-course-icon{

    width:38px;

    height:38px;

    min-width:38px;

    display:grid;

    place-items:center;

    border-radius:9px;

    font-size:19px;

}


.kl-course-icon.html{

    color:#E44D26;

    background:#FFF0EB;

}


.kl-course-icon.javascript{

    color:#111;

    background:#FFF7C9;

}


.kl-course-icon.python{

    color:#3776AB;

    background:#EEF7FF;

}


.kl-course-icon.php{

    color:#777BB4;

    background:#F0F0FA;

}


.kl-course-icon.react{

    color:#149ECA;

    background:#EAF9FF;

}


/* =========================================================
   COURSE CONTENT
========================================================= */

.kl-course-content{

    min-width:0;

    flex:1;

}


.kl-course-content strong{

    display:block;

    color:#292A2F;

    font-size:10px;

    line-height:1.3;

}


.kl-course-content small{

    display:block;

    margin-top:3px;

    color:#8A8C92;

    font-size:8px;

    line-height:1.3;

}


/* =========================================================
   COURSE ARROW
========================================================= */

.kl-course-arrow{

    color:var(--kl-orange);

    font-size:12px;

    opacity:.45;

    transition:.2s ease;

}


.kl-course-item:hover
.kl-course-arrow{

    opacity:1;

    transform:
        translate(
            2px,
            -2px
        );

}


/* =========================================================
   VIEW ALL
========================================================= */

.kl-view-all-courses{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:7px;

    margin-top:6px;

    padding:
        10px;

    border-radius:9px;

    color:var(--kl-orange) !important;

    background:#FFF7F4;

    font-size:9px;

    font-weight:700;

    text-decoration:none;

    transition:.2s ease;

}


.kl-view-all-courses:hover{

    color:#fff !important;

    background:var(--kl-orange);

}


/* =========================================================
   HEADER CTA
========================================================= */

.kl-nav-cta{

    margin-left:8px;

}


.kl-header-btn{

    min-height:40px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:7px;

    padding:
        0 16px;

    color:#fff !important;

    background:
        linear-gradient(
            135deg,
            var(--kl-orange),
            #FF684E
        );

    border:1px solid var(--kl-orange);

    border-radius:8px;

    font-size:10px;

    font-weight:600;

    text-decoration:none;

    box-shadow:
        0 9px 22px rgba(244,81,30,.18);

    transition:
        .25s ease;

}


.kl-header-btn:hover{

    color:#fff !important;

    transform:
        translateY(-2px);

    background:
        linear-gradient(
            135deg,
            var(--kl-orange-dark),
            var(--kl-orange)
        );

    box-shadow:
        0 12px 28px rgba(244,81,30,.25);

}


.kl-header-btn i{

    font-size:11px;

}


/* =========================================================
   MOBILE TOGGLER
========================================================= */

.kl-navbar-toggler{

    width:42px;

    height:42px;

    padding:8px;

    display:flex;

    align-items:center;

    justify-content:center;

    flex-direction:column;

    gap:5px;

    border:1px solid #E9E2DF !important;

    border-radius:9px;

    background:#fff;

    box-shadow:none !important;

}


.kl-navbar-toggler span{

    display:block;

    width:19px;

    height:2px;

    border-radius:4px;

    background:var(--kl-dark);

    transition:.2s ease;

}


.kl-navbar-toggler:hover{

    border-color:var(--kl-orange) !important;

}


.kl-navbar-toggler:hover span{

    background:var(--kl-orange);

}


/* =========================================================
   DESKTOP DROPDOWN POSITION
========================================================= */

@media(min-width:992px){

    .kl-courses-menu{

        left:50% !important;

        transform:
            translateX(-50%);

    }


    .kl-courses-menu.show{

        animation:
            klDropdownDesktop .2s ease;

    }


    @keyframes klDropdownDesktop{

        from{

            opacity:0;

            transform:
                translateX(-50%)
                translateY(6px);

        }

        to{

            opacity:1;

            transform:
                translateX(-50%)
                translateY(0);

        }

    }

}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media(max-width:991.98px){

    .kl-topbar{

        display:none;

    }


    .kl-header{

        background:#fff;

    }


    .kl-header .navbar{

        min-height:70px;

    }


    .kl-logo{

        width:155px;

        max-height:53px;

    }


    .kl-header.is-scrolled .logo{

        width:145px;

    }


    .kl-header .navbar-collapse{

        margin-top:10px;

        padding:
            10px 0 14px;

        border-top:
            1px solid #F0E9E6;

    }


    .kl-header .navbar-nav{

        width:100%;

        gap:2px;

        align-items:stretch !important;

    }


    .kl-header .nav-item{

        width:100%;

    }


    .kl-nav-link{

        width:100%;

        min-height:43px;

        justify-content:flex-start;

        padding:
            10px 11px !important;

    }


    .kl-nav-link.active:after{

        display:none;

    }


    .kl-nav-link:hover{

        background:#FFF5F1;

    }


    /* Dropdown */

    .kl-courses-menu{

        position:static !important;

        width:100%;

        margin:
            3px 0 6px !important;

        padding:7px;

        border:
            1px solid #EFE4E0;

        border-radius:12px;

        box-shadow:none;

        transform:none !important;

    }


    .kl-courses-menu.show{

        animation:
            klMobileDropdown .18s ease;

    }


    @keyframes klMobileDropdown{

        from{

            opacity:0;

            transform:
                translateY(-3px) !important;

        }

        to{

            opacity:1;

            transform:
                translateY(0) !important;

        }

    }


    .kl-course-item{

        padding:
            9px 7px;

    }


    .kl-nav-cta{

        margin:
            8px 0 0;

    }


    .kl-header-btn{

        width:100%;

        min-height:43px;

    }


    .kl-header.is-scrolled{

        position:fixed;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width:575.98px){

    .kl-header .navbar{

        min-height:65px;

    }


    .kl-logo{

        width:140px;

        max-height:48px;

    }


    .kl-navbar-toggler{

        width:39px;

        height:39px;

    }


    .kl-course-icon{

        width:35px;

        height:35px;

        min-width:35px;

        font-size:17px;

    }


    .kl-course-content strong{

        font-size:10px;

    }


    .kl-course-content small{

        font-size:7.5px;

    }

}