/* ── Blog: Broadsheet layout ── */

.blog-hero {
    background: var(--navy);
    color: white;
    padding: 4rem 3rem 3rem;
    border-bottom: 6px solid var(--red-hili);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 40%;
    height: 100%;
    background: repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 18px,
            rgba(255,255,255,0.03) 18px,
            rgba(255,255,255,0.03) 36px
    );
    pointer-events: none;
}

.blog-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.blog-category-tag {
    display: inline-block;
    background: var(--red-hili);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.3rem 1rem;
    margin-bottom: 1.5rem;
    clip-path: polygon(0 0, 95% 0, 100% 100%, 5% 100%);
}

.blog-hero h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.blog-hero h1 .highlight {
    color: var(--bright-yellow);
}

.blog-hero-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.2rem;
    margin-top: 1.2rem;
}

.blog-hero-meta .author-name {
    color: var(--bright-yellow);
    font-weight: 700;
}

/* ── Body layout: article + sidebar ── */

.blog-body {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

img.blog-lead-img {
    display:block;
    width: 90%;
    height: auto;
    margin-left:5%;
    margin-right:5%;
    margin-top:2em;
    margin-bottom:2em;
}

/* ── Article content ── */

.blog-article {
    background: white;
    padding: 3rem;
    border-top: 4px solid var(--logo-blue);
}

.blog-article .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--logo-blue);
    font-weight: 500;
    border-left: 4px solid var(--red-hili);
    padding-left: 1.2rem;
    margin-bottom: 2rem;
}

.blog-article p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.blog-article img {
    width: 90%;
    height: auto;
    margin-left:auto;
    margin-right:auto;
    margin-top:1rem;
    margin-bottom:1rem;
}

.blog-article h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    color: var(--navy);
    letter-spacing: -0.5px;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--puke-green);
}

/* ── Sidebar ── */

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: white;
    padding: 1.5rem;
    border-top: 4px solid var(--puke-green);
}

.sidebar-card h3 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--navy);
    margin-bottom: 1rem;
}

.sidebar-card.author-card {
    border-color: var(--logo-blue);
    background: var(--navy);
    color: white;
}

.sidebar-card.author-card h3 {
    color: var(--bright-yellow);
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--logo-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.author-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.8rem;
    background: var(--off-white);
    color: var(--navy);
    border: 2px solid var(--navy);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--navy);
    color: white;
}

.related-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.related-list li {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--off-white);
}

.related-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-list a {
    font-size: 0.9rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

.related-list a:hover {
    color: var(--red-hili);
}

.related-list .related-date {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.2rem;
}

/* ── Mobile overrides ── */
@media (max-width: 968px) {
    .blog-hero {
        padding: 3rem 1.5rem 2rem;
    }

    .blog-hero h1 {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .blog-hero-meta {
        gap: 1rem;
    }

    .blog-body {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        margin: 2rem auto;
    }

    .blog-article {
        padding: 2rem 1.5rem;
    }
}

.newsroom-bar {
    background: var(--off-white);
    border-bottom: 3px solid var(--navy);
    padding: 0.75rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.newsroom-bar-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: var(--navy);
}

.newsroom-bar-title span {
    color: var(--red-hili);
}

/* Category filter tabs */
.category-filter {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.category-filter a {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.1rem;
    color: var(--navy);
    text-decoration: none;
    border: 1px solid var(--navy);
    border-right: none;
    background: white;
    transition: all 0.2s ease;
}

.category-filter a:last-child {
    border-right: 1px solid var(--navy);
}

.category-filter a:hover,
.category-filter a.active {
    background: var(--navy);
    color: white;
}

/* ── Featured story hero ── */
/* Reuses .blog-hero from blog-base.css for the header block feel,
   but as a clickable card with an excerpt. */
.featured-story {
    background: var(--navy);
    color: white;
    position: relative;
    overflow: hidden;
    border-bottom: 6px solid var(--red-hili);
    text-decoration: none;
    display: block;
    transition: background 0.25s ease;
}

.featured-story:hover {
    background: #0d2850;
}

.featured-story::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    background: repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 18px,
            rgba(255,255,255,0.03) 18px,
            rgba(255,255,255,0.03) 36px
    );
    pointer-events: none;
}

.featured-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 3rem 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: end;
}

.featured-flag {
    display: inline-block;
    background: var(--bright-yellow);
    color: var(--navy);
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.3rem 1rem;
    margin-bottom: 1.5rem;
    clip-path: polygon(0 0, 95% 0, 100% 100%, 5% 100%);
}

.blog-category-tag.cat-media  { background: var(--red-hili); }
.blog-category-tag.cat-gov { background: var(--logo-blue); }
.blog-category-tag.cat-vote    { background: #2a7a44; }
.blog-category-tag.cat-legal   { background: #6b3fa0; }
.blog-category-tag.cat-event   { background: #b05a00; }

.featured-story .blog-category-tag {
    margin-bottom: 1.2rem;
}

.featured-story h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 3rem;
    line-height: 1.08;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1.2rem;
    max-width: 700px;
}

.featured-story h2 .highlight {
    color: var(--bright-yellow);
}

.featured-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1rem;
}

.featured-meta .author-name {
    color: var(--bright-yellow);
    font-weight: 700;
}

.featured-read-more {
    display: inline-block;
    background: var(--puke-green);
    color: var(--navy);
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    clip-path: polygon(0 0, 95% 0, 100% 100%, 5% 100%);
    white-space: nowrap;
    align-self: flex-end;
    transition: background 0.2s ease;
}

.featured-story:hover .featured-read-more {
    background: var(--bright-yellow);
}

/* ── Page body: grid + sidebar ── */
.newsroom-body {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

/* ── Secondary duo (two medium cards) ── */
.secondary-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5px;
    margin-bottom: 1.5px;
    background: #ddd;
}

.secondary-card {
    background: white;
    padding: 2rem;
    border-top: 4px solid var(--logo-blue);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.secondary-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    position: relative;
    z-index: 1;
}

.secondary-card:nth-child(2) {
    border-top-color: var(--red-hili);
}

.secondary-card .blog-category-tag {
    margin-bottom: 0.8rem;
}

.secondary-card h3 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.secondary-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #555;
    margin-bottom: 1rem;
}

.card-meta {
    font-size: 0.78rem;
    color: #888;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-meta .author-name {
    color: var(--logo-blue);
    font-weight: 700;
}

/* ── Post grid (3 smaller cards) ── */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: #ddd;
    margin-bottom: 1.5px;
}

.post-card {
    background: white;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: block;
    border-top: 3px solid var(--navy);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    position: relative;
    z-index: 1;
}

.post-card .blog-category-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.7rem;
    margin-bottom: 0.7rem;
}

.post-card h3 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.post-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0.75rem;
}

/* ── Divider between grid sections ── */
.section-rule {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
}

.section-rule-label {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--navy);
    white-space: nowrap;
}

.section-rule::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--navy);
}

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 2rem 0 0;
}

.page-btn {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--navy);
    border-right: none;
    color: var(--navy);
    text-decoration: none;
    background: white;
    transition: all 0.2s ease;
}

.page-btn:last-child {
    border-right: 1px solid var(--navy);
}

.page-btn:hover,
.page-btn.active {
    background: var(--navy);
    color: white;
}

/* ── Sidebar: list page variants ── */
/* Reuses .blog-sidebar, .sidebar-card, .tag from blog-base.css */

.sidebar-section-label {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--navy);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--puke-green);
    margin-bottom: 1rem;
}

/* Newsletter signup card */
.sidebar-card.newsletter-card {
    background: var(--navy);
    border-top-color: var(--red-hili);
}

.newsletter-card .sidebar-section-label {
    color: var(--bright-yellow);
    border-bottom-color: var(--red-hili);
}

.newsletter-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

.newsletter-input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.07);
    color: white;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--puke-green);
}

/* compact related-list variant for sidebar */
.compact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.compact-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
}

.compact-list li:last-child {
    border-bottom: none;
}

.compact-num {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.2rem;
    color: var(--red-hili);
    line-height: 1;
    padding-top: 0.1rem;
}

.compact-list a {
    font-size: 0.88rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.35;
    display: block;
}

.compact-list a:hover {
    color: var(--red-hili);
}

.compact-list .related-date {
    font-size: 0.72rem;
    color: #888;
    margin-top: 0.25rem;
}

/* ── Mobile overrides ── */
@media (max-width: 968px) {
    .newsroom-bar {
        padding: 0.75rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .category-filter {
        width: 100%;
    }

    .category-filter a {
        flex: 1;
        text-align: center;
        font-size: 0.72rem;
        padding: 0.5rem 0.5rem;
    }

    .featured-inner {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem 2rem;
        gap: 1.5rem;
    }

    .featured-story h2 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .featured-read-more {
        align-self: flex-start;
    }

    .newsroom-body {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        margin: 1.5rem auto;
        gap: 2rem;
    }

    .secondary-duo {
        grid-template-columns: 1fr;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }
}