/* =====================================================
   DRIVE BY DAAN - RIJLESSEN
===================================================== */


/* =====================================================
   SECTIE
===================================================== */

.lessons {
    position: relative;

    width: 100%;

    padding: 105px 0 110px;

    background:
        linear-gradient(
            180deg,
            #f7f7f7 0%,
            #ffffff 100%
        );

    box-sizing: border-box;
}


/* =====================================================
   RODE ACCENTLIJN
===================================================== */

.lessons::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 62px;
    height: 4px;

    transform: translateX(-50%);

    background: #e30613;

    border-radius: 0 0 4px 4px;
}


/* =====================================================
   SECTION HEADER
===================================================== */

.lessons .section-header {
    max-width: 850px;

    margin: 0 auto 55px;

    text-align: center;
}

.lessons .section-title {
    display: block;

    margin-bottom: 12px;

    color: #e30613;

    font-size: 14px;
    line-height: 1.2;

    font-weight: 900;

    letter-spacing: 4.5px;
}

.lessons .section-heading {
    margin: 0 0 18px;

    color: #111111;

    font-size: clamp(38px, 4vw, 54px);
    line-height: 1.06;

    font-weight: 900;

    letter-spacing: -1.4px;
}

.lessons .section-header > p {
    max-width: 720px;

    margin: 0 auto;

    color: #666666;

    font-size: 18px;
    line-height: 1.7;
}


/* =====================================================
   LESSON GRID
===================================================== */

.lessons-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    width: 100%;
}


/* =====================================================
   LESSON CARD
===================================================== */

.lesson-card {
    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    width: 100%;
    min-width: 0;
    min-height: 315px;

    padding: 34px 26px 32px;

    background: #ffffff;

    border: 1px solid rgba(17,17,17,.07);

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 14px 38px rgba(0,0,0,.06),
        0 1px 0 rgba(255,255,255,.8) inset;

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


/* =====================================================
   CARD RODE ACCENT
===================================================== */

.lesson-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background: #e30613;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform .25s ease;
}

.lesson-card:hover {
    transform: translateY(-7px);

    border-color: rgba(227,6,19,.20);

    box-shadow:
        0 24px 55px rgba(0,0,0,.11);
}

.lesson-card:hover::before {
    transform: scaleX(1);
}


/* =====================================================
   ICON
===================================================== */

.lesson-icon {
    width: 70px;
    height: 70px;

    margin-bottom: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #f01421 0%,
            #d80613 100%
        );

    color: #ffffff;

    font-size: 30px;

    box-shadow:
        0 12px 28px rgba(227,6,19,.19);
}


/* =====================================================
   TITEL
===================================================== */

.lesson-card h3 {
    width: 100%;

    min-height: 58px;

    margin: 0 0 10px;

    color: #111111;

    font-size: 21px;
    line-height: 1.22;

    font-weight: 800;

    overflow-wrap: anywhere;
}


/* =====================================================
   TEKST
===================================================== */

.lesson-card p {
    width: 100%;

    margin: 0;

    color: #686868;

    font-size: 15px;
    line-height: 1.65;

    overflow-wrap: anywhere;
}


/* =====================================================
   CTA
===================================================== */

.lessons-cta {
    margin-top: 48px;

    padding: 24px 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 24px;

    background: #111111;

    border-radius: 16px;

    text-align: center;

    box-shadow:
        0 18px 45px rgba(0,0,0,.12);
}

.lessons-cta p {
    margin: 0;

    color: #ffffff;

    font-size: 18px;
    font-weight: 600;
}

.lessons-cta .btn {
    min-height: 48px;

    padding: 0 24px;

    border-radius: 9px;

    font-size: 15px;
    font-weight: 900;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .lessons {
        padding: 90px 0 95px;
    }

    .lessons .section-header {
        margin-bottom: 45px;
    }

    .lessons .section-heading {
        font-size: 46px;
    }

    .lessons-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

    .lesson-card {
        min-height: 280px;
    }

    .lesson-card h3 {
        min-height: auto;
    }
}


/* =====================================================
   MOBIEL
===================================================== */

@media (max-width: 768px) {

    .lessons {
        padding: 72px 0 78px;
    }

    .lessons .section-header {
        margin-bottom: 38px;
    }

    .lessons .section-title {
        font-size: 12px;

        letter-spacing: 3.5px;
    }

    .lessons .section-heading {
        font-size: 34px;

        line-height: 1.08;
    }

    .lessons .section-header > p {
        font-size: 16px;

        line-height: 1.65;
    }


    /* GRID */

    .lessons-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    /* CARD */

    .lesson-card {
        min-height: auto;

        padding: 30px 24px 32px;
    }

    .lesson-icon {
        width: 64px;
        height: 64px;

        margin-bottom: 17px;

        font-size: 27px;
    }

    .lesson-card h3 {
        min-height: auto;

        font-size: 20px;
    }

    .lesson-card p {
        font-size: 15px;
    }


    /* CTA */

    .lessons-cta {
        flex-direction: column;

        gap: 16px;

        margin-top: 36px;

        padding: 24px 20px;
    }

    .lessons-cta p {
        font-size: 16px;
    }

    .lessons-cta .btn {
        width: auto;
    }
}


/* =====================================================
   KLEINE TELEFOONS
===================================================== */

@media (max-width: 480px) {

    .lessons {
        padding: 65px 0 70px;
    }

    .lessons .section-heading {
        font-size: 31px;
    }

    .lessons .section-header > p {
        font-size: 15px;
    }

    .lesson-card {
        padding: 28px 20px 30px;
    }

    .lesson-card h3 {
        font-size: 19px;
    }

    .lesson-card p {
        font-size: 14px;
    }

    .lessons-cta {
        padding: 22px 18px;
    }
}