/* ============================================================
   blog.css — Blog index + blog post styles for MapOutcomes
   Mirrors structural patterns from pricing.css and privacy-policy.css
   ============================================================ */

/* ---- Reset section defaults (match pricing/legal pattern) ---- */
section.blog-hero,
section.blog-section {
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
    overflow: visible;
    animation: none;
}

/* Grid overlay — light lines on dark, dark lines on light */
section.blog-hero::before,
section.blog-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 44px, rgba(255,255,255,0.02) 44px, rgba(255,255,255,0.02) 45px),
        repeating-linear-gradient(90deg, transparent, transparent 44px, rgba(255,255,255,0.02) 44px, rgba(255,255,255,0.02) 45px);
    pointer-events: none;
    z-index: 0;
}

/* Light sections — dark grid lines */
section.blog-list-section::before,
section.blog-post-body::before {
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 44px, rgba(0,0,0,0.02) 44px, rgba(0,0,0,0.02) 45px),
        repeating-linear-gradient(90deg, transparent, transparent 44px, rgba(0,0,0,0.02) 44px, rgba(0,0,0,0.02) 45px);
}

/* Section backgrounds */
section.blog-hero          { position: relative; background: linear-gradient(135deg, #0A7A8C 0%, #2D5F3F 100%); padding: 0; }
section.blog-list-section  { position: relative; background: #F4F1E8; padding: clamp(60px, 8vh, 100px) 0 clamp(60px, 8vh, 100px); }
section.blog-post-body     { position: relative; background: #ffffff; padding: clamp(48px, 6vh, 80px) 0 clamp(60px, 8vh, 100px); scroll-margin-top: 71px; }

/* ============================================================
   HERO (matches legal-hero / pricing-hero)
   ============================================================ */

.blog-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 166, 97, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(10, 122, 140, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(45, 95, 63, 0.07) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(5, 15, 20, 0.15) 0%, rgba(5, 15, 20, 0.00) 45%, rgba(5, 15, 20, 0.30) 100%);
    background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    animation: meshDrift 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes meshDrift {
    0%   { background-position: 0% 50%, 100% 0%, 50% 100%, 0% 0%; }
    50%  { background-position: 100% 50%, 0% 100%, 100% 0%, 0% 0%; }
    100% { background-position: 0% 50%, 100% 0%, 50% 100%, 0% 0%; }
}

.blog-compass-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.07;
    pointer-events: none;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: clamp(80px, 12vh, 140px) 24px clamp(60px, 8vh, 100px);
    max-width: 820px;
    width: 100%;
}

.blog-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: rgba(201, 166, 97, 0.95);
    margin-bottom: 16px;
}

.blog-h1 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.8vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.5px;
    margin: 0 0 20px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
    text-align: center;
}

.blog-post-h1 {
    font-size: clamp(28px, 4.2vw, 48px);
}

.blog-hero-sub {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 400;
    opacity: 0.82;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 620px;
}

/* Back-to-blog link in post hero */
.blog-back-link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    margin-bottom: 18px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.blog-back-link:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    text-decoration: none;
}

.blog-back-link--on-light {
    color: #0A7A8C;
    border-color: rgba(10, 122, 140, 0.30);
}

.blog-back-link--on-light:hover {
    background: rgba(10, 122, 140, 0.06);
    border-color: #0A7A8C;
    color: #0A7A8C;
}

/* Scroll hint (reused from pricing/legal) */
.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2.4s ease-in-out infinite;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.scroll-hint:hover { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.scroll-arrow {
    display: block;
    width: 18px;
    height: 18px;
    border-right: 2px solid rgba(255, 255, 255, 0.65);
    border-bottom: 2px solid rgba(255, 255, 255, 0.65);
    transform: rotate(45deg);
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.65; }
    50%      { transform: translateX(-50%) translateY(9px); opacity: 1; }
}

/* ============================================================
   BLOG CONTAINER
   ============================================================ */

.blog-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ============================================================
   BLOG INDEX — POST LIST
   ============================================================ */

.blog-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-card {
    background: #fff;
    border: 1px solid #E8EBED;
    border-radius: 16px;
    padding: clamp(28px, 3vw, 40px);
    box-shadow: 0 4px 18px rgba(44, 53, 57, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(44, 53, 57, 0.14);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #8A969D;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.blog-card-dot {
    color: #C9A661;
    font-weight: 700;
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 14px;
    letter-spacing: -0.3px;
}

.blog-card-title a {
    color: #2C3539;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #0A7A8C;
    text-decoration: none;
}

.blog-card-excerpt {
    font-family: var(--font-body);
    font-size: 16px;
    color: #5A6C75;
    line-height: 1.7;
    margin: 0 0 22px;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.blog-card-link {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: #0A7A8C;
    text-decoration: none;
    border-bottom: 1px solid rgba(10, 122, 140, 0.25);
    transition: border-color 0.2s ease;
}

.blog-card-link:hover {
    color: #0A7A8C;
    border-bottom-color: #0A7A8C;
    text-decoration: none;
}

.blog-card-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #C9A661;
    background: rgba(201, 166, 97, 0.12);
    padding: 6px 14px;
    border-radius: 999px;
}

.blog-list-note {
    text-align: center;
    font-family: var(--font-body);
    font-size: 14px;
    color: #8A969D;
    margin-top: 40px;
    margin-bottom: 0;
}

.blog-list-note a {
    color: #0A7A8C;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(10, 122, 140, 0.25);
    transition: border-color 0.2s ease;
}

.blog-list-note a:hover {
    border-bottom-color: #0A7A8C;
}

/* ============================================================
   BLOG POST BODY — long-form content
   ============================================================ */

.blog-post-content {
    max-width: 740px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-post-content h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 800;
    color: #2C3539;
    margin: 48px 0 18px;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.blog-post-content h2:first-child {
    margin-top: 0;
}

.blog-post-content h3 {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 700;
    color: #2C3539;
    margin: 32px 0 12px;
}

.blog-post-content p {
    font-family: var(--font-body);
    font-size: 17px;
    color: #3D4F58;
    line-height: 1.78;
    margin: 0 0 20px;
}

/* Lede paragraph — first paragraph, slightly larger */
.blog-lede {
    font-family: var(--font-body);
    font-size: 20px !important;
    font-weight: 500;
    color: #2C3539 !important;
    line-height: 1.6 !important;
    margin: 0 0 24px !important;
}

.blog-post-content ul,
.blog-post-content ol {
    font-family: var(--font-body);
    font-size: 17px;
    color: #3D4F58;
    line-height: 1.78;
    margin: 0 0 22px;
    padding-left: 24px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-content strong {
    color: #2C3539;
    font-weight: 700;
}

.blog-post-content em {
    color: #5A6C75;
}

.blog-post-content a {
    color: #0A7A8C;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(10, 122, 140, 0.25);
    transition: border-color 0.2s ease;
}

.blog-post-content a:hover {
    border-bottom-color: #0A7A8C;
}

.blog-post-content hr {
    border: none;
    border-top: 1px solid #E8EBED;
    margin: 44px 0;
}

/* Stylized list of "questions a coordinator can't answer" */
.blog-questions {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 8px 0 24px !important;
    border-left: 3px solid #C9A661;
}

.blog-questions li {
    padding: 6px 0 6px 20px;
    font-style: italic;
    color: #2C3539 !important;
    font-size: 17px;
    line-height: 1.65;
}

.blog-post-footnote {
    margin-top: 32px !important;
    padding-top: 24px;
    border-top: 1px solid #E8EBED;
    font-size: 14.5px !important;
    color: #8A969D !important;
    line-height: 1.7 !important;
}

/* ============================================================
   POST CTA BLOCK
   ============================================================ */

.blog-post-cta {
    max-width: 740px;
    margin: 56px auto 0;
    padding: clamp(32px, 4vw, 48px);
    background: linear-gradient(135deg, rgba(10, 122, 140, 0.05) 0%, rgba(45, 95, 63, 0.04) 100%);
    border: 1px solid rgba(10, 122, 140, 0.18);
    border-radius: 18px;
    text-align: center;
}

.blog-post-cta-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    color: #2C3539;
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}

.blog-post-cta-sub {
    font-family: var(--font-body);
    font-size: 16px;
    color: #5A6C75;
    line-height: 1.6;
    margin: 0 0 24px;
}

.blog-post-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero CTA buttons (matching home.css / pricing.css) */
.btn-hero-primary {
    background: #C9A661;
    color: #fff;
    padding: 16px 44px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 20px rgba(201, 166, 97, 0.45);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-hero-primary:hover {
    background: #b8954e;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(201, 166, 97, 0.55);
    color: #fff;
    text-decoration: none;
}

.btn-hero-ghost {
    background: transparent;
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.60);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.2px;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
    transform: translateY(-3px);
    color: #fff;
    text-decoration: none;
}

/* Light-background ghost button variant for the CTA on white */
.btn-hero-ghost--on-light {
    color: #0A7A8C;
    border-color: rgba(10, 122, 140, 0.45);
}

.btn-hero-ghost--on-light:hover {
    background: rgba(10, 122, 140, 0.08);
    border-color: #0A7A8C;
    color: #0A7A8C;
}

.blog-post-back {
    max-width: 740px;
    margin: 36px auto 0;
    text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
    .blog-hero-content {
        padding: 60px 20px 48px;
    }

    .blog-card {
        padding: 24px 22px;
    }

    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-post-content p,
    .blog-post-content ul,
    .blog-post-content ol {
        font-size: 16px;
    }

    .blog-lede {
        font-size: 18px !important;
    }

    .blog-post-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-post-cta-buttons .btn-hero-primary,
    .blog-post-cta-buttons .btn-hero-ghost {
        width: 100%;
        text-align: center;
    }
}
