/* Page module - Case Study Cards (case study posts, 2 a row) */
.el-cscards {
    background: #eaf1f4;
}

.el-cscards-head {
    max-width: 820px;
    margin: 0 auto clamp(32px, calc(32px + 24 * (100vw - 1280px) / 640), 56px);
    text-align: center;
}

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

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

.el-cscards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 1.4vw, 28px);
}

.el-cscards-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dce5ea;
    border-radius: clamp(20px, 1.4vw, 24px);
    background: var(--el-color-white);
    transition: border-color var(--el-transition), box-shadow var(--el-transition), transform var(--el-transition);
}

.el-cscards-card:hover {
    border-color: #9fb6c6;
    box-shadow: 0 12px 30px rgba(23, 61, 96, 0.09);
    transform: translateY(-3px);
}

.el-cscards-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--el-color-blue-dark);
}

.el-cscards-media > a {
    display: block;
    width: 100%;
    height: 100%;
}

.el-cscards-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No photo: the "el" mark on navy */
.el-cscards-mark {
    font-family: var(--el-font-heading);
    font-size: clamp(90px, 8vw, 150px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(185, 203, 216, 0.18);
}

.el-cscards-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--el-color-white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--el-color-blue-dark);
}

.el-cscards-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(24px, 2vw, 36px);
}

.el-cscards-name {
    margin: 0 0 14px;
    font-size: clamp(25px, calc(25px + 7 * (100vw - 1280px) / 640), 32px);
    line-height: 1.2;
}

.el-cscards-name a {
    color: var(--el-color-blue-dark);
    text-decoration: none;
}

.el-cscards-desc {
    flex: 1;
    margin: 0;
    font-size: clamp(16px, calc(16px + 2 * (100vw - 1280px) / 640), 18px);
    color: var(--el-color-muted);
}

.el-cscards-foot {
    margin-top: 20px;
}

.el-cscards-link {
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    font-size: 15px;
    font-weight: 500;
    color: #b84e24;
    text-decoration: none;
}

.el-cscards-link:hover,
.el-cscards-link:focus-visible {
    color: var(--el-color-hover);
}

@media (prefers-reduced-motion: reduce) {
    .el-cscards-card:hover {
        transform: none;
    }
}

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