/* ================================================================
   SURGE THEME — assets/css/surge.css
   "Built for Search. Crafted for Readers."
   ================================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --surge-navy:        #0a0f1e;
  --surge-navy-mid:    #111827;
  --surge-navy-light:  #1e2a3a;
  --surge-gold:        #f59e0b;
  --surge-gold-dark:   #d97706;
  --surge-blue:        #2563eb;
  --surge-blue-light:  #3b82f6;
  --surge-green:       #10b981;
  --surge-red:         #ef4444;
  --surge-purple:      #8b5cf6;
  --surge-pink:        #ec4899;
  --surge-cyan:        #06b6d4;
  --surge-orange:      #f97316;
  --surge-text:        #0f172a;
  --surge-text-muted:  #64748b;
  --surge-text-light:  #94a3b8;
  --surge-bg:          #f9fafb;
  --surge-bg-card:     #ffffff;
  --surge-border:      #e2e8f0;
  --surge-border-dark: #cbd5e1;
  --surge-shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --surge-shadow-md:   0 4px 16px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --surge-shadow-lg:   0 10px 40px rgba(0,0,0,.14), 0 4px 6px rgba(0,0,0,.05);
  --surge-radius:      10px;
  --surge-radius-sm:   6px;
  --surge-radius-lg:   16px;
  --surge-max-width:   1200px;
  --surge-font-display:'Playfair Display', Georgia, serif;
  --surge-font-body:   'Source Sans 3', system-ui, sans-serif;
  --surge-font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --surge-transition:  .25s cubic-bezier(.4,0,.2,1);
}

/* ── Dark Mode ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --surge-text:       #e2e8f0;
  --surge-text-muted: #94a3b8;
  --surge-text-light: #64748b;
  --surge-bg:         #0a0f1e;
  --surge-bg-card:    #111827;
  --surge-border:     #1e2a3a;
  --surge-border-dark:#2d3a4e;
  --surge-shadow:     0 1px 3px rgba(0,0,0,.3);
  --surge-shadow-md:  0 4px 16px rgba(0,0,0,.4);
  --surge-shadow-lg:  0 10px 40px rgba(0,0,0,.6);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--surge-font-body);
  font-size: 1rem;
  color: var(--surge-text);
  background: var(--surge-bg);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  transition: background var(--surge-transition), color var(--surge-transition);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--surge-blue); text-decoration: none; transition: color var(--surge-transition); }
a:hover { color: var(--surge-gold); }
button, input, textarea, select { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.2em; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--surge-font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .6em;
  color: var(--surge-text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.2rem; }

/* ── Utility ───────────────────────────────────────────────── */
.surge-container {
  max-width: var(--surge-max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.surge-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.surge-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.surge-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.surge-flex { display: flex; align-items: center; gap: 1rem; }
.surge-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ── Reading Progress Bar ──────────────────────────────────── */
#surge-progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--surge-gold), var(--surge-blue));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 10001;
  transition: transform .1s linear;
  pointer-events: none;
}

/* ── TOP BAR ──────────────────────────────────────────────── */
.surge-topbar {
  background: var(--surge-navy);
  color: #94a3b8;
  font-size: .75rem;
  padding: .45rem 0;
  display: flex;
  align-items: center;
}
.surge-topbar .surge-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.surge-topbar a { color: #94a3b8; }
.surge-topbar a:hover { color: var(--surge-gold); }
.surge-topbar-links { display: flex; align-items: center; gap: 1.25rem; }
.surge-topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.surge-live-time {
  font-family: var(--surge-font-mono);
  color: #64748b;
  font-size: .7rem;
  letter-spacing: .04em;
}

/* ── HEADER ───────────────────────────────────────────────── */
.surge-header {
  background: var(--surge-navy);
  position: sticky;
  top: 0;
  z-index: 9999;
  transition: all .3s ease;
  box-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.surge-header.scrolled {
  backdrop-filter: blur(16px);
  background: rgba(10,15,30,.95);
}
.surge-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}
.surge-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.surge-logo-name {
  font-family: var(--surge-font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1;
}
.surge-logo-name span { color: var(--surge-gold); }
.surge-logo-tag {
  font-family: var(--surge-font-mono);
  font-size: .6rem;
  color: #4a5568;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.surge-logo img { max-height: 52px; width: auto; }

/* ── Primary Nav ────────────────────────────────────────────── */
.surge-primary-nav { flex: 1; display: flex; justify-content: center; }
.surge-primary-nav ul { display: flex; align-items: center; gap: .25rem; }
.surge-primary-nav > ul > li { position: relative; }
.surge-primary-nav > ul > li > a {
  display: block;
  padding: .55rem .85rem;
  color: #cbd5e1;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--surge-radius-sm);
  transition: all var(--surge-transition);
  letter-spacing: .01em;
}
.surge-primary-nav > ul > li > a:hover,
.surge-primary-nav > ul > li.current-menu-item > a {
  color: #fff;
  background: rgba(255,255,255,.07);
}
.surge-primary-nav > ul > li.current-menu-item > a { color: var(--surge-gold); }

/* Dropdown */
.surge-primary-nav .sub-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--surge-navy-mid);
  border: 1px solid var(--surge-navy-light);
  border-radius: var(--surge-radius);
  padding: .5rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all .2s ease;
  box-shadow: var(--surge-shadow-lg);
  z-index: 100;
}
.surge-primary-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}
.surge-primary-nav .sub-menu li a {
  display: block;
  padding: .55rem .9rem;
  color: #94a3b8;
  font-size: .85rem;
  border-radius: var(--surge-radius-sm);
  transition: all var(--surge-transition);
}
.surge-primary-nav .sub-menu li a:hover { color: #fff; background: rgba(255,255,255,.05); }

/* ── Header Actions ─────────────────────────────────────────── */
.surge-header-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.surge-header-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--surge-radius-sm);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #94a3b8;
  cursor: pointer;
  transition: all var(--surge-transition);
}
.surge-header-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.surge-header-btn svg { width: 16px; height: 16px; }

/* ── Search Overlay ─────────────────────────────────────────── */
.surge-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,.97);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}
.surge-search-overlay.open { opacity: 1; visibility: visible; }
.surge-search-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}
.surge-search-close:hover { color: #fff; }
.surge-search-form-wrap {
  width: 100%;
  max-width: 640px;
  padding: 0 1.5rem;
}
.surge-search-form-wrap label {
  display: block;
  font-family: var(--surge-font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: .75rem;
}
.surge-search-input-wrap { position: relative; }
.surge-search-input-wrap input[type="search"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #2d3a4e;
  color: #fff;
  font-size: 2rem;
  font-family: var(--surge-font-display);
  padding: .75rem 0;
  outline: none;
  transition: border-color .2s;
}
.surge-search-input-wrap input:focus { border-bottom-color: var(--surge-gold); }
.surge-search-input-wrap input::placeholder { color: #2d3a4e; }
.surge-live-results {
  background: var(--surge-navy-mid);
  border: 1px solid #1e2a3a;
  border-radius: var(--surge-radius);
  margin-top: 1rem;
  overflow: hidden;
}
.surge-result-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid #1e2a3a;
  transition: background .15s;
  cursor: pointer;
}
.surge-result-item:last-child { border-bottom: none; }
.surge-result-item:hover { background: rgba(255,255,255,.04); }
.surge-result-thumb {
  width: 48px; height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e2a3a;
}
.surge-result-text .result-title { font-size: .9rem; color: #e2e8f0; font-weight: 600; }
.surge-result-text .result-meta  { font-size: .75rem; color: #64748b; margin-top: 2px; }

/* ── Breaking News Ticker ──────────────────────────────────── */
.surge-ticker {
  background: var(--surge-gold);
  color: var(--surge-navy);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.surge-ticker-label {
  flex-shrink: 0;
  padding: .55rem 1.25rem;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--surge-navy);
  color: var(--surge-gold);
  white-space: nowrap;
  display: flex; align-items: center; gap: .5rem;
}
.surge-ticker-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--surge-gold);
  animation: surge-blink 1.2s infinite;
}
@keyframes surge-blink { 0%,100%{opacity:1} 50%{opacity:0} }
.surge-ticker-track {
  overflow: hidden;
  flex: 1;
  padding: .55rem 0;
}
.surge-ticker-inner {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: surge-ticker 28s linear infinite;
}
.surge-ticker-inner:hover { animation-play-state: paused; }
@keyframes surge-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.surge-ticker-inner a {
  font-size: .8rem;
  font-weight: 600;
  color: var(--surge-navy);
  white-space: nowrap;
}
.surge-ticker-inner a:hover { text-decoration: underline; }

/* ── HERO SECTION ──────────────────────────────────────────── */
.surge-hero { padding: 2rem 0 0; background: var(--surge-bg); }
.surge-hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.surge-hero-main { position: relative; }
.surge-hero-main-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--surge-radius-lg);
  display: block;
}
.surge-hero-main-body {
  padding: 1.5rem 0 0;
}
.surge-hero-side { display: flex; flex-direction: column; gap: 1.25rem; }

/* ── Category Pill ─────────────────────────────────────────── */
.surge-cat-pill {
  display: inline-flex; align-items: center;
  padding: .28rem .7rem;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #fff;
  background: var(--surge-gold);
  transition: all var(--surge-transition);
  line-height: 1;
}
.surge-cat-pill:hover { color: #fff; opacity: .85; }

/* ── Post Card ─────────────────────────────────────────────── */
.surge-card {
  background: var(--surge-bg-card);
  border: 1px solid var(--surge-border);
  border-radius: var(--surge-radius);
  overflow: hidden;
  transition: transform var(--surge-transition), box-shadow var(--surge-transition);
  display: flex;
  flex-direction: column;
}
.surge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--surge-shadow-lg);
}
.surge-card-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.surge-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.surge-card:hover .surge-card-img-wrap img { transform: scale(1.04); }
.surge-card-body { padding: 1.1rem; display: flex; flex-direction: column; flex: 1; }
.surge-card-title {
  font-family: var(--surge-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--surge-text);
  line-height: 1.35;
  margin: .45rem 0 .6rem;
  transition: color var(--surge-transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.surge-card-title a { color: inherit; }
.surge-card-title a:hover { color: var(--surge-gold); }
.surge-card-excerpt {
  font-size: .875rem;
  color: var(--surge-text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .9rem;
}

/* ── Post Meta ─────────────────────────────────────────────── */
.surge-post-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .6rem .9rem;
  font-size: .75rem;
  color: var(--surge-text-light);
}
.surge-post-meta > span,
.surge-post-meta > time {
  display: flex; align-items: center; gap: .35rem;
}
.surge-post-meta svg { opacity: .7; flex-shrink: 0; }
.meta-author { color: var(--surge-text-muted); font-weight: 600; }

/* ── Horizontal Card ─────────────────────────────────────────── */
.surge-card-h {
  display: flex;
  gap: 1rem;
  background: var(--surge-bg-card);
  border: 1px solid var(--surge-border);
  border-radius: var(--surge-radius);
  overflow: hidden;
  transition: all var(--surge-transition);
}
.surge-card-h:hover {
  box-shadow: var(--surge-shadow-md);
  border-color: var(--surge-border-dark);
}
.surge-card-h-img {
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
}
.surge-card-h-img img { width: 100%; height: 100%; object-fit: cover; }
.surge-card-h-body { padding: .85rem .85rem .85rem 0; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .4rem; }
.surge-card-h-title {
  font-family: var(--surge-font-display);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--surge-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.surge-card-h-title a { color: inherit; }
.surge-card-h-title a:hover { color: var(--surge-gold); }

/* ── Section Headings ─────────────────────────────────────────── */
.surge-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.surge-section-title {
  font-family: var(--surge-font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--surge-text);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
}
.surge-section-title::before {
  content: '';
  width: 4px; height: 1.3em;
  background: var(--surge-gold);
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}
.surge-view-all {
  font-size: .8rem;
  font-weight: 700;
  color: var(--surge-gold);
  display: flex; align-items: center; gap: .35rem;
  white-space: nowrap;
}
.surge-view-all:hover { color: var(--surge-gold-dark); }

/* ── Section Spacing ─────────────────────────────────────────── */
.surge-section { padding: 2.5rem 0; }
.surge-section + .surge-section { padding-top: 0; }
.surge-section-divider {
  width: 100%; height: 1px;
  background: var(--surge-border);
  margin: 2.5rem 0;
}

/* ── AD SLOTS ─────────────────────────────────────────────── */
.surge-ad-slot {
  background: var(--surge-bg-card);
  border: 1px dashed var(--surge-border);
  border-radius: var(--surge-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--surge-text-light);
  font-size: .7rem;
  font-family: var(--surge-font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  overflow: hidden;
}
.surge-ad-leaderboard { width: 100%; height: 90px; max-width: 728px; margin-inline: auto; }
.surge-ad-rectangle  { width: 300px; height: 250px; }
.surge-ad-half-page  { width: 300px; height: 600px; }
.surge-ad-in-content { width: 100%; max-width: 336px; height: 280px; margin: 1.5rem auto; }
.surge-ad-slot::before {
  content: attr(data-size);
  display: block;
  font-size: .65rem;
  opacity: .4;
}
.surge-ad-slot > .ad-label { font-size: .6rem; opacity: .3; margin-top: .25rem; }

/* ── CATEGORY FILTER TABS ─────────────────────────────────── */
.surge-filter-tabs {
  display: flex; align-items: center; gap: .5rem;
  overflow-x: auto; padding-bottom: .25rem;
  scrollbar-width: none;
}
.surge-filter-tabs::-webkit-scrollbar { display: none; }
.surge-filter-tab {
  flex-shrink: 0;
  padding: .45rem 1rem;
  border-radius: 20px;
  border: 1.5px solid var(--surge-border);
  background: transparent;
  color: var(--surge-text-muted);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--surge-transition);
}
.surge-filter-tab:hover { border-color: var(--surge-gold); color: var(--surge-gold); }
.surge-filter-tab.active {
  background: var(--surge-gold);
  border-color: var(--surge-gold);
  color: var(--surge-navy);
}

/* ── Load More Button ─────────────────────────────────────── */
.surge-load-more-wrap { text-align: center; padding: 2rem 0; }
.surge-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 2rem;
  border-radius: 30px;
  border: 2px solid var(--surge-gold);
  background: transparent;
  color: var(--surge-gold);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--surge-transition);
  letter-spacing: .02em;
}
.surge-btn:hover { background: var(--surge-gold); color: var(--surge-navy); }
.surge-btn:disabled { opacity: .5; cursor: default; }
.surge-btn-solid { background: var(--surge-gold); color: var(--surge-navy); }
.surge-btn-solid:hover { background: var(--surge-gold-dark); color: var(--surge-navy); }

/* ── NEWSLETTER SECTION ───────────────────────────────────── */
.surge-newsletter {
  background: linear-gradient(135deg, var(--surge-navy) 0%, #0d1a33 100%);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.surge-newsletter::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(245,158,11,.12) 0%, transparent 60%);
  pointer-events: none;
}
.surge-newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.surge-newsletter-label {
  font-family: var(--surge-font-mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--surge-gold);
  margin-bottom: .75rem;
}
.surge-newsletter-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .75rem;
}
.surge-newsletter-sub { color: #94a3b8; font-size: .95rem; }
.surge-newsletter-form { display: flex; flex-direction: column; gap: .75rem; }
.surge-newsletter-row { display: flex; gap: .75rem; }
.surge-newsletter-form input[type="email"],
.surge-newsletter-form input[type="text"] {
  flex: 1;
  padding: .85rem 1.1rem;
  border-radius: 8px;
  border: 1px solid #2d3a4e;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}
.surge-newsletter-form input:focus { border-color: var(--surge-gold); }
.surge-newsletter-form input::placeholder { color: #4a5568; }
.surge-newsletter-submit {
  padding: .85rem 1.75rem;
  border-radius: 8px;
  border: none;
  background: var(--surge-gold);
  color: var(--surge-navy);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.surge-newsletter-submit:hover { background: var(--surge-gold-dark); }
.surge-newsletter-note { font-size: .75rem; color: #4a5568; }
.surge-newsletter-stats { display: flex; gap: 2rem; margin-top: 1.5rem; }
.surge-nl-stat-value { font-family: var(--surge-font-display); font-size: 1.75rem; font-weight: 800; color: var(--surge-gold); }
.surge-nl-stat-label { font-size: .75rem; color: #64748b; }

/* ── TRENDING HORIZONTAL SCROLL ──────────────────────────── */
.surge-trending-scroll { overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.surge-trending-scroll::-webkit-scrollbar { display: none; }
.surge-trending-inner { display: flex; gap: 1.25rem; min-width: max-content; }
.surge-trending-card {
  width: 240px;
  flex-shrink: 0;
  background: var(--surge-bg-card);
  border: 1px solid var(--surge-border);
  border-radius: var(--surge-radius);
  overflow: hidden;
  transition: all var(--surge-transition);
}
.surge-trending-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--surge-shadow-md);
}
.surge-trending-img { aspect-ratio: 3/2; overflow: hidden; }
.surge-trending-img img { width:100%; height:100%; object-fit:cover; transition: transform .4s; }
.surge-trending-card:hover .surge-trending-img img { transform: scale(1.06); }
.surge-trending-body { padding: .85rem; }
.surge-trending-num {
  font-family: var(--surge-font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--surge-border-dark);
  line-height: 1;
  display: block;
  margin-bottom: .35rem;
}
.surge-trending-title {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--surge-text);
}
.surge-trending-title a { color: inherit; }
.surge-trending-title a:hover { color: var(--surge-gold); }

/* ── TWO COLUMN LAYOUT ────────────────────────────────────── */
.surge-two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
.surge-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

/* ── SINGLE POST ─────────────────────────────────────────── */
.surge-single-hero { margin-bottom: 2rem; }
.surge-single-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--surge-radius-lg);
}
.surge-article-header { margin-bottom: 2rem; }
.surge-article-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.surge-article-title {
  font-family: var(--surge-font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--surge-text);
  margin-bottom: 1rem;
}
.surge-article-meta-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surge-bg-card);
  border: 1px solid var(--surge-border);
  border-radius: var(--surge-radius);
}
.surge-author-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surge-navy);
  border: 2px solid var(--surge-border);
}

/* ── Table of Contents ────────────────────────────────────── */
.surge-toc {
  background: var(--surge-bg-card);
  border: 1px solid var(--surge-border);
  border-left: 4px solid var(--surge-gold);
  border-radius: var(--surge-radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.surge-toc-title {
  font-family: var(--surge-font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
  cursor: pointer;
}
.surge-toc-title::after {
  content: '▾';
  font-size: .9rem;
  margin-left: auto;
  color: var(--surge-text-muted);
  transition: transform .2s;
}
.surge-toc.collapsed .surge-toc-title::after { transform: rotate(-90deg); }
.surge-toc-list { display: flex; flex-direction: column; gap: .35rem; transition: all .2s; }
.surge-toc.collapsed .surge-toc-list { display: none; }
.surge-toc-list li { padding-left: 1rem; }
.surge-toc-list li.toc-h3 { padding-left: 2rem; }
.surge-toc-list a {
  font-size: .875rem;
  color: var(--surge-text-muted);
  display: flex; align-items: flex-start; gap: .5rem;
}
.surge-toc-list a::before { content: '→'; flex-shrink: 0; opacity: .5; }
.surge-toc-list a:hover { color: var(--surge-gold); }
.surge-toc-list a.active { color: var(--surge-gold); font-weight: 600; }

/* ── Post Content ─────────────────────────────────────────── */
.surge-post-content { line-height: 1.85; font-size: 1.0625rem; }
.surge-post-content h2 {
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
}
.surge-post-content h3 { font-size: 1.3rem; margin: 2rem 0 .75rem; }
.surge-post-content p { margin-bottom: 1.4rem; }
.surge-post-content ul, .surge-post-content ol {
  padding-left: 1.75rem;
  margin-bottom: 1.4rem;
  list-style: revert;
}
.surge-post-content li { margin-bottom: .4rem; }
.surge-post-content blockquote {
  border-left: 4px solid var(--surge-gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(245,158,11,.06);
  border-radius: 0 var(--surge-radius) var(--surge-radius) 0;
  font-style: italic;
  color: var(--surge-text-muted);
  font-size: 1.1rem;
}
.surge-post-content code {
  font-family: var(--surge-font-mono);
  font-size: .875em;
  background: var(--surge-bg);
  border: 1px solid var(--surge-border);
  border-radius: 4px;
  padding: .1em .4em;
}
.surge-post-content pre {
  background: var(--surge-navy);
  border-radius: var(--surge-radius);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.surge-post-content pre code { background: none; border: none; color: #e2e8f0; font-size: .875rem; }
.surge-post-content a { color: var(--surge-blue); border-bottom: 1px solid rgba(37,99,235,.3); }
.surge-post-content a:hover { color: var(--surge-gold); border-bottom-color: transparent; }
.surge-post-content img { border-radius: var(--surge-radius); margin: 1.5rem 0; }
.surge-post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.surge-post-content th, .surge-post-content td { padding: .75rem 1rem; border: 1px solid var(--surge-border); text-align: left; }
.surge-post-content th { background: var(--surge-bg); font-weight: 700; }

/* ── Key Takeaways Box ────────────────────────────────────── */
.surge-key-takeaways {
  background: linear-gradient(135deg, rgba(245,158,11,.08) 0%, rgba(37,99,235,.06) 100%);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--surge-radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}
.surge-key-takeaways h4 { font-size: 1rem; color: var(--surge-gold); margin-bottom: .75rem; }
.surge-key-takeaways ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.surge-key-takeaways li { display: flex; gap: .75rem; font-size: .9rem; }
.surge-key-takeaways li::before { content: '✓'; color: var(--surge-green); font-weight: 700; flex-shrink: 0; }

/* ── Social Share ─────────────────────────────────────────── */
.surge-share {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: .6rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--surge-border);
  border-bottom: 1px solid var(--surge-border);
  margin: 2rem 0;
}
.surge-share-label { font-size: .8rem; font-weight: 700; color: var(--surge-text-muted); margin-right: .25rem; }
.surge-share-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--surge-transition);
  border: none;
  color: #fff;
}
.surge-share-twitter  { background: #1da1f2; }
.surge-share-facebook { background: #1877f2; }
.surge-share-linkedin { background: #0077b5; }
.surge-share-whatsapp { background: #25d366; }
.surge-share-copy     { background: var(--surge-navy); }
.surge-share-btn:hover { opacity: .85; transform: translateY(-1px); }

/* ── Author Box ───────────────────────────────────────────── */
.surge-author-box {
  display: flex; gap: 1.5rem;
  background: var(--surge-bg-card);
  border: 1px solid var(--surge-border);
  border-radius: var(--surge-radius-lg);
  padding: 1.75rem;
  margin: 2.5rem 0;
}
.surge-author-box-avatar {
  width: 80px; height: 80px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--surge-border);
  flex-shrink: 0;
}
.surge-author-box-name { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
.surge-author-box-title { font-size: .8rem; color: var(--surge-gold); font-weight: 600; margin-bottom: .75rem; }
.surge-author-box-bio { font-size: .9rem; color: var(--surge-text-muted); line-height: 1.65; }
.surge-author-box-social { display: flex; gap: .6rem; margin-top: .75rem; }
.surge-author-social-link {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: var(--surge-bg);
  border: 1px solid var(--surge-border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  color: var(--surge-text-muted);
  transition: all .2s;
}
.surge-author-social-link:hover { background: var(--surge-gold); color: var(--surge-navy); border-color: var(--surge-gold); }

/* ── Related Posts ────────────────────────────────────────── */
.surge-related { margin: 2.5rem 0; }
.surge-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.surge-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.widget {
  background: var(--surge-bg-card);
  border: 1px solid var(--surge-border);
  border-radius: var(--surge-radius);
  overflow: hidden;
}
.widget-title {
  font-family: var(--surge-font-display);
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .85rem 1.1rem;
  border-bottom: 2px solid var(--surge-gold);
  display: flex; align-items: center; gap: .5rem;
  margin: 0;
}
.widget-title span { display: contents; }
.widget > :last-child { padding: 1rem; }
.widget_recent_entries ul, .widget_categories ul {
  display: flex; flex-direction: column; gap: .5rem;
}
.widget_recent_entries li { font-size: .85rem; border-bottom: 1px solid var(--surge-border); padding-bottom: .5rem; }
.widget_recent_entries li:last-child { border-bottom: none; padding-bottom: 0; }
.widget_categories li { display: flex; justify-content: space-between; font-size: .85rem; }
.widget_categories li a { color: var(--surge-text-muted); }
.widget_categories li a:hover { color: var(--surge-gold); }
.widget_tag_cloud { padding: 1rem !important; }
.tag-cloud-link {
  display: inline-block;
  padding: .3rem .7rem;
  border-radius: 4px;
  background: var(--surge-bg);
  border: 1px solid var(--surge-border);
  font-size: .8rem !important;
  color: var(--surge-text-muted) !important;
  margin: .2rem;
  transition: all .2s;
}
.tag-cloud-link:hover { background: var(--surge-gold); color: var(--surge-navy) !important; border-color: var(--surge-gold); }

/* ── FOOTER ───────────────────────────────────────────────── */
.surge-footer {
  background: var(--surge-navy);
  color: #94a3b8;
  padding: 3.5rem 0 0;
  margin-top: 3rem;
}
.surge-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #1e2a3a;
}
.surge-footer-brand .surge-logo-name { font-size: 1.6rem; }
.surge-footer-brand p { font-size: .875rem; color: #64748b; line-height: 1.7; margin: 1rem 0; }
.surge-footer-social { display: flex; gap: .6rem; margin-top: .75rem; }
.surge-social-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid #1e2a3a;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: #64748b;
  transition: all .2s;
}
.surge-social-icon:hover { background: var(--surge-gold); color: var(--surge-navy); border-color: var(--surge-gold); }
.surge-footer-heading {
  font-family: var(--surge-font-display);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #e2e8f0;
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .5rem;
}
.surge-footer-heading::before {
  content: '';
  width: 16px; height: 2px;
  background: var(--surge-gold);
  display: inline-block;
}
.surge-footer-links { display: flex; flex-direction: column; gap: .55rem; }
.surge-footer-links a { font-size: .875rem; color: #64748b; transition: color .2s; }
.surge-footer-links a:hover { color: var(--surge-gold); padding-left: 4px; }
.surge-footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1.25rem 0;
  font-size: .8rem;
  color: #3d4f6a;
}
.surge-footer-bottom a { color: #4a5568; }
.surge-footer-bottom a:hover { color: var(--surge-gold); }
.surge-footer-legal { display: flex; gap: 1.25rem; }

/* ── PAGINATION ───────────────────────────────────────────── */
.surge-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: .4rem; margin: 2.5rem 0;
}
.surge-pagination .page-numbers {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--surge-border);
  font-size: .875rem;
  color: var(--surge-text-muted);
  transition: all .2s;
}
.surge-pagination .page-numbers:hover { border-color: var(--surge-gold); color: var(--surge-gold); }
.surge-pagination .page-numbers.current { background: var(--surge-gold); color: var(--surge-navy); border-color: var(--surge-gold); font-weight: 700; }

/* ── COMMENTS ─────────────────────────────────────────────── */
.surge-comments { margin-top: 3rem; }
.surge-comments h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.comment-list { display: flex; flex-direction: column; gap: 1.25rem; list-style: none; }
.comment-body {
  background: var(--surge-bg-card);
  border: 1px solid var(--surge-border);
  border-radius: var(--surge-radius);
  padding: 1.25rem;
}
.comment-author .fn { font-weight: 700; font-size: .9rem; }
.comment-meta { font-size: .8rem; color: var(--surge-text-muted); margin-bottom: .75rem; }
.comment-content p { font-size: .9rem; margin: 0; }
.children { padding-left: 2rem; margin-top: 1rem; }
.comment-reply-link {
  font-size: .8rem; color: var(--surge-gold);
  font-weight: 600; margin-top: .5rem; display: inline-block;
}
.comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--surge-border);
  border-radius: var(--surge-radius-sm);
  background: var(--surge-bg-card);
  color: var(--surge-text);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--surge-gold); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.submit-wrap { margin-top: 1rem; }
.submit-wrap input[type="submit"] {
  padding: .75rem 2rem;
  border-radius: 8px;
  border: none;
  background: var(--surge-gold);
  color: var(--surge-navy);
  font-weight: 700;
  cursor: pointer;
  font-size: .9rem;
  transition: background .2s;
}
.submit-wrap input:hover { background: var(--surge-gold-dark); }

/* ── 404 PAGE ─────────────────────────────────────────────── */
.surge-404 {
  text-align: center;
  padding: 8rem 1.5rem;
}
.surge-404-code {
  font-family: var(--surge-font-display);
  font-size: 8rem;
  font-weight: 800;
  color: var(--surge-border-dark);
  line-height: 1;
  margin-bottom: 1rem;
}
.surge-404 h1 { font-size: 1.75rem; margin-bottom: .75rem; }
.surge-404 p { color: var(--surge-text-muted); max-width: 420px; margin: 0 auto 2rem; }

/* ── STICKY SIDEBAR AD ────────────────────────────────────── */
.surge-sticky-sidebar { position: sticky; top: 90px; }

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.surge-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.surge-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.surge-reveal-delay-1 { transition-delay: .1s; }
.surge-reveal-delay-2 { transition-delay: .2s; }
.surge-reveal-delay-3 { transition-delay: .3s; }
.surge-reveal-delay-4 { transition-delay: .4s; }

/* ── FEATURED BADGE ───────────────────────────────────────── */
.surge-featured-badge {
  position: absolute;
  top: .85rem; left: .85rem;
  background: var(--surge-gold);
  color: var(--surge-navy);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .7rem;
  border-radius: 4px;
  z-index: 2;
}
.surge-new-badge {
  background: var(--surge-green);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .2rem .55rem;
  border-radius: 3px;
  margin-left: .5rem;
  vertical-align: middle;
}

/* ── SEARCH PAGE ──────────────────────────────────────────── */
.surge-search-header { padding: 2rem 0; border-bottom: 1px solid var(--surge-border); margin-bottom: 2rem; }
.surge-search-header h1 { font-size: 1.5rem; }
.surge-search-header h1 span { color: var(--surge-gold); }

/* ── ARCHIVE PAGE ─────────────────────────────────────────── */
.surge-archive-header {
  padding: 2.5rem;
  background: var(--surge-navy);
  border-radius: var(--surge-radius-lg);
  color: #fff;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.surge-archive-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(245,158,11,.15) 0%, transparent 60%);
}
.surge-archive-title { font-size: 2rem; color: #fff; margin-bottom: .5rem; position: relative; }
.surge-archive-desc { color: #94a3b8; font-size: .95rem; position: relative; }
.surge-archive-count { font-family: var(--surge-font-mono); font-size: .75rem; color: var(--surge-gold); margin-top: .5rem; position: relative; }

/* ── STATS BAR ────────────────────────────────────────────── */
.surge-stats-bar {
  background: var(--surge-navy-mid);
  border-bottom: 1px solid var(--surge-navy-light);
  padding: .75rem 0;
}
.surge-stats-inner { display: flex; gap: 2.5rem; align-items: center; }
.surge-stat-item { text-align: center; }
.surge-stat-num {
  font-family: var(--surge-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--surge-gold);
  display: block;
}
.surge-stat-lbl { font-size: .65rem; color: #4a5568; text-transform: uppercase; letter-spacing: .08em; }

/* ── MOBILE MENU ──────────────────────────────────────────── */
.surge-mobile-menu-toggle {
  display: none;
  flex-direction: column; gap: 4px;
  width: 26px;
  cursor: pointer;
  padding: 4px;
}
.surge-mobile-menu-toggle span {
  height: 2px; background: #94a3b8;
  border-radius: 1px; display: block;
  transition: all .25s;
}
.surge-mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--surge-navy);
  z-index: 99998;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}
.surge-mobile-menu.open { display: flex; }
.surge-mobile-menu ul { display: flex; flex-direction: column; gap: .25rem; }
.surge-mobile-menu ul a {
  display: block; padding: .9rem 1.25rem;
  font-size: 1.1rem; color: #94a3b8;
  border-radius: var(--surge-radius-sm);
  transition: all .15s;
  font-weight: 600;
}
.surge-mobile-menu ul a:hover { color: #fff; background: rgba(255,255,255,.06); }
.surge-mobile-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  font-size: 1.75rem; color: #64748b; cursor: pointer;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .surge-two-col { grid-template-columns: 1fr 300px; }
  .surge-footer-grid { grid-template-columns: 1fr 1fr; }
  .surge-newsletter-inner { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 900px) {
  .surge-hero-grid { grid-template-columns: 1fr; }
  .surge-hero-side { display: grid; grid-template-columns: 1fr 1fr; }
  .surge-grid-3 { grid-template-columns: repeat(2,1fr); }
  .surge-two-col { grid-template-columns: 1fr; }
  .surge-three-col { grid-template-columns: 1fr 1fr; }
  .surge-related-grid { grid-template-columns: 1fr 1fr; }
  .surge-primary-nav { display: none; }
  .surge-mobile-menu-toggle { display: flex; }
  .surge-topbar { display: none; }
}

@media (max-width: 640px) {
  .surge-grid-2, .surge-grid-3, .surge-grid-4 { grid-template-columns: 1fr; }
  .surge-hero-side { grid-template-columns: 1fr; }
  .surge-related-grid { grid-template-columns: 1fr; }
  .surge-footer-grid { grid-template-columns: 1fr; }
  .surge-newsletter-row { flex-direction: column; }
  .surge-author-box { flex-direction: column; }
  .surge-three-col { grid-template-columns: 1fr; }
  .surge-article-title { font-size: 1.75rem; }
  .surge-comment-form-fields { grid-template-columns: 1fr; }
}

/* ── PRINT ────────────────────────────────────────────────── */
@media print {
  .surge-header, .surge-footer, .surge-sidebar, .surge-share, .surge-newsletter { display: none !important; }
  .surge-two-col { grid-template-columns: 1fr; }
}
