@font-face {
    font-family: 'archivo-black';
    src: url('/assets/css/fonts/archivo-black.ttf') format('truetype');
}

@font-face {
    font-family: 'cocomat-pro';
    src: url('/assets/css/fonts/cocomat-pro.ttf') format('truetype');
}

@font-face {
    font-family: 'nunito';
    src: url('/assets/css/fonts/nunito.ttf') format('truetype');
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: #000000;
    background-color: var(--bg-main);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

.nav-bar {
    border-radius: 10px;
    padding: 10px 25px;
    margin: 20px 20%;
    background-color: var(--pallete-blue2);
    box-shadow: 0 1rem 3rem rgb(0 0 0 / 18%);
    color: white;
    display: flex;
    align-items: center;
    height: 100px;
    gap: 10px;

    & .title-holder {
        display: flex;
    }
}

.links-holder {
    display: flex;
    align-items: left;
    justify-content: left;
    width: 60%;
    gap: 50px;
    margin: 0 auto;
    padding-left: 100px;

    & .page-button {
        font-size: 18px;
        font-weight: 500;
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        transition:
            background 0.25s ease,
            color 0.25s ease,
            transform 0.25s ease;

        &:hover {
            background-color: white;
            color: var(--pallete-blue2);
            transform: translateY(-1px);
        }
    }
}

.title1 {
    font-family: var(--font-title1);
    font-size: 26px;
    font-weight: 700;
}

.title2 {
    font-family: var(--font-title2);
    font-size: 26px;
    font-weight: 700;
    padding-top: 3px;
}

.home-title {
    font-family: 'nunito';
    font-weight: 1000;
    font-size: 60px;
    color: var(--pallete-blue1);
    margin-bottom: 20px;
}

.home-description {
    font-family: 'nunito';
    font-weight: 600;
    font-size: 28px;
    color: var(--pallete-blue2);
}

#home-title-holder {
    margin: 200px 20% 0;
    padding-bottom: 200px;
    align-items: center;
    text-align: center;
}

.main-content {
    align-items: center;
    justify-content: space-between;
    text-align: center;
    vertical-align: top;
    display: flex;
    gap: 30px;

    & .content-block {
        margin-bottom: 40px;
        font-size: 20px;
        background-color: #c9e3ff;
        border-radius: 10px;
        max-width: 50%;

        & .subtitle {
            font-size: 26px;
            font-weight: 600;
            font-family: 'nunito';
            color: var(--pallete-blue1);
            text-align: left;
            padding: 20px 20px 0;
        }

        & .text {
            padding: 8px 20px 20px;
            color: var(--pallete-blue2);
            text-align: left;
        }
    }
}

#courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 0.25fr));
    gap: 28px;
    padding-left: 20px;
    padding-right: 20px;
}

#section1 {
    background: linear-gradient(180deg, rgb(231, 248, 255) 0%, rgb(168, 219, 255) 100%) fixed;
    padding-top: 1px;
}

#section2 {
    padding: 60px 20% 0;
}

.course-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    transition: 0.2s;
    color: black;
    font-weight: 600;
}

.course-card h2 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--text-main);
}

.course-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgb(0 0 0 / 18%);
}

.course-tags {
    margin-top: 10px;
}

.tag {
    background-color: #eef3ff;
    color: var(--pallete-blue1);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 5px;
}

#mobile-menu {
    display: none;
    background-color: #7c94ff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-left: auto;
}

.invisible-div {
    display: flex;
    width: 100%;
    height: 1px;
}

@media (max-width: 1300px) {
    #courses-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }

    .course-card {
        padding: 15px;
    }

    .links-holder {
        display: flex;
    }

    .nav-bar {
        justify-content: space-between;
        margin: 20px 10%;
    }

    #section2 {
        padding: 60px 10% 0;
    }
}

@media (max-width: 1000px) {
    .links-holder {
        display: none;
    }

    #mobile-menu {
        display: block;
    }
}
