/* =============================================================================
   BLOG DETAIL - MASTER TEMPLATE (blog-post.html) - Phase 15
   ============================================================================= 
   PAGE-SPECIFIC layout only, prefixed "blgp-" per rules.txt Section 2 -
   distinct from "blg-" (the Hub), same pattern as medd- vs. med- (Phase
   14). All visual components come from event-components.css unchanged.
   The only new layout concern here is constraining the article body to a
   readable measure (~720px) - a layout decision, not a new typography or
   color rule; font-family/size/color/line-height all inherit the site's
   existing tokens (--font-primary, --text-dark, etc.) unchanged.
   ============================================================================= */

#blgp-page {
    background: var(--white);
}

.page-hero.blgp-hero {
    min-height: 360px;
    height: auto;
    padding: clamp(60px, 7vw, 90px) 0;
}

.page-hero.blgp-hero .page-hero-content h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    line-height: 1.25;
    max-width: 900px;
    margin-bottom: 16px;
}

.page-hero.blgp-hero .page-hero-content p {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.6;
    max-width: 800px;
}

.blgp-meta-sec,
.blgp-content-sec {
    padding: 56px 0;
}

.blgp-related-articles-sec {
    background: #f8fafc;
    border-top: 1px solid var(--border-light, #e2e8f0);
    border-bottom: 1px solid var(--border-light, #e2e8f0);
    padding: 64px 0 72px;
}

.blgp-cta-sec {
    padding: 64px 0 32px;
}

.blgp-contact-sec {
    padding: 0 0 64px;
}

/* Readable measure for article body text - a layout constraint, not a
   typography redefinition. Reuses the existing .eds-container as the
   outer wrapper and just narrows/centers the inner column. */
.blgp-content-container {
    max-width: 720px;
    margin: 0 auto;
}

.blgp-article {
    font-size: 1.05rem;
    color: var(--text-dark, #1e293b);
}

.blgp-article p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.blgp-article h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 44px;
    margin-bottom: 18px;
    line-height: 1.35;
}

.blgp-article h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 36px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.blgp-article h2:first-child,
.blgp-article h3:first-child {
    margin-top: 0;
}

.blgp-article ul,
.blgp-article ol {
    margin-bottom: 24px;
    padding-left: 28px;
    line-height: 1.8;
}

.blgp-article li {
    margin-bottom: 8px;
}

.blgp-article blockquote {
    border-left: 4px solid var(--primary-red, #e41f26);
    background: #f8fafc;
    padding: 18px 24px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #334155;
}

.blgp-article blockquote p:last-child {
    margin-bottom: 0;
}

.blgp-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.blgp-article a {
    color: var(--primary-red, #e41f26);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blgp-article a:hover {
    color: #b91c1c;
}

/* ========================= RELATED ARTICLES SECTION ========================= */
.blgp-related-articles-sec .eds-section-head--left {
    margin-bottom: 28px;
}

.blgp-related-articles-sec .eds-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
    gap: 28px;
    align-items: stretch;
}

.blgp-related-articles-sec .eds-related-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.blgp-related-articles-sec .eds-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.blgp-related-articles-sec .eds-related-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    display: block;
}

.blgp-related-articles-sec .eds-related-card-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blgp-related-articles-sec .eds-related-card-date {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-red, #e41f26);
    margin-bottom: 8px;
}

.blgp-related-articles-sec .eds-related-card-body h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    margin: 0;
    transition: color 0.2s ease;
}

.blgp-related-articles-sec .eds-related-card:hover .eds-related-card-body h3 {
    color: var(--primary-red, #e41f26);
}

@media screen and (max-width: 768px) {

    .blgp-meta-sec,
    .blgp-content-sec {
        padding: 40px 0;
    }

    .blgp-related-articles-sec {
        padding: 48px 0 52px;
        overflow: hidden;
    }

    .blgp-related-articles-sec .eds-container {
        padding-right: 0 !important;
    }

    .blgp-related-articles-sec .eds-section-head--left {
        padding-right: 20px;
        margin-bottom: 20px;
    }

    .blgp-related-articles-sec .eds-related-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        gap: 14px !important;
        padding: 4px 20px 20px 0 !important;
        margin: 0 !important;
    }

    .blgp-related-articles-sec .eds-related-grid::-webkit-scrollbar {
        display: none !important;
    }

    .blgp-related-articles-sec .eds-related-card {
        flex: 0 0 76vw !important;
        max-width: 290px !important;
        min-width: 230px !important;
        scroll-snap-align: start !important;
        box-sizing: border-box !important;
    }

    .blgp-cta-sec,
    .blgp-contact-sec {
        padding: 0 0 40px;
    }
}
