/* =========================================================
   Learn - Quiz hub
   ========================================================= */

.quiz-hub-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.quiz-hub-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 24px;

    padding: 30px 32px;

    border: 1px solid #dfe8ef;
    border-radius: 22px;

    background:
        radial-gradient(
            circle at 92% 18%,
            rgba(114, 84, 184, 0.13),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #ffffff,
            #fbfaff
        );

    box-shadow:
        0 7px 20px
        rgba(31, 60, 90, 0.07);
}

.quiz-hub-kicker,
.quiz-hub-card-kicker {
    color: #7254b8;

    font-size: 0.76rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: 0.65px;
}

.quiz-hub-hero h1 {
    margin: 5px 0 0;

    color: #102b56;

    font-size: clamp(
        2rem,
        4vw,
        3rem
    );

    font-weight: 950;
    line-height: 1.08;
}

.quiz-hub-hero p {
    max-width: 760px;

    margin: 11px 0 0;

    color: #536579;

    line-height: 1.55;
}

.quiz-hub-hero-icon {
    min-width: 150px;

    font-size: clamp(
        3.4rem,
        7vw,
        5rem
    );

    text-align: center;
}

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

    gap: 18px;
}

.quiz-hub-card {
    position: relative;

    min-width: 0;
    min-height: 235px;

    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: start;
    gap: 18px;

    box-sizing: border-box;

    padding: 24px;

    border: 1px solid #dfe8ef;
    border-radius: 20px;

    background: #ffffff;
    color: inherit !important;

    box-shadow:
        0 7px 20px
        rgba(31, 60, 90, 0.06);

    text-decoration: none !important;

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

a.quiz-hub-card:hover {
    transform: translateY(-3px);

    border-color: #b9cddd;

    box-shadow:
        0 12px 28px
        rgba(31, 60, 90, 0.11);
}

.quiz-hub-card-vocabulary {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f5fbff
        );
}

.quiz-hub-card-verbs {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f7f4fd
        );
}

.quiz-hub-card-roots {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f2fbf8
        );
}

.quiz-hub-card-icon {
    width: 64px;
    height: 64px;

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

    border-radius: 18px;

    background:
        rgba(
            255,
            255,
            255,
            0.8
        );

    font-size: 2rem;

    box-shadow:
        inset 0 0 0 1px
        rgba(16, 43, 86, 0.06);
}

.quiz-hub-card-content {
    min-width: 0;
}

.quiz-hub-card h2 {
    margin: 5px 0 0;

    color: #102b56;

    font-size: 1.35rem;
    font-weight: 950;
}

.quiz-hub-card p {
    margin: 9px 0 0;

    color: #607286;

    line-height: 1.5;
}

.quiz-hub-features {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 16px;
}

.quiz-hub-features span {
    padding: 5px 8px;

    border-radius: 999px;

    background:
        rgba(
            16,
            43,
            86,
            0.06
        );

    color: #607286;

    font-size: 0.7rem;
    font-weight: 850;
}

.quiz-hub-arrow {
    align-self: center;

    color: #7254b8;

    font-size: 1.7rem;
    font-weight: 900;
}

.quiz-hub-card-disabled {
    opacity: 0.55;

    cursor: default;
}

@media (max-width: 860px) {

    .quiz-hub-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {

    .quiz-hub-hero {
        grid-template-columns: 1fr;

        padding: 21px;
    }

    .quiz-hub-hero-icon {
        display: none;
    }

    .quiz-hub-card {
        grid-template-columns:
            auto
            minmax(0, 1fr);

        min-height: 0;

        padding: 19px;
    }

    .quiz-hub-arrow {
        display: none;
    }
}
