/* Blog: visual alignment to Figma Dudley-V1 blog frame */

/* Inter font for body/UI text on blog (Figma spec) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.page-blog {
    --font-body-blog: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.page-blog .featured-copy,
.page-blog .article-copy,
.page-blog .material-card,
.page-blog .category-filter {
    font-family: var(--font-body-blog);
}

.page-blog .section-heading h2 span {
    color: var(--dudley-orange);
}

.page-blog .button-primary,
.page-blog .tag {
    color: var(--dudley-white);
}

.page-blog .featured-copy h3,
.page-blog .featured-copy h3 a,
.page-blog .article-copy h3,
.page-blog .article-copy h3 a,
.page-blog .material-card h3 {
    color: var(--dudley-white);
}

.page-blog .featured-copy p,
.page-blog .article-copy p {
    color: var(--dudley-white);
    font-size: 14px;
    line-height: 1.65;
}

/* Hero height adjustment to match Figma (~680px hero area) */
.page-blog .blog-hero {
    min-height: 680px;
}

/* Featured article section: overlap tuned so the card sits over the lower
   third of the (now shorter) hero, without leaving a gap or eating the H1. */
.page-blog .featured-article-section {
    margin-top: -96px;
    padding-bottom: 64px;
}

/* Featured card internal rhythm: chip -> title -> body -> button */
.page-blog .featured-copy {
    padding: 34px 44px;
}

.page-blog .featured-copy .tag-inline {
    position: static;
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 10px;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.page-blog .featured-copy h3 {
    margin-bottom: 14px;
}

.page-blog .featured-copy p {
    margin-bottom: 22px;
}

/* Listing heading layout: title baseline-aligned with the "Ver todos" pill */
.page-blog .listing-heading,
.page-blog .materials-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.page-blog .listing-heading {
    margin-bottom: 18px;
}

.page-blog .materials-heading {
    margin-bottom: 34px;
}

.page-blog .materials-heading .section-heading,
.page-blog .listing-heading .section-heading {
    margin-bottom: 0;
}

/* Ver todos pill CTA: Figma uses #F15A24 text on white */
.page-blog .blog-view-all {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 18px;
    color: var(--dudley-orange);
    background: var(--dudley-white);
    font-family: var(--font-body-blog);
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    border-radius: 50px;
}

.page-blog .blog-view-all:hover {
    color: var(--dudley-black);
    background: #f2f2f2;
}

/* Category filter: positioned below heading per Figma, with a tighter gap
   to the heading row above than to the card grid below (groups it visually
   with the heading, matching the Figma composition). */
.page-blog .category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

/* Card grid: slightly wider gutters than Bootstrap's default g-4 (24px) to
   match the visible breathing room between the 3 Figma cards. */
.page-blog .blog-listing .row {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
}

.page-blog .materials-section .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.page-blog .category-filter a {
    min-height: 36px;
    padding: 8px 16px;
    color: var(--dudley-white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-blog .category-filter a:hover {
    border-color: var(--dudley-orange);
    color: var(--dudley-orange);
}

.page-blog .category-filter a[aria-current="page"] {
    color: var(--dudley-black);
    background: var(--dudley-orange);
    border-color: var(--dudley-orange);
}

/* Article card CTA button styling */
.page-blog .article-cta {
    margin-top: 16px;
    min-height: 40px;
    padding: 10px 16px;
    font-size: 13px;
}

/* Article card date styling - Figma uses orange */
.page-blog .article-copy time {
    color: var(--dudley-orange);
    font-size: 13px;
    font-weight: 500;
}

/* Material cards: icon + text column; DOWNLOAD is pinned to the bottom of
   the text column so every card in the row shares the same baseline, even
   when titles/descriptions wrap to different heights. */
.page-blog .material-card {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    min-height: 128px;
    padding: 18px 20px;
    background: var(--dudley-black);
}

.page-blog .material-card > img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    align-self: start;
}

.page-blog .material-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.page-blog .material-card p {
    margin-bottom: 12px;
    color: var(--dudley-muted);
    font-size: 12px;
    line-height: 1.45;
}

.page-blog .material-download {
    min-height: 28px;
    margin-top: auto;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Section vertical rhythm: tighter than the default 96px marketing-page
   padding so featured -> recent -> materials -> footer reads as one
   continuous "Blog" flow, matching the Figma density. */
.page-blog .blog-listing {
    padding-top: 56px;
    padding-bottom: 64px;
}

.page-blog .materials-section {
    padding-top: 56px;
    padding-bottom: 80px;
}

@media (max-width: 991.98px) {
    .page-blog .blog-hero {
        min-height: 600px;
    }

    .page-blog .featured-article-section {
        margin-top: -80px;
        padding-bottom: 56px;
    }

    .page-blog .blog-listing,
    .page-blog .materials-section {
        padding-top: 48px;
    }
}

@media (max-width: 767.98px) {
    .page-blog .blog-hero {
        min-height: 520px;
    }

    .page-blog .featured-article-section {
        margin-top: -60px;
        padding-bottom: 44px;
    }

    .page-blog .featured-copy {
        padding: 28px;
    }

    .page-blog .blog-listing,
    .page-blog .materials-section {
        padding-top: 40px;
        padding-bottom: 44px;
    }

    .page-blog .listing-heading,
    .page-blog .materials-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-blog .category-filter {
        margin-bottom: 24px;
    }

    .page-blog .blog-listing .row,
    .page-blog .materials-section .row {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }
}
