/* Blog — Fatturah.it */

.blog-main { padding-top: 68px; }

.blog-header {
    background: var(--dark);
    padding: 5rem 1.5rem 3.5rem;
    text-align: center;
}
.blog-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}
.blog-header p {
    font-size: 1.125rem;
    color: var(--mid-gray);
}
.blog-header .accent-line {
    width: 60px; height: 4px;
    background: var(--pop-yellow);
    border-radius: 2px;
    margin: 1.25rem auto 0;
}

/* Grid */
.blog-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 3rem 0;
}
.blog-grid-3 { grid-template-columns: repeat(3, 1fr); }

.blog-card {
    background: white;
    border-radius: 16px;
    border: 2px solid var(--light-gray);
    transition: all 0.3s;
    overflow: hidden;
}
.blog-card a { text-decoration: none; color: inherit; display: block; }
.blog-card:hover {
    border-color: var(--pop-yellow);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.blog-card-body { padding: 1.75rem; }
.blog-card-body time {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.blog-card-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0.5rem 0;
    line-height: 1.35;
}
.blog-card-body p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}
.blog-card-body .read-more {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pop-blue-dark);
}
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
}

/* Article */
.blog-article { padding: 3rem 1.5rem; }
.blog-article-container { max-width: 760px; }

.blog-article-header { margin-bottom: 2.5rem; }
.back-link {
    font-size: 0.8125rem;
    color: var(--pop-blue-dark);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1.5rem;
}
.back-link:hover { text-decoration: underline; }

.blog-article-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.blog-article-meta time {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Prose */
.prose { font-size: 1.0625rem; line-height: 1.8; color: var(--text); }
.prose h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
}
.prose h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}
.prose p { margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { font-weight: 600; }
.prose a { color: var(--pop-blue-dark); text-decoration: underline; }
.prose code {
    background: var(--light-gray);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9375rem;
}
.prose blockquote {
    border-left: 4px solid var(--pop-yellow);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: rgba(255, 225, 77, 0.06);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-muted);
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}
.prose th, .prose td {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--light-gray);
    text-align: left;
}
.prose th {
    background: var(--light-gray);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* FAQ in article */
.blog-faq {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}
.blog-faq h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* CTA box */
.blog-cta-box {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--dark);
    border-radius: 16px;
    text-align: center;
}
.blog-cta-box p {
    color: rgba(255,255,255,0.85);
    font-size: 1.0625rem;
    margin-bottom: 1.25rem;
}
.blog-cta-box strong { color: var(--pop-yellow); }

/* Related */
.blog-related {
    padding: 3rem 0 4rem;
    border-top: 2px solid var(--light-gray);
    margin-top: 2rem;
}
.blog-related h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Pagination */
.blog-pagination {
    padding-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .blog-header h1 { font-size: 1.75rem; }
    .blog-header { padding: 4rem 1rem 2.5rem; }
    .blog-grid-container, .blog-grid-3 { grid-template-columns: 1fr; }
    .blog-article-header h1 { font-size: 1.75rem; }
}
