/* ============================================================
   Shmoney Blog — blog.css
   Extends the main style.css — place at /blog/blog.css
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.blog-hero {
    padding: 126px 0 64px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}
.blog-hero h1 { color: #fff; }
.blog-eyebrow {
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 500;
}
.blog-hero-title {
    font-size: 44px;
    font-weight: 400;
    letter-spacing: 0;
}
.blog-hero .tagline {
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255,255,255,.86);
}
.blog-search .input-group {
    max-width: 560px;
    box-shadow: 0 18px 50px rgba(0,0,0,.16);
    border-radius: 30px;
}
.blog-hero .input-group input { border-radius: 30px 0 0 30px; }
.blog-hero .input-group .btn  { border-radius: 0 30px 30px 0; color: #0B3D2E; }
.blog-hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    font-size: 13px;
}
.blog-hero-meta span,
.blog-hero-meta a {
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    padding: 6px 12px;
    text-decoration: none;
    background: rgba(255,255,255,.08);
}
.blog-hero-meta a:hover {
    color: #fff;
    background: rgba(255,255,255,.16);
}
.blog-filter-summary {
    background: #f8fdf9;
    border: 1px solid rgba(46,139,87,.16);
    border-radius: 8px;
    padding: 12px 14px;
}

/* ── Cards ─────────────────────────────────────────────────── */
.blog-card {
    background: #fff;
    border: 1px solid rgba(11,61,46,.08);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(11,61,46,.06);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(11,61,46,.12);
}
.blog-card__img-wrap { overflow: hidden; }
.blog-card__img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.blog-card:hover .blog-card__img-wrap img { transform: scale(1.04); }

.blog-card__img-placeholder {
    width: 100%;
    height: 200px;
}

.blog-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card__meta  { margin-bottom: 10px; }
.blog-card__title {
    font-size: 17px;
    font-weight: 500;
    color: #0B3D2E;
    line-height: 1.4;
    margin-bottom: 10px;
}
.blog-card__title a { color: inherit; text-decoration: none; }
.blog-card__title a:hover { color: #2E8B57; }
.blog-card__excerpt { font-size: 14px; flex: 1; }
.blog-card__footer  {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.blog-card__read-more {
    color: #2E8B57;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.blog-card__read-more:hover { color: #0B3D2E; }

/* ── Badge ─────────────────────────────────────────────────── */
.badge-category {
    background: rgba(46,139,87,.12);
    color: #0B3D2E;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
}
.badge-category:hover { background: rgba(46,139,87,.25); color: #0B3D2E; text-decoration: none; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination .page-link {
    color: #2E8B57;
    border-color: #dee2e6;
}
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0B3D2E 0%, #2E8B57 100%);
    border-color: #0B3D2E;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.blog-sidebar-card {
    background: #fff;
    border: 1px solid rgba(11,61,46,.08);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(11,61,46,.06);
    padding: 24px;
    margin-bottom: 24px;
}
.blog-sidebar-title {
    color: #0B3D2E;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2E8B57;
}
.blog-sidebar-link {
    display: block;
    padding: 8px 0;
    color: #6c757d;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: color .15s;
}
.blog-sidebar-link:hover,
.blog-sidebar-link.active { color: #0B3D2E; font-weight: 500; }

.blog-sidebar-cta { background: #f8fdf9; border: 1px solid rgba(46,139,87,.2); }

/* ── Single post ────────────────────────────────────────────── */
.post-title {
    font-size: 42px;
    font-weight: 500;
    color: #0B3D2E;
    line-height: 1.18;
}
@media (max-width: 768px) { .post-title { font-size: 30px; } }

.post-cover {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

figure {
    width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.post-page article {
    background: #fff;
}
.post-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.post-author-row { flex-wrap: wrap; gap: 10px; }
.author-avatar-placeholder {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #0B3D2E 0%, #2E8B57 100%);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 500; font-size: 16px;
    flex-shrink: 0;
}

/* Post body typography */
.post-body {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}
.post-body h2 { font-size: 28px; color: #0B3D2E; margin-top: 2.2rem; }
.post-body h3 { font-size: 22px; color: #0B3D2E; margin-top: 1.5rem; }
.post-body p  { margin-bottom: 1.25rem; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-body li { margin-bottom: .5rem; }
.post-body strong { color: #0B3D2E; }
.post-body a  { color: #2E8B57; text-decoration: underline; }
.post-body blockquote {
    border-left: 4px solid #2E8B57;
    padding: 12px 20px;
    margin: 1.5rem 0;
    background: #f8fdf9;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #0B3D2E;
}
.post-body img { max-width: 100%; border-radius: 8px; margin: 1rem 0; }
.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: 15px; }
.post-body th { background: #0B3D2E; color: #fff; padding: 10px 14px; text-align: left; }
.post-body td { padding: 9px 14px; border-bottom: 1px solid #eee; }
.post-body tr:nth-child(even) td { background: #f8fdf9; }

/* CTA banner */
.post-cta-banner {
    background: linear-gradient(135deg, rgba(11,61,46,.07) 0%, rgba(46,139,87,.1) 100%);
    border: 1px solid rgba(46,139,87,.25);
    border-radius: 8px;
}

/* Related cards */
.section-heading {
    color: #0B3D2E;
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(46,139,87,.28);
}
.related-card {
    padding: 10px;
    border: 1px solid rgba(11,61,46,.08);
    border-radius: 8px;
    transition: background .15s, border-color .15s;
    height: 100%;
}
.related-card:hover { background: #f8fdf9; border-color: rgba(46,139,87,.22); }

@media (max-width: 768px) {
    .blog-hero {
        padding: 104px 0 46px;
    }
    .blog-hero-title {
        font-size: 32px;
    }
    .blog-hero .tagline {
        font-size: 16px;
    }
    .blog-filter-summary {
        align-items: flex-start !important;
        flex-direction: column;
    }
    .blog-filter-summary .btn {
        margin-left: 0 !important;
    }
    .post-share {
        width: 100%;
        margin-left: 0 !important;
    }
}
