/* ============================================================
   SILVERSMITHINGCLASS.COM — BLOG STYLES
   Added: Sil_The_Blog_19 theme update
   ============================================================ */

:root {
    --blog-gold: #c9a227;
    --blog-gold-dark: #8a6d10;
    --blog-gold-light: #f5ecc8;
    --blog-green-light: #e8f0e0;
}

/* ── SHARED WRAPPER ─────────────────────────────────────── */
.blog-page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ── BLOG HEADER ────────────────────────────────────────── */
.blog-page-header {
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--blog-gold);
}
.blog-page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.blog-page-header p {
    font-size: 15px;
    color: #666;
}

/* ── CATEGORY FILTER PILLS ──────────────────────────────── */
.blog-cat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.blog-cat-bar a {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 13px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    transition: all 0.15s;
}
.blog-cat-bar a:hover,
.blog-cat-bar a.active {
    background: var(--blog-gold);
    border-color: var(--blog-gold);
    color: #fff !important;
}
.blog-cat-bar a {
    color: #333 !important;
}

/* ── POST CARD GRID — 3 COLUMNS ─────────────────────────── */
.blog-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .blog-post-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .blog-post-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── POST CARD ───────────────────────────────────────────── */
.blog-post-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
}
.blog-post-card:hover {
    border-color: var(--blog-gold);
    box-shadow: 0 4px 16px rgba(201,162,39,0.12);
}

/* Card thumbnail */
.blog-card-thumb {
    height: 180px;
    overflow: hidden;
    background: var(--blog-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-card-thumb-placeholder {
    font-size: 48px;
    color: var(--blog-gold);
    opacity: 0.4;
}

/* Card body */
.blog-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-cat {
    font-size: 11px;
    font-weight: 600;
    color: var(--blog-gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.blog-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 8px;
    text-decoration: none;
    display: block;
}
.blog-card-title:hover { color: var(--blog-gold); }
.blog-card-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}
.blog-card-meta {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.blog-card-read-more {
    font-size: 13px;
    color: var(--blog-gold);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.blog-card-read-more:hover { color: var(--blog-gold-dark); }

/* ── PAGINATION ─────────────────────────────────────────── */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.15s;
}
.blog-pagination a:hover,
.blog-pagination span.current {
    background: var(--blog-gold);
    border-color: var(--blog-gold);
    color: #fff;
}

/* ── SINGLE POST ────────────────────────────────────────── */
.blog-single-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}
.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--blog-gold);
    text-decoration: none;
    margin-bottom: 24px;
}
.blog-back-link:hover { color: var(--blog-gold-dark); }

/* Hero image */
.blog-post-hero {
    width: 100%;
    height: 380px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--blog-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post header */
.blog-post-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--blog-gold-light);
    color: var(--blog-gold-dark);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    text-decoration: none;
}
.blog-post-title {
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 14px;
}
.blog-post-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* Post body content */
.blog-post-content {
    font-size: 16px;
    color: #2a2a2a;
    line-height: 1.8;
}
.blog-post-content p { margin-bottom: 1.1rem; }
.blog-post-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 2rem 0 0.6rem;
    padding-left: 12px;
    border-left: 4px solid var(--blog-gold);
}
.blog-post-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.5rem 0 0.5rem;
}
.blog-post-content ul,
.blog-post-content ol {
    padding-left: 1.4rem;
    margin-bottom: 1.1rem;
}
.blog-post-content li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}
.blog-post-content strong { color: #1a1a1a; }

/* ── CTA BOX ────────────────────────────────────────────── */
.blog-cta-box {
    margin-top: 40px;
    padding: 24px 28px;
    background: #fdf8ec;
    border: 1px solid #e8d48a;
    border-radius: 10px;
}
.blog-cta-box p {
    font-size: 15px;
    color: var(--blog-gold-dark);
    margin-bottom: 14px;
    line-height: 1.6;
}
.blog-cta-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--blog-gold);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.blog-cta-btn:hover { background: var(--blog-gold-dark); color: #fff; }

/* ── RELATED POSTS ──────────────────────────────────────── */
.blog-related {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}
.blog-related-label {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 16px;
}
.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 600px) {
    .blog-related-grid { grid-template-columns: 1fr; }
}
.blog-related-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 14px;
    text-decoration: none;
    display: block;
    transition: border-color 0.15s;
}
.blog-related-card:hover { border-color: var(--blog-gold); }
.blog-related-cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--blog-gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.blog-related-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
}

/* ── BLOG PAGE LAYOUT FIX ───────────────────────────────
   Ensures blog content sits below the hero banner with
   a white background — matches other page templates
   ─────────────────────────────────────────────────────── */

/* White content area below the hero banner */
.blog-page-wrap {
    background: #fff;
    position: relative;
    z-index: 10;
}

/* Force all text in blog area to dark so it's readable */
.blog-page-wrap,
.blog-page-wrap h1,
.blog-page-wrap h2,
.blog-page-wrap p,
.blog-page-wrap a {
    color: #1a1a1a;
}

/* Restore gold specifically where needed */
.blog-cat-bar a.active,
.blog-cat-bar a:hover,
.blog-card-cat,
.blog-card-read-more,
.blog-post-cat-badge,
.blog-cta-btn,
.blog-back-link,
.blog-related-cat {
    color: #c9a227;
}

.blog-page-header {
    color: #1a1a1a;
}
