/* ============================================
   NN Group — Editorial Magazine Design System
   Aesthetic: Dark Navy + Gold — Premium Authority
   Fonts: Playfair Display + Source Sans 3
   ============================================ */

:root {
  --primary:       #0f172a;
  --secondary:     #1e293b;
  --tertiary:      #334155;
  --accent:        #d4a017;
  --accent-light:  #f0c040;
  --accent-dim:    rgba(212, 160, 23, 0.15);
  --text:          #1e293b;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --bg-dark:       #f1f5f9;
  --border:        #e2e8f0;
  --border-light:  #f1f5f9;
  --success:       #059669;
  --danger:        #dc2626;
  --warning:       #d97706;
  --info:          #0284c7;
  --wc-green:      #166534;
  --card-shadow:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --card-hover:    0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --focus-ring:    0 0 0 3px rgba(212,160,23,0.3);

  --font-heading:  'Playfair Display', 'Georgia', serif;
  --font-body:     'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  --max-width:     1200px;
  --content-width: 760px;
  --sidebar-width: 320px;
  --radius:        8px;
  --radius-lg:     14px;
  --radius-xl:     20px;
  --transition:    all 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -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: var(--transition); }
a:hover { color: var(--accent); }
button { cursor: pointer; font-family: var(--font-body); }
ul { list-style: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-heading); line-height: 1.25; }

/* ============ LAYOUT ============ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ BREAKING TICKER ============ */
.breaking-ticker {
  background: var(--danger);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: stretch;
  height: 34px;
  overflow: hidden;
}
.ticker-label {
  background: rgba(0,0,0,0.3);
  padding: 0 16px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  gap: 6px;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-items {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-items a { color: rgba(255,255,255,0.92); text-decoration: none; }
.ticker-items a:hover { color: #fff; text-decoration: underline; }
.ticker-items span { opacity: 0.5; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============ NAVBAR ============ */
.navbar {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

/* Logo */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-mark { display: flex; align-items: baseline; gap: 3px; }
.logo-nn {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -1px;
}
.logo-group {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 2px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu > li > a {
  color: rgba(255,255,255,0.82);
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { background: rgba(255,255,255,0.1); color: #fff; }
.nav-menu > li > a.wc-link { color: #4ade80; }
.nav-menu > li > a.wc-link:hover { color: #86efac; background: rgba(74,222,128,0.1); }
.chevron { transition: transform 0.2s; opacity: 0.6; }
.dropdown:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--secondary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  min-width: 230px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 500;
  animation: dropIn 0.18s ease;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { background: var(--accent-dim); color: var(--accent-light); }
.dropdown-menu li a.view-all { color: var(--accent); font-weight: 600; }
.dropdown-divider { border-top: 1px solid rgba(255,255,255,0.1); margin: 4px 0; }
.dropdown-divider + li { border-top: none !important; }

/* Search btn */
.nav-search-btn {
  display: flex !important;
  align-items: center;
  padding: 8px !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 7px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero-section {
  background: linear-gradient(140deg, var(--primary) 0%, #1a2744 45%, #0d2137 100%);
  padding: 68px 0 58px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212,160,23,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 40%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='80' height='80' fill='none'/%3E%3Ccircle cx='40' cy='40' r='1' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(212,160,23,0.3);
  color: var(--accent-light);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}
.hero-section h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
}
.hero-section h1 span { color: var(--accent); }
.hero-section p { color: rgba(255,255,255,0.68); font-size: 1.05rem; margin-bottom: 32px; }

.hero-search {
  display: flex;
  max-width: 600px;
  margin: 0 auto 28px;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
}
.hero-search input {
  flex: 1; padding: 15px 22px;
  border: none; font-size: 0.97rem; outline: none;
  font-family: var(--font-body); background: #fff;
  color: var(--text);
}
.hero-search input::placeholder { color: var(--text-light); }
.hero-search button {
  background: var(--accent); color: var(--primary);
  border: none; padding: 15px 28px;
  font-weight: 700; font-size: 0.93rem;
  transition: var(--transition);
  display: flex; align-items: center; gap: 7px;
}
.hero-search button:hover { background: var(--accent-light); }

.hero-stats {
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
  margin-top: 10px;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-family: var(--font-heading); font-size: 1.4rem; color: var(--accent); }
.hero-stat span { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; }

/* ============ TRENDING PILLS ============ */
.trending-section {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trending-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trending-label {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--danger); white-space: nowrap; display: flex; align-items: center; gap: 5px;
}
.trending-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.trending-pills a {
  background: #fff;
  border: 1px solid var(--border);
  padding: 5px 13px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 500; color: var(--text);
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.trending-pills a:hover {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

/* ============ SECTION HEADINGS ============ */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-header h2, section > .container > h2, section h2:not(.widget-title):not(.post-header h2) {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: var(--primary);
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}
.section-header h2::after, section > .container > h2::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 36px; height: 3px;
  background: var(--accent); border-radius: 2px;
}
.section-view-all {
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  display: flex; align-items: center; gap: 4px;
}
.section-view-all:hover { color: var(--accent-light); }

/* ============ POST CARDS ============ */
.featured-section, .latest-section { padding: 56px 0; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.featured-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
.featured-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }

.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--card-hover); transform: translateY(-4px); }
.card-image {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-dark), var(--border));
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .card-image img { transform: scale(1.05); }
.card-cat-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--accent); color: var(--primary);
  padding: 3px 10px; border-radius: 4px;
}
.card-cat-badge.wc { background: #16a34a; color: #fff; }
.card-cat-badge.health { background: var(--danger); color: #fff; }
.card-cat-badge.tech { background: var(--info); color: #fff; }
.card-cat-badge.careers { background: var(--warning); color: #fff; }
.card-cat-badge.finance { background: #7c3aed; color: #fff; }

/* Placeholder when no image */
.card-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--tertiary) 100%);
}
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.card-category { font-size: 0.72rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.card-date { font-size: 0.75rem; color: var(--text-light); }
.card-body h3 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 9px; line-height: 1.35; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--primary); }
.card-excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.card-views { font-size: 0.75rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.card-read { font-size: 0.78rem; font-weight: 600; color: var(--accent); }

/* Featured Hero Card */
.post-card.card-hero { grid-column: span 2; }
.post-card.card-hero .card-image { aspect-ratio: 16/8; }
.post-card.card-hero .card-body h3 { font-size: 1.35rem; }

/* ============ CATEGORY BLOCKS ============ */
.categories-section { padding: 0 0 56px; }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.cat-block {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 24px 20px; border-radius: var(--radius-lg);
  color: #fff; text-decoration: none;
  transition: var(--transition); position: relative; overflow: hidden;
}
.cat-block::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: var(--transition);
}
.cat-block:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(0,0,0,0.25); }
.cat-block:hover::before { background: rgba(0,0,0,0.08); }
.cat-block.blue   { background: linear-gradient(135deg, #1e3a5f, #2563eb); }
.cat-block.green  { background: linear-gradient(135deg, #14532d, #16a34a); }
.cat-block.purple { background: linear-gradient(135deg, #3b0764, #7c3aed); }
.cat-block.orange { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.cat-block.red    { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.cat-block.teal   { background: linear-gradient(135deg, #134e4a, #0d9488); }
.cat-block.yellow { background: linear-gradient(135deg, #78350f, #d97706); }
.cat-icon-lg { font-size: 2.2rem; margin-bottom: 12px; line-height: 1; }
.cat-block h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 5px; color: #fff; }
.cat-block p { font-size: 0.8rem; opacity: 0.82; line-height: 1.4; }
.cat-count { margin-top: 12px; font-size: 0.72rem; opacity: 0.7; font-weight: 600; background: rgba(255,255,255,0.15); padding: 2px 10px; border-radius: 10px; }

/* ============ WORLD CUP WIDGET ============ */
.worldcup-section {
  background: linear-gradient(135deg, #14532d 0%, #166534 40%, #15803d 100%);
  padding: 48px 0; position: relative; overflow: hidden;
}
.worldcup-section::before {
  content: '⚽';
  position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%);
  font-size: 200px; opacity: 0.06;
  pointer-events: none; line-height: 1;
}
.worldcup-section h2 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.worldcup-section h2::after { background: rgba(255,255,255,0.6); }
.worldcup-section .subtitle { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 24px; }
.wc-quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.wc-quick-links a {
  background: rgba(255,255,255,0.12);
  color: #fff; padding: 9px 20px;
  border-radius: 8px; font-weight: 600; font-size: 0.88rem;
  border: 1px solid rgba(255,255,255,0.25);
  transition: var(--transition);
}
.wc-quick-links a:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.wc-quick-links a.primary { background: #fff; color: #166534; border-color: #fff; }
.wc-quick-links a.primary:hover { background: #f0fdf4; }

/* ============ SINGLE POST LAYOUT ============ */
.single-post-layout { padding: 36px 0 70px; }
.post-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.post-main { min-width: 0; }

/* Breadcrumb */
.breadcrumb { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: '›'; margin: 0 7px; opacity: 0.4; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* Post Header */
.post-category-badge {
  margin-bottom: 12px;
}
.post-category-badge a {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); background: var(--accent-dim);
  padding: 4px 12px; border-radius: 4px;
}
.post-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 16px;
}
.post-excerpt {
  font-size: 1.1rem; color: var(--text-muted);
  line-height: 1.65; margin-bottom: 22px;
  font-weight: 400;
}

/* Post Meta */
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px; margin-bottom: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.author-info { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  border-radius: 50%; width: 44px; height: 44px; object-fit: cover;
  border: 2px solid var(--border);
  background: linear-gradient(135deg, var(--secondary), var(--tertiary));
}
.author-avatar-placeholder {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--primary); font-size: 1rem;
  flex-shrink: 0;
}
.author-name { font-weight: 700; color: var(--primary); font-size: 0.9rem; display: block; }
.author-credential { font-size: 0.74rem; color: var(--text-muted); display: block; }
.post-date-meta { font-size: 0.82rem; color: var(--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.updated-badge { background: var(--success); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.05em; }
.read-time, .view-count { display: flex; align-items: center; gap: 4px; }

/* Social Share */
.social-share { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.share-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 15px; border: none; border-radius: 7px;
  font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.share-btn.twitter  { background: #000; color: #fff; }
.share-btn.whatsapp { background: #25d366; color: #fff; }
.share-btn.linkedin { background: #0a66c2; color: #fff; }
.share-btn.copy     { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }

/* Featured Image */
.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  background: linear-gradient(135deg, var(--bg-dark), var(--border));
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.post-featured-image figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: rgba(255,255,255,0.85); font-size: 0.78rem;
  padding: 16px 16px 12px; text-align: center;
}

/* TOC */
.toc-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.toc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.toc-header h2 {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700;
  color: var(--primary); margin: 0;
  display: flex; align-items: center; gap: 7px;
}
.toc-header h2::after { display: none; }
.toc-toggle {
  background: none; border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 5px; font-size: 0.78rem;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.toc-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
#tocContent ol { padding-left: 18px; }
#tocContent ol li { margin-bottom: 5px; }
#tocContent a { color: var(--primary); font-size: 0.9rem; }
#tocContent a:hover { color: var(--accent); }

/* Article Body */
.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem; margin: 42px 0 16px;
  color: var(--primary); padding-bottom: 10px;
  border-bottom: 2px solid var(--border); display: block;
}
.post-content h2::after { display: none; }
.post-content h3 { font-size: 1.2rem; margin: 28px 0 12px; color: var(--secondary); font-family: var(--font-heading); }
.post-content h4 { font-size: 1.05rem; margin: 20px 0 8px; font-weight: 700; }
.post-content p { margin-bottom: 1.4rem; }
.post-content ul, .post-content ol { padding-left: 26px; margin-bottom: 1.4rem; }
.post-content li { margin-bottom: 8px; }
.post-content strong { font-weight: 700; color: var(--primary); }
.post-content em { font-style: italic; }
.post-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.post-content a:hover { color: var(--accent); }

.post-content table {
  width: 100%; border-collapse: collapse;
  margin: 1.5rem 0; font-size: 0.9rem;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--card-shadow);
}
.post-content th {
  background: var(--primary); color: #fff;
  padding: 11px 15px; text-align: left;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700;
}
.post-content td { padding: 10px 15px; border-bottom: 1px solid var(--border); }
.post-content tr:nth-child(even) td { background: var(--bg-alt); }
.post-content tr:last-child td { border-bottom: none; }

.post-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-dim);
  padding: 18px 22px; margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; font-size: 1.05rem;
}
.post-content img { border-radius: var(--radius); margin: 24px 0; width: 100%; }
.post-content code {
  background: var(--bg-dark); padding: 2px 7px; border-radius: 4px;
  font-family: 'Courier New', monospace; font-size: 0.88em; color: var(--danger);
}
.post-content pre {
  background: var(--primary); color: #e2e8f0;
  padding: 20px; border-radius: var(--radius); overflow-x: auto;
  margin: 1.5rem 0; font-size: 0.88rem; line-height: 1.6;
}
.post-content pre code { background: none; color: inherit; padding: 0; }

/* Info box */
.info-box {
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: var(--radius); padding: 16px 20px; margin: 24px 0;
}
.info-box.warning { background: #fffbeb; border-color: #fde68a; }
.info-box.success { background: #f0fdf4; border-color: #bbf7d0; }

/* Author Box */
.author-box {
  display: flex; gap: 22px;
  background: linear-gradient(135deg, var(--bg-alt), #f0f4f8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  margin: 40px 0;
}
.author-box-photo {
  border-radius: 50%; width: 80px; height: 80px;
  object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--accent);
  background: linear-gradient(135deg, var(--secondary), var(--tertiary));
}
.author-box-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--primary); font-size: 1.8rem;
  flex-shrink: 0; border: 3px solid var(--accent);
}
.author-box-content { flex: 1; min-width: 0; }
.author-box-content h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 4px; font-family: var(--font-body); }
.author-box-content a strong { font-family: var(--font-heading); font-size: 1.1rem; color: var(--primary); }
.author-qual { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 8px; }
.author-box-content p { font-size: 0.9rem; color: var(--text-muted); margin-top: 6px; }
.author-linkedin {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.82rem; font-weight: 700; color: #0a66c2; margin-top: 8px;
}

/* FAQ */
.faq-section { margin: 42px 0; }
.faq-section > h2 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 20px; }
.faq-section > h2::after { display: none; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; overflow: hidden;
}
.faq-question {
  width: 100%; background: none; border: none;
  padding: 14px 18px; font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 700; color: var(--primary);
  text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question.open { background: var(--primary); color: #fff; }
.faq-chevron { transition: transform 0.2s; flex-shrink: 0; }
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-answer.open { padding: 14px 18px; max-height: 500px; }
.faq-answer p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* Related Posts */
.related-posts { margin: 44px 0; }
.related-posts h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 18px; color: var(--primary); }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.related-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.related-card:hover { box-shadow: var(--card-shadow); transform: translateY(-2px); }
.related-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-dark); }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.related-card:hover .related-card-img img { transform: scale(1.04); }
.related-card p { padding: 10px 13px; font-size: 0.85rem; font-weight: 700; color: var(--text); line-height: 1.4; }

/* Tags */
.post-tags { margin: 24px 0; font-size: 0.85rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.post-tags strong { margin-right: 4px; }
.tag-pill {
  display: inline-block; background: var(--bg-alt);
  border: 1px solid var(--border); padding: 4px 13px;
  border-radius: 20px; color: var(--text); transition: var(--transition);
}
.tag-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Post Content Progress Bar */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--accent); z-index: 9999;
  transition: width 0.1s; width: 0%;
}

/* Sticky Share Mobile */
.sticky-share-mobile { display: none; }

/* ============ SIDEBAR ============ */
.sidebar { position: sticky; top: 80px; }
.widget {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px; margin-bottom: 22px;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700; color: var(--primary);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: 7px;
}

/* Search Widget */
.widget-search { padding: 14px; }
.search-input-wrap {
  display: flex; border: 1.5px solid var(--border);
  border-radius: 8px; overflow: hidden; transition: var(--transition);
}
.search-input-wrap:focus-within { border-color: var(--accent); box-shadow: var(--focus-ring); }
.search-input-wrap input {
  flex: 1; padding: 9px 13px; border: none; outline: none;
  font-family: var(--font-body); font-size: 0.88rem; background: var(--bg);
}
.search-input-wrap button {
  background: var(--primary); color: #fff; border: none;
  padding: 0 14px; cursor: pointer; display: flex; align-items: center;
  transition: var(--transition);
}
.search-input-wrap button:hover { background: var(--accent); }

/* Trending List */
.trending-list { counter-reset: trending; }
.trending-list li {
  padding: 10px 0; border-bottom: 1px solid var(--border-light);
  counter-increment: trending;
}
.trending-list li:last-child { border-bottom: none; padding-bottom: 0; }
.trending-list li a {
  display: flex; align-items: flex-start; gap: 10px; color: var(--text);
  font-size: 0.875rem; font-weight: 600; line-height: 1.4;
}
.trending-list li a:hover { color: var(--accent); }
.trending-num {
  min-width: 22px; height: 22px; border-radius: 5px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; flex-shrink: 0; margin-top: 1px;
}
.trending-list li:nth-child(1) .trending-num { background: var(--accent); color: var(--primary); }
.trending-list li:nth-child(2) .trending-num { background: var(--secondary); }
.trending-views { font-size: 0.72rem; color: var(--text-light); display: block; margin-left: 32px; margin-top: 2px; }

/* Categories List */
.cat-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border-light);
}
.cat-list li:last-child { border-bottom: none; }
.cat-list li a { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 0.875rem; font-weight: 500; }
.cat-list li a:hover { color: var(--accent); }
.cat-list .cat-icon { font-size: 1rem; }
.cat-count { font-size: 0.72rem; color: var(--text-light); background: var(--bg-dark); padding: 2px 8px; border-radius: 10px; font-weight: 700; }

/* WC Widget */
.widget-wc { background: linear-gradient(135deg, #14532d, #166534); border-color: #166534; }
.widget-wc .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,0.2); }
.wc-widget-links { display: flex; flex-wrap: wrap; gap: 7px; }
.wc-widget-links a {
  background: rgba(255,255,255,0.15); color: #fff;
  padding: 6px 13px; border-radius: 6px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2); transition: var(--transition);
}
.wc-widget-links a:hover { background: rgba(255,255,255,0.3); }
.wc-widget-links a:last-child { background: #fff; color: #166534; border-color: #fff; }

/* Newsletter Widget */
.widget-newsletter { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-color: var(--tertiary); }
.widget-newsletter .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,0.15); }
.widget-newsletter p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-bottom: 12px; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input {
  padding: 9px 13px; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 7px; background: rgba(255,255,255,0.1); color: #fff;
  font-family: var(--font-body); font-size: 0.88rem; outline: none;
  transition: var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--accent); background: rgba(255,255,255,0.15); }
.newsletter-form button {
  background: var(--accent); color: var(--primary);
  border: none; padding: 9px; border-radius: 7px;
  font-weight: 800; font-size: 0.9rem; transition: var(--transition);
}
.newsletter-form button:hover { background: var(--accent-light); }
.newsletter-note { color: rgba(255,255,255,0.4) !important; font-size: 0.72rem !important; margin-top: 6px !important; margin-bottom: 0 !important; }

/* Tag Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 4px 11px; border-radius: 15px;
  font-size: 0.78rem; color: var(--text); font-weight: 500;
  transition: var(--transition);
}
.tag-cloud a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============ CATEGORY PAGE ============ */
.category-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 44px 0 40px; text-align: center;
}
.category-hero h1 { font-family: var(--font-heading); font-size: 2rem; color: #fff; margin-bottom: 8px; }
.category-hero .cat-big-icon { font-size: 3rem; margin-bottom: 12px; }
.category-hero p { color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto; }
.category-layout { padding: 48px 0 70px; }
.category-grid-layout { display: grid; grid-template-columns: 1fr 300px; gap: 44px; }

/* ============ HOMEPAGE SPECIFIC ============ */
main.home > section:nth-child(odd):not(.hero-section):not(.worldcup-section) {
  background: var(--bg);
}
main.home > section:nth-child(even):not(.hero-section):not(.worldcup-section) {
  background: var(--bg-alt);
}

/* ============ ABOUT PAGE ============ */
.about-hero { padding: 60px 0 40px; text-align: center; }
.about-hero h1 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 14px; color: var(--primary); }
.about-hero .lead { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.about-section { padding: 40px 0; border-top: 1px solid var(--border); }
.about-section h2 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 16px; color: var(--primary); }
.about-section ul, .about-section ol { padding-left: 24px; }
.about-section li { margin-bottom: 8px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.team-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; text-align: center;
}
.team-card img { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover; border: 3px solid var(--accent); background: var(--bg-dark); }
.team-card h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 4px; }
.team-card span { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 10px; }
.team-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ============ ADMIN STYLES ============ */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--bg-alt); }
.admin-sidebar { background: var(--primary); padding: 24px 0; }
.admin-sidebar .logo-mark { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.admin-nav li a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: rgba(255,255,255,0.7); font-size: 0.88rem; transition: var(--transition); }
.admin-nav li a:hover, .admin-nav li a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-main { padding: 32px; overflow-x: hidden; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-header h1 { font-family: var(--font-heading); font-size: 1.6rem; }
.admin-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.admin-stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.admin-stat .stat-icon { font-size: 1.8rem; margin-bottom: 8px; }
.admin-stat .stat-value { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.admin-stat .stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ============ FOOTER ============ */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.75); padding: 56px 0 0; }
.footer-logo { display: flex; align-items: baseline; gap: 3px; margin-bottom: 14px; }
.footer-logo .logo-nn { font-family: var(--font-heading); font-size: 1.5rem; color: var(--accent); font-weight: 800; }
.footer-logo .logo-group { font-size: 0.6rem; color: rgba(255,255,255,0.4); letter-spacing: 0.18em; text-transform: uppercase; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer-about p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); transition: var(--transition);
}
.footer-social a:hover { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.footer-col h4 { font-family: var(--font-heading); color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { color: rgba(255,255,255,0.62); font-size: 0.875rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--accent); }
.footer-badge { margin-top: 20px; }
.footer-badge span { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); font-size: 0.78rem; padding: 5px 12px; border-radius: 20px; }

.footer-categories {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}
.footer-categories a {
  color: rgba(255,255,255,0.55); font-size: 0.8rem;
  padding: 4px 12px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.footer-categories a:hover { color: var(--accent); border-color: var(--accent-dim); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.footer-disclaimer { font-size: 0.72rem; max-width: 700px; margin: 6px auto 0 !important; }

/* ============ SEARCH PAGE ============ */
.search-hero { background: var(--bg-alt); padding: 36px 0; border-bottom: 1px solid var(--border); }
.search-hero form { max-width: 600px; }
.search-bar { display: flex; border: 2px solid var(--primary); border-radius: 10px; overflow: hidden; }
.search-bar input { flex: 1; padding: 13px 18px; border: none; outline: none; font-size: 1rem; font-family: var(--font-body); }
.search-bar button { background: var(--primary); color: #fff; border: none; padding: 0 22px; font-weight: 700; font-size: 0.93rem; transition: var(--transition); }
.search-bar button:hover { background: var(--accent); color: var(--primary); }
.search-results { padding: 40px 0 70px; }
.search-result-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.search-result-item:last-child { border-bottom: none; }
.search-result-thumb { width: 140px; height: 88px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; background: var(--bg-dark); }
.search-result-body h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 7px; }
.search-result-body p { font-size: 0.875rem; color: var(--text-muted); }

/* ============ 404 PAGE ============ */
.error-page { text-align: center; padding: 100px 20px; }
.error-page h1 { font-family: var(--font-heading); font-size: 5rem; color: var(--accent); margin-bottom: 8px; }
.error-page h2 { font-size: 1.5rem; margin-bottom: 14px; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; }

/* ============ PAGINATION ============ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; transition: var(--transition);
  border: 1px solid var(--border);
}
.pagination a { color: var(--text); }
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination span.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============ UTILS ============ */
.badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.badge-gold { background: var(--accent); color: var(--primary); }
.badge-red { background: var(--danger); color: #fff; }
.badge-green { background: var(--success); color: #fff; }
.badge-blue { background: var(--info); color: #fff; }
.badge-breaking { background: var(--danger); color: #fff; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.7} }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 8px;
  font-weight: 700; font-size: 0.9rem; border: none;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-accent { background: var(--accent); color: var(--primary); }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }

/* Image placeholder emoji bg */
.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--secondary), var(--tertiary));
  font-size: 4rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
  .footer-grid .footer-col:last-child { grid-column: span 1; }
}

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .post-card.card-hero { grid-column: span 2; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr; }
  .category-grid-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

@media (max-width: 640px) {
  .nav-menu { display: none; flex-direction: column; position: fixed; top: 96px; left: 0; right: 0; bottom: 0; background: var(--primary); padding: 20px 16px; z-index: 999; overflow-y: auto; gap: 4px; }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 12px 14px; font-size: 1rem; justify-content: space-between; }
  .dropdown-menu { position: static; box-shadow: none; background: rgba(255,255,255,0.07); border-radius: var(--radius); margin-top: 4px; border: none; animation: none; }
  .dropdown-menu li a { padding: 10px 20px; }
  .nav-toggle { display: flex; }

  .featured-grid { grid-template-columns: 1fr; }
  .post-card.card-hero { grid-column: span 1; }
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-block { padding: 18px 14px; }
  .hero-search { border-radius: var(--radius-lg); flex-direction: column; }
  .hero-search input { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .hero-search button { border-radius: 0 0 var(--radius-lg) var(--radius-lg); justify-content: center; }
  .hero-stats { gap: 20px; }

  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .team-grid { grid-template-columns: 1fr; }
  .post-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .author-box { flex-direction: column; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-section { padding: 44px 0 38px; }

  .sticky-share-mobile {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--primary); justify-content: space-around;
    padding: 10px 16px; z-index: 200;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  }
  .sticky-share-mobile button {
    background: none; border: none; color: #fff;
    font-size: 1.3rem; padding: 6px 14px; border-radius: 6px;
    transition: var(--transition);
  }
  .sticky-share-mobile button:hover { background: rgba(255,255,255,0.1); }
}

@media (max-width: 400px) {
  .categories-grid { grid-template-columns: 1fr; }
  .hero-section h1 { font-size: 1.7rem; }
}

/* ============ PRINT ============ */
@media print {
  .site-header, .sidebar, .social-share, .related-posts, .site-footer, .sticky-share-mobile { display: none !important; }
  .post-grid { grid-template-columns: 1fr !important; }
  body { font-size: 12pt; }
}
