/* Global module - Learning Academy */
.el-academy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
    align-items: center;
    gap: clamp(40px, 5.7vw, 110px);
}

.el-academy-title {
    margin: 0 0 32px;
    color: var(--el-color-heading);
}

.el-academy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.9em;
    height: 0.9em;
    margin-right: 0.12em;
    border-radius: 50%;
    background: var(--el-color-orange);
    color: var(--el-color-white);
    vertical-align: -0.1em;
    object-fit: contain;
}

.el-academy-icon svg {
    width: 62%;
    height: 62%;
}

.el-academy-text {
    max-width: 680px;
    margin: 0;
    font-size: clamp(17px, 1vw, 19px);
    color: var(--el-color-muted);
    line-height: 1.65;
}

.el-academy-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
}

/* Right: grey panel with the numbered steps on it. Stays in view while the left content scrolls. */
.el-academy-media {
    position: sticky;
    top: 24px;
    padding: clamp(24px, calc(24px + 30 * (100vw - 1280px) / 640), 54px);
    border-radius: clamp(24px, 2.4vw, 40px);
    background: #e7eaef;
}

/* Image instead of the steps: no grey panel, the image keeps the rounded corners. */
.el-academy-media.has-image {
    overflow: hidden;
    padding: 0;
    background: none;
}

.el-academy-image {
    display: block;
    width: 100%;
    height: auto;
}

.el-academy-steps {
    display: grid;
    gap: clamp(7px, calc(7px + 2 * (100vw - 1280px) / 640), 9px);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: el-step;
}

.el-academy-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(18px, calc(18px + 10 * (100vw - 1280px) / 640), 28px);
    min-height: clamp(58px, calc(58px + 10 * (100vw - 1280px) / 640), 68px);
    padding: 2px clamp(14px, calc(14px + 6 * (100vw - 1280px) / 640), 20px) 2px 13px;
    border-radius: clamp(16px, calc(16px + 4 * (100vw - 1280px) / 640), 20px);
    background: #fbfbf9;
    box-shadow: 0 1px 2px rgba(12, 29, 39, 0.04);
    counter-increment: el-step;
}

/* Number in a peach circle. */
.el-academy-step::before {
    content: counter(el-step);
    display: grid;
    place-items: center;
    width: clamp(42px, calc(42px + 10 * (100vw - 1280px) / 640), 52px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fdf0e8;
    font-size: clamp(24px, calc(24px + 6 * (100vw - 1280px) / 640), 30px);
    font-weight: 600;
    line-height: 1;
    color: var(--el-color-orange);
}

.el-academy-step-text {
    font-size: clamp(15px, calc(15px + 3 * (100vw - 1280px) / 640), 18px);
    font-weight: 500;
    line-height: 1.3;
    color: var(--el-color-navy);
}

/* Illustration with a soft peach glow behind it, as in the design. */
.el-academy-step-icon {
    position: relative;
    justify-self: end;
}

.el-academy-step-icon::before {
    content: "";
    position: absolute;
    inset: -6px -10px;
    z-index: 0;
    border-radius: 999px;
    background: radial-gradient(closest-side, #fdf0e8, rgba(253, 240, 232, 0));
}

.el-academy-step-icon img {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    max-width: clamp(160px, calc(160px + 100 * (100vw - 1280px) / 640), 260px);
    height: auto;
    max-height: clamp(52px, calc(52px + 12 * (100vw - 1280px) / 640), 64px);
}

/* Two narrow columns on small laptops and tablets: smaller illustrations leave room for the text. */
@media (min-width: 992px) and (max-width: 1199px) {
    .el-academy-step-icon img {
        max-width: 130px;
    }
}

@media (max-width: 991px) {
    .el-academy-grid {
        grid-template-columns: 1fr;
    }

    .el-academy-media {
        position: static;
    }
}

@media (max-width: 575px) {
    .el-academy-buttons .btn {
        flex: 1 1 100%;
    }

    /* Phones: less side space in the panel. */
    .el-academy-media {
        padding: 16px 12px;
    }

    /* Phones: illustration under the text; the number stays centred on the whole step. */
    .el-academy-step {
        grid-template-columns: auto minmax(0, 1fr);
        row-gap: 8px;
        column-gap: 14px;
        padding: 8px 14px 8px 10px;
    }

    .el-academy-step:has(.el-academy-step-icon)::before {
        grid-row: 1 / span 2;
    }

    .el-academy-step-icon {
        grid-column: 2;
        justify-self: start;
    }
}

/* Icon + underlined word wrap as one, like "(icon) managed" in the design. */
.el-academy-nowrap {
    white-space: nowrap;
}

/* Design: the panel reaches 70px into the gutter at 1920. Only where the screen has room,
   so it never causes sideways scrolling. */
@media (min-width: 1600px) {
    .el-academy-grid {
        margin-right: calc(-1 * min(70px, max(0px, (100vw - var(--el-container)) / 2)));
    }
}
