/* Home blog guide cards */

.editorial-with-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.editorial-card-with-image {
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(30, 30, 30, 0.07);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.editorial-card-with-image:hover {
    transform: translateY(-5px);
    border-color: rgba(35, 86, 216, .2);
    box-shadow: 0 20px 45px rgba(35, 86, 216, .12);
}

.editorial-card-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #eef2f7;
}

.editorial-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.editorial-card-with-image:hover .editorial-card-image img {
    transform: scale(1.045);
}

.editorial-card-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(to top, rgba(10,18,35,.42), transparent);
}

.editorial-image-badge {
    position: absolute;
    z-index: 2;
    right: 13px;
    bottom: 12px;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 999px;
    color: #111827;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 10px;
    font-weight: 950;
}

.editorial-card-content {
    flex: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.editorial-card-content h3 {
    margin: 0 0 9px;
    font-size: 16px;
    line-height: 1.85;
}

.editorial-card-content h3 a {
    color: #111827;
    text-decoration: none;
}

.editorial-card-content p {
    margin: 0 0 17px;
    color: #687084;
    font-size: 12px;
    line-height: 2;
}

.editorial-read-more {
    width: fit-content;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #2356d8;
    font-size: 11.5px;
    font-weight: 950;
    text-decoration: none;
}

.editorial-empty {
    grid-column: 1 / -1;
    padding: 30px;
    border: 1px dashed #d7dce5;
    border-radius: 20px;
    color: #777f90;
    background: #f8fafc;
    text-align: center;
}

@media (max-width: 950px) {
    .editorial-with-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .editorial-with-images {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
