/**
 * News — archive listing and single article.
 *
 * Full-width white sections at WordPress container width. Three-up equal-height
 * cards on the archive; a readable single-article column. The inner banner is
 * styled by inner-banner-section.css (reused).
 * Matches child-theme-sections-screenshots/news-page.png and news-details-page.png
 */

:root {
    --color-navy: #385d8c;
    --color-pale: #eef3f8;
    --color-teal: #93cddc;
    --color-sky:  #d2eaf0;
    --color-text: #787878;
    --color-white: #ffffff;
}

/* ---- Shared button (teal secondary, per style guide) ---- */
.news-archive .btn,
.news-single .btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.news-archive .btn-secondary {
    background-color: var(--color-teal);
    color: var(--color-navy);
}

.news-archive .btn-secondary:hover,
.news-archive .btn-secondary:focus {
    background-color: var(--color-navy);
    color: var(--color-white);
}

/* ---- Archive ---- */
.news-archive {
    background-color: var(--color-white);
    font-family: 'Roboto', sans-serif;
    padding: 60px 0;
}

.news-archive__container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

.news-archive__heading {
    color: var(--color-navy);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.3;
    text-align: center;
    margin: 0 0 45px;
}

.news-archive__empty {
    color: var(--color-text);
    font-size: 18px;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px 30px;
    align-items: stretch;
}

/* ---- Card ---- */
.news-card {
    background-color: var(--color-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
}

.news-card__link {
    display: block;
    text-decoration: none;
}

.news-card__image {
    background-color: #c8ccd6;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin: 24px 28px 0;
}

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

.news-card__image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.news-card__body {
    padding: 26px 28px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}

.news-card__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.news-card__title a:hover,
.news-card__title a:focus {
    color: var(--color-navy);
}

.news-card__date {
    color: var(--color-text);
    font-size: 15px;
    margin: 0 0 16px;
}

.news-card__excerpt {
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.news-card__button {
    align-self: flex-start;
    margin-top: auto;
}

/* ---- Pagination controls ---- */
.news-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 45px;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    background-color: var(--color-pale);
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover,
.news-pagination .page-numbers:focus {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.news-loadmore {
    text-align: center;
    margin-top: 45px;
}

.news-loading {
    text-align: center;
    color: var(--color-text);
    margin-top: 30px;
}

.news-sentinel {
    width: 100%;
    height: 1px;
}

/* ---- Single article ---- */
.news-single {
    background-color: var(--color-white);
    font-family: 'Roboto', sans-serif;
    padding: 40px 0 70px;
}

.news-single__container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.news-single__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-navy);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 30px;
    transition: opacity 0.3s ease;
}

.news-single__back:hover,
.news-single__back:focus {
    opacity: 0.7;
}

.news-single__back-arrow {
    display: block;
    width: 10px;
    height: 16px;
    flex-shrink: 0;
}

.news-single__title {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.news-single__date {
    color: var(--color-text);
    font-size: 16px;
    margin: 0 0 26px;
}

.news-single__image {
    margin-bottom: 34px;
}

.news-single__image img {
    display: block;
    width: 100%;
    height: auto;
}

.news-single__content {
    color: var(--color-text);
    font-size: 18px;
    line-height: 1.7;
}

.news-single__content p {
    color: inherit;
    margin: 0 0 1.4em;
}

.news-single__content h2,
.news-single__content h3,
.news-single__content h4 {
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.6em 0 0.6em;
}

.news-single__content h2 {
    font-size: 28px;
}

.news-single__content h3 {
    font-size: 23px;
}

.news-single__content h4 {
    font-size: 20px;
}

.news-single__content a {
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: underline;
}

.news-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 26px;
    }

    .news-archive__heading {
        font-size: 26px;
    }

    .news-single__title {
        font-size: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .news-archive {
        padding: 45px 0;
    }

    .news-archive__heading {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .news-single__title {
        font-size: 28px;
    }

    .news-single__content {
        font-size: 16px;
    }

    .news-single__content h2 {
        font-size: 24px;
    }
}
