/* --- SAFE BLOG STYLES (Namespaced) --- */

/* 1. Variables (Scoped) */
:root {
    --kb-orange: #D97706;
    --kb-dark: #111827;
    --kb-gray: #6B7280;
    --kb-light: #F3F4F6;
    --kb-font: 'Inter', sans-serif;
    --kb-serif: 'Playfair Display', serif;
}

/* 2. Page Wrapper (Protects global layout) */
.kb-blog-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: var(--kb-font);
    background: #fff;
    color: var(--kb-dark);
}

/* 3. Sticky Blog Sub-Nav (Specific Class) */
.kb-sticky-nav {
    position: sticky; top: 0; z-index: 800;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 40px;
    padding: 10px 0;
}
.kb-nav-row {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.kb-journal-brand { font-family: var(--kb-serif); font-weight: 800; font-size: 1.3rem; }
.kb-journal-brand span { color: var(--kb-orange); }

.kb-filter-row { display: flex; gap: 8px; overflow-x: auto; }
.kb-chip {
    background: transparent; border: 1px solid #E5E7EB; padding: 6px 16px;
    border-radius: 20px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: 0.2s; color: var(--kb-gray);
}
.kb-chip:hover, .kb-chip.active { background: var(--kb-dark); color: white; border-color: var(--kb-dark); }

/* 4. Magazine Hero Grid */
.kb-hero-grid {
    display: grid; grid-template-columns: 2fr 1fr; gap: 25px; margin-bottom: 60px; height: 420px;
}
.kb-feat-card {
    position: relative; border-radius: 12px; overflow: hidden; display: block; height: 100%; text-decoration: none;
}
.kb-feat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.kb-feat-card:hover img { transform: scale(1.03); }
.kb-feat-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px; color: white;
}
.kb-feat-badge { background: var(--kb-orange); padding: 4px 10px; border-radius: 4px; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; }
.kb-feat-title { font-family: var(--kb-serif); font-size: 2rem; margin: 10px 0 0; line-height: 1.1; color: white; }

.kb-sub-col { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.kb-sub-card {
    flex: 1; display: flex; gap: 15px; align-items: center; text-decoration: none;
    background: #F9FAFB; padding: 15px; border-radius: 12px; border: 1px solid #eee; transition: 0.2s;
}
.kb-sub-card:hover { border-color: var(--kb-orange); background: white; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.kb-sub-img { width: 100px; height: 100px; border-radius: 8px; object-fit: cover; }
.kb-sub-info h4 { font-family: var(--kb-serif); font-size: 1.1rem; margin: 5px 0 0; color: var(--kb-dark); }
.kb-sub-cat { color: var(--kb-orange); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }

/* 5. Main Content Split */
.kb-layout-split { display: grid; grid-template-columns: 2.5fr 1fr; gap: 50px; }

/* News List */
.kb-feed { display: flex; flex-direction: column; gap: 35px; }
.kb-article-card { display: flex; gap: 25px; align-items: flex-start; text-decoration: none; color: inherit; }
.kb-article-img {
    width: 240px; height: 160px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.kb-article-meta { font-size: 0.8rem; color: var(--kb-gray); text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.kb-article-title { font-family: var(--kb-serif); font-size: 1.5rem; margin: 0 0 10px; line-height: 1.25; font-weight: 700; }
.kb-article-excerpt { font-size: 0.95rem; color: #555; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Sidebar */
.kb-widget { margin-bottom: 40px; }
.kb-widget-title { font-size: 1rem; font-weight: 800; text-transform: uppercase; border-bottom: 2px solid var(--kb-light); padding-bottom: 10px; margin-bottom: 20px; }

/* Newsletter Box */
.kb-newsletter-box { background: #111; color: white; padding: 30px; border-radius: 12px; text-align: center; }
.kb-newsletter-box h3 { margin: 10px 0; color: white; font-family: var(--kb-serif); }
.kb-newsletter-box p { color: #aaa; font-size: 0.9rem; margin-bottom: 20px; }
.kb-input { width: 100%; padding: 12px; border-radius: 6px; border: none; margin-bottom: 10px; background: white; }
.kb-sub-btn { width: 100%; padding: 12px; background: var(--kb-orange); color: white; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; }

/* Responsive */
@media (max-width: 900px) {
    .kb-hero-grid { grid-template-columns: 1fr; height: auto; }
    .kb-layout-split { grid-template-columns: 1fr; }
    .kb-article-card { flex-direction: column; }
    .kb-article-img { width: 100%; height: 200px; }
}