/* Global module - Home: Academy (centred head, a drawing of the academy screen, company card + notify card) */
.el-hacademy-head {
    max-width: 1200px;
    margin: 0 auto clamp(44px, calc(44px + 20 * (100vw - 1280px) / 640), 64px);
    text-align: center;
}

.el-hacademy-title {
    margin: 0;
}

.el-hacademy-text {
    max-width: 680px;
    margin: 16px auto 0;
    font-size: clamp(17px, calc(17px + 3 * (100vw - 1280px) / 640), 20px);
    color: var(--el-color-muted);
}

.el-hacademy-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(44px, calc(44px + 26 * (100vw - 1280px) / 640), 70px);
    align-items: center;
}

/* The screen drawing. Sizes are fixed (it is a picture), only the box scales with the column. */
.el-hacademy-screen {
    overflow: hidden;
    border: 1px solid #dde3e8;
    border-radius: 12px;
    background: var(--el-color-white);
    box-shadow: 0 30px 70px rgba(12, 29, 39, 0.18);
}

.el-hacademy-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #dde3e8;
    background: #eef2f5;
}

.el-hacademy-bar > i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cfd8de;
}

.el-hacademy-url {
    flex: 1;
    min-width: 0;
    margin-left: 10px;
    overflow: hidden;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--el-color-white);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--el-color-muted);
}

.el-hacademy-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #dde3e8;
    font-size: 12px;
    color: var(--el-color-muted);
}

.el-hacademy-logo {
    display: flex;
    align-items: center;
    height: 26px;
    font-family: var(--el-font-heading);
    font-size: 24px;
    line-height: 1;
    color: var(--el-color-heading);
}

.el-hacademy-logo :is(img, svg) {
    width: auto;
    height: 26px;
}

.el-hacademy-banner {
    padding: 22px 20px;
    background: linear-gradient(120deg, var(--el-color-heading), #2f5d7c);
    color: var(--el-color-white);
}

.el-hacademy-banner small {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

.el-hacademy-banner b {
    display: block;
    margin-top: 4px;
    font-family: var(--el-font-heading);
    font-size: clamp(20px, calc(20px + 4 * (100vw - 1280px) / 640), 24px);
    font-weight: 400;
}

.el-hacademy-tiles {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 18px;
}

.el-hacademy-tile {
    padding: 12px 6px;
    border: 1px solid #dde3e8;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: var(--el-color-heading);
}

.el-hacademy-tile svg {
    display: block;
    margin: 0 auto 6px;
    color: var(--el-color-orange);
}

.el-hacademy-courses {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 18px 20px;
}

.el-hacademy-course {
    overflow: hidden;
    border: 1px solid #dde3e8;
    border-radius: 8px;
}

.el-hacademy-thumb {
    display: block;
    height: 64px;
    background: linear-gradient(135deg, var(--el-color-blue-dark), var(--el-color-heading));
}

.el-hacademy-course:nth-child(2) .el-hacademy-thumb {
    background: linear-gradient(135deg, var(--el-color-orange), #f59a6b);
}

.el-hacademy-course:nth-child(3) .el-hacademy-thumb {
    background: linear-gradient(135deg, #3f6f8e, #88aec4);
}

.el-hacademy-course-meta {
    display: block;
    padding: 8px 10px;
}

.el-hacademy-course-meta b {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    color: var(--el-color-heading);
}

.el-hacademy-progress {
    display: block;
    height: 4px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: #dde3e8;
}

.el-hacademy-progress i {
    display: block;
    height: 100%;
    background: var(--el-color-orange);
}

/* The two cards */
.el-hacademy-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.el-hacademy-card {
    padding: clamp(24px, calc(24px + 8 * (100vw - 1280px) / 640), 32px) clamp(26px, calc(26px + 8 * (100vw - 1280px) / 640), 34px);
    border: 1px solid #dde3e8;
    border-radius: clamp(14px, calc(14px + 4 * (100vw - 1280px) / 640), 18px);
    background: var(--el-color-white);
}

.el-hacademy-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--el-color-orange-text);
}

.el-hacademy-card-title {
    margin: 6px 0 8px;
    font-size: clamp(22px, calc(22px + 6 * (100vw - 1280px) / 640), 28px);
}

.el-hacademy-card-text {
    margin: 0 0 14px;
    font-size: clamp(15px, calc(15px + 2 * (100vw - 1280px) / 640), 17px);
    color: var(--el-color-muted);
}

.el-hacademy-list {
    margin: 0 0 18px;
    padding: 0;
    font-size: clamp(14px, calc(14px + 2 * (100vw - 1280px) / 640), 16px);
    list-style: none;
    columns: 2;
    column-gap: 16px;
}

.el-hacademy-list li {
    position: relative;
    padding: 2px 0 2px 20px;
    break-inside: avoid;
}

.el-hacademy-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--el-color-orange-text);
}

/* Notify form: email + button in one row */
.el-notify-row {
    display: flex;
    gap: 8px;
}

.el-notify-row input {
    flex: 1;
    min-width: 0;
    min-height: var(--el-btn-height);
    padding: 0 18px;
    border: 1px solid #c9d2d9;
    border-radius: 999px;
    background: var(--el-color-white);
    font: inherit;
    font-size: 16px; /* 16px: no zoom on focus on iPhones */
    color: var(--el-color-text);
}

.el-notify-row input:focus-visible {
    outline: 2px solid var(--el-color-blue-dark);
    outline-offset: 1px;
}

.el-notify-row input[aria-invalid="true"] {
    border-color: #c0392b;
}

.el-notify-row .btn {
    flex: none;
}

.el-notify .cf-turnstile {
    margin-top: 10px;
}

.el-notify-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.el-notify-status {
    margin: 10px 0 0;
    font-size: 15px;
}

.el-notify-status:empty {
    display: none;
}

.el-notify-status.is-error {
    color: #c0392b;
}

/* After sending, the thank-you line replaces the form. */
.el-notify-status.is-success {
    margin: 0;
    font-weight: 600;
    color: var(--el-color-heading);
}

.el-hacademy-member {
    margin: 4px 0 0;
    font-size: clamp(14px, calc(14px + 1 * (100vw - 1280px) / 640), 15px);
    text-align: center;
    color: var(--el-color-muted);
}

.el-hacademy-member a {
    font-weight: 600;
    color: var(--el-color-blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1199px) {
    .el-hacademy-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .el-hacademy-screen,
    .el-hacademy-cards {
        width: 100%;
        max-width: 680px;
        margin-inline: auto;
    }
}

@media (max-width: 575px) {
    .el-hacademy-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .el-hacademy-courses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .el-hacademy-course:nth-child(3) {
        display: none;
    }

    .el-hacademy-list {
        columns: 1;
    }

    .el-notify-row {
        flex-direction: column;
    }
}
