/**
 * Latest County News Block — styles for frontend and editor.
 */

/* ── Block wrapper ── */
.wp-block-latest-county-news {
    padding: 48px 60px 60px;
}

/* ── Header ── */
.latest-county-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.latest-county-news-heading {
    font-family: var(--font-family-heading, 'Graphik XXCond Web', sans-serif);
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    margin: 0;
    text-transform: none;
    opacity: 0.9;
}

/* ── Splide overrides ── */
.wp-block-latest-county-news .splide__track {
    padding-bottom: 0;
}

/* ── 4-col Card Grid ── */
.latest-county-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .latest-county-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-county-news-grid.county-news-count-1 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .latest-county-news-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .latest-county-news-grid.county-news-count-1 {
        grid-template-columns: repeat(4, 1fr);
    }

    .latest-county-news-grid.county-news-count-2 {
        grid-template-columns: repeat(4, 1fr);
    }

    .latest-county-news-grid.county-news-count-3 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Footer ── */
.latest-county-news-footer {
    position: relative;
    margin-top: 24px;
}

.latest-county-news-divider {
    border: none;
    border-top: 1px solid #151515;
    margin: 0;
    opacity: 0.2;
}

.latest-county-news-nav {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 14px;
}

.latest-county-news-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 500px;
    border: 2px solid #151515;
    background-color: transparent;
    color: #151515;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
    flex-shrink: 0;
    opacity: 1;
}

.latest-county-news-nav-btn--next {
    background-color: #0373f3;
    border-color: #0373f3;
    color: #fff;
    opacity: 1;
}

.latest-county-news-nav-btn:not(:disabled):hover {
    background-color: #151515;
    border-color: #151515;
    color: #fff;
}

.latest-county-news-nav-btn--next:not(:disabled):hover {
    background-color: #0252b0;
    border-color: #0252b0;
}

.latest-county-news-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .wp-block-latest-county-news {
        padding: 32px 20px 40px;
    }

    .latest-county-news-heading {
        font-size: 40px;
    }
}

