@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
  --primary: #c41230;
  --primary-dark: #9e0e26;
  --secondary: #1a3a5c;
  --accent: #fef2f2;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-hover: 0 4px 6px rgba(0,0,0,0.1), 0 10px 25px rgba(0,0,0,0.1);
  --radius: 10px;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; color: var(--text); background: var(--bg); line-height: 1.75; font-size: 16px; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }
h1,h2,h3,h4,h5 { font-family: 'Poppins', sans-serif; line-height: 1.25; color: var(--secondary); }

/* ── LAYOUT ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.page-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .page-wrap { grid-template-columns: 1fr; } }

/* ── HEADER ── */
header { background: var(--white); border-bottom: 3px solid var(--primary); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.25rem; max-width: var(--max-width); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.3rem; font-weight: 800; font-family: 'Poppins', sans-serif; flex-shrink: 0; }
.logo-text { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--secondary); line-height: 1; }
.logo-text span { color: var(--primary); }
.logo-tagline { font-size: .68rem; color: var(--text-light); font-weight: 400; }
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { font-weight: 500; color: var(--text); font-size: .92rem; padding: .3rem .5rem; border-radius: 6px; transition: background .2s, color .2s; white-space: nowrap; }
nav a:hover { color: var(--primary); background: var(--accent); text-decoration: none; }
.nav-cta { background: var(--primary) !important; color: white !important; padding: .4rem 1rem !important; border-radius: 6px; }
.nav-cta:hover { background: var(--primary-dark) !important; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: .3rem; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
@media (max-width: 768px) {
  .burger { display: flex; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem; border-top: 1px solid var(--border); gap: .5rem; box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
  nav.open { display: flex; }
  nav a { width: 100%; padding: .6rem .8rem; }
}

/* ── HERO ── */
.hero { background: linear-gradient(135deg, var(--secondary) 0%, #0d2340 100%); color: white; padding: 5rem 1.25rem 4rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-badge { display: inline-block; background: rgba(196,18,48,.25); border: 1px solid rgba(196,18,48,.5); color: #fca5a5; font-size: .78rem; font-weight: 600; padding: .3rem .9rem; border-radius: 50px; margin-bottom: 1.2rem; letter-spacing: .05em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: white; margin-bottom: 1rem; }
.hero h1 span { color: #fca5a5; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 580px; margin: 0 auto 2rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .8rem 1.8rem; border-radius: 8px; font-weight: 600; font-size: .95rem; cursor: pointer; transition: .2s; text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); text-decoration: none; color: white; }
.btn-outline { border: 2px solid rgba(255,255,255,.5); color: white; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); text-decoration: none; color: white; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.15); flex-wrap: wrap; gap: 2rem; }
.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: #fca5a5; font-family: 'Poppins', sans-serif; }
.stat-lbl { font-size: .8rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }

/* ── AD UNITS ── */
.ad-unit { background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; color: var(--text-light); font-size: .8rem; margin: 1.5rem 0; }
.ad-unit-leaderboard { min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad-unit-sidebar { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ad-unit-in-article { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ad-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); margin-bottom: .5rem; }
/* Replace ad-unit divs with actual AdSense <ins> tags */

/* ── QUICK CATEGORIES ── */
.categories { padding: 2.5rem 0; }
.categories h2 { text-align: center; margin-bottom: 1.75rem; font-size: 1.5rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.cat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; transition: .25s; cursor: pointer; text-decoration: none; display: block; }
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-2px); text-decoration: none; }
.cat-icon { font-size: 2rem; margin-bottom: .6rem; }
.cat-card h3 { font-size: .95rem; color: var(--secondary); margin-bottom: .3rem; }
.cat-card p { font-size: .78rem; color: var(--text-light); line-height: 1.4; }

/* ── SECTION ── */
.section { padding: 3rem 0; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.75rem; gap: 1rem; }
.section-header h2 { font-size: 1.5rem; }
.section-header a { font-size: .88rem; font-weight: 600; white-space: nowrap; }

/* ── ARTICLE CARDS ── */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.article-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-img { height: 180px; background: linear-gradient(135deg, var(--secondary) 0%, #2563eb 100%); display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; overflow: hidden; }
.card-img.red { background: linear-gradient(135deg, var(--primary) 0%, #ef4444 100%); }
.card-img.green { background: linear-gradient(135deg, #065f46 0%, #10b981 100%); }
.card-img.orange { background: linear-gradient(135deg, #92400e 0%, #f59e0b 100%); }
.card-img.purple { background: linear-gradient(135deg, #4c1d95 0%, #8b5cf6 100%); }
.card-img.teal { background: linear-gradient(135deg, #164e63 0%, #06b6d4 100%); }
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: .5rem; }
.card-body h3 { font-size: 1.05rem; margin-bottom: .5rem; line-height: 1.3; }
.card-body h3 a { color: var(--secondary); }
.card-body h3 a:hover { color: var(--primary); text-decoration: none; }
.card-body p { font-size: .88rem; color: var(--text-light); flex: 1; margin-bottom: 1rem; }
.card-meta { font-size: .75rem; color: var(--text-light); display: flex; align-items: center; gap: .5rem; }
.card-meta span::before { content: '·'; margin-right: .5rem; }
.card-meta span:first-child::before { content: ''; margin: 0; }
.read-more { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--primary); margin-top: .75rem; }
.read-more::after { content: '→'; }

/* ── FEATURED CARD ── */
.featured-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--border); margin-bottom: 1.5rem; }
.featured-card .card-img { height: 100%; min-height: 220px; border-radius: 0; }
.featured-card .card-body { padding: 2rem; }
.featured-card .card-body h3 { font-size: 1.35rem; }
@media (max-width: 640px) { .featured-card { grid-template-columns: 1fr; } .featured-card .card-img { min-height: 180px; } }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.sidebar-widget h3 { font-size: 1rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--primary); }
.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { padding: .45rem 0; border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border: none; }
.sidebar-links a { font-size: .88rem; color: var(--text); font-weight: 500; }
.sidebar-links a:hover { color: var(--primary); text-decoration: none; }

/* ── ARTICLE PAGE ── */
.article-hero { background: linear-gradient(135deg, var(--secondary) 0%, #0d2340 100%); color: white; padding: 3.5rem 1.25rem 2.5rem; }
.article-hero.red { background: linear-gradient(135deg, var(--primary) 0%, #7f1d1d 100%); }
.article-hero.green { background: linear-gradient(135deg, #065f46 0%, #1a3a5c 100%); }
.article-hero.orange { background: linear-gradient(135deg, #92400e 0%, #1a3a5c 100%); }
.article-hero-inner { max-width: var(--max-width); margin: 0 auto; }
.article-breadcrumb { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.article-breadcrumb a { color: rgba(255,255,255,.7); }
.article-breadcrumb a:hover { color: white; text-decoration: none; }
.article-tag { display: inline-block; background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .8rem; border-radius: 50px; margin-bottom: .9rem; }
.article-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: white; margin-bottom: .8rem; }
.article-meta { display: flex; align-items: center; gap: 1rem; font-size: .82rem; color: rgba(255,255,255,.65); flex-wrap: wrap; }
.article-meta span { display: flex; align-items: center; gap: .35rem; }

/* ── ARTICLE BODY ── */
.article-layout { padding: 2.5rem 0 3rem; }
.article-content { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; line-height: 1.8; }
.article-content h2 { font-size: 1.45rem; margin: 2.5rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--border); color: var(--secondary); }
.article-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.article-content h3 { font-size: 1.15rem; margin: 1.75rem 0 .75rem; color: var(--secondary); }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol { margin: .75rem 0 1.25rem 1.75rem; }
.article-content li { margin-bottom: .5rem; }
.article-content strong { color: var(--secondary); }
.article-content a { font-weight: 500; }
.callout { background: var(--accent); border-left: 4px solid var(--primary); padding: 1.1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout.info { background: #eff6ff; border-color: #3b82f6; }
.callout.warning { background: #fffbeb; border-color: #f59e0b; }
.callout.success { background: #ecfdf5; border-color: #10b981; }
.callout p { margin: 0; font-size: .93rem; }
.callout strong { display: block; margin-bottom: .35rem; font-size: .88rem; text-transform: uppercase; letter-spacing: .05em; }
.info-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.75rem; font-size: .92rem; }
.info-table th { background: var(--secondary); color: white; text-align: left; padding: .75rem 1rem; font-weight: 600; font-size: .85rem; }
.info-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:nth-child(even) td { background: var(--bg); }
.step-list { counter-reset: steps; list-style: none; padding: 0; }
.step-list li { counter-increment: steps; padding: 1rem 1rem 1rem 3.5rem; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; position: relative; background: var(--white); }
.step-list li::before { content: counter(steps); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.8rem; height: 1.8rem; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; font-family: 'Poppins', sans-serif; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: .5rem 0 .5rem 2rem; position: relative; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border: none; }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: #10b981; font-weight: 700; }
.article-disclaimer { background: #f1f5f9; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-top: 2.5rem; font-size: .85rem; color: var(--text-light); }
.article-disclaimer strong { color: var(--text); display: block; margin-bottom: .4rem; }
.next-articles { margin-top: 3rem; }
.next-articles h3 { font-size: 1.2rem; margin-bottom: 1.25rem; }

/* ── BANNER ── */
.info-banner { background: var(--secondary); color: white; padding: 2.5rem 1.25rem; text-align: center; }
.info-banner h2 { color: white; font-size: 1.5rem; margin-bottom: .75rem; }
.info-banner p { color: rgba(255,255,255,.8); max-width: 540px; margin: 0 auto 1.5rem; }

/* ── FOOTER ── */
footer { background: #111827; color: rgba(255,255,255,.7); margin-top: 4rem; }
.footer-top { max-width: var(--max-width); margin: 0 auto; padding: 3rem 1.25rem 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .logo-text { color: white; }
.footer-brand p { font-size: .88rem; margin: 1rem 0 1.25rem; color: rgba(255,255,255,.55); line-height: 1.7; }
.footer-disclaimer { font-size: .78rem; color: rgba(255,255,255,.4); line-height: 1.6; border-top: 1px solid rgba(255,255,255,.08); padding-top: 1rem; margin-top: 1rem; }
.footer-col h4 { color: white; font-size: .9rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { font-size: .85rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem; text-align: center; font-size: .8rem; color: rgba(255,255,255,.35); max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); text-decoration: none; }

/* ── COOKIE BANNER ── */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: #111827; color: rgba(255,255,255,.85); padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; box-shadow: 0 -4px 16px rgba(0,0,0,.2); transform: translateY(100%); transition: transform .4s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: .88rem; margin: 0; flex: 1; min-width: 200px; }
.cookie-banner a { color: #93c5fd; }
.cookie-btns { display: flex; gap: .75rem; flex-shrink: 0; }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; border-radius: 6px; font-weight: 600; cursor: pointer; border: none; }
.btn-accept { background: var(--primary); color: white; }
.btn-accept:hover { background: var(--primary-dark); }
.btn-decline { background: rgba(255,255,255,.15); color: white; }
.btn-decline:hover { background: rgba(255,255,255,.25); }

/* ── UTIL ── */
.tag { display: inline-block; background: var(--accent); color: var(--primary); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: .2rem .65rem; border-radius: 50px; margin-right: .3rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.text-muted { color: var(--text-light); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }

/* ── PAGE HERO (non-article pages) ── */
.page-hero { background: linear-gradient(135deg, var(--secondary) 0%, #0d2340 100%); color: white; padding: 3rem 1.25rem 2.5rem; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: white; }
.page-hero p { color: rgba(255,255,255,.75); margin-top: .75rem; font-size: 1.05rem; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) { .hero { padding: 3.5rem 1.25rem 2.5rem; } .article-content { padding: 1.5rem; } .hero-stats { gap: 1.25rem; } }
