/* ===== Blog Hero ===== */
.blog-hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 140px 20px 160px;
    background-color: #032550;
    background-image: linear-gradient(160deg, rgba(3,37,80,0.95) 30%, rgba(48,132,171,0.85) 100%);
    text-align: center;
}
.blog-hero .container {
    position: relative;
    z-index: 1;
}
.blog-hero-content {
    max-width: 750px;
    margin: 0 auto;
}
.blog-hero-content h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 16px;
}
.blog-hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    line-height: 1.6;
}
.blog-hero-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 1;
}
.blog-hero-wave-bottom svg {
    display: block;
    width: 100%;
    height: 90px;
}

/* ===== Blog Post Hero (taller, with back link) ===== */
.blog-hero--post {
    padding: 120px 20px 160px;
}
.blog-hero--post h1 {
    margin-bottom: 20px;
}
.blog-back-link {
    display: inline-block;
    color: rgba(255,255,255,0.7);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    transition: var(--transition);
}
.blog-back-link:hover {
    color: var(--color-gold);
}
.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
}
.blog-post-author {
    position: relative;
    padding-left: 16px;
}
.blog-post-author::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}

/* ===== Blog Listing Grid ===== */
.blog-listing {
    padding: 80px 0 60px;
    background: var(--color-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    display: block;
    background: var(--color-white);
    border-radius: 12px;
    border: 1px solid var(--color-gray-200);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    color: inherit;
}

.blog-card-body {
    padding: 32px 28px;
}

.blog-card-date {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-navy);
    margin-bottom: 12px;
    transition: var(--transition);
}
.blog-card:hover .blog-card-title {
    color: var(--color-teal);
}

.blog-card-excerpt {
    color: var(--color-gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-gold);
    transition: var(--transition);
}
.blog-card:hover .blog-card-link {
    color: var(--color-gold-light);
}

/* ===== Blog Empty State ===== */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
}
.blog-empty h2 {
    margin-bottom: 12px;
}
.blog-empty p {
    color: var(--color-gray-600);
    font-size: 1.1rem;
}

/* ===== Blog Article (post detail) ===== */
.blog-article {
    padding: 60px 0 40px;
    background: var(--color-white);
}

.blog-article-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* Markdown prose styling */
.blog-article-body h2 {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--color-navy);
}

.blog-article-body h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--color-navy);
}

.blog-article-body p {
    margin-bottom: 20px;
}

.blog-article-body strong {
    font-weight: 700;
    color: var(--color-navy);
}

.blog-article-body em {
    font-style: italic;
}

.blog-article-body a {
    color: var(--color-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.blog-article-body a:hover {
    color: var(--color-gold);
}

.blog-article-body ul,
.blog-article-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}
.blog-article-body ul {
    list-style: disc;
}
.blog-article-body ol {
    list-style: decimal;
}
.blog-article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.blog-article-body blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--color-teal);
    background: var(--color-gray-100);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--color-gray-800);
}

.blog-article-body hr {
    border: none;
    height: 1px;
    background: var(--color-gray-200);
    margin: 48px 0;
}

.blog-article-body img {
    border-radius: 8px;
    margin: 32px 0;
    box-shadow: var(--shadow-sm);
}

/* Responsive video embeds (Vimeo / YouTube) */
.blog-article-body .video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 32px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}
.blog-article-body .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.blog-article-body code {
    background: var(--color-gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-article-body pre {
    background: var(--color-navy-dark);
    color: var(--color-white);
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 32px 0;
}
.blog-article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
}

/* Article footer (back button) */
.blog-article-footer {
    max-width: 720px;
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--color-gray-200);
}

/* ===== Blog CTA Section ===== */
.blog-cta-section {
    padding: 0 0 80px;
    background: var(--color-white);
}

.blog-cta-box {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
}
.blog-cta-box h2 {
    color: var(--color-white);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
}
.blog-cta-box p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.blog-cta-box .section-ctas {
    margin-top: 32px;
}

/* ===== Footer overrides for blog pages ===== */
.footer {
    position: relative;
}
.footer-wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 1;
}
.footer-wave-top svg {
    display: block;
    width: 100%;
    height: 90px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 20px 130px;
    }
    .blog-hero--post {
        padding: 110px 20px 130px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .blog-card-body {
        padding: 24px 20px;
    }
    .blog-article-body {
        font-size: 1rem;
    }
    .blog-cta-box {
        padding: 40px 24px;
    }
    .blog-post-meta {
        flex-direction: column;
        gap: 4px;
    }
    .blog-post-author {
        padding-left: 0;
    }
    .blog-post-author::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .blog-card-title {
        font-size: 1.15rem;
    }
}
