/* ============================================================
   News Poster Plugin v2 — Frontend Styles
   Editorial news card format
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Source+Sans+3:wght@400;500;600&display=swap');

/* ── Section wrapper ── */
.np-news-section {
    max-width: 740px;
    margin: 0 auto;
    padding: 48px 20px 64px;
    font-family: 'Source Sans 3', sans-serif;
    box-sizing: border-box;
}

/* ── Header row ── */
.np-news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Section label ── */
.np-section-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a8880;
    margin: 0 0 6px 0;
    line-height: 1;
}

/* ── Heading ── */
.np-heading {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a18;
    margin: 0 0 10px 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

/* ── Orange underline accent ── */
.np-heading-line {
    width: 36px;
    height: 3px;
    background: #d97c2b;
    border-radius: 2px;
}

/* ── View All link ── */
.np-view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #d97c2b;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: gap 0.2s ease, opacity 0.2s ease;
    padding-bottom: 2px;
    white-space: nowrap;
}
.np-view-all:hover {
    opacity: 0.8;
    gap: 9px;
    color: #d97c2b;
    text-decoration: none;
}
.np-arrow {
    font-size: 15px;
    display: inline-block;
    transition: transform 0.2s ease;
}
.np-view-all:hover .np-arrow {
    transform: translateX(3px);
}

/* ── News list ── */
.np-news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Individual card ── */
.np-news-card {
    border: 1px solid #e8e6e1;
    border-radius: 6px;
    background: #ffffff;
    margin-bottom: 10px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.np-news-card:last-child {
    margin-bottom: 0;
}
.np-news-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border-color: #d5d2cc;
}

/* ── Card link (full card clickable) ── */
.np-card-link {
    display: block;
    padding: 18px 22px 20px;
    text-decoration: none;
    color: inherit;
}
.np-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* ── Card meta row ── */
.np-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
}

/* ── Category badge ── */
.np-badge {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b6a66;
    line-height: 1;
}

/* ── Dot separator ── */
.np-separator {
    color: #b0ada6;
    font-size: 13px;
    line-height: 1;
}

/* ── Date ── */
.np-date {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #8a8880;
    line-height: 1;
}

/* ── Card title ── */
.np-card-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a18;
    margin: 0 0 6px 0;
    line-height: 1.35;
    letter-spacing: -0.005em;
    transition: color 0.15s ease;
}
.np-card-link:hover .np-card-title {
    color: #d97c2b;
}

/* ── Card excerpt ── */
.np-card-excerpt {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    color: #5c5b57;
    margin: 0;
    line-height: 1.55;
}

/* ── Empty state ── */
.np-no-news {
    font-size: 14px;
    color: #6b6a66;
    padding: 24px 0;
    text-align: center;
}
.np-no-news a {
    color: #d97c2b;
    text-decoration: none;
}
.np-no-news a:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .np-heading {
        font-size: 28px;
    }
    .np-news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .np-card-link {
        padding: 15px 16px 17px;
    }
}
