.dg-news-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 52px;
    align-items: center;
    margin-bottom: 70px;
    padding-bottom: 80px;
    border-bottom: 1px solid #e8e8e8;
}

.dg-news-featured__image img {
    width: 100%;
    display: block;
}

.dg-news-featured__date {
    margin-bottom: 20px;
}

.dg-news-featured__title {
    margin-bottom: 24px;
}

.dg-news-featured__excerpt {
    margin-bottom: 32px;
}

.dg-news-grid {
    margin-top: 80px;
}

/* =========================================================
   DG NEWS GRID / MAIN PAGE
========================================================= */

.dg-news-grid-wrapper {
    width: 100%;
}

/* Featured latest news */
.dg-news-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 52px;
    align-items: center;
    padding: 62px 0 70px;
    border-bottom: 1px solid var(--e-global-color-46365a6, #e8e8e8);
}

.dg-news-featured__image {
    display: block;
    /*aspect-ratio: 4 / 3;*/
    overflow: hidden;
    background: #f2f2f2;
    text-decoration: none;
}

.dg-news-featured__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dg-news-featured__content {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dg-news-featured__date,
.dg-news-card__date {
    margin-bottom: 0px;
    color: var(--e-global-color-b82c591, #777777);
}

.dg-news-featured__date { 
    font-size: var(--e-global-typography-b389191-font-size);
    font-weight: var(--e-global-typography-b389191-font-weight);
    line-height: var(--e-global-typography-b389191-line-height);
}

.dg-news-card__date {
    font-size: var(--e-global-typography-b389191-font-size);
    font-weight: var(--e-global-typography-b389191-font-weight);
    letter-spacing: var(--e-global-typography-b389191-letter-spacing);
}

.dg-news-featured__title {
    margin: 0 0 10px;
    color: var(--e-global-color-text, #1f1f1f) !important;
    font-size: var(--e-global-typography-17d3ffb-font-size) !important;
    font-weight: var(--e-global-typography-17d3ffb-font-weight) !important;
    line-height: var(--e-global-typography-17d3ffb-line-height) !important; 
}

.dg-news-featured__title a {
    font-family: var(--e-global-typography-17d3ffb-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-17d3ffb-font-size) !important;
    font-weight: var(--e-global-typography-17d3ffb-font-weight) !important;
    line-height: var(--e-global-typography-17d3ffb-line-height) !important; 
}

.dg-news-featured__title a,
.dg-news-card__title a {
    color: var(--e-global-color-text) !important;
    text-decoration: none;
}

.dg-news-featured__title a:hover,
.dg-news-card__title a:hover {
    color: var(--dg-book-accent-color, #009fe3) !important;
}

.dg-news-featured__excerpt {
    margin-bottom: 26px;
    color: var(--e-global-color-fb66723, #444444);
    font-size: var(--e-global-typography-bb9a2e6-font-size);
    font-weight: var(--e-global-typography-bb9a2e6-font-weight);
    line-height: var(--e-global-typography-bb9a2e6-line-height);
}

.dg-news-featured__link {
    color: var(--dg-book-accent-color, #009fe3);
    font-size: var(--e-global-typography-46f8dd1-font-size) !important;
    font-weight: var(--e-global-typography-46f8dd1-font-weight) !important;
    line-height: var(--e-global-typography-46f8dd1-line-height) !important;
    text-decoration: none;
}

/* Normal news grid */
.dg-news-grid {
    display: grid;
    gap: 48px 48px;
    margin-top: 40px;
}

.dg-news-grid--columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dg-news-grid--columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dg-news-grid--columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dg-news-card {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.dg-news-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f2f2f2;
    text-decoration: none;
}

.dg-news-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.dg-news-card:hover .dg-news-card__image img {
    transform: scale(1.025);
}

.dg-news-card__title {
    margin: 0 0 10px;
    color: var(--e-global-color-text, #1f1f1f);
    font-size: var(--e-global-typography-fa0bc19-font-size) !important;
    font-weight: var(--e-global-typography-fa0bc19-font-weight) !important;
    line-height: var(--e-global-typography-fa0bc19-line-height) !important;
}

.dg-news-card__excerpt {
    color: var(--e-global-color-fb66723, #444444);
    font-size: var(--e-global-typography-097fbd2-font-size);
    font-weight: var(--e-global-typography-097fbd2-font-weight);
    line-height: 1.55;
}

/* Reuse books pagination styling, but keep fallback */
.dg-news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 70px;
}

.dg-news-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #d9d9d9;
    color: var(--e-global-color-text, #1f1f1f) !important;
    text-decoration: none;
    font-size: var(--e-global-typography-46f8dd1-font-size);
}

.dg-news-pagination__link:hover,
.dg-news-pagination__link.is-active {
    border-color: var(--dg-book-accent-color, #009fe3);
    background: var(--dg-book-accent-color, #009fe3);
    color: #ffffff !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .dg-news-featured {
        gap: 36px;
    }

    .dg-news-grid--columns-3,
    .dg-news-grid--columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 767px) {
    .dg-news-featured {
        grid-template-columns: 1fr;
        padding: 42px 0 50px;
    }

    .dg-news-grid,
    .dg-news-grid--columns-2,
    .dg-news-grid--columns-3,
    .dg-news-grid--columns-4 {
        grid-template-columns: 1fr;
        margin-top: 50px;
    }

    .dg-news-featured__content {
        max-width: none;
    }
}