/* ═══════════════════════════════════════════════════════════════
   ELF FUAR BLOG — stylesheet
   Extends the core ELF Fuar design system (colors, type, header,
   footer, page-hero, cta-section, buttons) so /blog matches the
   rest of elffuar.com, plus blog-only components (post cards,
   article layout, table of contents, FAQ, tables, pagination).
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }

:root {
  --red: #ed2024;
  --red-dark: #c41a1e;
  --red-light: #ff3a2d;
  --black: #0a0a0a;
  --black-soft: #111111;
  --gray-dark: #1a1a1a;
  --gray-mid: #2a2a2a;
  --gray-light: #f5f5f5;
  --white: #ffffff;
  --text-muted: #999999;
  --border: rgba(255,255,255,0.08);
  --font: 'Montserrat', sans-serif;
}

body { font-family: var(--font); background: var(--black); color: var(--white); overflow-x: hidden; line-height: 1.6; }
img, video, iframe { max-width: 100%; }
section { padding: 100px 60px; max-width: 100%; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ─── HEADER / NAV ─── */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 60px; display: flex; align-items: center; justify-content: space-between; height: 80px; background: rgba(10,10,10,0.97); box-shadow: 0 1px 0 var(--border); backdrop-filter: blur(12px); transition: background 0.4s ease, box-shadow 0.4s ease; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 58px; width: 229px; object-fit: cover; object-position: center 45%; display: block; }
.logo-img-light { display: none; }
html[data-theme="light"] .logo-img-dark { display: none; }
html[data-theme="light"] .logo-img-light { display: block; }

nav { display: flex; align-items: center; gap: 30px; overflow: hidden; }
nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; transition: color 0.25s; position: relative; }
nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform 0.25s; }
nav a:hover { color: var(--white); }
nav a:hover::after { transform: scaleX(1); }
nav a.active { color: var(--red); }
nav a.active::after { transform: scaleX(1); }

.nav-cta { background: var(--red); color: var(--white) !important; padding: 12px 28px; font-size: 11px !important; font-weight: 700 !important; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; clip-path: polygon(0 0, 94% 0, 100% 20%, 100% 100%, 6% 100%, 0 80%); transition: background 0.25s, transform 0.25s !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }

.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 10px; background: none; border: none; flex-shrink: 0; z-index: 100; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: 0.3s; }

.header-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-toggle-wrap { display: flex; align-items: center; }
.lang-btn { background: none; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: 2px; padding: 5px 10px; cursor: pointer; transition: .25s; }
.lang-btn:hover { border-color: var(--red); color: var(--red); }

.theme-toggle { width: 44px; height: 24px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; position: relative; cursor: pointer; transition: background 0.3s, border-color 0.3s; flex-shrink: 0; }
.theme-toggle::before { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--white); border-radius: 50%; transition: transform 0.3s, background 0.3s; }
html[data-theme="light"] .theme-toggle { background: rgba(237,32,36,0.1); border-color: rgba(237,32,36,0.2); }
html[data-theme="light"] .theme-toggle::before { transform: translateX(20px); background: var(--red); }
.theme-toggle-wrap { display: flex; align-items: center; gap: 8px; }
.theme-toggle-icon { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.3s; line-height: 1; }
html[data-theme="light"] .theme-toggle-icon { color: rgba(0,0,0,0.4); }

/* ─── MOBILE NAV ─── */
.mobile-nav { display: none; position: fixed; inset: 0; background: rgba(10,10,10,0.98); z-index: 9999; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 22px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; color: var(--white); text-decoration: none; transition: color 0.25s; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--red); }
.mobile-close { position: absolute; top: 24px; right: 24px; font-size: 24px; color: var(--white); cursor: pointer; background: none; border: none; }
.mobile-nav-controls { display: flex; align-items: center; gap: 20px; margin-top: 12px; }
html[data-theme="light"] .mobile-nav { background: rgba(255,255,255,0.99); }
html[data-theme="light"] .mobile-nav a { color: #0a0a0a; }
html[data-theme="light"] .mobile-close { color: #0a0a0a; }

/* ─── LIGHT THEME (base) ─── */
html[data-theme="light"] body { background: #f5f5f5; color: #0a0a0a; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #f0f0f0; }
html[data-theme="light"] .header { background: rgba(245,245,245,0.97); box-shadow: 0 1px 0 rgba(0,0,0,0.08); }
html[data-theme="light"] nav a { color: rgba(0,0,0,0.6); }
html[data-theme="light"] nav a:hover { color: #0a0a0a; }
html[data-theme="light"] nav a.active { color: var(--red); }
html[data-theme="light"] .menu-toggle span { background: #0a0a0a; }
html[data-theme="light"] .lang-btn { border-color: rgba(0,0,0,0.2); color: rgba(0,0,0,0.6); }

/* ─── PAGE HERO / BREADCRUMB ─── */
.page-hero { position: relative; padding: 160px 60px 80px; background: var(--black-soft); border-bottom: 1px solid var(--border); overflow: hidden; }
.page-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(237,32,36,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(237,32,36,0.04) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.page-hero-accent { position: absolute; top: -60px; right: -60px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(237,32,36,0.08) 0%, transparent 70%); pointer-events: none; }
.page-hero-content { position: relative; z-index: 2; }

.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.25s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: rgba(255,255,255,0.25); }
.breadcrumb .current { color: var(--red); }

.page-hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.page-hero-line { width: 40px; height: 2px; background: var(--red); }
.page-hero-label { font-size: 10px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--red); }
.page-hero-title { font-size: clamp(36px, 5vw, 64px); font-weight: 900; line-height: 1.05; letter-spacing: -2px; text-transform: uppercase; margin-bottom: 20px; }
.page-hero-title .accent { color: var(--red); }
.page-hero-sub { font-size: 17px; font-weight: 400; color: rgba(255,255,255,0.5); max-width: 680px; line-height: 1.7; }

html[data-theme="light"] .page-hero { background: #f0f0f0; }
html[data-theme="light"] .page-hero-grid { background-image: linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px); }
html[data-theme="light"] .breadcrumb a { color: rgba(0,0,0,0.5); }
html[data-theme="light"] .breadcrumb span { color: rgba(0,0,0,0.35); }
html[data-theme="light"] .page-hero-title { color: #0a0a0a; }
html[data-theme="light"] .page-hero-sub { color: rgba(0,0,0,0.55); }

/* ─── SECTION COMMONS ─── */
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-eyebrow-line { width: 32px; height: 2px; background: var(--red); }
.section-eyebrow-text { font-size: 10px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--red); }
.section-title { font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; text-transform: uppercase; }
.section-title .accent { color: var(--red); }
.section-sub { font-size: 15px; font-weight: 400; color: rgba(255,255,255,0.45); margin-top: 14px; max-width: 560px; line-height: 1.7; }
.section-header.center .section-eyebrow { justify-content: center; }
.section-header.center .section-sub { margin: 14px auto 0; }
html[data-theme="light"] .section-sub { color: rgba(0,0,0,0.6); }
html[data-theme="light"] .section-title { color: #0a0a0a; }

/* ─── BUTTONS / CTA ─── */
.btn-primary { display: inline-flex; align-items: center; gap: 12px; background: var(--red); color: var(--white); text-decoration: none; padding: 18px 40px; font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; clip-path: polygon(0 0, 92% 0, 100% 25%, 100% 100%, 8% 100%, 0 75%); transition: background 0.25s, transform 0.25s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-outline { display: inline-flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.75); text-decoration: none; padding: 17px 40px; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; transition: border-color 0.25s, color 0.25s; background: none; }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
html[data-theme="light"] .btn-outline { border-color: rgba(0,0,0,0.2); color: rgba(0,0,0,0.7); }

.cta-section { background: var(--black-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 90px 60px; text-align: center; }
.cta-title { font-size: clamp(28px, 3.6vw, 46px); font-weight: 900; letter-spacing: -1.5px; text-transform: uppercase; margin-bottom: 18px; }
.cta-title .accent { color: var(--red); }
.cta-sub { font-size: 16px; color: rgba(255,255,255,0.5); margin-bottom: 40px; line-height: 1.7; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
html[data-theme="light"] .cta-section { background: #ebebeb; }
html[data-theme="light"] .cta-title { color: #0a0a0a; }
html[data-theme="light"] .cta-sub { color: rgba(0,0,0,0.55); }

/* ─── FOOTER ─── */
footer { background: var(--black-soft); border-top: 1px solid var(--border); padding: 72px 60px 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--border); }
.footer-desc { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.35); margin-top: 20px; max-width: 280px; }
.footer-col h4 { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 22px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.25s; display: flex; align-items: center; gap: 8px; }
.footer-links a::before { content: ''; width: 16px; height: 1px; background: var(--red); opacity: 0; transition: opacity 0.25s; flex-shrink: 0; }
.footer-links a:hover { color: var(--white); }
.footer-links a:hover::before { opacity: 1; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.2); letter-spacing: 1px; }
.footer-copy span { color: var(--red); }
.footer-legal { display: flex; gap: 28px; }
.footer-legal a { font-size: 11px; color: rgba(255,255,255,0.35); text-decoration: none; letter-spacing: 1px; transition: color 0.25s; }
.footer-legal a:hover { color: var(--red); }

html[data-theme="light"] footer { background: #e2e2e2; border-color: rgba(0,0,0,0.12); }
html[data-theme="light"] .footer-grid { border-color: rgba(0,0,0,0.12); }
html[data-theme="light"] .footer-desc { color: rgba(0,0,0,0.58); }
html[data-theme="light"] .footer-col h4 { color: rgba(0,0,0,0.55); }
html[data-theme="light"] .footer-links a { color: rgba(0,0,0,0.55); }
html[data-theme="light"] .footer-links a:hover { color: #0a0a0a; }
html[data-theme="light"] .footer-copy { color: rgba(0,0,0,0.48); }
html[data-theme="light"] .footer-legal a { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .footer-legal a:hover { color: var(--red); }

.destek-strip { background: #fff; border-top: 1px solid var(--border); padding: 14px 24px; }
.destek-title { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(0,0,0,0.45); margin-bottom: 10px; }
.destek-strip .destek-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.destek-strip img { display: block; width: 100%; max-width: 1000px; height: auto; margin: 0 auto; }

/* ─── ANIMATIONS ─── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════ BLOG-SPECIFIC ══════════════════════ */

/* ─── Category badges ─── */
.cat-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); background: rgba(237,32,36,0.1); border: 1px solid rgba(237,32,36,0.25); padding: 7px 14px; text-decoration: none; transition: background .25s, color .25s; }
.cat-badge:hover { background: rgba(237,32,36,0.18); }
html[data-theme="light"] .cat-badge { background: rgba(237,32,36,0.08); }

/* ─── Filter bar (blog home) ─── */
.blog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px 60px; border-bottom: 1px solid var(--border); }
.blog-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.blog-filter-btn { background: none; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 10px 18px; cursor: pointer; transition: .25s; text-decoration: none; display: inline-block; }
.blog-filter-btn:hover { border-color: var(--red); color: var(--white); }
.blog-filter-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }
html[data-theme="light"] .blog-filter-btn { border-color: rgba(0,0,0,0.15); color: rgba(0,0,0,0.6); }

.blog-search { position: relative; min-width: 240px; }
.blog-search input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); color: var(--white); font-family: var(--font); font-size: 13px; padding: 12px 16px 12px 40px; }
.blog-search input::placeholder { color: rgba(255,255,255,0.35); }
.blog-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.35); font-size: 13px; }
html[data-theme="light"] .blog-search input { background: #fff; border-color: rgba(0,0,0,0.15); color: #0a0a0a; }

/* ─── Featured post ─── */
.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 80px 60px; border-bottom: 1px solid var(--border); }
.featured-post-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--black-soft); }
.featured-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-tag { position: absolute; top: 16px; left: 16px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 8px 14px; }
.featured-post-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.4); margin: 20px 0 16px; }
.featured-post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.featured-post-title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-bottom: 18px; }
.featured-post-title a { color: inherit; text-decoration: none; }
.featured-post-title a:hover { color: var(--red); }
.featured-post-excerpt { font-size: 15px; color: rgba(255,255,255,0.5); line-height: 1.8; margin-bottom: 28px; max-width: 520px; }
html[data-theme="light"] .featured-post-title { color: #0a0a0a; }
html[data-theme="light"] .featured-post-excerpt { color: rgba(0,0,0,0.6); }

/* ─── Post grid / cards ─── */
.post-grid-section { padding: 80px 60px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.post-card { background: var(--black-soft); border: 1px solid var(--border); display: flex; flex-direction: column; transition: border-color .25s, transform .25s; }
.post-card:hover { border-color: rgba(237,32,36,0.35); transform: translateY(-4px); }
.post-card-img-link { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--black); }
.post-card-img-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.post-card:hover .post-card-img-link img { transform: scale(1.05); }
.post-card-category { position: absolute; top: 12px; left: 12px; background: rgba(10,10,10,0.85); color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 10px; }
.post-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card-meta { display: flex; gap: 14px; font-size: 11px; color: rgba(255,255,255,0.35); }
.post-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-card-title { font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -0.3px; }
.post-card-title a { color: var(--white); text-decoration: none; }
.post-card-title a:hover { color: var(--red); }
.post-card-excerpt { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; flex: 1; }
.post-card-link { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); text-decoration: none; margin-top: auto; display: inline-flex; align-items: center; gap: 8px; }
.post-card-link:hover { gap: 12px; }

html[data-theme="light"] .post-card { background: #fff; border-color: rgba(0,0,0,0.1); }
html[data-theme="light"] .post-card-title a { color: #0a0a0a; }
html[data-theme="light"] .post-card-excerpt { color: rgba(0,0,0,0.55); }
html[data-theme="light"] .post-card-meta { color: rgba(0,0,0,0.4); }

.post-card--related { }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.empty-state { text-align: center; padding: 60px 20px; color: rgba(255,255,255,0.4); font-size: 14px; display: none; }

/* ─── Newsletter / mid CTA ─── */
.blog-cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: var(--black-soft); border: 1px solid var(--border); padding: 40px 48px; margin: 0 60px 80px; }
.blog-cta-strip h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; text-transform: uppercase; }
.blog-cta-strip p { font-size: 14px; color: rgba(255,255,255,0.5); max-width: 480px; }
html[data-theme="light"] .blog-cta-strip { background: #fff; border-color: rgba(0,0,0,0.1); }
html[data-theme="light"] .blog-cta-strip p { color: rgba(0,0,0,0.55); }

/* ─── Article layout ─── */
.article-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 64px; padding: 72px 60px 100px; max-width: 1400px; margin: 0 auto; align-items: start; }

.article-hero-img { width: 100%; aspect-ratio: 21/9; object-fit: cover; margin-bottom: 8px; background: var(--black-soft); }
.article-hero-caption { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 10px; }

.article-meta-bar { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 20px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 36px; font-size: 13px; color: rgba(255,255,255,0.45); }
.article-meta-bar span { display: inline-flex; align-items: center; gap: 8px; }
.article-author { display: flex; align-items: center; gap: 10px; }
.article-author-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }

.article-content { font-size: 16px; line-height: 1.85; color: rgba(255,255,255,0.78); max-width: 760px; }
.article-content > p, .article-content > ul, .article-content > ol, .article-content > table, .article-content > .callout, .article-content > .faq-block { margin-bottom: 26px; }
.article-content h2 { font-size: 27px; font-weight: 800; letter-spacing: -0.5px; margin: 52px 0 20px; color: var(--white); scroll-margin-top: 100px; }
.article-content h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin: 36px 0 16px; color: var(--white); scroll-margin-top: 100px; }
.article-content h2:first-child, .article-content h3:first-child { margin-top: 0; }
.article-content ul, .article-content ol { padding-left: 22px; }
.article-content li { margin-bottom: 10px; }
.article-content li::marker { color: var(--red); }
.article-content strong { color: var(--white); font-weight: 700; }
.article-content a { color: var(--red-light); text-decoration: underline; text-decoration-color: rgba(237,32,36,0.4); text-underline-offset: 3px; }
.article-content a:hover { text-decoration-color: var(--red-light); }
.article-content blockquote { border-left: 3px solid var(--red); padding: 4px 0 4px 24px; font-size: 17px; font-style: italic; color: rgba(255,255,255,0.6); margin: 32px 0; }

.article-content .lead { font-size: 19px; line-height: 1.7; color: rgba(255,255,255,0.85); font-weight: 500; }

.article-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article-content table caption { caption-side: top; text-align: left; font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.article-content th, .article-content td { text-align: left; padding: 12px 16px; border: 1px solid var(--border); }
.article-content th { background: var(--black-soft); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; color: var(--red); }
.article-content tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.article-content .table-scroll { overflow-x: auto; margin-bottom: 26px; }
.article-content .table-scroll table { margin-bottom: 0; }

.callout { background: var(--black-soft); border: 1px solid var(--border); border-left: 3px solid var(--red); padding: 22px 26px; font-size: 14.5px; }
.callout strong { display: block; color: var(--red); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; font-weight: 800; }

html[data-theme="light"] .article-content { color: rgba(0,0,0,0.72); }
html[data-theme="light"] .article-content h2, html[data-theme="light"] .article-content h3 { color: #0a0a0a; }
html[data-theme="light"] .article-content strong { color: #0a0a0a; }
html[data-theme="light"] .article-content blockquote { color: rgba(0,0,0,0.6); }
html[data-theme="light"] .article-content .lead { color: rgba(0,0,0,0.8); }
html[data-theme="light"] .article-content th { background: #f0f0f0; }
html[data-theme="light"] .article-meta-bar { color: rgba(0,0,0,0.5); }
html[data-theme="light"] .callout { background: #fff; }
html[data-theme="light"] .article-hero-caption { color: rgba(0,0,0,0.4); }

/* ─── Sidebar / TOC ─── */
.article-sidebar { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 28px; }
.toc-box { background: var(--black-soft); border: 1px solid var(--border); padding: 26px 24px; }
.toc-box h4 { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.toc-box ol { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.toc-box li.toc-h3 { padding-left: 16px; }
.toc-box a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 13px; line-height: 1.5; transition: color .2s; display: block; }
.toc-box a:hover { color: var(--red); }
html[data-theme="light"] .toc-box { background: #fff; border-color: rgba(0,0,0,0.1); }

.share-box { background: var(--black-soft); border: 1px solid var(--border); padding: 22px 24px; }
.share-box h4 { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.share-links { display: flex; gap: 10px; }
.share-links a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); text-decoration: none; transition: .2s; }
.share-links a:hover { background: var(--red); color: #fff; }
html[data-theme="light"] .share-box { background: #fff; border-color: rgba(0,0,0,0.1); }

.sidebar-cta { background: var(--red); padding: 28px 24px; }
.sidebar-cta h4 { font-size: 16px; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; letter-spacing: -0.3px; }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 18px; }
.sidebar-cta a { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--red); text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 12px 18px; }

/* ─── FAQ ─── */
.faq-block { }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; cursor: pointer; font-size: 15.5px; font-weight: 700; color: var(--white); list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q i { color: var(--red); transition: transform .25s; flex-shrink: 0; }
details[open] .faq-q i { transform: rotate(45deg); }
.faq-a { padding: 0 4px 22px; font-size: 14.5px; color: rgba(255,255,255,0.6); line-height: 1.8; }
html[data-theme="light"] .faq-q { color: #0a0a0a; }
html[data-theme="light"] .faq-a { color: rgba(0,0,0,0.6); }

/* ─── Author box ─── */
.author-box { display: flex; align-items: center; gap: 18px; background: var(--black-soft); border: 1px solid var(--border); padding: 26px 28px; margin: 44px 0; }
.author-box-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.author-box h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.author-box p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; }
html[data-theme="light"] .author-box { background: #fff; border-color: rgba(0,0,0,0.1); }

/* ─── Related articles ─── */
.related-section { padding: 80px 60px; background: var(--black-soft); border-top: 1px solid var(--border); }
html[data-theme="light"] .related-section { background: #f0f0f0; }

/* ─── Pagination ─── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px 60px 80px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px; font-weight: 700; transition: .2s; }
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }
html[data-theme="light"] .pagination a, html[data-theme="light"] .pagination span { border-color: rgba(0,0,0,0.15); color: rgba(0,0,0,0.6); }

/* ─── 404 ─── */
.blog-404 { text-align: center; padding: 160px 24px 120px; }
.blog-404 h1 { font-size: clamp(60px, 10vw, 140px); font-weight: 900; color: var(--red); letter-spacing: -4px; }
.blog-404 p { font-size: 16px; color: rgba(255,255,255,0.5); margin: 16px 0 32px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
  nav { gap: 18px; }
  .header { padding: 0 32px; }
  .post-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; }
  .article-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .toc-box, .share-box, .sidebar-cta { flex: 1; min-width: 260px; }
}

@media (max-width: 1560px) {
  .header { padding: 0 32px; }
  nav { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 1024px) {
  .page-hero, section, .blog-toolbar, .post-grid-section, .featured-post, .related-section, .article-wrap { padding-left: 32px !important; padding-right: 32px !important; }
  .blog-cta-strip { margin-left: 32px; margin-right: 32px; }
  .featured-post { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .page-hero { padding: 120px 24px 56px !important; }
  section, .blog-toolbar, .post-grid-section, .featured-post, .related-section, .article-wrap { padding: 56px 24px !important; }
  .blog-cta-strip { margin: 0 24px 56px; flex-direction: column; align-items: flex-start; }
  .post-grid, .related-grid { grid-template-columns: 1fr; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .article-sidebar { flex-direction: column; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-legal { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .article-meta-bar { gap: 14px; font-size: 12px; }
}

@media (max-width: 480px) {
  .page-hero { padding: 100px 16px 48px !important; }
  section, .blog-toolbar, .post-grid-section, .featured-post, .related-section, .article-wrap { padding: 48px 16px !important; }
  footer { padding: 48px 16px 32px; }
}

@media (max-width: 900px) {
  .nav-cta { padding: 9px 14px !important; font-size: 11px !important; }
}
