/* ── Blog Banner ──────────────────────────────────────────────────────────── */
.blog-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a1a1a 55%, #3d1a00 100%);
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg, transparent, transparent 60px,
        rgba(213,104,4,0.04) 60px, rgba(213,104,4,0.04) 61px
    );
}
.blog-banner h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0 0 0.75rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.blog-banner p {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,0.82);
    font-size: 1.1rem;
    margin: 0 auto;
    max-width: 640px;
}

/* ── Category Filter Pills ────────────────────────────────────────────────── */
.blog-filters-wrap {
    padding: 2rem 0 0;
    text-align: center;
}
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.filter-pill {
    padding: 0.38rem 1.1rem;
    border-radius: 20px;
    border: 1.5px solid #e5e5e5;
    background: #fff;
    font-size: 0.83rem;
    font-weight: 600;
    color: #737373;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Featured Post ────────────────────────────────────────────────────────── */
.featured-section {
    padding: 2.5rem 0 0;
}
.featured-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.22s, transform 0.22s;
}
.featured-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.14); transform: translateY(-3px); }
.featured-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
}
.featured-icon-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    backdrop-filter: blur(4px);
}
.featured-body {
    padding: 2.5rem 2.5rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 0.5rem;
}
.featured-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}
.featured-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--foreground);
    margin: 0 0 0.85rem;
    line-height: 1.3;
}
.featured-excerpt {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 1.25rem;
}
.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.78rem;
    color: #737373;
    margin-bottom: 1.25rem;
}
.featured-meta i { margin-right: 0.25rem; }
.featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    width: fit-content;
    transition: background 0.18s;
}
.featured-btn:hover { background: #b85a03; }

/* ── Blog Grid ────────────────────────────────────────────────────────────── */
.blog-grid-section {
    padding: 2rem 0 4rem;
}
.blog-grid-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0 0 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #f0f0f0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.blog-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s, box-shadow 0.22s;
    border-top: 4px solid transparent;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.blog-card .card-body {
    padding: 1.35rem 1.35rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.cat-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    width: fit-content;
}
.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0 0 0.6rem;
    line-height: 1.35;
}
.card-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.65;
    margin: 0 0 1rem;
    flex: 1;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.76rem;
    color: #999;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}
.card-meta i { margin-right: 0.2rem; }
.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.75rem;
}
.card-read-more i { transition: transform 0.18s; }
.blog-card:hover .card-read-more i { transform: translateX(3px); }

/* ── Single Post Page ─────────────────────────────────────────────────────── */
.post-hero {
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    position: relative;
}
.post-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg, transparent, transparent 60px,
        rgba(255,255,255,0.04) 60px, rgba(255,255,255,0.04) 61px
    );
}
.post-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1rem;
}
.post-hero .post-cat-badge {
    display: inline-block;
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.post-hero h1 {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    line-height: 1.25;
    margin: 0 0 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.post-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.75);
}
.post-hero-meta i { margin-right: 0.25rem; }

/* ── Post Article ─────────────────────────────────────────────────────────── */
.post-article-wrap {
    padding: 3rem 0 5rem;
}
.post-article {
    max-width: 760px;
    margin: 0 auto;
}
.post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: gap 0.18s;
}
.post-back:hover { gap: 0.65rem; }
.post-content p {
    font-size: 1rem;
    line-height: 1.85;
    color: #333;
    margin: 0 0 1.35rem;
}
.post-content strong {
    color: var(--foreground);
    font-weight: 700;
}
.post-content .section-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 2rem 0 0.6rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    text-align: left;
    letter-spacing: 0;
    text-transform: none;
}

/* ── Related Posts ────────────────────────────────────────────────────────── */
.related-section {
    max-width: 760px;
    margin: 2.5rem auto 0;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}
.related-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0 0 1rem;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.related-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.1rem 1.1rem 1rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    text-decoration: none;
    color: inherit;
    border-top: 3px solid transparent;
    transition: box-shadow 0.18s, transform 0.18s;
    display: block;
}
.related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.11); transform: translateY(-3px); }
.related-card .cat-badge { margin-bottom: 0.5rem; }
.related-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.3;
    margin: 0 0 0.35rem;
}
.related-card-meta { font-size: 0.75rem; color: #999; }

/* ── No results ───────────────────────────────────────────────────────────── */
.blog-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #737373;
}
.blog-empty i { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; opacity: 0.4; }

@media (max-width: 768px) {
    .featured-card { grid-template-columns: 1fr; }
    .featured-visual { display: none; }
    .featured-body { padding: 1.75rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .post-hero-meta { flex-wrap: wrap; gap: 0.6rem; }
}
