/* ==========================================================================
   SNAPIMAGE BLOG & EDITORIAL THEME (Clean Light Mode)
   ========================================================================== */

.blog-wrapper-section {
    padding: 110px 16px 80px; /* Clearance under fixed navbar */
    background-color: #f8fafc;
    min-height: 90vh;
}

/* Article Card Container */
.blog-article-wrapper {
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    padding: 44px 48px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

/* Header & Meta Area */
.blog-category-badge {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.blog-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.025em;
}

.blog-lead {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 22px;
}

.blog-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #64748b;
    padding-bottom: 22px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.meta-dot {
    color: #cbd5e1;
}

/* Featured Media */
.blog-featured-media {
    margin: 0 0 36px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    max-height: 460px;
}

.blog-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Article Body Typography */
.blog-body {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #334155;
}

.blog-body h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 38px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.blog-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 28px 0 10px;
}

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

.blog-body ul,
.blog-body ol {
    margin: 0 0 22px 20px;
    padding-left: 10px;
}

.blog-body li {
    margin-bottom: 8px;
}

.blog-body strong {
    color: #0f172a;
    font-weight: 700;
}

/* Callouts & Blockquotes */
.blog-body blockquote {
    border-left: 4px solid #2563eb;
    background: #eff6ff;
    padding: 16px 20px;
    margin: 26px 0;
    font-style: italic;
    color: #1e293b;
    border-radius: 0 10px 10px 0;
}

/* Inline Code & Preformatted Blocks */
.blog-body code {
    background: #f1f5f9;
    color: #2563eb;
    padding: 2px 6px;
    font-size: 0.9em;
    border-radius: 4px;
    font-family: Consolas, Monaco, "Courier New", monospace;
}

.blog-body pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 18px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 22px 0;
}

.blog-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Links */
.blog-body a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.blog-body a:hover {
    color: #1d4ed8;
}

/* Tables */
.blog-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.blog-body th,
.blog-body td {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    text-align: left;
}

.blog-body th {
    background-color: #f8fafc;
    color: #0f172a;
    font-weight: 700;
}

.blog-body tr:nth-child(even) {
    background-color: #fcfcfd;
}

/* Footer & Social Share */
.blog-footer {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
}

.share-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #64748b;
}

.share-btn {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    transition: all 0.15s ease;
}

.share-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Alerts / Error State */
.alert-box {
    padding: 16px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 500;
}

.alert-box.error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

@media (max-width: 768px) {
    .blog-wrapper-section {
        padding-top: 90px;
    }
    .blog-article-wrapper {
        padding: 24px 18px;
        border-radius: 12px;
    }
    .blog-title {
        font-size: 1.75rem;
    }
}