/* Global module - Feature Cards: two cards side by side, light or navy (e.g. Engineers Australia CPD, Psychosocial safety). */
.el-fcards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
    gap: clamp(20px, calc(20px + 20 * (100vw - 1280px) / 640), 40px);
}

.el-fcard {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(32px, calc(32px + 18 * (100vw - 1280px) / 640), 50px);
    border-radius: clamp(24px, calc(24px + 8 * (100vw - 1280px) / 640), 32px);
    background: #eef2f6;
}

.el-fcard > :not(.el-fcard-mark) {
    position: relative;
}

.el-fcard h2 {
    margin: 0 0 clamp(20px, calc(20px + 6 * (100vw - 1280px) / 640), 26px);
}

/* Stat box: big number + line of text + small note */
.el-fcard-stat {
    display: flex;
    align-items: center;
    gap: clamp(16px, calc(16px + 8 * (100vw - 1280px) / 640), 24px);
    align-self: stretch;
    margin-bottom: clamp(20px, calc(20px + 6 * (100vw - 1280px) / 640), 26px);
    padding: clamp(18px, calc(18px + 6 * (100vw - 1280px) / 640), 24px) clamp(20px, calc(20px + 8 * (100vw - 1280px) / 640), 28px);
    border-radius: 18px;
    background: #e1e8ef;
}

.el-fcard-stat strong {
    flex: none;
    font-family: var(--el-font-heading);
    font-size: clamp(48px, calc(48px + 16 * (100vw - 1280px) / 640), 64px);
    font-weight: 400;
    line-height: 1;
    color: var(--el-color-heading);
}

.el-fcard-stat p {
    margin: 0;
    font-size: clamp(16px, calc(16px + 2 * (100vw - 1280px) / 640), 18px);
    line-height: 1.5;
    color: var(--el-color-text);
}

.el-fcard-stat small {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--el-color-muted);
}

.el-fcard-text {
    font-size: clamp(16px, calc(16px + 3 * (100vw - 1280px) / 640), 19px);
    line-height: 1.7;
    color: var(--el-color-muted);
}

.el-fcard-text p {
    margin: 0 0 14px;
}

/* Ticked list */
.el-fcard-checks {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: clamp(16px, calc(16px + 3 * (100vw - 1280px) / 640), 19px);
    line-height: 1.6;
}

.el-fcard-checks li {
    position: relative;
    padding-left: 32px;
}

.el-fcard-checks li + li {
    margin-top: 10px;
}

.el-fcard-checks li::before {
    content: "";
    position: absolute;
    top: 0.45em;
    left: 2px;
    width: 16px;
    height: 12px;
    background: var(--el-color-orange);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1.5 6.5l4 4L14.5 1.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1.5 6.5l4 4L14.5 1.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* The link sits at the bottom, so links in a row line up */
.el-fcard-link {
    margin-top: auto;
    padding-top: clamp(14px, calc(14px + 10 * (100vw - 1280px) / 640), 24px);
}

/* Navy card: white text, light orange eyebrow and link, faint "el" mark in the bottom right */
.el-fcard.is-navy {
    background: var(--el-color-blue-dark);
    color: var(--el-color-white);
}

.el-fcard.is-navy h2 {
    color: var(--el-color-white);
}

.el-fcard.is-navy .el-eyebrow,
.el-fcard.is-navy .el-fcard-link {
    color: #f8a06f;
}

.el-fcard.is-navy .el-fcard-link:hover,
.el-fcard.is-navy .el-fcard-link:focus-visible {
    color: var(--el-color-white);
}

.el-fcard.is-navy .el-fcard-text {
    color: rgba(255, 255, 255, 0.88);
}

.el-fcard.is-navy .el-fcard-stat {
    background: rgba(255, 255, 255, 0.08);
}

.el-fcard.is-navy .el-fcard-stat strong,
.el-fcard.is-navy .el-fcard-stat p {
    color: var(--el-color-white);
}

.el-fcard.is-navy .el-fcard-stat small {
    color: rgba(255, 255, 255, 0.7);
}

.el-fcard-mark {
    position: absolute;
    right: -0.04em;
    bottom: -0.3em;
    font-family: var(--el-font-heading);
    font-size: clamp(190px, calc(190px + 70 * (100vw - 1280px) / 640), 260px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    user-select: none;
}

@media (max-width: 575px) {
    .el-fcard-stat {
        flex-direction: column;
        align-items: flex-start;
    }
}
