/*********************
News / blog cards — shared by the homepage news section and the Blog page template
*********************/
.news--list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 90%;
    margin-inline: auto;
}

.news--card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news--card__img {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background-color: #e9e4dd;
}

.news--card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.news--card a:hover .news--card__img img {
    transform: scale(1.05);
}

.news--card__text {
    padding-block-start: 1rem;
}

.news--card__date {
    display: block;
    color: var(--text-color-1);
    font-size: var(--text-sm, .875rem);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .5rem;
}

.news--card__text h3 {
    font-family: var(--font-family);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color-1);
    line-height: 1.3;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .news--list { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 480px) {
    .news--list { grid-template-columns: 1fr; }
}


/* Blog page template */
.news--page {
    background-color: var(--baseLight-color);
    padding-block: var(--global-section-padding);
}

.news--empty {
    margin: 0;
    color: var(--text-color-1);
    text-align: center;
}

.news--pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-block-start: 4rem;
}

.news--pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding-inline: 14px;
    color: var(--text-color-1);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--border-color-1);
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.news--pagination a.page-numbers:hover,
.news--pagination a.page-numbers:focus-visible {
    color: var(--primary-color);
    border-color: var(--primary-color);
    outline: none;
}

.news--pagination .page-numbers.current {
    color: var(--baseLight-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.news--pagination .page-numbers.dots {
    border-color: transparent;
}
