.learn-hub {
    padding-bottom: 3rem;
}

.learn-hub__content {
    width: min(100%, 64rem);
    margin-inline: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.learn-hub__intro {
    display: grid;
    justify-items: start;
    gap: 1rem;
    padding-bottom: 2rem;
}

.learn-hub__mark {
    display: block;
    width: 4rem;
    height: 4rem;
    border: 1px solid #d9dff3;
    border-radius: 8px;
    background: #e9edfa;
    object-fit: contain;
}

.learn-hub__intro h1 {
    max-width: 100%;
    margin: 0;
    font-size: 2.125rem;
    font-weight: 620;
    line-height: 1.24;
    text-wrap: balance;
}

.learn-hub .learn-about-surprise {
    color: #4055cf;
}

.learn-hub__groups {
    display: grid;
    gap: 1.75rem 3rem;
}

.learn-hub__groups section {
    min-width: 0;
}

.learn-hub__groups h2 {
    margin: 0 0 0.625rem;
    color: #565b64;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

.learn-hub__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-block: 1px solid #d6d8dc;
}

.learn-hub__list li + li {
    border-top: 1px solid #d6d8dc;
}

.learn-hub__row {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) 1.125rem;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.625rem;
    padding: 0.5rem 0.625rem 0.5rem 0.25rem;
    font-size: 1rem;
    font-weight: 550;
    line-height: 1.4;
    overflow-wrap: anywhere;
    transition: background-color 160ms ease;
}

.learn-hub__row::after,
.learn-hub__home::before {
    width: 1.125rem;
    height: 1.125rem;
    background: url("../IMG/icons/chevron-down.svg") center / contain no-repeat;
    content: "";
    opacity: 0.55;
    transform: rotate(-90deg);
}

.learn-hub__icon,
.learn-hub__code {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 8px;
}

.learn-hub__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.learn-hub__icon--blue { background: #e1e8ff; color: #354bb7; }
.learn-hub__icon--mint { background: #d9eee6; color: #20684f; }
.learn-hub__icon--amber { background: #f5ead4; color: #765009; }
.learn-hub__icon--rose { background: #f4e1e8; color: #99395a; }

.learn-hub__code {
    background: #e5e7eb;
    color: #535963;
    font: 600 0.6875rem/1 ui-monospace, Consolas, monospace;
}

.learn-hub__list--tests .learn-hub__row {
    font-size: 0.875rem;
    font-weight: 500;
}

.learn-hub__home {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 44px;
    margin-top: 1.25rem;
    padding-inline: 0.25rem 0.625rem;
    border-radius: 8px;
    color: #354bb7;
    font-size: 0.875rem;
    font-weight: 550;
    transition: background-color 160ms ease;
}

.learn-hub__home::before {
    transform: rotate(90deg);
}

@media (hover: hover) {
    .learn-hub__row:hover,
    .learn-hub__home:hover {
        background-color: #e7e9ee;
    }
}

.learn-hub__row:active,
.learn-hub__home:active {
    background-color: #dce2f1;
}

.learn-hub__row:focus-visible,
.learn-hub__home:focus-visible {
    outline-color: #4055cf;
    outline-offset: -2px;
}

@media (min-width: 48rem) {
    .learn-hub__intro {
        padding-bottom: 2.5rem;
    }

    .learn-hub__intro h1 {
        font-size: 3.25rem;
    }

    .learn-hub__groups {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
}
