/* =============================================================================
   VAKO News — news.css
   Bevat ALLEEN news-specifieke stijlen.
   De filter-knoppen (.vako-filter-btn / .vako-filter-buttons / .active)
   en de oranje pijl-badge (.vako-btn-primary) zitten al in style.css.
   ============================================================================= */

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.vako-news-hero {
    background: #01447B;
    padding: 56px 0 48px;
    text-align: center;
    color: #fff;
}

/* Oranje pijl-badge — zet vako-btn-primary om van block naar inline-flex */
.vako-news-hero-tag {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 28px 7px 16px;
    margin-bottom: 18px;
    cursor: default;
    pointer-events: none;
    text-decoration: none;
    /* clip-path en background komen al van .vako-btn-primary in style.css */
}

.vako-news-hero-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.15;
}

.vako-news-hero-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Archive section ────────────────────────────────────────────────────────── */
.vako-news-archive-section {
    padding: 48px 0 80px;
}

/* Ruimte onder de filterrij */
.vako-news-filter-row {
    margin-bottom: 40px;
}

/* ── Grid ───────────────────────────────────────────────────────────────────── */
.vako-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    min-height: 200px; /* voorkomt layout-sprong tijdens AJAX load */
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
.vako-news-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8edf3;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vako-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(1, 68, 123, 0.12);
}

.vako-news-card.is-hidden { display: none; }

/* ── Card image ─────────────────────────────────────────────────────────────── */
.vako-news-card-image-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    text-decoration: none;
}

.vako-news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.vako-news-card:hover .vako-news-card-image { transform: scale(1.04); }

.vako-news-no-image {
    background: linear-gradient(135deg, #01447B 0%, #012f58 100%);
    width: 100%;
    height: 100%;
}

/* ── Category badge — zelfde stijl als Systems/Projects card badge ──────────── */
.vako-news-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(241, 93, 34, 0.95);
    color: #fff;
    padding: 6px 24px 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    pointer-events: none;
    line-height: 1.4;
}

/* ── Card body ──────────────────────────────────────────────────────────────── */
.vako-news-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.vako-news-date {
    font-size: 12px;
    font-weight: 600;
    color: #8a9ab0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vako-news-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: #01447B;
}

.vako-news-card-title a { color: #01447B; text-decoration: none; transition: color 0.2s; }
.vako-news-card-title a:hover { color: #F15D22; }

.vako-news-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5a6a;
    margin: 0;
    flex: 1;
}

.vako-news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #01447B;
    text-decoration: none;
    letter-spacing: 0.04em;
    margin-top: 4px;
    transition: color 0.2s, gap 0.2s;
}

.vako-news-read-more:hover { color: #F15D22; gap: 8px; }

/* ── AJAX loading indicator ─────────────────────────────────────────────────── */
.vako-news-loading {
    text-align: center;
    padding: 32px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.vako-news-loading span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #01447B;
    animation: vako-news-bounce 1.2s ease-in-out infinite;
}

.vako-news-loading span:nth-child(2) { animation-delay: 0.2s; }
.vako-news-loading span:nth-child(3) { animation-delay: 0.4s; }

@keyframes vako-news-bounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1; }
}

/* ── No results ─────────────────────────────────────────────────────────────── */
.vako-news-empty {
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}

/* ── Pagination ─────────────────────────────────────────────────────────────── */
.vako-news-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.vako-news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #dde4ed;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #01447B;
    text-decoration: none;
    transition: all 0.2s;
}

.vako-news-pagination .page-numbers.current,
.vako-news-pagination .page-numbers:hover {
    background: #01447B;
    border-color: #01447B;
    color: #fff;
}

/* ── Single article ─────────────────────────────────────────────────────────── */
.vako-news-single-wrap { padding: 50px 0 80px; }

.vako-news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #01447B;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.04em;
    margin-bottom: 32px;
    transition: color 0.2s;
}
.vako-news-back-link:hover { color: #F15D22; }

.vako-news-single-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.vako-news-single-cat {
    background: #F15D22;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 3px;
}

.vako-news-single-date {
    font-size: 13px;
    color: #8a9ab0;
    font-weight: 600;
}

.vako-news-featured-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 36px;
    display: block;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.vako-news-single-content { font-size: 16px; line-height: 1.75; color: #2d3a4a; }
.vako-news-single-content h2 { color: #01447B; margin-top: 36px; font-size: 24px; }
.vako-news-single-content h3 { color: #01447B; margin-top: 28px; }
.vako-news-single-content a  { color: #01447B; }
.vako-news-single-content a:hover { color: #F15D22; }
.vako-news-single-content ul,
.vako-news-single-content ol { padding-left: 22px; margin: 16px 0; }
.vako-news-single-content li { margin-bottom: 6px; }
.vako-news-single-content p  { margin: 0 0 18px; }

.vako-news-prevnext {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e8edf3;
    flex-wrap: wrap;
}

.vako-news-next-link { margin-left: auto; text-align: right; max-width: 45%; }

/* ── Shortcode filter (button variant) ──────────────────────────────────────── */
/* Shortcode gebruikt ook .vako-filter-btn — geen extra CSS nodig */

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .vako-news-grid { grid-template-columns: repeat(2, 1fr); }
    .vako-news-cols-2 .vako-news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .vako-news-grid       { grid-template-columns: 1fr; }
    .vako-news-hero       { padding: 40px 0 36px; }
    .vako-news-hero-title { font-size: clamp(24px, 6vw, 32px); }
}
