:root {
    --header-height: 3.5rem;
    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --bg-header: #418ce0;
    --bg-header-second: #4a90e2;
    --first-color: hsl(220, 68%, 54%);
    --first-color-lighten: hsl(0, 0%, 100%);
    --second-color-lighten: hsl(0, 0%, 92%);
    --title-color: hsl(220, 48%, 28%);
    --text-color: hsl(220, 12%, 45%);
    --body-color: hsl(220, 100%, 99%);
    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .9rem;
    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;
    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}
@media screen and (min-width: 1024px) {
    :root {
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 1120px;
    /*margin-inline: 1.5rem;*/
}

/*=============== HEADER ===============*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 8px hsla(220, 68%, 12%, 0.1);
    background: var(--bg-header);
    z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.header .nav {
    height: var(--header-height);
}
.nav{
    padding-inline: 10px;
}
.nav__data {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav__menu ul{
    padding-left: 0;
}
.nav__link{
    justify-content: start;
}
.nav__logo {
    display: inline-flex;
    align-items: center;
    column-gap: 0.25rem;
    color: var(--first-color-lighten);
    font-weight: var(--font-semi-bold);
    transition: color 0.3s;
}
.nav__logo i {
    font-size: 1.25rem;
}
.nav__logo:hover {
    color: #fff;
}
.nav__toggle {
    position: relative;
    height: 100%;
    width: fit-content;
    flex: 1;
}
.nav__toggle-menu, .nav__toggle-close {
    font-size: 1.5rem;
    color: var(--first-color-lighten);
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
    cursor: pointer;
    transition: opacity 0.1s, transform 0.4s;
}
.nav__toggle-close {
    opacity: 0;
}
@media screen and (max-width: 1118px) {
    .nav__menu {
        background-color: var(--bg-header);
        position: absolute;
        left: 0;
        top: 2.5rem;
        width: 100%;
        height: calc(100vh - 3.5rem);
        overflow: auto;
        padding-block: 1.5rem 4rem;
        pointer-events: none;
        opacity: 0;
        transition: top 0.4s, opacity 0.3s;
    }
    .nav__menu::-webkit-scrollbar {
        width: 0.5rem;
    }
    .nav__menu::-webkit-scrollbar-thumb {
        background-color: hsl(220, 12%, 70%);
    }
}
.nav__link {
    color: var(--second-color-lighten);
    font-weight: 300;
    margin-inline: 1.5rem;
    margin-block: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}
.nav__link:hover,
.nav__link.dropdown__button:hover{
    color: var(--first-color-lighten)!important;
}

/* Show menu */
.show-menu {
    opacity: 1;
    top: 3.5rem;
    pointer-events: initial;
}

/* Show icon */
.show-icon .nav__toggle-menu {
    opacity: 0;
    /*transform: rotate(90deg) translate(0, 50%);*/
}

.show-icon .nav__toggle-close {
    opacity: 1;
    /*transform: rotate(90deg) translate(0, 50%);*/
}

/*=============== DROPDOWN ===============*/
.dropdown__button {
    cursor: pointer;
}
.dropdown__arrow {
    font-size: 1.5rem;
    font-weight: initial;
    transition: transform 0.4s;
}
.dropdown__content, .dropdown__group, .dropdown__list {
    display: grid;
}
.dropdown__container {
    background-color: var(--bg-header);
    height: 0;
    overflow: hidden;
    transition: height 0.4s;
}
.dropdown__content {
    /*row-gap: 1rem;*/
}
.dropdown__group {
    padding-left: 2.5rem;
    row-gap: 0.5rem;
}
.dropdown__group:first-child {
    margin-top: 1.25rem;
}
.dropdown__group:last-child {
    margin-bottom: 1.25rem;
}
.dropdown__icon i {
    font-size: 1.25rem;
    color: var(--first-color);
}
.dropdown__title {
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--first-color-lighten);
}
.dropdown__list {
    padding-left: 0;
    row-gap: 0.25rem;
}
.dropdown__link {
    font-size: .9em;
    font-weight: 300;
    color: var(--second-color-lighten);
    transition: color 0.3s;
}
.dropdown__link i{
    margin-right: 5px;
}
.dropdown__link:hover {
    color: var(--first-color-lighten);
}

/* Rotate dropdown icon */
.show-dropdown .dropdown__arrow {
    transform: rotate(180deg);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 300px) {
    .dropdown__group {
        padding-left: 1.5rem;
    }
}

@media screen and (max-width: 1118px) {
    .nav__link{
        justify-content: start;
    }
    .nav__link.profile-link{
        background-color: rgba(131, 188, 239, 0.6);
        width: fit-content;
        height: fit-content;
        padding: 5px 10px;
        border-radius: 6px;
    }
    .nav__link.profile-link:hover{
        background-color: #83bcef;
    }
    .dropdown__item .name{
        display: flex;
        height: max-content;
    }
}


/* For large devices */
@media screen and (min-width: 1118px) {
    /* Nav */
    .header .nav {
        height: var(--header-height);
        display: flex;
        justify-content: center;
    }
    .nav__toggle {
        display: none;
    }
    .nav__data{
        width: 10%;
        justify-content: start;
    }
    #siswa-header .nav__data,
    #tentor-header .nav__data
    {
        width: 15%;
        justify-content: start;
    }
    .nav__menu{
        width: 85%;
    }
    .nav__list {
        display: flex;
        /*column-gap: 3rem;*/
        margin: 0;
        justify-content: space-evenly;
    }
    .nav li {
        display: flex;
    }
    .nav__link {
        padding: 0;
    }
    .nav__link:hover {
        background-color: initial;
    }
    /* Dropdown */
    .dropdown__button {
        column-gap: 0.25rem;
        pointer-events: none;
    }
    .dropdown__container {
        min-height: 0;
        position: absolute;
        left: 0;
        right: 0;
        top: var(--header-height);
        pointer-events: none;
        opacity: 1;
        z-index: -1;
        transition: min-height 0.5s;
    }
    .dropdown__content {
        grid-template-columns: repeat(4, max-content);
        column-gap: 6rem;
        max-width: 1070px;
        margin-inline: auto;
    }
    .dropdown__group {
        padding: 1.5rem 0 2rem 0;
        align-content: baseline;
        row-gap: 1.25rem;
    }
    .dropdown__group:first-child, .dropdown__group:last-child {
        margin: 0;
    }
    .dropdown__list {
        row-gap: 0.75rem;
    }
    .dropdown__icon {
        width: 60px;
        height: 60px;
        background-color: var(--first-color-lighten);
        border-radius: 50%;
        display: grid;
        place-items: center;
        margin-bottom: 1rem;
    }
    .dropdown__icon i {
        font-size: 2rem;
    }
    .dropdown__title {
        font-size: var(--normal-font-size);
    }
    .nav__link.item{
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .dropdown__link:hover {
    }
    .dropdown__item {
        width: 100%;
        height: var(--header-height) + 30px;
        display: flex;
        justify-content: center;
        cursor: pointer;
    }
    .dropdown__item:hover .dropdown__arrow {
        transform: rotate(180deg);
    }
    .dropdown__item:hover > .dropdown__container {
        min-height: 0;
        pointer-events: initial;
        cursor: initial;
    }
    .bg-blur{
        width: 100%;
        height: 0;
        transition: height .2s;
        position: absolute;
    }
    .bg-blur.active{
        height: 100vh;
        background: rgba(232, 232, 237, 0.18);
        position: fixed;
        z-index: 10;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    .dropdown__item .name{
        display: none;
        margin-block: 0;
    }
    .nav__link.profile-link{
        margin-block: 0.75rem;
    }

}
@media screen and (min-width: 1152px) {
    .container {
        margin-inline: auto;
    }
}

