/* Programme page - Modules: title + intro, then numbered module cards. */
.el-prog-modules[id] {
    scroll-margin-top: 24px;
}

.el-prog-modules.is-bg-white {
    background: var(--el-color-white);
}

.el-prog-modules.is-bg-tint {
    background: var(--el-color-light);
}

.el-prog-modules-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 64px;
}

.el-prog-modules-title {
    max-width: 720px;
}

.el-prog-modules h2 {
    margin: 0;
}

.el-prog-modules-intro {
    max-width: 520px;
}

.el-prog-modules-intro p {
    margin: 0;
    font-size: clamp(17px, calc(17px + 2 * (100vw - 1280px) / 640), 19px);
    line-height: 1.7;
    color: var(--el-color-muted);
}

/* Review pill (empty on live). */
.el-prog-modules-note {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fdeee6;
    font-size: 13px;
    line-height: 1.5;
    color: #a8461b;
}

.el-prog-modules-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, calc(20px + 8 * (100vw - 1280px) / 640), 28px);
    margin: clamp(40px, calc(40px + 16 * (100vw - 1280px) / 640), 56px) 0 0;
    padding: 0;
    list-style: none;
    counter-reset: el-prog-module;
}

.el-prog-module {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(28px, calc(28px + 8 * (100vw - 1280px) / 640), 36px);
    border-radius: 18px;
    background: var(--el-color-light);
    counter-increment: el-prog-module;
}

.el-prog-modules.is-bg-tint .el-prog-module {
    background: var(--el-color-white);
}

/* Number (01, 02...) with a rule under it. */
.el-prog-module::before {
    content: counter(el-prog-module, decimal-leading-zero);
    display: block;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #d3dde7;
    font-family: var(--el-font-heading);
    font-size: clamp(26px, calc(26px + 4 * (100vw - 1280px) / 640), 30px);
    line-height: 1;
    color: #b8501c;
}

.el-prog-module h3 {
    margin: 0;
    font-size: clamp(22px, calc(22px + 4 * (100vw - 1280px) / 640), 26px);
    line-height: 1.3;
    color: var(--el-color-heading);
}

.el-prog-module p {
    margin: 12px 0 0;
    font-size: clamp(16px, calc(16px + 2 * (100vw - 1280px) / 640), 18px);
    line-height: 1.65;
    color: var(--el-color-muted);
}

/* Hover: the card turns navy. */
.el-prog-module,
.el-prog-module::before,
.el-prog-module h3,
.el-prog-module p {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.el-prog-modules .el-prog-module:hover {
    background: var(--el-color-navy, #1c3554);
}

.el-prog-module:hover::before {
    border-bottom-color: rgba(255, 255, 255, 0.16);
    color: #f2925f;
}

.el-prog-module:hover h3 {
    color: var(--el-color-white);
}

.el-prog-module:hover p {
    color: #d3dde8;
}

/* "el" mark at the bottom right, shown on hover. */
.el-prog-module::after {
    content: "el";
    position: absolute;
    right: -4px;
    bottom: -36px;
    font-family: var(--el-font-heading);
    font-size: 150px;
    line-height: 1;
    color: var(--el-color-white);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.el-prog-module:hover::after {
    opacity: 0.06;
}

.el-prog-module h3,
.el-prog-module p {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .el-prog-module,
    .el-prog-module::before,
    .el-prog-module::after,
    .el-prog-module h3,
    .el-prog-module p {
        transition: none;
    }
}

@media (max-width: 991px) {
    .el-prog-modules-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .el-prog-modules-list {
        grid-template-columns: minmax(0, 1fr);
    }
}
