:root {
  --bg: #F6F3EE;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAF8F5;
  --bg-sidebar: #EFECE6;
  --text: #1E1E1E;
  --text-muted: #5C5650;
  --text-dim: #9A938B;
  --accent: #D9512C;
  --accent-glow: rgba(217, 81, 44, 0.1);
  --accent-secondary: #C8850A;
  --border: #DDD8D0;
  --border-light: #E8E3DB;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --radius: 6px;
  --max-w: 1320px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 80px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ── UTILITY ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── AD SLOTS ── */
.ad-slot {
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s;
}
.ad-slot:hover { border-color: var(--accent); }
.ad-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0,0,0,0.015) 10px,
    rgba(0,0,0,0.015) 20px
  );
}
.ad-slot span { position: relative; z-index: 1; }
.ad-leaderboard {
  width: 728px;
  max-width: 100%;
  height: 90px;
  margin: 0 auto;
}
.ad-banner-large {
  width: 970px;
  max-width: 100%;
  height: 250px;
  margin: 0 auto;
}
.ad-sidebar {
  width: 100%;
  height: 250px;
  margin-bottom: 28px;
}
.ad-sidebar-tall {
  width: 100%;
  height: 600px;
  margin-bottom: 28px;
}
.ad-native {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg-card);
  margin-bottom: 28px;
  cursor: pointer;
  transition: border-color 0.25s;
}
.ad-native:hover { border-color: var(--accent); }
.ad-native-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.ad-native-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ad-native-img {
  width: 120px;
  height: 80px;
  background: var(--bg-sidebar);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ad-native-text h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}
.ad-native-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── TOP BAR ── */
.top-bar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ── HEADER ── */
header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,243,238,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.logo-evening {
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  color: var(--text);
}
.logo-workout {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
}

nav { display: flex; align-items: center; gap: 32px; }
nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
}
nav a:hover, nav a.active { color: var(--accent); }

.nav-search {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
}
.nav-search:hover { border-color: var(--accent); color: var(--accent); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

/* ── LEADERBOARD AD ── */
.leaderboard-wrap {
  text-align: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

/* ── HERO ── */
.hero {
  padding: 60px 24px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.hero-main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #2B3A4A, #4A3528, #2A3830);
  cursor: pointer;
}
.hero-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.05) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.hero-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 12px;
}
.hero-excerpt {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 500px;
}
.hero-meta {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.hero-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}
.hero-card-img {
  width: 140px;
  height: 95px;
  background: linear-gradient(135deg, #4A3A2A, #2A4A3A);
  border-radius: 4px;
  flex-shrink: 0;
  overflow: hidden;
}
.hero-card-img img,
.article-card-img img,
.strip-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-card-text { flex: 1; }
.hero-card-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 6px;
}
.hero-card-title {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.hero-card-meta {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── MAIN CONTENT ── */
.main-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}

/* ── SECTION HEADERS ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.section-header h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}
.section-header .line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-header a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* ── ARTICLE GRID ── */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.article-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: var(--border-light);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.article-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #3E3E5E, #5E3E3E);
  position: relative;
}
.article-card-img .read-time {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}
.article-card-body {
  padding: 20px;
}
.article-card-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.article-card-title {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}
.article-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.author-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--border);
}

/* ── IN-FEED NATIVE AD ── */
.in-feed-ad {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.25s;
}
.in-feed-ad:hover { border-color: var(--accent); }
.in-feed-ad-visual {
  width: 280px;
  height: 160px;
  background: linear-gradient(135deg, var(--accent-glow), rgba(244,169,59,0.08));
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.in-feed-ad-body { flex: 1; }
.in-feed-ad-body .ad-native-label { margin-bottom: 8px; }
.in-feed-ad-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 8px;
}
.in-feed-ad-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
.in-feed-ad-cta {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  transition: all 0.25s;
}
.in-feed-ad-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* ── NUMBERED LIST ── */
.numbered-list { margin-bottom: 40px; }
.numbered-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.numbered-item:hover { background: rgba(0,0,0,0.02); }
.numbered-item-num {
  font-family: var(--serif);
  font-size: 42px;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}
.numbered-item-text { flex: 1; }
.numbered-item-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 4px;
}
.numbered-item-title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.numbered-item-meta {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── SIDEBAR ── */
.sidebar {
  position: relative;
}
.sidebar-sticky {
  position: sticky;
  top: 100px;
}
.sidebar-section {
  margin-bottom: 32px;
}
.sidebar-section h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Newsletter */
.newsletter-box {
  background: linear-gradient(135deg, rgba(217,81,44,0.06), rgba(200,133,10,0.04));
  border: 1px solid rgba(217,81,44,0.15);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 28px;
}
.newsletter-box h3 {
  font-family: var(--serif);
  font-size: 22px;
  border: none;
  padding: 0;
  margin-bottom: 8px;
}
.newsletter-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.newsletter-box input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
}
.newsletter-box input:focus { border-color: var(--accent); }
.newsletter-box button {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}
.newsletter-box button:hover { background: #d4492a; }

/* Trending */
.trending-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.trending-item:last-child { border-bottom: none; }
.trending-num {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--border);
  line-height: 1;
  width: 28px;
  flex-shrink: 0;
}
.trending-text h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 2px;
}
.trending-text span {
  font-size: 11px;
  color: var(--text-dim);
}

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ── MID-PAGE BANNER ── */
.mid-banner {
  max-width: var(--max-w);
  margin: 0 auto 48px;
  padding: 0 24px;
}

/* ── CATEGORY STRIPS ── */
.category-strip {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 0;
}
.strip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.strip-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.strip-card-img {
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, #3E5A3E, #3E3E5E);
}
.strip-card-body { padding: 16px; }
.strip-card-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.strip-card-title {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.strip-card-meta {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  background: var(--bg-sidebar);
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-bottom-links a { transition: color 0.25s; }
.footer-bottom-links a:hover { color: var(--text-muted); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }

/* ── SEARCH OVERLAY ── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-box {
  background: var(--bg);
  border-radius: 12px;
  padding: 32px;
  width: 90%;
  max-width: 640px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: overlaySlideUp 0.3s ease;
}
.search-box h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 16px;
}
.search-input-wrap {
  display: flex;
  gap: 10px;
}
.search-input-wrap input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  outline: none;
}
.search-input-wrap input:focus { border-color: var(--accent); }
.search-input-wrap button {
  padding: 14px 24px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s;
}
.search-input-wrap button:hover { background: #c0421f; }
.search-results {
  margin-top: 20px;
  max-height: 400px;
  overflow-y: auto;
}
.search-result-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.search-result-item:hover { background: rgba(0,0,0,0.02); }
.search-result-item h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 3px;
}
.search-result-item span {
  font-size: 12px;
  color: var(--text-dim);
}
.search-no-results {
  padding: 20px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* ── CONTACT SECTION ── */
.contact-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.contact-info h2 {
  font-family: var(--serif);
  font-size: 28px;
  margin-bottom: 12px;
}
.contact-info p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.contact-detail svg { flex-shrink: 0; color: var(--accent); }
.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { min-height: 120px; }
.contact-form button {
  padding: 14px 32px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.25s;
}
.contact-form button:hover { background: #c0421f; }
.form-success {
  padding: 16px;
  background: rgba(46,139,87,0.1);
  border: 1px solid rgba(46,139,87,0.3);
  border-radius: 6px;
  color: #2E8B57;
  font-size: 14px;
  margin-top: 12px;
  display: none;
}


/* ── reCAPTCHA + HONEYPOT ── */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.recaptcha-row {
  margin-bottom: 16px;
}
.captcha-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
/* The sidebar is 320px wide and the widget is 304px, so scale it to fit.
   Explicit rendering does not add the .g-recaptcha class, so target the
   container id directly. */
.newsletter-box .recaptcha-row {
  height: 70px;
}
#subRecaptcha {
  transform: scale(0.88);
  transform-origin: 0 0;
  width: 304px;
}
.form-error {
  padding: 12px 14px;
  background: rgba(217,81,44,0.08);
  border: 1px solid rgba(217,81,44,0.3);
  border-radius: 6px;
  color: #B0421F;
  font-size: 13px;
  margin-top: 12px;
  display: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .sidebar-sticky { position: static; }
  .hero-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 26px; }
  .article-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  nav { display: none; }
  .hamburger { display: block; }
  .in-feed-ad { flex-direction: column; }
  .in-feed-ad-visual { width: 100%; height: 120px; }
  .topics-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .search-overlay { padding-top: 60px; }
}

/* ── TOPICS GRID ── */
.topics-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  display: block;
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  border-color: var(--accent);
}
.topic-card-gradient {
  height: 100px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  overflow: hidden;
}
.topic-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
}
.topic-badge.popular { background: #E5A100; }
.topic-badge.essential { background: #2E8B57; }
.topic-badge.trending { background: #6A5ACD; }
.topic-badge.advanced { background: #C0392B; }
.topic-badge.new { background: #2980B9; }
.topic-card-body {
  padding: 16px;
}
.topic-card-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  color: var(--text);
}
.topic-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.topic-card-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.topic-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── TOPIC OVERLAY ── */
.topic-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s;
  overflow-y: auto;
}
.topic-overlay.active {
  opacity: 1;
  visibility: visible;
}
.topic-overlay-inner {
  max-width: 860px;
  margin: 40px auto;
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  position: relative;
  animation: overlaySlideUp 0.4s ease;
}
@keyframes overlaySlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s;
}
.overlay-close:hover { background: #fff; transform: scale(1.1); }
.overlay-hero {
  height: 240px;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.overlay-hero-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.overlay-hero h2 {
  font-family: var(--serif);
  font-size: 36px;
  color: #fff;
  margin-bottom: 8px;
}
.overlay-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}
.overlay-body {
  padding: 40px;
}
.overlay-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.overlay-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--text);
  margin: 36px 0 16px;
}
.overlay-body .ad-slot {
  margin: 32px 0;
}
.overlay-body .ad-native {
  margin: 32px 0;
}

@media (max-width: 1024px) {
  .topics-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-overlay-inner { margin: 16px; border-radius: 10px; }
  .overlay-body { padding: 24px; }
  .overlay-hero h2 { font-size: 26px; }
}

/* ── ARTICLE PAGES ── */
.ad-wrap { max-width: var(--max-w); margin: 0 auto 32px; padding: 0 24px; }
.article-page { max-width: 860px; margin: 0 auto; padding: 0 24px 60px; }
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-current { color: var(--text-dim); }
.article-hero { border-radius: 12px; padding: 56px 40px; margin-bottom: 40px; color: #fff; }
.article-hero-inner { max-width: 680px; }
.article-hero-cat { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #F0A58A; margin-bottom: 14px; }
.article-hero h1 { font-family: var(--serif); font-size: 42px; line-height: 1.12; font-weight: 600; margin-bottom: 14px; color: #fff; }
.article-hero p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.82); margin-bottom: 20px; }
.article-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.65); }
.article-body { font-size: 17px; line-height: 1.85; color: var(--text); }
.article-body h2 { font-family: var(--serif); font-size: 27px; font-weight: 600; margin: 40px 0 16px; line-height: 1.25; }
.article-body p { margin-bottom: 22px; }
.article-body .ad-wrap { padding: 0; margin: 34px 0; }
.related { margin-top: 56px; }
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rel-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.rel-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.09); border-color: var(--accent); }
.rel-card-img { height: 130px; background-size: cover; background-position: center; }
.rel-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.rel-card-cat { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.rel-card h3 { font-family: var(--serif); font-size: 16px; line-height: 1.32; font-weight: 600; margin-bottom: 10px; flex: 1; }
.rel-card-meta { font-size: 12px; color: var(--text-dim); }
.article-cta { margin-top: 48px; text-align: center; background: linear-gradient(135deg, rgba(217,81,44,0.07), rgba(200,133,10,0.05)); border: 1px solid rgba(217,81,44,0.18); border-radius: 12px; padding: 40px 32px; }
.article-cta h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 10px; }
.article-cta p { color: var(--text-muted); font-size: 15px; margin-bottom: 22px; }
.article-cta-btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 0.5px; padding: 14px 34px; border-radius: 6px; transition: background 0.25s; }
.article-cta-btn:hover { background: #c0421f; }
.hub-head { margin-bottom: 40px; }
.hub-head h1 { font-family: var(--serif); font-size: 42px; font-weight: 600; margin-bottom: 10px; }
.hub-head p { color: var(--text-muted); font-size: 16px; }
.hub-section { margin-bottom: 48px; }
a.search-result-item { display: block; text-decoration: none; color: inherit; }

@media (max-width: 1024px) {
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .article-hero { padding: 36px 24px; }
  .article-hero h1 { font-size: 30px; }
  .article-body { font-size: 16px; }
  .rel-grid { grid-template-columns: 1fr; }
  .ad-wrap { padding: 0 16px; }
}
