/* ================================================================
   NORGE STREAM IPTV — WordPress Theme Stylesheet
   Design: Dark warm (#0A0A12), Rouge norvégien + Bleu, Glassmorphism
   Inspirations: Linear, Stripe, Apple Vision Pro
   ================================================================ */

/* ---- Design tokens ---- */
:root {
  /* Background — warm dark bias (pas #000) */
  --bg:        #0A0A12;
  --bg-soft:   #12121E;
  --bg-card:   rgba(26,26,46,0.65);
  /* Accent — palette norvégienne */
  --primary:      #BA0C2F;
  --primary-light:#E8354F;
  --primary-dark: #8C0A24;
  --accent:       #00205B;
  --accent-mid:   #1A3F7A;
  --accent-light: #2A5A9E;
  --primary-glow: rgba(186,12,47,0.15);
  /* Text */
  --text:      #F2F2F2;
  --text-soft: #B8B8C8;
  --text-muted:#8888A0;
  /* Utility */
  --success:   #00E676;
  --warning:   #FFB300;
  --glass:     rgba(0,32,91,0.12);
  --border:    1px solid rgba(186,12,47,0.15);
  --border-hover: 1px solid rgba(186,12,47,0.4);
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  /* Typography */
  --font:      'Space Grotesk', system-ui, -apple-system, sans-serif;
  /* Shadows */
  --shadow:    0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.6);
  --glow:      0 0 40px rgba(186,12,47,0.12);
  /* Layout */
  --header-h:  68px;
  --max-w:     1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(18,20,20,0.92);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: var(--border);
  height: var(--header-h);
  transition: background .3s;
}
.site-header.scrolled {
  background: rgba(18,20,20,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: .9rem; font-weight: 800; color: #fff; white-space: nowrap; letter-spacing: -.01em; }
.logo-sub  { font-size: .55rem; font-weight: 700; color: var(--primary); letter-spacing: .2em; text-transform: uppercase; }

/* Nav */
.primary-nav { margin-left: auto; }
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav-link:hover,
.nav-item.active .nav-link { color: var(--primary); background: rgba(186,12,47,0.06); }

/* CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--bg) !important;
  font-size: .85rem;
  font-weight: 800;
  border-radius: 50px;
  white-space: nowrap;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(186,12,47,0.25);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(186,12,47,0.45); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(186,12,47,0.15);
  border-radius: 8px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span { width: 100%; height: 2px; background: var(--text-soft); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ================================================================
   BLOG HERO
   ================================================================ */
.blog-hero {
  background: linear-gradient(135deg, rgba(0,32,91,0.06), rgba(186,12,47,0.03));
  border-bottom: var(--border);
  padding: 64px 24px;
  text-align: center;
}
.blog-hero-inner { max-width: 700px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(186,12,47,0.08);
  border: 1px solid rgba(186,12,47,0.15);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.blog-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.blog-hero p { font-size: 1rem; color: var(--text-soft); }

/* ================================================================
   BLOG CONTAINER & GRID
   ================================================================ */
.blog-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Category filter */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.cat-chip {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid rgba(186,12,47,0.12);
  background: rgba(22,28,28,0.6);
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: all .2s;
}
.cat-chip:hover, .cat-chip.active {
  border-color: var(--primary);
  background: rgba(186,12,47,0.08);
  color: var(--primary);
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

/* Post card */
.post-card {
  background: var(--glass);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .3s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(186,12,47,0.08);
  border-color: rgba(186,12,47,0.25);
}

.post-card-img-link { display: block; overflow: hidden; aspect-ratio: 16/9; }
.post-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.post-card:hover .post-card-img { transform: scale(1.05); }
.post-card-img-placeholder {
  background: linear-gradient(135deg, rgba(0,32,91,0.06), rgba(186,12,47,0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-cat {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin-bottom: 8px;
  display: inline-block;
}
.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
}
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt { font-size: .82rem; color: var(--text-soft); line-height: 1.55; margin-bottom: 14px; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: auto;
}
.post-card-meta span { display: flex; align-items: center; gap: 4px; }

/* Pagination */
.blog-pagination { display: flex; justify-content: center; }
.blog-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(186,12,47,0.1);
  background: rgba(22,28,28,0.6);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 0 12px;
  transition: all .2s;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  border-color: var(--primary);
  background: rgba(186,12,47,0.08);
  color: var(--primary);
}

.no-posts { text-align: center; padding: 60px 24px; }
.no-posts p { color: var(--text-soft); margin-bottom: 20px; }

/* ================================================================
   ARTICLE HERO (single post)
   ================================================================ */
.article-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #161919, #1A2020);
}
.article-hero-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.article-hero-img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,20,20,0.97) 0%, rgba(18,20,20,0.5) 60%, transparent 100%);
}
.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  width: 100%;
}
.article-cat-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  background: rgba(186,12,47,0.08);
  border: 1px solid rgba(186,12,47,0.2);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.article-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .82rem;
  color: var(--text-soft);
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* ================================================================
   ARTICLE LAYOUT
   ================================================================ */
.article-wrap { max-width: var(--max-w); margin: 0 auto; padding: 40px 24px 80px; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ---- TOC ---- */
.toc-box {
  background: var(--glass);
  border: var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  padding: 18px 20px;
  margin-bottom: 28px;
}
.toc-title {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#tocNav ol, #sidebarTocNav ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
#tocNav li, #sidebarTocNav li { padding-left: calc(var(--depth,0) * 12px); }
#tocNav a, #sidebarTocNav a {
  font-size: .83rem;
  color: var(--text-soft);
  transition: color .2s;
  line-height: 1.4;
  display: block;
  padding: 3px 0;
}
#tocNav a:hover, #sidebarTocNav a:hover { color: var(--primary); }
#tocNav a.active, #sidebarTocNav a.active { color: var(--primary); font-weight: 700; }

/* ---- Article body ---- */
.article-body {
  font-size: .97rem;
  line-height: 1.8;
  color: var(--text-soft);
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 40px 0 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(186,12,47,0.06);
  scroll-margin-top: calc(var(--header-h) + 20px);
  letter-spacing: -.01em;
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.article-body h4 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.article-body li::marker { color: var(--primary); }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body em { color: var(--text-soft); font-style: italic; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: #fff; }
.article-body blockquote {
  border-left: 3px solid var(--primary);
  margin: 24px 0;
  padding: 16px 20px;
  background: rgba(186,12,47,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-soft);
}
.article-body code {
  background: rgba(186,12,47,0.06);
  border: 1px solid rgba(186,12,47,0.1);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: .85em;
  color: var(--primary);
  font-family: 'Courier New', monospace;
}
.article-body pre {
  background: rgba(0,0,0,0.35);
  border: var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.article-body pre code { background: none; border: none; padding: 0; font-size: .88rem; color: var(--text-soft); }
.article-body img {
  border-radius: var(--radius);
  margin: 20px 0;
  border: var(--border);
  width: 100%;
  height: auto;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .88rem;
}
.article-body th {
  background: rgba(186,12,47,0.08);
  color: var(--primary);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid rgba(186,12,47,0.1);
}
.article-body td {
  padding: 10px 14px;
  border: 1px solid rgba(186,12,47,0.06);
  color: var(--text-soft);
}
.article-body tr:nth-child(even) td { background: rgba(186,12,47,0.02); }

/* ---- Tags ---- */
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 28px 0; }
.tag-chip {
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid rgba(186,12,47,0.12);
  background: rgba(186,12,47,0.04);
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .2s;
}
.tag-chip:hover { color: var(--primary); border-color: rgba(186,12,47,0.3); }

/* ---- Share ---- */
.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  padding: 18px 20px;
  background: var(--glass);
  border: var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}
.share-label { font-size: .78rem; font-weight: 700; color: var(--text-muted); margin-right: 4px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 700;
  border: 1px solid;
  cursor: pointer;
  transition: all .2s;
  background: none;
  text-decoration: none;
}
.share-btn.fb { color: #1877F2; border-color: rgba(24,119,242,0.2); }
.share-btn.fb:hover { background: rgba(24,119,242,0.08); }
.share-btn.tw { color: #fff; border-color: rgba(255,255,255,0.1); }
.share-btn.tw:hover { background: rgba(255,255,255,0.05); }
.share-btn.wa { color: #25D366; border-color: rgba(37,211,102,0.2); }
.share-btn.wa:hover { background: rgba(37,211,102,0.08); }
.share-btn.copy { color: var(--primary); border-color: rgba(186,12,47,0.2); }
.share-btn.copy:hover { background: rgba(186,12,47,0.06); }
.share-btn.copied { color: var(--success); border-color: rgba(0,230,118,0.25); }

/* ---- CTA Box ---- */
.article-cta-box {
  margin: 36px 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,32,91,0.1), rgba(186,12,47,0.04));
  border: 1px solid rgba(186,12,47,0.15);
}
.cta-box-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  flex-wrap: wrap;
}
.cta-box-eyebrow { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 6px; }
.cta-box-title { font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; }
.cta-box-desc { font-size: .85rem; color: var(--text-soft); margin-bottom: 8px; }
.cta-box-price { font-size: .9rem; color: var(--text-soft); }
.cta-box-price strong { color: var(--primary); font-size: 1.1rem; }
.cta-box-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--bg) !important;
  font-weight: 800;
  font-size: .9rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .25s;
  box-shadow: 0 4px 18px rgba(186,12,47,0.25);
}
.cta-box-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(186,12,47,0.45); }

/* ---- Post navigation ---- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}
.post-nav-item {
  background: var(--glass);
  border: var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  padding: 16px 18px;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-nav-item:hover { border-color: rgba(186,12,47,0.25); }
.post-nav-item.next { text-align: right; }
.pn-dir { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
.pn-title { font-size: .88rem; font-weight: 600; color: var(--text); }

/* ---- Related posts ---- */
.related-posts { margin: 36px 0; }
.related-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card {
  background: var(--glass);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s cubic-bezier(.22,1,.36,1);
  display: block;
}
.related-card:hover { border-color: rgba(186,12,47,0.25); transform: translateY(-3px); }
.related-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related-card-placeholder { aspect-ratio: 16/9; background: rgba(186,12,47,0.04); }
.related-card-body { padding: 12px; }
.related-date { font-size: .7rem; color: var(--text-muted); display: block; margin-bottom: 4px; }
.related-card-body h4 { font-size: .85rem; font-weight: 700; color: var(--text); line-height: 1.4; }

/* ---- Sidebar ---- */
.article-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-cta {
  background: linear-gradient(135deg, rgba(0,32,91,0.08), rgba(186,12,47,0.04));
  border: 1px solid rgba(186,12,47,0.15);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.sidebar-cta-eyebrow { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); margin-bottom: 6px; }
.sidebar-cta-title { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.sidebar-cta-price { font-size: .88rem; color: var(--text-soft); margin-bottom: 14px; }
.sidebar-cta-price strong { color: var(--primary); }
.sidebar-cta-features { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.sidebar-cta-features li {
  font-size: .8rem;
  color: var(--text-soft);
  padding-left: 18px;
  position: relative;
}
.sidebar-cta-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.sidebar-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--bg) !important;
  font-weight: 800;
  font-size: .88rem;
  border-radius: 10px;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(186,12,47,0.2);
}
.sidebar-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(186,12,47,0.35); }

.sidebar-toc {
  background: var(--glass);
  border: var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  padding: 18px;
}

/* ================================================================
   COMMENTS
   ================================================================ */
.comments-section { margin-top: 40px; }
.comments-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 20px; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.comment { background: var(--glass); border: var(--border); border-radius: var(--radius); padding: 18px; }
.comment-body { font-size: .88rem; color: var(--text-soft); }
.comment-form-wrap { margin-top: 32px; }
.comment-form label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 6px; }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(22,28,28,0.8);
  border: var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
  margin-bottom: 14px;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--primary); }
.comment-form textarea { resize: vertical; min-height: 100px; }
.comment-form .submit input[type=submit],
.form-submit input[type=submit] {
  padding: 11px 28px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--bg);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all .25s;
}

/* ================================================================
   PAGE TEMPLATE
   ================================================================ */
.page-main { min-height: 60vh; }
.page-container { max-width: 820px; margin: 0 auto; padding: 60px 24px; }
.page-header h1 { font-size: 2rem; font-weight: 900; margin-bottom: 24px; letter-spacing: -.02em; }
.page-content { font-size: .97rem; line-height: 1.8; color: var(--text-soft); }
.page-content h2 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin: 28px 0 12px; }
.page-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { padding-left: 22px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 5px; }

/* ================================================================
   404 PAGE
   ================================================================ */
.error-main { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.error-container { text-align: center; max-width: 480px; }
.error-code { font-size: 6rem; font-weight: 900; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 16px; }
.error-container h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.error-container p { color: var(--text-soft); margin-bottom: 28px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   GENERIC BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--bg) !important;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 800;
  border-radius: 50px;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(186,12,47,0.25);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(186,12,47,0.4); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  background: transparent;
  color: var(--text-soft) !important;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 700;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all .25s;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary) !important; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: #0A0C0C;
  border-top: var(--border);
  margin-top: 60px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(186,12,47,0.04);
}
.footer-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin: 14px 0 18px; }
.footer-contacts { display: flex; flex-direction: column; gap: 8px; }
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 700;
  border: 1px solid;
  width: fit-content;
  transition: all .2s;
}
.contact-chip.wapp { color: #25D366; border-color: rgba(37,211,102,0.2); background: rgba(37,211,102,0.04); }
.contact-chip.wapp:hover { background: rgba(37,211,102,0.1); }
.contact-chip.gmail { color: #EA4335; border-color: rgba(234,67,53,0.2); background: rgba(234,67,53,0.04); }
.contact-chip.gmail:hover { background: rgba(234,67,53,0.1); }

.footer-col-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links-col a { font-size: .85rem; color: var(--text-muted); transition: color .2s; }
.footer-links-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: .75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-legal-links { display: flex; gap: 14px; }
.footer-legal-links a { color: var(--text-muted); text-decoration: underline; }
.footer-legal-links a:hover { color: var(--primary); }

/* Floating WhatsApp */
.float-wapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: all .25s;
}
.float-wapp:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,0.5); }

/* ================================================================
   GSAP ANIMATION UTILITY CLASSES
   ================================================================ */
/* Elements start hidden, revealed by GSAP */
.gs-fade { opacity: 0; transform: translateY(30px); }
.gs-fade-up { opacity: 0; transform: translateY(50px); }
.gs-fade-left { opacity: 0; transform: translateX(-40px); }
.gs-fade-right { opacity: 0; transform: translateX(40px); }
.gs-scale { opacity: 0; transform: scale(0.92); }
.gs-split-char { opacity: 0; display: inline-block; }

/* Sticky stack cards (Stripe-style) */
.sticky-stack-container {
  position: relative;
}
.sticky-stack-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border-radius: var(--radius-xl);
  background: var(--glass);
  border: var(--border);
  backdrop-filter: blur(16px);
  padding: 40px;
  margin-bottom: 20px;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}

/* Horizontal scroll section */
.h-scroll-section {
  overflow: hidden;
  position: relative;
}
.h-scroll-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}
.h-scroll-track > * {
  flex-shrink: 0;
  width: 340px;
}

/* Pinned scrub (Apple Vision Pro style) */
.pinned-section {
  position: relative;
  overflow: hidden;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(18,20,20,0.98);
    backdrop-filter: blur(24px);
    border-bottom: var(--border);
    padding: 16px 24px;
    display: none;
    margin: 0;
  }
  .primary-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-link { padding: 10px 14px; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-box-inner { flex-direction: column; text-align: center; }
  .toc-box { display: none; }
}

@media (max-width: 480px) {
  .blog-hero { padding: 40px 16px; }
  .blog-container { padding: 28px 16px 60px; }
  .article-wrap { padding: 24px 16px 60px; }
  .article-title { font-size: 1.4rem; }
}
