.ensure-articles {
    --ensure-accent: #078cff;
    --ensure-text: #0d1b38;
    --ensure-muted: #6f7b91;
    width: 100%;
    color: var(--ensure-text);
    font-family: inherit;
}

.ensure-articles *,
.ensure-articles *::before,
.ensure-articles *::after {
    box-sizing: border-box;
}

.ensure-articles__header {
    margin: 0 0 26px;
    text-align: center;
}

.ensure-articles__heading {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.18;
    font-weight: 800;
    color: var(--ensure-text);
}

.ensure-articles__subheading {
    margin: 9px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ensure-muted);
}

.ensure-articles__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 24px;
    align-items: stretch;
}

.ensure-articles__feature {
    position: relative;
    display: block;
    min-height: 520px;
    overflow: hidden;
    border-radius: 24px;
    background: #edf3f8;
    box-shadow: 0 18px 55px rgba(16, 41, 78, .12);
    isolation: isolate;
}

.ensure-articles__feature img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.ensure-articles__feature:hover img {
    transform: scale(1.035);
}

.ensure-articles__feature-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(3, 19, 44, 0) 48%, rgba(3, 19, 44, .64) 100%);
    pointer-events: none;
}

.ensure-articles__feature-label {
    position: absolute;
    z-index: 2;
    left: 26px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 17px;
    border-radius: 999px;
    color: #fff;
    background: color-mix(in srgb, var(--ensure-accent) 88%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 91, 197, .28);
}

.ensure-articles__list {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.ensure-articles__card {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(18, 55, 97, .09);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 41, 78, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ensure-articles__card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--ensure-accent) 34%, transparent);
    box-shadow: 0 16px 38px rgba(16, 41, 78, .13);
}

.ensure-articles__thumb {
    display: block;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    background: #eef3f7;
}

.ensure-articles__thumb img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}

.ensure-articles__card:hover .ensure-articles__thumb img {
    transform: scale(1.04);
}

.ensure-articles__thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 155px;
    background: linear-gradient(135deg, #e8eef4, #dbe5ed);
}

.ensure-articles__content {
    min-width: 0;
    padding: 17px 18px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ensure-articles__category {
    display: inline-flex;
    align-self: flex-start;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 5px 9px;
    overflow: hidden;
    border-radius: 999px;
    color: var(--ensure-accent);
    background: color-mix(in srgb, var(--ensure-accent) 10%, #fff);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ensure-articles__post-title {
    margin: 0;
    font-size: clamp(17px, 1.45vw, 22px);
    line-height: 1.35;
    font-weight: 800;
}

.ensure-articles__post-title a {
    color: var(--ensure-text);
    text-decoration: none;
}

.ensure-articles__post-title a:hover {
    color: var(--ensure-accent);
}

.ensure-articles__excerpt {
    margin: 8px 0 0;
    color: var(--ensure-muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ensure-articles__meta {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 11px;
    color: var(--ensure-muted);
    font-size: 12px;
}

.ensure-articles__readmore {
    flex: 0 0 auto;
    color: var(--ensure-accent);
    font-weight: 700;
    text-decoration: none;
}

.ensure-articles__empty {
    margin: 0;
    padding: 24px;
    border-radius: 18px;
    background: #f7f9fc;
    color: var(--ensure-muted);
}

@media (max-width: 1024px) {
    .ensure-articles__grid {
        grid-template-columns: 1fr;
    }

    .ensure-articles__feature,
    .ensure-articles__feature img {
        min-height: 420px;
    }

    .ensure-articles__list {
        grid-template-rows: none;
    }

    .ensure-articles__card {
        min-height: 180px;
    }
}

@media (max-width: 640px) {
    .ensure-articles__header {
        margin-bottom: 18px;
        text-align: left;
    }

    .ensure-articles__feature,
    .ensure-articles__feature img {
        min-height: 320px;
        border-radius: 18px;
    }

    .ensure-articles__feature-label {
        left: 16px;
        bottom: 16px;
    }

    .ensure-articles__card {
        grid-template-columns: 120px minmax(0, 1fr);
        border-radius: 16px;
    }

    .ensure-articles__content {
        padding: 13px 14px;
    }

    .ensure-articles__excerpt {
        display: none;
    }

    .ensure-articles__meta time {
        display: none;
    }
}
