.dbk-latest-posts {
    background: #052d22;
    padding: 24px 0;
}

.dbk-latest-posts__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* 3-column grid: Left (2 posts) | Middle (1 featured) | Right (5 posts) */
.dbk-latest-posts__grid {
    display: grid;
    grid-template-columns: 270px 1fr 350px;
    gap: 20px;
    align-items: start;
    max-height: 500px;
    overflow: hidden;
}

/* LEFT column: 2 stacked posts */
.dbk-latest-posts__left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 500px;
}

.dbk-latest-posts__card {
    display: block;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.dbk-latest-posts__card:hover {
    opacity: 0.85;
}

.dbk-latest-posts__card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Left half-height cards: 270x152 */
.dbk-latest-posts__card--half img {
    width: 270px;
    height: 152px;
    object-fit: cover;
}

.dbk-latest-posts__title {
    font-size: 14px;
    margin: 8px 0 4px;
    line-height: 1.4;
    font-weight: 600;
    color: #c3d0cb;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dbk-latest-posts__meta {
    font-size: 12px;
    color: #8a9e96;
}

/* MIDDLE column: 1 featured post */
.dbk-latest-posts__middle {
    display: flex;
    flex-direction: column;
    max-height: 500px;
}

/* Center image: 506x284 */
.dbk-latest-posts__card--featured img {
    width: 100%;
    height: 284px;
    object-fit: cover;
}

.dbk-latest-posts__card--featured .dbk-latest-posts__title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    -webkit-line-clamp: 3;
    margin: 12px 0 4px;
}

/* Excerpt for the center post */
.dbk-latest-posts__excerpt {
    font-size: 13px;
    color: #a0b5ac;
    line-height: 1.5;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RIGHT column: 5 compact list items */
.dbk-latest-posts__right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow: hidden;
}

.dbk-latest-posts__item {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    align-items: start;
    transition: opacity 0.2s ease;
}

.dbk-latest-posts__item:hover {
    opacity: 0.85;
}

/* Right images: 128x72 */
.dbk-latest-posts__item img {
    width: 128px;
    height: 72px;
    object-fit: cover;
}

.dbk-latest-posts__item-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dbk-latest-posts__item-date {
    font-size: 11px;
    color: #8a9e96;
}

/* Tablet: 2 columns (left + middle merge, right stays) */
@media (max-width: 960px) {
    .dbk-latest-posts__grid {
        grid-template-columns: 1fr 1fr;
        max-height: none;
        padding-left: 20px;
        padding-right: 20px;
    }

    .dbk-latest-posts__left {
        grid-column: 1 / 2;
        max-height: none;
    }

    .dbk-latest-posts__card--half img {
        width: 100%;
        height: auto;
        aspect-ratio: 270 / 152;
    }

    .dbk-latest-posts__middle {
        grid-column: 2 / 3;
        max-height: none;
    }

    .dbk-latest-posts__card--featured img {
        height: auto;
        aspect-ratio: 506 / 284;
    }

    .dbk-latest-posts__right {
        grid-column: 1 / -1;
        max-height: none;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile: single column */
@media (max-width: 600px) {
    .dbk-latest-posts__grid {
        grid-template-columns: 1fr;
    }

    .dbk-latest-posts__left {
        grid-column: auto;
    }

    .dbk-latest-posts__middle {
        grid-column: auto;
    }

    .dbk-latest-posts__right {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .dbk-latest-posts__card--featured img {
        aspect-ratio: 16 / 9;
    }

    .dbk-latest-posts__item img {
        width: 100px;
        height: 56px;
    }

    .dbk-latest-posts__item {
        grid-template-columns: 100px 1fr;
    }
}
