/* === BLOG STYLES === */
/* Clean, minimal design inheriting from global.css */

:root {
    --brand-primary: #00a378;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Poppins', 'Inter', Arial, sans-serif;
}

/* ========================
   ARTICLE PAGE STYLES
   ======================== */

.blog-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

/* Back Link */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.back-to-blog:hover {
    color: var(--brand-primary);
}

/* Article Header */
.article-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

/* Hero Image Section */
.article-hero {
    margin: 0 -24px 2rem;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.article-hero .image-credit {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Gradient Fallback (when no image) */
.article-hero-gradient {
    margin: 0 -24px 2rem;
    height: 160px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #004d3d 50%, #1a1a1a 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.article-hero-gradient .gradient-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
}

/* Visual Dividers */
.article-body h2::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--brand-primary);
    margin-bottom: 0.75rem;
    border-radius: 2px;
}

.article-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.article-category {
    background: var(--brand-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.article-excerpt {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Inline Article Images */
.article-inline-image {
    margin: 2rem 0;
    text-align: center;
}

.article-inline-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-inline-image figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ========================
   ARTICLE BODY - CLEAN TYPOGRAPHY
   ======================== */

.article-body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body h1 {
    display: none;
}

/* Hidden - title is in header */

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body p strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* FAQ Q&A styling - for standalone strong tags (not inside paragraphs) */
.article-body>strong {
    display: block;
    padding: 0.875rem 1.125rem;
    background: var(--bg-secondary);
    border-left: 3px solid var(--brand-primary);
    border-radius: 6px;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.65;
    font-weight: 600;
    font-size: 0.975rem;
}

/* Specific styling for Q: questions */
.article-body>strong:first-child,
.article-body h2~strong {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

/* Specific styling for A: answers - lighter weight */
.article-body>strong+strong {
    font-weight: 400;
    color: var(--text-secondary);
    border-left-color: #d1d5db;
    margin-top: -0.25rem;
    padding-top: 0.625rem;
}

.article-body a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover {
    opacity: 0.8;
}

/* Lists */
.article-body ul,
.article-body ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* Blockquotes */
.article-body blockquote {
    border-left: 4px solid var(--brand-primary);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    font-style: italic;
    color: var(--text-secondary);
}

/* Code */
.article-body code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.9em;
}

.article-body pre {
    background: #1a1a1a;
    color: #f8f8f2;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
}

/* ========================
   FAQ SECTION - Ultra Simple
   ======================== */

/* Simple Q&A styling - function over form */
.faq-q {
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.faq-a {
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    padding-left: 0;
    line-height: 1.7;
}

/* Legacy faq-item support */
.faq-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 3px solid var(--brand-primary);
}

.faq-item h4 {
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.faq-item p {
    color: #555;
    margin: 0;
}

/* Fallback removed: styling raw strong tags caused line breaks in normal text */

/* ========================
   ARTICLE CTA
   ======================== */

.article-cta {
    background: linear-gradient(135deg, rgba(0, 163, 120, 0.08), rgba(0, 163, 120, 0.03));
    border: 1px solid rgba(0, 163, 120, 0.15);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.article-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.article-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.article-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: var(--brand-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 163, 120, 0.25);
}

/* ========================
   BLOG INDEX PAGE
   ======================== */

.blog-index {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.blog-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Blog Card */
.blog-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.blog-card-category {
    display: inline-block;
    background: rgba(0, 163, 120, 0.1);
    color: var(--brand-primary);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--brand-primary);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: gap 0.2s;
}

.blog-card-link:hover {
    gap: 0.75rem;
}

.loading,
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* ========================
   MOBILE RESPONSIVENESS
   ======================== */

@media (max-width: 768px) {
    .blog-article {
        padding: 100px 16px 40px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-excerpt {
        font-size: 1rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.4rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-header h1 {
        font-size: 1.75rem;
    }
}
/* ================================================== */
/* SHADOW & HOVER ANIMATION REMOVAL (BLOG)           */
/* ================================================== */
.blog-card,
.article-card,
.post-card,
[class*="card"] {
    box-shadow: none !important;
}

.blog-card:hover,
.article-card:hover,
.post-card:hover,
[class*="card"]:hover {
    transform: none !important;
    box-shadow: none !important;
}
