/* ============================================================
   Blog v3 — Index + Article view
   Uses /css/nla-v3-base.css for tokens & header/footer treatment
   ============================================================ */


/* === Shared dark hero (used by both index and article view) === */
.blog-hero,
.article-hero {
    background: linear-gradient(135deg, #0a0e1a 0%, #08080f 50%, #0c1018 100%);
    padding: 130px 0 60px;
    position: relative;
    overflow: hidden;
}

.blog-hero__eyebrow,
.article-hero__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--nla-accent-bright);
    margin-bottom: 20px;
}

.blog-hero__title,
.article-hero__title {
    font-family: var(--nla-font-display);
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1;
    letter-spacing: 1px;
    color: #fff;
    margin: 0 0 24px;
    max-width: 900px;
}

.blog-hero__subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--nla-text-mid);
    max-width: 580px;
    font-weight: 300;
}

.article-hero .container,
.article-body .container,
.article-footer .container {
    max-width: 860px;
}

.article-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--nla-text-mid);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s ease;
}

.article-hero__back:hover {
    color: #fff;
    text-decoration: none;
}

.article-hero__date {
    font-size: 14px;
    color: var(--nla-text-mid);
    letter-spacing: 0.5px;
    margin-top: 16px;
}


/* === Blog index — article card grid (light section) === */
.blog-list {
    background: var(--nla-light-bg);
    padding: 80px 0 120px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.blog-card {
    background: var(--nla-light-bg-accent);
    border: 1px solid var(--nla-light-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 16px 40px rgba(0, 0, 0, 0.1);
}

.blog-card__image {
    display: block;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: var(--nla-light-bg);
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.04);
}

.blog-card__body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__date {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--nla-light-text-dim);
    margin-bottom: 12px;
}

.blog-card__title {
    font-family: var(--nla-font-body);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 12px;
}

.blog-card__title a {
    color: var(--nla-light-text);
    text-decoration: none;
}

.blog-card__title a:hover {
    color: var(--nla-accent);
    text-decoration: none;
}

.blog-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--nla-light-text-mid);
    margin-bottom: 20px;
    flex: 1;
}

.blog-card__link {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--nla-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card__link:hover {
    color: var(--nla-accent-bright);
    text-decoration: none;
}

/* Laravel pagination — light theme */
.blog-pagination {
    margin-top: 64px;
    display: flex;
    justify-content: center;
}

.blog-pagination nav {
    display: flex;
    gap: 4px;
}

.blog-pagination .pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.blog-pagination .page-item {
    display: block;
}

.blog-pagination .page-link {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--nla-light-text-mid);
    background: transparent;
    border: 1px solid var(--nla-light-border);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-pagination .page-link:hover {
    color: var(--nla-accent);
    border-color: rgba(27, 124, 184, 0.4);
    background: rgba(27, 124, 184, 0.04);
    text-decoration: none;
}

.blog-pagination .page-item.active .page-link {
    color: #fff;
    background: var(--nla-accent);
    border-color: var(--nla-accent);
}

.blog-pagination .page-item.disabled .page-link {
    color: var(--nla-light-text-dim);
    opacity: 0.5;
    cursor: not-allowed;
}


/* === Article body — light prose section === */
.article-body {
    background: var(--nla-light-bg);
    padding: 80px 0 100px;
}


/* (.nla-prose typography moved to nla-v3-base.css — shared with legal pages.) */

/* Suppress redundant inline hero h1/date for legacy articles.
   The page chrome already shows the title + date — the inline copy is dupe.
   The inline hero image (if any) stays so legacy posts keep their banner. */
.nla-prose .hero h1,
.nla-prose .hero p.author {
    display: none;
}


/* === Article footer (back link) === */
.article-footer {
    background: var(--nla-bg);
    padding: 60px 0;
    text-align: center;
}

.article-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--nla-text-mid);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-footer__link:hover {
    color: #fff;
    text-decoration: none;
}


/* === Responsive === */
@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .blog-hero,
    .article-hero {
        padding: 110px 0 50px;
    }

    .blog-list,
    .article-body {
        padding: 60px 0 80px;
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-card__body {
        padding: 24px;
    }
}
