/* ============================================================
   sportspiral.com — Sports Blog Stylesheet for WordPress/Astra
   Color Palette:
     Primary:   #0d1117  (Deep dark navy)
     Accent:    #e63946  (Sporty red)
     Gold:      #f4a717  (Highlight / badges)
     Light BG:  #f5f5f5
     Card BG:   #ffffff
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #0d1117;
  --accent:    #e63946;
  --gold:      #f4a717;
  --light:     #f5f5f5;
  --white:     #ffffff;
  --text:      #222;
  --muted:     #777;
  --border:    #e0e0e0;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(0,0,0,0.10);
  --nav-h:     56px;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body) !important;
  background: var(--light) !important;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
ul { list-style: none; }

.spiral-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ═══════════ HIDE ALL ASTRA DEFAULT HEADER / FOOTER / UI ═══════════ */

/* Astra Header — every possible wrapper and builder element */
.ast-above-header-wrap,
.ast-main-header-wrap,
.ast-below-header-wrap,
.ast-above-header,
.ast-main-header-bar-alignment,
#ast-desktop-header,
#ast-mobile-header,
.ast-site-header-wrap,
header#masthead,
header.site-header,
.main-header-bar-wrap,
.main-header-bar,
.ast-header-break-point .main-header-bar,
.site-header-primary-section-left,
.site-header-primary-section-center,
.site-header-primary-section-right,
.ast-desktop-header-content,
.ast-mobile-header-content,
.ast-builder-grid-row,
.ast-builder-menu,
.ast-mobile-popup-drawer,
.ast-mobile-popup-overlay,
.ast-mobile-header-wrap,
.ast-above-header-bar,
.ast-below-header-bar,
.ast-primary-header-bar,
.ast-header-custom-item,
.ast-builder-layout-element,
#ast-hf-mobile-popup,
.ast-hfb-header,
.ast-site-identity,
#astra-mobile-popup-wrapper,

/* Astra Footer — every possible wrapper */
.site-footer,
.site-below-footer-wrap,
.site-above-footer-wrap,
.ast-footer-overlay,
.ast-small-footer,
.ast-small-footer-section-1,
.ast-small-footer-section-2,
.ast-scroll-to-top-right,
#astra-footer-markup,
.ast-footer-copyright,
.ast-builder-footer,
.ast-builder-footer-grid-columns,
footer.site-footer,
#colophon,
.site-footer-primary-section,
.site-footer-above-section,
.site-footer-below-section,
.ast-hfb-footer,

/* Astra Page Title / Breadcrumbs / Entry Header */
.ast-archive-description,
.entry-header .entry-title,
.ast-single-post-order .entry-header,
.ast-breadcrumbs-wrapper,
.ast-breadcrumbs-inner,
.trail-browse,
.trail-items,
.ast-single-related-posts-container {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Override Astra container */
.ast-container {
  max-width: 1200px !important;
  padding: 0 16px !important;
}

#content.site-content {
  margin: 0 !important;
  padding: 0 !important;
}

#primary {
  margin: 0 !important;
  padding: 0 !important;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ============================================================
   TOP BAR
============================================================ */
.spiral-top-bar {
  background: var(--primary);
  color: #aaa;
  font-size: 12px;
  padding: 5px 0;
}
.spiral-top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.spiral-top-bar-right a {
  color: #aaa;
  margin-left: 12px;
  font-size: 14px;
  transition: color .2s;
}
.spiral-top-bar-right a:hover { color: var(--accent); }

/* ============================================================
   HEADER — (Logo · Nav · Controls)
   Sticky, dark background, full-width
============================================================ */
.spiral-site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 3px 14px rgba(0,0,0,.35);
  transition: background .3s;
}

body.dark-mode .spiral-site-header { background: #080b10; }

.spiral-header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 62px;
}

/* ── Logo ── */
.spiral-logo {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.spiral-logo:hover { color: inherit; }
.logo-runner {
  display: inline-block;
  color: var(--accent);
  font-size: 1.6rem;
  margin-right: 6px;
  position: relative;
  transition: transform 0.3s ease;
}
.spiral-logo:hover .logo-runner {
  animation: runBounce 0.45s ease infinite;
}
@keyframes runBounce {
  0%, 100% { transform: translateX(0) translateY(0); }
  25%      { transform: translateX(3px) translateY(-3px); }
  50%      { transform: translateX(6px) translateY(0); }
  75%      { transform: translateX(3px) translateY(-2px); }
}
.logo-sport { color: var(--white); }
.logo-spiral { color: var(--accent); }
.spiral-logo small {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 400;
  vertical-align: super;
}

/* ── Centre Nav ── */
.spiral-header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.spiral-header-nav > li { position: relative; }
.spiral-header-nav > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 62px;
  color: #ddd;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: .4px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.spiral-header-nav > li > a:hover {
  color: var(--white);
  background: rgba(255,255,255,.07);
}
.spiral-header-nav > li > a.current-page {
  color: var(--gold);
}

/* ── Right Controls ── */
.spiral-header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.spiral-icon-btn {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: #ddd;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.spiral-icon-btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

body.dark-mode .spiral-theme-toggle { background: var(--gold); color: var(--primary); border-color: var(--gold); }

/* Expandable search bar */
.spiral-header-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width .35s ease, opacity .25s ease;
  background: rgba(255,255,255,.1);
  border-radius: 20px;
}
.spiral-header-search.open {
  max-width: 220px;
  opacity: 1;
}
.spiral-header-search input {
  border: none;
  background: transparent;
  padding: 6px 12px;
  color: var(--white);
  font-size: 13px;
  outline: none;
  width: 170px;
}
.spiral-header-search input::placeholder { color: rgba(255,255,255,.55); }
.spiral-search-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  padding: 0 10px;
  cursor: pointer;
  font-size: 14px;
}
.spiral-search-close-btn:hover { color: var(--accent); }

/* Hamburger (mobile only) */
.spiral-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  order: -1;
}

/* ============================================================
   CATEGORY TAGS
============================================================ */
.cat-tag {
  display: inline-block;
  font-size: 11px;
  font-family: var(--font-head);
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
  text-transform: uppercase;
  color: var(--white);
}
.cat-tag.football, .cat-tag.soccer  { background: #1a6ef5; }
.cat-tag.cricket   { background: #2ba85e; }
.cat-tag.f1, .cat-tag.motor-sports  { background: #cc0000; }
.cat-tag.nfl       { background: #7b3fa0; }
.cat-tag.fifa      { background: #c97d00; }
.cat-tag.olympics  { background: #0077b6; }
.cat-tag.uncategorized { background: #666; }

/* ============================================================
   HERO SECTION
============================================================ */
.spiral-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin: 24px auto;
}
.hero-main {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: 1px;
  z-index: 2;
}
.hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.hero-text {
  padding: 20px 24px 24px;
}
.hero-text h1 {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.25;
}
.hero-text p { color: #555; font-size: 14px; margin-bottom: 14px; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: .5px;
  transition: background .2s, transform .1s;
}
.btn-read:hover { background: #c1121f; transform: translateY(-1px); color: var(--white) !important; }

/* Hero Side */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-side-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  padding: 0;
}
.hero-side-card img {
  width: 110px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
}
.hero-side-card > div { padding: 10px 12px 10px 0; }
.hero-side-card h3 { font-family: var(--font-head); font-size: 14px; line-height: 1.3; margin-bottom: 4px; }
.hero-side-card h3 a:hover { color: var(--accent); }
.mini-meta { font-size: 11px; color: var(--muted); }

/* ============================================================
   MAIN CONTENT WRAPPER
============================================================ */
.spiral-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  margin: 0 auto 32px;
}

/* ── Category Sections ── */
.category-section { margin-bottom: 32px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.view-all {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.view-all:hover { text-decoration: underline; }

/* Post Grid (3-col) */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.13); }
.post-card img { height: 170px; width: 100%; object-fit: cover; }
.card-body { padding: 14px; }
.card-body h3 {
  font-family: var(--font-head);
  font-size: 15px;
  margin-bottom: 7px;
  line-height: 1.3;
}
.card-body h3 a:hover { color: var(--accent); }
.card-body p { font-size: 13px; color: #555; margin-bottom: 10px; }

/* ── Trending Now list ── */
.trending-list { display: flex; flex-direction: column; gap: 14px; }
.trending-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.trending-item:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.13); }
.trend-rank {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--border);
  min-width: 52px;
  text-align: center;
  line-height: 1;
  padding-left: 4px;
  flex-shrink: 0;
  transition: color .2s;
}
.trending-item:hover .trend-rank { color: var(--accent); }
.trending-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}
.trending-body {
  padding: 10px 14px 10px 0;
  flex: 1;
}
.trending-body h3 {
  font-family: var(--font-head);
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.trending-body h3 a:hover { color: var(--accent); }

/* Ad Blocks */
.ad-between-hero {
  background: var(--white);
  border: 1px dashed #ccc;
  color: #aaa;
  font-size: 12px;
  text-align: center;
  padding: 22px;
  border-radius: var(--radius);
  margin: 20px 0;
}
.ad-inline {
  background: #fff;
  border: 1px dashed #ccc;
  color: #aaa;
  font-size: 12px;
  text-align: center;
  padding: 18px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}

/* ============================================================
   SIDEBAR
============================================================ */
.spiral-sidebar { display: flex; flex-direction: column; gap: 20px; }

.widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.widget-title {
  font-family: var(--font-head);
  font-size: 14px;
  background: var(--primary);
  color: var(--white);
  padding: 10px 16px;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.widget-search {
  display: flex;
  padding: 12px;
  gap: 6px;
}
.widget-search input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
}
.widget-search button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 7px 12px;
  cursor: pointer;
}

.ad-sidebar {
  background: #fafafa;
  border: 1px dashed #ccc;
  color: #aaa;
  font-size: 12px;
  text-align: center;
  padding: 30px 10px;
  border-radius: var(--radius);
}

/* Popular Posts */
.popular-list { padding: 10px 14px; margin: 0; }
.popular-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.popular-list li:last-child { border-bottom: none; }
.popular-list img { width: 60px; height: 50px; border-radius: 4px; flex-shrink: 0; }
.popular-list div { flex: 1; }
.popular-list a { font-size: 13px; font-weight: 600; line-height: 1.3; }
.popular-list a:hover { color: var(--accent); }
.popular-list span { font-size: 11px; color: var(--muted); display: block; margin-top: 3px; }

/* Category List */
.category-list { padding: 10px 14px; margin: 0; }
.category-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  transition: color .2s;
}
.category-list li:last-child a { border-bottom: none; }
.category-list li a:hover { color: var(--accent); }
.category-list .count {
  margin-left: auto;
  background: var(--light);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 12px;
  color: var(--muted);
}

/* Newsletter Widget */
.newsletter-widget { background: linear-gradient(135deg, var(--primary), #1a2540); }
.newsletter-widget .widget-title { background: var(--accent); }
.newsletter-widget p { padding: 12px 16px 0; color: #ccc; font-size: 13px; }
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 16px;
}
.newsletter-form input {
  border: 1px solid #334;
  background: #1c2333;
  color: white;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
}
.newsletter-form button {
  background: var(--gold);
  color: var(--primary);
  border: none;
  padding: 9px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s;
}
.newsletter-form button:hover { background: #e09200; }

/* ============================================================
   FOOTER
============================================================ */
.spiral-site-footer {
  background: var(--primary);
  color: #aaa;
  margin-top: 16px;
}
.spiral-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 32px;
  padding: 40px 16px 32px;
}
.footer-col h4 {
  font-family: var(--font-head);
  color: var(--white);
  margin-bottom: 14px;
  font-size: 16px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  display: inline-block;
}
.footer-col p { font-size: 13px; margin-bottom: 8px; }
.footer-col ul { margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: 13px; color: #aaa; transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }

.social-links { display: flex; gap: 12px; margin-top: 14px; }
.social-links a {
  width: 34px; height: 34px;
  background: #1c2333;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #aaa;
  font-size: 15px;
  transition: background .2s, color .2s;
}
.social-links a:hover { background: var(--accent); color: white; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.footer-contact input,
.footer-contact textarea {
  background: #1c2333;
  border: 1px solid #334;
  color: #ccc;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  resize: vertical;
}
.footer-contact button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 9px;
  border-radius: 4px;
  font-family: var(--font-head);
  cursor: pointer;
  font-size: 14px;
  transition: background .2s;
}
.footer-contact button:hover { background: #c1121f; }

.spiral-footer-bottom {
  border-top: 1px solid #1c2333;
  padding: 16px;
  text-align: center;
}
.spiral-footer-bottom p { font-size: 12px; color: #666; margin-bottom: 4px; }
.spiral-footer-bottom .disclaimer { font-style: italic; }

/* ============================================================
   BACK TO TOP BUTTON
============================================================ */
.spiral-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  background: var(--accent);
  color: white;
  border: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  z-index: 9999;
}
.spiral-back-to-top:hover { background: #c1121f; transform: translateY(-2px); }
.spiral-back-to-top.visible { display: flex; }

/* ============================================================
   BLOG POST / SINGLE POST TEMPLATE
============================================================ */
.post-page-wrap {
  max-width: 1200px;
  margin: 32px auto 48px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.article-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0,0,0,.09);
  overflow: hidden;
}

.article-cover { position: relative; }
.article-cover img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.article-cover-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 28px 22px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, transparent 100%);
}
.article-cover-overlay .cat-tag { margin-bottom: 10px; }
.article-cover-overlay h1 {
  font-family: var(--font-head);
  font-size: 1.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.author-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.post-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #888;
  flex-wrap: wrap;
  align-items: center;
}
.post-stats span { display: flex; align-items: center; gap: 5px; }

.article-body {
  padding: 28px 28px 8px;
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}
.article-body .lead {
  font-size: 17px;
  font-weight: 600;
  color: #111;
  margin-bottom: 24px;
  line-height: 1.7;
}
.article-body p { margin-bottom: 20px; }
.article-body h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: #0d1117;
  margin: 36px 0 12px;
  padding-left: 14px;
  border-left: 4px solid #e63946;
}
.article-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: #0d1117;
  margin: 28px 0 10px;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 7px; font-size: 15px; line-height: 1.75; }
.article-body a { color: #e63946; }
.article-body a:hover { text-decoration: underline; }
.article-body strong { color: #111; }

.pull-quote {
  border-left: 5px solid #e63946;
  background: #fff8f8;
  margin: 28px 0;
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
}
.pull-quote p {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: #0d1117;
  line-height: 1.5;
  margin: 0 0 8px;
  font-style: italic;
}
.pull-quote cite {
  font-size: 12px;
  color: #888;
  display: block;
}

.stats-box {
  background: #0d1117;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}
.stat-item .stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: #f4a717;
  line-height: 1;
  display: block;
}
.stat-item .stat-label {
  font-size: 11px;
  color: #aaa;
  margin-top: 5px;
  display: block;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.article-img-block {
  margin: 28px 0;
  border-radius: 8px;
  overflow: hidden;
}
.article-img-block img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.article-img-block figcaption {
  background: #f5f5f5;
  font-size: 12px;
  color: #888;
  padding: 7px 12px;
  font-style: italic;
}

.ad-in-article {
  background: #fafafa;
  border: 1px dashed #ccc;
  color: #bbb;
  font-size: 12px;
  text-align: center;
  padding: 22px 10px;
  border-radius: 8px;
  margin: 32px 0;
}

.related-section { margin-top: 32px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 78px;
}

/* ============================================================
   PAGE TEMPLATES (About, Contact, Privacy, Terms, Disclaimer)
============================================================ */
.page-hero {
  background: linear-gradient(135deg, #0d1117 65%, #e63946 100%);
  color: white;
  padding: 64px 16px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.page-hero p {
  color: #ccc;
  max-width: 680px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;
}

.page-body {
  max-width: 860px;
  margin: 44px auto 64px;
  padding: 0 16px;
}
.page-body h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: #0d1117;
  margin: 36px 0 10px;
  border-left: 4px solid #e63946;
  padding-left: 12px;
}
.page-body p {
  font-size: 15px;
  color: #444;
  line-height: 1.85;
  margin-bottom: 14px;
}
.page-body .intro-p {
  font-size: 16px;
  color: #333;
  line-height: 1.9;
  margin-bottom: 18px;
}
.page-body a { color: #e63946; }
.page-body a:hover { text-decoration: underline; }
.page-body ul, .page-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.page-body ul { list-style: disc; }
.page-body ol { list-style: decimal; }
.page-body li {
  font-size: 15px;
  color: #444;
  line-height: 1.85;
  margin-bottom: 6px;
}

/* About page specific */
.about-highlight {
  background: #fff8f8;
  border-left: 4px solid #e63946;
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: #333;
  line-height: 1.8;
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0 36px;
}
.about-card {
  background: #fff;
  border-radius: 8px;
  padding: 22px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  text-align: center;
}
.about-card i { font-size: 1.9rem; color: #e63946; margin-bottom: 10px; display: block; }
.about-card h3 { font-family: var(--font-head); font-size: 15px; margin-bottom: 7px; color: #0d1117; }
.about-card p  { font-size: 13px; color: #666; line-height: 1.6; margin: 0; }

/* Contact page specific */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 28px 0;
}
.contact-card {
  background: #fff;
  border-radius: 8px;
  padding: 22px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.contact-card i { font-size: 1.5rem; color: #e63946; margin-bottom: 10px; display: block; }
.contact-card h3 { font-family: var(--font-head); font-size: 15px; margin-bottom: 8px; color: #0d1117; }
.contact-card p  { font-size: 13px; color: #555; line-height: 1.7; margin: 0; }

.email-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff8f8;
  border: 1px solid #f5c0c4;
  border-left: 4px solid #e63946;
  border-radius: 0 8px 8px 0;
  padding: 14px 22px;
  margin: 6px 0 20px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: #e63946;
  letter-spacing: .3px;
}
.email-box a { color: #e63946; }
.email-box a:hover { text-decoration: underline; }

.notice-box {
  background: #fffbea;
  border-left: 4px solid #f4a717;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.75;
}
.notice-box i { color: #f4a717; margin-right: 6px; }

/* Legal pages */
.legal-body {
  max-width: 860px;
  margin: 44px auto 64px;
  padding: 0 16px;
}
.legal-body h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: #0d1117;
  margin: 32px 0 10px;
  border-left: 4px solid #e63946;
  padding-left: 12px;
}
.legal-body p {
  font-size: 15px;
  color: #444;
  line-height: 1.85;
  margin-bottom: 14px;
}
.legal-body ul {
  padding-left: 24px;
  margin-bottom: 16px;
  list-style: disc;
}
.legal-body li {
  font-size: 14px;
  color: #444;
  line-height: 1.75;
  margin-bottom: 5px;
}
.legal-body a { color: #e63946; }
.legal-body a:hover { text-decoration: underline; }

/* Effective date badge (used in Privacy, Terms, Disclaimer) */
.effective-date {
  display: inline-block;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  color: #666;
  margin-bottom: 28px;
}

/* Section dividers (used in legal pages) */
.section-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 32px 0;
}

/* Info box (used in Privacy, Terms) */
.info-box {
  background: #fff8f8;
  border-left: 4px solid #e63946;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 14px;
  color: #444;
  line-height: 1.8;
}

/* Warning box (used in Disclaimer) */
.warning-box {
  background: #fffbf0;
  border-left: 4px solid #f4a717;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

/* ============================================================
   DARK MODE
============================================================ */
body.dark-mode {
  --light:  #111827;
  --white:  #1e2535;
  --text:   #e0e0e0;
  --muted:  #999;
  --border: #2a3347;
  background: #111827 !important;
  color: #e0e0e0;
}
body.dark-mode .post-card,
body.dark-mode .hero-main,
body.dark-mode .hero-side-card,
body.dark-mode .trending-item,
body.dark-mode .widget {
  background: #1e2535;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
body.dark-mode .card-body p,
body.dark-mode .hero-text p { color: #bbb; }
body.dark-mode .section-header h2 { color: #e0e0e0; }
body.dark-mode .ad-inline,
body.dark-mode .ad-sidebar,
body.dark-mode .ad-between-hero,
body.dark-mode .ad-in-article { background: #1a2030; color: #555; border-color: #2a3347; }
body.dark-mode .category-list li a,
body.dark-mode .popular-list li { border-color: #2a3347; }

/* Dark mode — article */
body.dark-mode .article-card,
body.dark-mode .related-section .post-card { background: #1e2535; }
body.dark-mode .author-bar { border-color: #2a3347; }
body.dark-mode .post-stats { color: #777; }
body.dark-mode .article-body { color: #ccc; }
body.dark-mode .article-body .lead { color: #e0e0e0; }
body.dark-mode .article-body h2,
body.dark-mode .article-body h3 { color: #e0e0e0; }
body.dark-mode .article-body strong { color: #e0e0e0; }
body.dark-mode .pull-quote { background: #1a2030; }
body.dark-mode .pull-quote p { color: #e0e0e0; }
body.dark-mode .article-img-block figcaption { background: #1a2030; color: #777; }
body.dark-mode .article-body a { color: #f4717a; }

/* Dark mode — pages */
body.dark-mode .page-body h2,
body.dark-mode .legal-body h2 { color: #e0e0e0; }
body.dark-mode .page-body p,
body.dark-mode .page-body .intro-p,
body.dark-mode .legal-body p { color: #bbb; }
body.dark-mode .about-highlight { background: #1a2030; color: #ccc; border-color: #e63946; }
body.dark-mode .about-card { background: #1e2535; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
body.dark-mode .about-card h3 { color: #e0e0e0; }
body.dark-mode .about-card p  { color: #999; }
body.dark-mode .email-box { background: #1a2030; border-color: #2a3347; border-left-color: #e63946; }
body.dark-mode .contact-card { background: #1e2535; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
body.dark-mode .contact-card h3 { color: #e0e0e0; }
body.dark-mode .contact-card p  { color: #999; }
body.dark-mode .notice-box { background: #1c1a10; color: #aaa; border-left-color: #f4a717; }
body.dark-mode .legal-body li { color: #bbb; }
body.dark-mode .effective-date { background: #1a2030; border-color: #2a3347; color: #888; }
body.dark-mode .section-divider { border-color: #2a3347; }
body.dark-mode .info-box { background: #1a2030; color: #ccc; }
body.dark-mode .warning-box { background: #1e1a0f; color: #ccc; }

/* ============================================================
   RESPONSIVE — TABLET
============================================================ */
@media (max-width: 1024px) {
  .spiral-hero { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; flex-wrap: wrap; }
  .hero-side-card { flex: 1 1 200px; }
  .spiral-content-wrapper { grid-template-columns: 1fr; }
  .spiral-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .spiral-footer-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-page-wrap { grid-template-columns: 1fr; }
  .post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */
@media (max-width: 768px) {
  .spiral-hamburger { display: block; }

  .spiral-header-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--primary);
    z-index: 998;
    padding: 6px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
  }
  body.dark-mode .spiral-header-nav { background: #080b10; }
  .spiral-header-nav.open { display: flex; }
  .spiral-header-nav > li > a { height: auto; padding: 12px 20px; }

  .spiral-header-inner { flex-wrap: wrap; gap: 8px; }
  .spiral-header-controls { margin-left: auto; }

  .hero-img { height: 210px; }
  .hero-text h1 { font-size: 1.3rem; }
  .post-grid { grid-template-columns: 1fr; }
  .spiral-footer-grid { grid-template-columns: 1fr; }
  .spiral-sidebar { grid-template-columns: 1fr; }
  .spiral-top-bar-inner { flex-direction: column; align-items: flex-start; gap: 4px; }

  .article-cover img { height: 240px; }
  .article-cover-overlay h1 { font-size: 1.3rem; }
  .article-cover-overlay { padding: 18px 16px 14px; }
  .author-bar, .article-body { padding-left: 16px; padding-right: 16px; }
  .stats-box { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 12px; }
  .stat-item .stat-num { font-size: 1.5rem; }
  .post-sidebar { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .post-page-wrap { margin-top: 20px; }

  .about-cards { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .spiral-logo { font-size: 1.8rem; }
  .hero-side { flex-direction: column; }
  .hero-side-card { flex-direction: row; }
  .spiral-header-search.open { max-width: 150px; }
  .article-body { font-size: 15px; }
  .article-body h2 { font-size: 1.2rem; }
}

/* Mobile-only ad */
.ad-mobile-post { display: none; }
@media (max-width: 1024px) { .ad-mobile-post { display: block; } }

/* ============================================================
   COMMENTS AREA
============================================================ */
.comments-area {
  margin-top: 30px;
  padding: 28px 24px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.comments-area .comments-title,
.comments-area h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid #eee; }
.comment-list .comment:last-child { border-bottom: none; }
.comment-author { font-family: var(--font-head); font-weight: 600; color: var(--primary); }
.comment-author img { border-radius: 50%; margin-right: 10px; }
.comment-metadata { font-size: .82rem; color: #888; margin-bottom: 6px; }
.comment-metadata a { color: #888; text-decoration: none; }
.comment-body p { font-size: .95rem; line-height: 1.7; color: #444; }
.comment-respond { margin-top: 24px; }
.comment-reply-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 14px;
}
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; color: #333; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: .95rem;
  margin-bottom: 14px;
  transition: border-color .2s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); outline: none; }
.comment-form .submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s;
}
.comment-form .submit:hover { background: #c92535; }

/* Dark mode — comments */
body.dark-mode .comments-area { background: #161b22; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
body.dark-mode .comments-area .comments-title,
body.dark-mode .comments-area h3 { color: #e0e0e0; }
body.dark-mode .comment-list .comment { border-color: #21262d; }
body.dark-mode .comment-author { color: #e0e0e0; }
body.dark-mode .comment-metadata, body.dark-mode .comment-metadata a { color: #666; }
body.dark-mode .comment-body p { color: #bbb; }
body.dark-mode .comment-reply-title { color: #e0e0e0; }
body.dark-mode .comment-form label { color: #ccc; }
body.dark-mode .comment-form input,
body.dark-mode .comment-form textarea { background: #0d1117; color: #e0e0e0; border-color: #30363d; }

/* ============================================================
   404 PAGE
============================================================ */
.spiral-404-body {
  padding: 50px 0 60px;
  text-align: center;
}
.spiral-404-card {
  max-width: 600px;
  margin: 0 auto 50px;
  background: #fff;
  border-radius: 12px;
  padding: 50px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.spiral-404-big {
  display: block;
  font-family: var(--font-head);
  font-size: 7rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.spiral-404-card h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--primary);
}
.spiral-404-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
.spiral-404-search {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto 20px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #ddd;
}
.spiral-404-search input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: .95rem;
  font-family: var(--font-body);
}
.spiral-404-search button {
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s;
}
.spiral-404-search button:hover { background: #c92535; }
.spiral-404-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: .95rem;
}
.spiral-404-suggestions {
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}
.spiral-404-suggestions h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spiral-404-suggestions h3 i { color: var(--accent); }

/* Dark mode — 404 */
body.dark-mode .spiral-404-card { background: #161b22; box-shadow: 0 4px 24px rgba(0,0,0,.3); }
body.dark-mode .spiral-404-card h2 { color: #e0e0e0; }
body.dark-mode .spiral-404-card p { color: #999; }
body.dark-mode .spiral-404-search { border-color: #30363d; }
body.dark-mode .spiral-404-search input { background: #0d1117; color: #e0e0e0; }
body.dark-mode .spiral-404-suggestions h3 { color: #e0e0e0; }

/* ============================================================
   PAGINATION
============================================================ */
.spiral-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 36px 0 20px;
  flex-wrap: wrap;
}
.spiral-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  color: var(--primary);
  border: 2px solid #e0e0e0;
  transition: all .2s;
}
.spiral-pagination .page-numbers:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.spiral-pagination .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  cursor: default;
}
.spiral-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
  font-size: 1.1rem;
}
.spiral-pagination .page-numbers.prev,
.spiral-pagination .page-numbers.next {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.spiral-pagination .page-numbers.prev:hover,
.spiral-pagination .page-numbers.next:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* WordPress default pagination (.nav-links for the_posts_pagination) */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 36px 0 20px;
  flex-wrap: wrap;
}
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  color: var(--primary);
  border: 2px solid #e0e0e0;
  transition: all .2s;
}
.nav-links .page-numbers:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.nav-links .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  cursor: default;
}
.nav-links .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}
.nav-links .page-numbers.prev,
.nav-links .page-numbers.next {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.nav-links .page-numbers.prev:hover,
.nav-links .page-numbers.next:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Dark mode — pagination */
body.dark-mode .spiral-pagination .page-numbers,
body.dark-mode .nav-links .page-numbers {
  background: #161b22;
  color: #e0e0e0;
  border-color: #30363d;
}
body.dark-mode .spiral-pagination .page-numbers:hover,
body.dark-mode .nav-links .page-numbers:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
body.dark-mode .spiral-pagination .page-numbers.current,
body.dark-mode .nav-links .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
body.dark-mode .spiral-pagination .page-numbers.prev,
body.dark-mode .spiral-pagination .page-numbers.next,
body.dark-mode .nav-links .page-numbers.prev,
body.dark-mode .nav-links .page-numbers.next {
  background: #21262d;
  border-color: #30363d;
}
body.dark-mode .spiral-pagination .page-numbers.prev:hover,
body.dark-mode .spiral-pagination .page-numbers.next:hover,
body.dark-mode .nav-links .page-numbers.prev:hover,
body.dark-mode .nav-links .page-numbers.next:hover {
  background: var(--accent);
  border-color: var(--accent);
}
