.dgl-blog-cards {
    width: 100%;
    min-width: 0;
    font-family: var(--f-body, sans-serif);
}

.dgl-blog-cards__controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.dgl-blog-cards__controls[hidden] {
    display: none;
}

.dgl-blog-cards__controls button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #DFE3E8;
    border-radius: 8px;
    background: #fff;
    color: #0F172A;
    font-size: 24px;
    cursor: pointer;
}

.dgl-blog-cards__controls button:hover:not(:disabled) {
    border-color: #E30514;
    color: #E30514;
}

.dgl-blog-cards__controls button:disabled {
    opacity: .35;
    cursor: default;
}

.dgl-blog-cards__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 40px) / 3);
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 4px 0 14px;
}

.dgl-blog-cards .dgl-blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    scroll-snap-align: start;
    border: 1px solid #DFE3E8;
    border-radius: 12px;
    background: #fff;
    color: #0F172A;
    text-decoration: none;
    transition: border-color .18s, box-shadow .18s;
}

.dgl-blog-cards .dgl-blog-card:hover {
    border-color: #E30514;
    box-shadow: 0 8px 20px rgba(14, 17, 22, .08);
}

.dgl-blog-cards .dgl-blog-card__image,
.dgl-blog-card__placeholder {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.dgl-blog-card__placeholder {
    display: grid;
    place-items: center;
    background: #F2F4F7;
    color: #E30514;
    font: 48px var(--f-disp, sans-serif);
}

.dgl-blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px 24px;
}

.dgl-blog-card time {
    margin-bottom: 8px;
    color: #5A6572;
    font: 12px var(--f-mono, monospace);
}

.dgl-blog-cards .dgl-blog-card h3 {
    margin: 0 0 8px;
    color: #0F172A;
    font: 500 23px/1.3 var(--f-disp, sans-serif);
    overflow-wrap: anywhere;
}

.dgl-blog-cards .dgl-blog-card p {
    margin: 0 0 18px;
    color: #5A6572;
    font-size: 15.5px;
    line-height: 1.6;
}

.dgl-blog-card__more {
    margin-top: auto;
    padding-top: 12px;
    color: #E30514;
    font: 12px var(--f-mono, monospace);
    text-transform: uppercase;
}

.dgl-blog-cards :focus-visible {
    outline: 2px solid #E30514;
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .dgl-blog-cards__track {
        grid-auto-columns: calc((100% - 20px) / 2);
    }
}

@media (max-width: 640px) {
    .dgl-blog-cards__track {
        grid-auto-columns: 100%;
    }
}

.dgl-blog-cards.is-paged .dgl-blog-cards__track {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
}

.dgl-blog-card[hidden] {
    display: none !important;
}

.dgl-blog-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 44px 0 8px;
}

.dgl-blog-pager button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #e3d8c6;
    border-radius: 10px;
    background: #fffdfa;
    color: #241f16;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.dgl-blog-pager button:hover:not(:disabled) {
    border-color: #e30514;
    color: #e30514;
}

.dgl-blog-pager button[aria-current="page"] {
    background: #241f16;
    border-color: #241f16;
    color: #fff;
}

.dgl-blog-pager button:disabled {
    opacity: .4;
    cursor: default;
}

.dgl-blog-pager__info {
    flex-basis: 100%;
    margin-top: 4px;
    text-align: center;
    font-size: 13.5px;
    color: #756958;
}

@media (max-width: 1024px) {
    .dgl-blog-cards.is-paged .dgl-blog-cards__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dgl-blog-cards.is-paged .dgl-blog-cards__track {
        grid-template-columns: minmax(0, 1fr);
    }

    .dgl-blog-pager button {
        padding: 0 12px;
        font-size: 14px;
    }
}

