/* =============================================
   Blog Article Shared Styles — blog.css
   Consolidated from inline <style> blocks in
   blog/first-time-home-buyer-guide-bay-area/
   ============================================= */

/* ---- Main article container ---- */
.blog-richtext {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 1rem 3rem 1rem;
}

/* ---- Section headings ---- */
.blog-richtext h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem 0;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-richtext h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem 0;
    color: #2a2a2a;
    font-weight: 600;
}

/* ---- Body text ---- */
.blog-richtext p {
    line-height: 1.8;
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.blog-richtext strong {
    color: #1a1a1a;
    font-weight: 600;
}

.blog-richtext ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-richtext ul li {
    margin-bottom: 0.75rem;
    color: #333;
    line-height: 1.6;
}

/* ---- Callout boxes ---- */
.blog-richtext .highlight-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #4a90e2;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.blog-richtext .tip-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.blog-richtext .warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.blog-richtext .important-box {
    background: #fce4ec;
    border-left: 4px solid #e91e63;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

/* ---- Feature grid / cards ---- */
.blog-richtext .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.blog-richtext .feature-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.blog-richtext .feature-item .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #4a90e2;
}

.blog-richtext .feature-item h4 {
    margin: 0.5rem 0;
    color: #1a1a1a;
    font-weight: 600;
}

/* ---- Images ---- */
.blog-richtext img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
}

.blog-richtext .image-caption,
.image-caption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* ---- Checklist ---- */
.blog-richtext .checklist,
.checklist {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-richtext .checklist-item,
.checklist-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #333;
}

.blog-richtext .checklist-item:before,
.checklist-item:before {
    content: "✓";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* ---- Comparison table ---- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comparison-table th {
    background: #4a90e2;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* ---- Blog header ---- */
.blog-header {
    margin-bottom: 2rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.blog-header .subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.blog-header .meta {
    color: #999;
    font-size: 0.95rem;
}

/* ---- Hero image ---- */
.hero-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 2rem 0;
}

/* ---- Disclaimer ---- */
.disclaimer {
    background: #f0f4f8;
    border-left: 4px solid #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- CTA section ---- */
.cta-section {
    background: linear-gradient(135deg, #1A3E62 0%, #0f2a40 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
}

.cta-section h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.cta-section p:last-of-type {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-section p:last-of-type strong {
    color: #FFD700 !important;
    display: inline-block;
}

.cta-section > div {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.cta-section a {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

/* ---- Step numbers ---- */
.step-number {
    display: inline-block;
    background: #4a90e2;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* ---- Timeline ---- */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50px;
    bottom: -50px;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item:last-child:before {
    display: none;
}

.timeline-marker {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    background: #4a90e2;
    border: 3px solid white;
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-content {
    padding-top: 0.5rem;
}

.timeline-content h4 {
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
    font-weight: 600;
}

.timeline-content p {
    margin: 0.5rem 0;
}

/* =============================================
   NEW STYLES — Breadcrumb, TOC, FAQ, Author,
   Related Guides
   ============================================= */

/* ---- Breadcrumb nav ---- */
.blog-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #999;
    line-height: 1.6;
}

.blog-breadcrumb a {
    color: #1A3E62;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumb a:hover {
    color: #4a90e2;
    text-decoration: underline;
}

/* ---- Table of Contents ---- */
.blog-toc {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.blog-toc h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    font-weight: 600;
}

.blog-toc ol {
    padding-left: 1.5rem;
    margin: 0;
}

.blog-toc li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.blog-toc a {
    color: #1A3E62;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-toc a:hover {
    text-decoration: underline;
    color: #4a90e2;
}

/* ---- FAQ section ---- */
.faq-section {
    margin-top: 3rem;
}

.faq-section h3.faq-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
}

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-item h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
}

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

/* ---- About the Author ---- */
.about-author {
    display: flex;
    gap: 1.5rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    align-items: center;
}

.about-author img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.about-author .author-info h4 {
    margin: 0 0 0.35rem 0;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.05rem;
}

.about-author .author-info p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---- Related Guides ---- */
.related-guides {
    margin: 2.5rem 0;
}

.related-guides h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.related-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.related-guide-link {
    display: block;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #1A3E62;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    border: 1px solid transparent;
}

.related-guide-link:hover {
    background: #eef2f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    border-color: #d0d7e0;
    text-decoration: none;
}

/* =============================================
   Responsive adjustments
   ============================================= */
@media (max-width: 768px) {
    .blog-richtext {
        padding: 90px 1rem 2rem 1rem;
    }

    .blog-richtext h2 {
        font-size: 1.4rem;
    }

    .blog-header h1 {
        font-size: 1.8rem;
    }

    .blog-header .subtitle {
        font-size: 1rem;
    }

    .cta-section {
        padding: 1.5rem;
    }

    .cta-section a {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .blog-toc {
        padding: 1.25rem 1.5rem;
    }

    .about-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .about-author img {
        width: 56px;
        height: 56px;
    }

    .related-guides-grid {
        grid-template-columns: 1fr;
    }

    .blog-breadcrumb {
        font-size: 0.85rem;
    }

    .faq-item {
        padding: 1.25rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

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

    .timeline-marker {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .timeline-item:before {
        left: 13px;
    }
}

@media (max-width: 600px) {
    .cta-section a {
        flex: 1 1 100%;
        max-width: 100%;
    }
}



/* Premium Gradient Blog Header Banner */
.blog-header {
    background: linear-gradient(135deg, #1A3E62 0%, #0A1929 100%);
    color: #ffffff;
    padding: 4rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26, 62, 98, 0.15);
}
.blog-header::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}
.blog-header h1 {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.blog-header .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
    position: relative;
    z-index: 1;
}
.blog-header .meta {
    color: #D4AF37;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}
