/* ============================================================
   CAENHEBO — Blog CSS
   ============================================================ */

/* ── BLOG HERO ── */
.blog-hero { padding: 140px 0 48px; background: linear-gradient(180deg, #050505 0%, var(--bg-dark) 100%); border-bottom: 1px solid rgba(255,255,255,0.06); }
.blog-hero h1 { font-size: clamp(2rem,4vw,3.5rem); font-weight: 200; margin-bottom: 14px; }
.blog-hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; font-family: Georgia, serif; }
.blog-hero-sub { font-size: 0.95rem; color: rgba(255,255,255,0.45); max-width: 560px; line-height: 1.7; }

/* ── CATEGORY FILTER ── */
.blog-filters { background: var(--bg-dark2); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 14px 0; }
.blog-filters .container { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bfilt { text-decoration: none; font-size: 0.75rem; color: rgba(255,255,255,0.45); padding: 6px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.2s; letter-spacing: 0.5px; }
.bfilt:hover { color: var(--white); border-color: rgba(255,255,255,0.25); }
.bfilt.active { background: rgba(201,168,76,0.1); border-color: var(--gold); color: var(--gold); font-weight: 600; }

/* ── BLOG GRID SECTION ── */
.blog-grid-section { padding: 48px 0 64px; }

/* Featured card */
.blog-card-featured { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; text-decoration: none; background: var(--bg-dark2); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; overflow: hidden; margin-bottom: 24px; transition: border-color 0.2s; }
.blog-card-featured:hover { border-color: rgba(201,168,76,0.25); }
.blog-card-featured .blog-card-img { height: 340px; }
.blog-card-featured .blog-card-title { font-size: clamp(1.1rem,2vw,1.5rem); }

/* Regular grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 20px; }

/* Card base */
.blog-card { display: flex; flex-direction: column; text-decoration: none; background: var(--bg-dark3); border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.blog-card:hover { border-color: rgba(201,168,76,0.2); transform: translateY(-3px); }
.blog-card-img { height: 200px; background-size: cover; background-position: center; position: relative; flex-shrink: 0; }
.blog-cat-badge { position: absolute; top: 12px; left: 12px; background: rgba(201,168,76,0.85); color: #0A0A0A; font-size: 0.6rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.blog-meta { font-size: 0.72rem; color: var(--gray); display: flex; gap: 6px; align-items: center; }
.blog-card-title { font-size: 1rem; font-weight: 500; color: var(--white); line-height: 1.35; }
.blog-card-excerpt { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-read-more { font-size: 0.75rem; color: var(--gold); font-weight: 600; letter-spacing: 0.5px; margin-top: auto; }

/* ── BLOG CTA ── */
.blog-cta { background: var(--bg-dark2); border-top: 1px solid rgba(201,168,76,0.12); padding: 60px 0; }
.blog-cta h2 { font-size: clamp(1.4rem,2.5vw,2rem); font-weight: 300; margin-bottom: 12px; }
.blog-cta p { font-size: 0.9rem; color: rgba(255,255,255,0.45); margin-bottom: 28px; }

/* ── POST HERO ── */
.post-hero-img { height: 400px; background-size: cover; background-position: center; position: relative; margin-top: 98px; }
.post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-dark) 0%, rgba(10,10,10,0.4) 60%, transparent 100%); }

/* ── ARTICLE ── */
.post-article { padding: 0 0 80px; background: var(--bg-dark); }
.post-container { max-width: 760px; }
.post-header { padding: 40px 0 32px; }
.post-cat-tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.post-title { font-size: clamp(1.5rem,3vw,2.5rem); font-weight: 300; line-height: 1.2; margin-bottom: 20px; }
.post-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.post-author-wrap { display: flex; align-items: center; gap: 12px; }
.post-author-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.25); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 600; color: var(--gold); flex-shrink: 0; }
.post-author-name { font-size: 0.85rem; font-weight: 500; color: var(--white); }
.post-date { font-size: 0.75rem; color: var(--gray); margin-top: 2px; }
.post-share { display: flex; align-items: center; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 4px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); font-size: 0.75rem; font-weight: 700; text-decoration: none; transition: all 0.2s; }
.share-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.08); }
.post-lead { font-size: 1.05rem; color: rgba(255,255,255,0.6); line-height: 1.8; font-style: italic; border-left: 2px solid var(--gold); padding-left: 20px; margin-bottom: 36px; }

/* ── POST BODY ── */
.post-body { color: rgba(255,255,255,0.75); font-size: 0.95rem; line-height: 1.85; }
.post-body h2 { font-size: 1.3rem; font-weight: 500; color: var(--white); margin: 36px 0 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.post-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--gold); margin: 24px 0 10px; }
.post-body p { margin-bottom: 18px; }
.post-body ul { margin: 0 0 20px 20px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--white); font-weight: 600; }

/* ── TAGS ── */
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 36px 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); }
.post-tag { text-decoration: none; font-size: 0.72rem; color: rgba(255,255,255,0.4); padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.2s; }
.post-tag:hover { color: var(--gold); border-color: rgba(201,168,76,0.3); }

/* ── POST CTA BOX ── */
.post-cta-box { background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.2); border-radius: 8px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 40px 0; flex-wrap: wrap; }
.post-cta-text p { font-size: 0.88rem; color: rgba(255,255,255,0.5); margin: 0; max-width: 420px; }

/* ── RELATED ── */
.post-related { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 36px; margin-top: 12px; }
.post-related h3 { font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 0; }
.post-related .blog-card-img { height: 150px; }
.post-related h4 { font-size: 0.9rem; font-weight: 500; color: var(--white); margin-bottom: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .blog-card-featured { grid-template-columns: 1fr; }
    .blog-card-featured .blog-card-img { height: 220px; }
    .post-meta-row { flex-direction: column; align-items: flex-start; }
    .post-cta-box { flex-direction: column; }
    .blog-grid { grid-template-columns: 1fr; }
}
