@font-face {
    font-family: InriaSans;
    font-display: swap;
    src: url(../font/inria-sans.ttf);
}

@font-face {
    font-family: Sora;
    font-display: swap;
    src: url(../font/sora.ttf);
}

@font-face {
    font-family: Inter;
    font-display: swap;
    src: url(../font/inter.ttf);
}

@font-face {
    font-family: Jost;
    font-display: swap;
    src: url(../font/jost.ttf);
}

:root {
    --color-1: #02c76f;
    --color-2: #6d3de6;
    --bg-color: white;
    --text-color: black;
    --full-width: 100%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    --course-card-bg: white;
    --course-card-shadow: 0 0 15px 3px rgba(220, 220, 220, 0.915);
    --details-card-border-color: rgb(208, 208, 208);
    --details-card-text-color: black;
    --chevron-up: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --chevron-down: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --navbar-box-shadow: 1px 1px 25px rgb(171, 171, 171);
    --course-card-border: 1px solid #D9D9D9;
}

[data-theme='dark'] {
    --bg-color: black;
    --text-color: #ffffff;
    --linear-gradient: black;
    --course-card-bg: #272727;
    --course-card-shadow: none;
    --details-card-border-color: rgb(66, 66, 66);
    --details-card-text-color: rgb(187, 187, 187);
    --chevron-up: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --chevron-down: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --navbar-box-shadow: 1px 1px 25px rgb(62, 62, 62);
    --course-card-border: 1px solid #393939;
}

@media (max-width: 992px) {
    body {
        padding-bottom: 72px;
    }
}

body,
html {
    background: var(--bg-color);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type='number'] {
    -moz-appearance: textfield;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    scroll-behavior: smooth;
    font-family: Sora, InriaSans, Inter;
    transition:
        background 0.15s ease,
        color 0.5s ease;
}

a,
button,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
i,
button,
label,
input {
    transition: 0.15s ease-in-out;
}

#theme-toggler {
    display: inline-block;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;

    .bi {
        font-size: 20px;
        color: var(--text-color);
    }
}

.adjust {
    width: var(--full-width);
    height: 70px;
}

.color-1 {
    color: var(--color-1);
}

.color-2 {
    color: var(--color-2);
}


/* navbar */

.custom-navbar-container {
    width: var(--full-width);
    background: var(--bg-color);
    box-shadow: var(--navbar-box-shadow);

    .custom-navbar {
        width: var(--full-width);
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 70px;

        .nav-logo {
            max-width: 150px;
        }

        .link {
            color: var(--text-color);
            text-decoration: none;

            &:hover {
                color: var(--color-1);
            }
        }

        .link.active {
            color: var(--color-2);
        }
    }
}

.bottom-navbar {
    width: 100%;
    background: var(--bg-color);
    border-top: 1px solid rgb(105, 105, 105);
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 15px 0;
    display: none;

    .link {
        flex: 1;
        display: flex;
        width: max-content;
        text-decoration: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-color);

        span {
            font-size: 12px;
        }
    }

    .link.active {
        color: var(--color-1);
    }
}

@media (max-width: 992px) {
    .bottom-navbar {
        display: block;
    }
}

/* navbar end */


/* course */

.courses-section {
    width: 100%;
    padding: 0px 0 40px 0;
    background: var(--bg-color);

    .heading {
        color: var(--text-color);
        font-weight: 600;
        font-size: 30px;
        margin: 0;
        padding: 0;
    }

    @media (max-width: 576px) {
        .heading {
            font-size: 28px;
            font-weight: 500;
            margin-bottom: 14px;
        }
    }

    .course-card {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 8px;
        text-decoration: none;
        border: var(--course-card-border);
        position: relative;
        overflow: hidden;

        .course-card-img {
            position: relative;
            z-index: 2;
            display: block;
            width: 100%;
            border-radius: 8px;
        }

        .header {
            position: relative;
            z-index: 2;
            margin: 16px 0;
            padding: 0;
            color: var(--text-color);
            font-size: 20px;
        }

        .text {
            position: relative;
            z-index: 2;
            color: var(--text-color);
            font-size: 14px;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 4;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .circle {
            display: block;
            width: 25%;
            aspect-ratio: 1;
            background: #D2E8D7;
            border-top-left-radius: 100%;
            position: absolute;
            bottom: 0;
            right: 0;
        }
    }
}

@media (max-width: 768px) {
    .courses-section {
        padding: 20px 0 40px 0;
    }
}

/* course end */