/* Blog-specific styles — extends the VividRead design system */

:root {
    --vivid-font: 'Poppins', 'Inter', sans-serif;
    --vivid-beige: #FDFCF8;
    --vivid-black: #0F6E54;
    --vivid-grey-dark: #57534E;
    --vivid-grey-muted: #78716C;
    --vivid-grey-light: #E7E5E4;
    --vivid-grey-surface: #F5F5F4;
    --vivid-green-text: #15803D;
    --vivid-green-bg: #F0FDF4;
    --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.03);
    --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.05);
    --shadow-lg: 0 12px 32px rgba(28, 25, 23, 0.08);
}

html, body {
    font-family: 'Poppins', 'Inter', -apple-system, sans-serif;
    background-color: var(--vivid-beige);
    color: #1c1917;
    scroll-behavior: smooth;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Georgia', serif;
    color: #1c1917;
}

a { color: inherit; text-decoration: none; }

/* ---- Navbar ---- */
.blog-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--vivid-grey-light);
}
.blog-nav-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.blog-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F6E54;
}
.blog-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.blog-nav-links a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--vivid-grey-dark);
    transition: color 0.15s;
}
.blog-nav-links a:hover { color: var(--vivid-black); }
.blog-nav-cta {
    background: var(--vivid-black);
    color: #fff !important;
    padding: 0.45rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: opacity 0.15s;
}
.blog-nav-cta:hover { opacity: 0.9; }

/* ---- Blog listing ---- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.blog-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--vivid-grey-light);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.blog-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--vivid-grey-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vivid-grey-muted);
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom: 1px solid var(--vivid-grey-light);
}
.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vivid-green-text);
    background: var(--vivid-green-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    width: fit-content;
}
.blog-card-title {
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1c1917;
    margin-bottom: 0.6rem;
}
.blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--vivid-grey-dark);
    line-height: 1.6;
    flex: 1;
}
.blog-card-meta {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--vivid-grey-muted);
    font-weight: 600;
}

/* ---- Article ---- */
.article-header {
    max-width: 48rem;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
    text-align: center;
}
.article-header h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .article-header h1 { font-size: 2.8rem; }
}
.article-meta {
    font-size: 0.85rem;
    color: var(--vivid-grey-muted);
    font-weight: 500;
}
.article-hero-img {
    max-width: 56rem;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
}
.article-hero-img .img-placeholder {
    border-radius: 20px;
}

.article-body {
    max-width: 44rem;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #3a3633;
}
.article-body h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}
.article-body h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
    line-height: 1.35;
}
.article-body p {
    margin-bottom: 1.25rem;
}
.article-body ul, .article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.article-body li {
    margin-bottom: 0.6rem;
    list-style: disc;
}
.article-body ol li {
    list-style: decimal;
}
.article-body strong {
    color: #1c1917;
    font-weight: 600;
}
.article-body a {
    color: var(--vivid-black);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--vivid-grey-light);
}
.article-body a:hover {
    text-decoration-color: var(--vivid-black);
}
.article-body blockquote {
    border-left: 3px solid var(--vivid-black);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--vivid-green-bg);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--vivid-grey-dark);
}

/* Image / video placeholder */
.img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--vivid-grey-surface);
    border: 2px dashed var(--vivid-grey-light);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--vivid-grey-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 1.5rem;
    margin: 1.5rem 0;
    gap: 0.5rem;
}
.img-placeholder svg {
    width: 2.5rem;
    height: 2.5rem;
    opacity: 0.4;
}
.img-placeholder .placeholder-label {
    font-size: 0.75rem;
    color: var(--vivid-grey-muted);
    max-width: 80%;
}

/* CTA Banner at bottom of articles */
.article-cta {
    max-width: 44rem;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}
.article-cta-inner {
    background: var(--vivid-black);
    color: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
}
.article-cta-inner h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.article-cta-inner p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}
.article-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    color: var(--vivid-black);
    padding: 0.85rem 1.8rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.article-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 0;
    font-size: 0.8rem;
    color: var(--vivid-grey-muted);
    font-weight: 500;
}
.breadcrumbs a {
    color: var(--vivid-grey-dark);
    transition: color 0.15s;
}
.breadcrumbs a:hover { color: var(--vivid-black); }
.breadcrumbs span { margin: 0 0.4rem; }

/* Author bio */
.author-box {
    max-width: 44rem;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}
.author-box-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--vivid-grey-light);
    border-radius: 16px;
}
.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--vivid-grey-surface);
    border: 2px solid var(--vivid-grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
}
.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.author-info {
    flex: 1;
    min-width: 0;
}
.author-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1c1917;
}
.author-bio {
    font-size: 0.8rem;
    color: var(--vivid-grey-dark);
    line-height: 1.5;
    margin-top: 0.15rem;
}

/* Updated date badge */
.article-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--vivid-grey-muted);
    font-weight: 500;
    margin-top: 0.5rem;
}
.article-updated svg {
    width: 0.85rem;
    height: 0.85rem;
}

/* Data callout — for highlighting real stats */
.data-callout {
    background: var(--vivid-green-bg);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.data-callout-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.data-callout-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #166534;
}
.data-callout-body strong {
    color: #14532d;
}

/* FAQ section */
.article-faq {
    max-width: 44rem;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}
.article-faq h2 {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    color: #1c1917;
    margin-bottom: 1.25rem;
}
.faq-item {
    border: 1px solid var(--vivid-grey-light);
    border-radius: 14px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: #fff;
}
.faq-item summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1c1917;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--vivid-grey-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-answer {
    padding: 0 1.25rem 1rem;
    font-size: 0.9rem;
    color: var(--vivid-grey-dark);
    line-height: 1.7;
}

/* Related articles */
.related-articles {
    max-width: 44rem;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}
.related-articles h2 {
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    color: #1c1917;
    margin-bottom: 1rem;
}
.related-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.related-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--vivid-grey-light);
    border-radius: 14px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.related-link:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}
.related-link-tag {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vivid-green-text);
    background: var(--vivid-green-bg);
    padding: 0.15rem 0.5rem;
    border-radius: 5px;
    flex-shrink: 0;
}
.related-link-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1c1917;
    flex: 1;
}
.related-link-arrow {
    color: var(--vivid-grey-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Footer */
.blog-footer {
    background: var(--vivid-beige);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--vivid-grey-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.blog-footer a {
    color: var(--vivid-grey-dark);
    margin: 0 1rem;
}
.blog-footer a:hover { color: var(--vivid-black); }
