/*
Theme Name: Nairaseed
Theme URI: https://nairaseed.com
Author: Nairaseed Editorial
Description: A premium Nigerian finance & business magazine theme for Nairaseed.com — Where Nigerian wealth begins.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Tags: magazine, finance, blog, dark-mode, responsive, nigerian, african
*/

/* =============================================
   GOOGLE FONTS IMPORT
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400;1,14..32,500&display=swap');

/* =============================================
   CSS VARIABLES — LIGHT MODE (Default)
============================================= */
:root {
  /* Brand Palette */
  --green-deep:    #1A3C2E;
  --green-mid:     #2A5C42;
  --green-light:   #3D8B5E;
  --gold:          #D4820A;
  --gold-light:    #EFA020;
  --cream:         #F6F2EA;
  --cream-dark:    #ECE7DC;

  /* Semantic Tokens — Light Mode */
  --bg-page:       #F7F3EC;
  --bg-card:       #FFFFFF;
  --bg-nav:        #1B4332;
  --bg-footer:     #0D1F17;
  --bg-section:    #FFFFFF;
  --bg-chip:       #EDE8DF;

  --text-primary:  #1A1A1A;
  --text-secondary:#444444;
  --text-muted:    #888888;
  --text-inverse:  #FFFFFF;
  --text-gold:     #C9960A;
  --text-green:    #1B4332;

  --border:        #DDD8CF;
  --border-light:  #EDE8DF;
  --shadow:        0 2px 12px rgba(27, 67, 50, 0.08);
  --shadow-hover:  0 8px 32px rgba(27, 67, 50, 0.15);

  --accent:        #1B4332;
  --accent-alt:    #C9960A;

  /* Typography */
  --font-display:  'Inter', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-ui:       'Inter', system-ui, sans-serif;

  /* Spacing */
  --container:     1260px;
  --gap:           24px;
  --radius:        8px;
  --radius-lg:     16px;

  /* Transitions */
  --transition:    all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   DARK MODE VARIABLES
============================================= */
[data-theme="dark"] {
  --bg-page:       #0D1117;
  --bg-card:       #161B22;
  --bg-nav:        #0D1117;
  --bg-footer:     #070D0A;
  --bg-section:    #161B22;
  --bg-chip:       #1C2128;

  --text-primary:  #F0EBE3;
  --text-secondary:#BBBBBB;
  --text-muted:    #777777;
  --text-inverse:  #0D1117;
  --text-gold:     #D4A017;
  --text-green:    #52B788;

  --border:        #2A2F38;
  --border-light:  #1C2128;
  --shadow:        0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-hover:  0 8px 32px rgba(0, 0, 0, 0.5);

  --accent:        #52B788;
  --accent-alt:    #D4A017;
  --bg-chip:       #1C2128;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-page);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-alt); }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* =============================================
   TRENDING BAR
============================================= */
.trending-bar {
  background-color: var(--green-deep);
  color: #fff;
  padding: 9px 0;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

[data-theme="dark"] .trending-bar {
  background-color: #0A1A10;
  border-bottom: 1px solid var(--border);
}

.trending-bar .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trending-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.trending-ticker {
  overflow: hidden;
  flex: 1;
}

.trending-ticker-inner {
  display: flex;
  gap: 48px;
  animation: ticker 40s linear infinite;
  width: max-content;
}

.trending-ticker-inner:hover { animation-play-state: paused; }

.trending-ticker a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
  transition: var(--transition);
}

.trending-ticker a:hover { color: var(--gold-light); }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   NAVIGATION
============================================= */
.site-header {
  background-color: var(--bg-nav);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease;
}

[data-theme="dark"] .site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.logo-name span { color: var(--gold); }

.logo-tagline {
  font-family: var(--font-ui);
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Primary Nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

/* Fix: wp_nav_menu outputs a <ul> inside <nav> — make it flex too */
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Cover both direct li (fallback nav) and ul > li (wp_nav_menu) */
.primary-nav > li,
.primary-nav > ul > li {
  position: relative;
}

.primary-nav > li > a,
.primary-nav > ul > li > a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.primary-nav > li > a:hover,
.primary-nav > li.current-menu-item > a,
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.primary-nav > li > a .nav-arrow,
.primary-nav > ul > li > a .nav-arrow {
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.primary-nav > li:hover > a .nav-arrow,
.primary-nav > ul > li:hover > a .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown — cover both selector chains */
.primary-nav > ul > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 1000;
}

.primary-nav > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.nav-dropdown a:last-child { border-bottom: none; }

.nav-dropdown a:hover {
  background: var(--bg-chip);
  color: var(--text-green);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-subscribe {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  background: var(--gold);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-subscribe:hover {
  background: var(--gold-light);
  color: #fff;
  transform: translateY(-1px);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  flex-shrink: 0;
}

.dark-mode-toggle:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* Search toggle */
.search-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
}

.search-toggle:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13,17,23,0.92);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-form-wrap {
  width: 100%;
  max-width: 640px;
  padding: 0 20px;
}

.search-form-wrap form {
  display: flex;
  gap: 0;
}

.search-form-wrap input[type="search"] {
  flex: 1;
  font-family: var(--font-display);
  font-size: 24px;
  padding: 16px 20px;
  border: 2px solid var(--gold);
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: #1C2128;
  color: #fff;
  outline: none;
}

.search-form-wrap input::placeholder { color: rgba(255,255,255,0.3); }

.search-form-wrap button {
  padding: 16px 24px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.search-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* =============================================
   AD ZONES — fills container or sidebar width
   These are placeholders for AdSense OR direct
   advertiser banners — swap inner content for
   real ad code once approved.
============================================= */
.ad-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-chip);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
  transition: var(--transition);
  width: 100%;         /* Always fill parent width */
  box-sizing: border-box;
}

.ad-zone::before {
  content: 'Advertisement';
  display: block;
  opacity: 0.5;
}

/* Header leaderboard — full container width, max 90px tall */
.ad-header {
  width: 100%;
  max-width: 100%;
  height: 90px;
  margin: 8px 0;
}

/* In-content — full post content width */
.ad-content-wide {
  width: 100%;
  max-width: 100%;
  height: 100px;
  margin: 32px 0;
}

/* Sidebar — fills sidebar column completely */
.ad-sidebar {
  width: 100%;
  max-width: 100%;
  height: 250px;
  margin: 0 0 24px;
}

/* Sidebar tall — fills sidebar column completely */
.ad-sidebar-tall {
  width: 100%;
  max-width: 100%;
  height: 500px;
  margin: 0 0 24px;
}

/* Tall ad banner widget wrapper */
.widget-ad-banner { padding: 0; background: none; border: none; }

.ad-banner-tall {
  position: relative;
  width: 100%;
}

/* Placeholder shown when kowriwise_ad outputs nothing */
.ad-placeholder-tall {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 600px;
  background: var(--bg-chip);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  gap: 6px;
}

.ad-placeholder-tall span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ad-placeholder-tall small {
  font-size: 11px;
  opacity: 0.6;
}

/* In-post — fills post content column */
.ad-in-post {
  width: 100%;
  max-width: 100%;
  height: 90px;
  margin: 32px 0;
}

/* Homepage section divider — full container width */
.ad-section-divider {
  width: 100%;
  max-width: 100%;
  height: 100px;
  margin: 40px 0;
}

/* =============================================
   LOGO ANIMATION
============================================= */
@keyframes seedFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-3px); }
}

@keyframes leafSway {
  0%, 100% { transform: rotate(0deg); transform-origin: bottom center; }
  25%       { transform: rotate(4deg); transform-origin: bottom center; }
  75%       { transform: rotate(-4deg); transform-origin: bottom center; }
}

@keyframes seedPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.82; }
}

@keyframes sproutGrow {
  0%   { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
}

.logo-icon {
  animation: seedFloat 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.site-logo:hover .logo-icon {
  animation: none;
  transform: scale(1.1) translateY(-2px);
}

.logo-icon .leaf-right {
  animation: leafSway 3s ease-in-out infinite;
  transform-origin: 19px 16px;
}

.logo-icon .leaf-left {
  animation: leafSway 3s ease-in-out infinite 0.4s;
  transform-origin: 19px 14px;
}

.logo-icon .seed-glow {
  animation: seedPulse 2.5s ease-in-out infinite;
}

/* Logo text animation on hover */
.site-logo .logo-name {
  transition: letter-spacing 0.3s ease;
}

.site-logo:hover .logo-name {
  letter-spacing: 0.01em;
}

/* =============================================
   HOMEPAGE HERO — constrained to container width
============================================= */
.hero-section {
  padding: 0;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}

.hero-section .container {
  padding: 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  min-height: 480px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

.hero-main {
  position: relative;
  overflow: hidden;
}

.hero-main .post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-main:hover .post-thumbnail {
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  padding: 48px 36px 36px;
}

.hero-category {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-title a { color: #fff; }
.hero-title a:hover { color: var(--gold-light); }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
}

.hero-meta .author { font-weight: 500; color: rgba(255,255,255,0.9); }
.hero-meta .dot { opacity: 0.4; }

/* Hero Sidebar Stack */
.hero-sidebar {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.hero-sidebar-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.hero-sidebar-item:last-child { border-bottom: none; }
.hero-sidebar-item:hover { background: var(--bg-chip); }

.hero-sidebar-item .thumb {
  width: 100px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.hero-sidebar-item .content { min-width: 0; }

.hero-sidebar-item .cat {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-green);
  margin-bottom: 4px;
  display: block;
}

[data-theme="dark"] .hero-sidebar-item .cat { color: var(--accent); }

.hero-sidebar-item h3 {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-sidebar-item h3 a { color: inherit; }
.hero-sidebar-item h3 a:hover { color: var(--accent); }

.hero-sidebar-item .read-time {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
}

/* =============================================
   SECTION HEADINGS
============================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .icon {
  width: 26px;
  height: 26px;
  background: var(--green-deep);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

[data-theme="dark"] .section-title .icon {
  background: var(--accent);
  color: var(--text-inverse);
}

.section-link {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 4px;
}

[data-theme="dark"] .section-link { color: var(--accent); }
.section-link:hover { color: var(--gold); gap: 8px; }

/* =============================================
   POST CARDS
============================================= */
/* Standard Card */
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.post-card .card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .card-thumb { transform: scale(1.04); }

.card-thumb-wrap {
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  z-index: 2;
}

.badge-editors-pick { background: var(--green-deep); color: #fff; }
.badge-trending     { background: var(--gold); color: #fff; }
.badge-new          { background: #E63946; color: #fff; }

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-green);
  margin-bottom: 8px;
  display: inline-block;
}

[data-theme="dark"] .card-category { color: var(--accent); }
.card-category:hover { color: var(--gold); }

.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  flex: 1;
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.card-meta .author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.card-meta .author-name { font-weight: 500; color: var(--text-secondary); }
.card-meta .dot { opacity: 0.3; }

/* List Card (horizontal) */
.post-card-list {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
  transition: var(--transition);
}

.post-card-list:last-child { border-bottom: none; }
.post-card-list:hover .list-title { color: var(--accent); }

.post-card-list .list-thumb {
  width: 110px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.list-content { min-width: 0; }

.list-cat {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-green);
  margin-bottom: 5px;
  display: block;
}

[data-theme="dark"] .list-cat { color: var(--accent); }

.list-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: var(--transition);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.list-title a { color: inherit; }

.list-meta {
  font-family: var(--font-ui);
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Featured List Card */
.post-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.post-card-featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.post-card-featured .card-thumb {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.post-card-featured .card-body {
  padding: 24px;
}

.post-card-featured .card-title {
  font-size: 20px;
  -webkit-line-clamp: 4;
}

/* Number card for rankings */
.post-card-numbered {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}

.post-card-numbered:last-child { border-bottom: none; }

.card-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  text-align: center;
  padding-top: 3px;
  flex-shrink: 0;
  transition: var(--transition);
}

.post-card-numbered:hover .card-number { color: var(--gold); }

.numbered-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  transition: var(--transition);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.numbered-title a { color: inherit; }
.post-card-numbered:hover .numbered-title { color: var(--accent); }

.numbered-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* =============================================
   HOMEPAGE SECTIONS
============================================= */
.homepage-wrap {
  padding: 40px 0;
}

.homepage-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.homepage-section:last-child { border-bottom: none; }

/* Latest Grid — 3 col */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* Category Section Layout */
.cat-section-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.cat-section-main {}
.cat-section-sidebar {}

.posts-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.posts-list { display: flex; flex-direction: column; }

/* =============================================
   SIDEBAR LAYOUT
============================================= */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 40px 0;
  align-items: start;
}

.main-content { min-width: 0; }

.sidebar {
  position: sticky;
  top: 88px;       /* clears sticky header height */
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none; /* hide scrollbar Firefox */
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar { display: none; } /* hide scrollbar Chrome */

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--gold);
}

/* Newsletter widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
  border-color: transparent;
}

.newsletter-widget .widget-title { color: #fff; border-color: rgba(255,255,255,0.2); }
.newsletter-widget .widget-title::after { background: var(--gold); }

.newsletter-widget p {
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 16px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--gold); background: rgba(255,255,255,0.18); }

.btn-newsletter {
  width: 100%;
  padding: 10px 16px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-newsletter:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Tags cloud widget */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  font-family: var(--font-ui);
  font-size: 12px;
  background: var(--bg-chip);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.tag-chip:hover {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}

[data-theme="dark"] .tag-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* =============================================
   SINGLE POST
============================================= */
/* ===== NEW SINGLE POST PAGE LAYOUT ===== */
.single-page-wrap {
  padding: 0;
  background: var(--bg-page);
}

.single-layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 40px 0 60px;
  align-items: start;
}

.single-main { min-width: 0; }

.single-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.single-sidebar::-webkit-scrollbar { display: none; }

/* Post breadcrumb */
.single-page-wrap .post-breadcrumb {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.single-page-wrap .post-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.single-page-wrap .post-breadcrumb a:hover { color: var(--accent); }
.single-page-wrap .post-breadcrumb .sep { opacity: 0.4; }

/* Featured image — full width within article column */
.post-featured-image-wrap {
  margin: 24px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.post-featured-image-wrap img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* Inline social share strip under featured image */
.post-inline-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.share-label-inline {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.share-buttons-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.share-btn-inline.facebook { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-btn-inline.twitter  { background: #000; color: #fff; border-color: #000; }
.share-btn-inline.whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.share-btn-inline.linkedin { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.share-btn-inline:hover { opacity: 0.85; transform: translateY(-1px); }

/* post badge */
.post-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--gold);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: auto;
}

/* LEGACY - keep for old single-post-header if referenced anywhere */
.single-post-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
}

.post-breadcrumb {
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-breadcrumb a { color: var(--text-muted); }
.post-breadcrumb a:hover { color: var(--accent); }
.post-breadcrumb .sep { opacity: 0.4; }

.post-category-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: rgba(27,67,50,0.1);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

[data-theme="dark"] .post-category-label {
  color: var(--accent);
  background: rgba(82,183,136,0.12);
}

.post-main-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-primary);
  margin: 12px 0 16px;
  letter-spacing: -0.03em;
  max-width: 800px;
}

.post-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 700px;
  font-style: italic;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.post-author-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-author-block .author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.author-info-small .name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 3px;
}

.author-info-small .date-read {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}

.post-meta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-share {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-share:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-chip);
}

.btn-share.whatsapp:hover { border-color: #25D366; color: #25D366; }
.btn-share.twitter:hover  { border-color: #1DA1F2; color: #1DA1F2; }
.btn-share.facebook:hover { border-color: #1877F2; color: #1877F2; }

/* Hero image */
.post-featured-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Affiliate disclaimer */
.affiliate-notice {
  background: rgba(201, 150, 10, 0.08);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 28px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.affiliate-notice strong { color: var(--gold); }

/* Post Content */
.post-content {
  max-width: 740px;
}

.post-content p {
  margin-bottom: 24px;
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--text-primary);
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
  line-height: 1.3;
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.post-content ul, .post-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li {
  margin-bottom: 8px;
  font-size: 17px;
  color: var(--text-primary);
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(27,67,50,0.3);
  text-underline-offset: 2px;
}

[data-theme="dark"] .post-content a {
  text-decoration-color: rgba(82,183,136,0.3);
}

.post-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 32px 0;
  padding: 16px 24px;
  background: var(--bg-chip);
  border-radius: 0 8px 8px 0;
}

.post-content blockquote p {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-family: var(--font-ui);
  font-size: 14.5px;
}

.post-content th {
  background: var(--green-deep);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

[data-theme="dark"] .post-content th {
  background: var(--accent);
  color: var(--text-inverse);
}

.post-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.post-content tr:nth-child(even) td { background: var(--bg-chip); }

/* Key takeaways box */
.takeaways-box {
  background: var(--bg-chip);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green-deep);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

[data-theme="dark"] .takeaways-box { border-top-color: var(--accent); }

.takeaways-box h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.takeaways-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.takeaways-box li {
  font-family: var(--font-ui);
  font-size: 14.5px;
  color: var(--text-secondary);
  padding: 6px 0 6px 22px;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.takeaways-box li:last-child { border-bottom: none; }

.takeaways-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-light);
  font-weight: 700;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.post-tag {
  font-family: var(--font-ui);
  font-size: 12.5px;
  background: var(--bg-chip);
  color: var(--text-secondary);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.post-tag:hover {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}

/* Social share bar - sticky bottom */
.social-share-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 4px;
}

.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.share-btn.whatsapp { background: #25D366; color: #fff; }
.share-btn.twitter  { background: #1DA1F2; color: #fff; }
.share-btn.facebook { background: #1877F2; color: #fff; }
.share-btn.copy     { background: var(--bg-chip); color: var(--text-secondary); border: 1px solid var(--border); }

.share-btn:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }
.share-btn.copy:hover { border-color: var(--accent); color: var(--accent); }

/* Author Box */
.author-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  margin: 40px 0;
}

.author-box .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.author-box-content .name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.author-box-content .role {
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-green);
  margin-bottom: 12px;
  font-weight: 600;
}

[data-theme="dark"] .author-box-content .role { color: var(--accent); }

.author-box-content .bio {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== MORE STORIES IN-POST WIDGET (Image 2 style) ===== */
.more-stories-widget {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin: 48px 0 0;
  overflow: hidden;
  background: var(--bg-card);
}

.more-stories-header {
  padding: 14px 20px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.more-stories-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 4px;
}

.more-stories-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.more-stories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 20px;
  gap: 16px;
}

.more-stories-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ms-thumb-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  display: block;
}

.ms-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ms-thumb-wrap:hover .ms-thumb { transform: scale(1.05); }

.ms-body { flex: 1; min-width: 0; }

.ms-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}

.ms-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.ms-title a:hover { color: var(--accent); }

.ms-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.ms-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border-light);
}

.ms-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}

.ms-nav-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Legacy related-posts kept for other templates */
.related-posts { margin: 48px 0 0; }
.related-posts .section-header { margin-bottom: 20px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* =============================================
   NEWSLETTER SECTION (Homepage full-width)
============================================= */
.newsletter-section {
  background: linear-gradient(135deg, var(--green-deep) 0%, #0D3320 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,150,10,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.newsletter-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.newsletter-section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.newsletter-section p {
  font-family: var(--font-ui);
  font-size: 15.5px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  line-height: 1.65;
}

.newsletter-form-main {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form-main input[type="email"] {
  flex: 1;
  padding: 13px 18px;
  font-family: var(--font-ui);
  font-size: 14px;
  border: none;
  border-radius: 8px 0 0 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-right: none;
  color: #fff;
  outline: none;
}

.newsletter-form-main input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form-main input:focus { border-color: var(--gold); }

.newsletter-form-main button {
  padding: 13px 22px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form-main button:hover { background: var(--gold-light); }

.newsletter-disclaimer {
  font-family: var(--font-ui);
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
  border-top: 3px solid var(--green-mid);
}

.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .site-logo { margin-bottom: 16px; }

.footer-brand .tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: #fff;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.footer-col ul a:hover { color: var(--gold); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: var(--gold); }

/* =============================================
   PAGINATION
============================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 40px 0;
}

.page-numbers {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: var(--transition);
}

.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.page-numbers.current { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }

[data-theme="dark"] .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--text-inverse); }

/* =============================================
   CATEGORY / ARCHIVE PAGE
============================================= */
.archive-header {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
  padding: 48px 0;
  margin-bottom: 40px;
}

.archive-header .category-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.archive-header h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.archive-header .description {
  font-family: var(--font-ui);
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
}

.archive-count {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--gold-light);
  margin-top: 8px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 40px;
}

/* =============================================
   404 PAGE
============================================= */
.error-page {
  text-align: center;
  padding: 100px 20px;
}

.error-page .error-number {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h2 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.error-page p {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.btn-home {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  background: var(--green-deep);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-home:hover { background: var(--green-mid); color: #fff; transform: translateY(-2px); }

/* =============================================
   MOBILE FLOATING BUTTON
============================================= */
.mobile-fab {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--green-deep);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(27,67,50,0.4);
  cursor: pointer;
  z-index: 9000;
  transition: var(--transition);
  border: none;
}

[data-theme="dark"] .mobile-fab { background: var(--accent); box-shadow: 0 4px 20px rgba(82,183,136,0.35); }
.mobile-fab:hover { transform: scale(1.08); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: var(--bg-nav);
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 8999;
  max-height: 70vh;
  overflow-y: auto;
}

.mobile-menu.open { transform: translateY(0); }

.mobile-menu a {
  display: block;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--gold); }

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 8998;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .hero-sidebar { display: none; }
  .hero-main { height: 400px; }

  .content-sidebar-wrap { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; }

  /* Single post responsive */
  .single-layout-grid { grid-template-columns: 1fr; gap: 32px; }
  .single-sidebar { position: static; max-height: none; overflow: visible; }

  .more-stories-grid { grid-template-columns: 1fr; }

  .cat-section-grid { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr 1fr; }

  .primary-nav { display: none; }
  .btn-subscribe { display: none; }
  .hamburger { display: flex; }

  .mobile-fab { display: flex; }
  .mobile-menu { display: block; }
  .mobile-menu-overlay { display: block; }
}

@media (max-width: 640px) {
  .latest-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .posts-grid-2 { grid-template-columns: 1fr; }
  .post-card-featured { grid-template-columns: 1fr; }

  /* Footer: brand full width, company + resources side by side */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid .footer-brand {
    grid-column: 1 / -1;
  }

  /* Company and Resources side by side on mobile */
  .footer-cols-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    grid-column: 1 / -1;
  }

  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-box .avatar { margin: 0 auto; }

  .newsletter-form-main { flex-direction: column; }
  .newsletter-form-main input { border-radius: 8px; border-right: 1px solid rgba(255,255,255,0.2); }
  .newsletter-form-main button { border-radius: 8px; }

  .social-share-bar { flex-direction: column; align-items: flex-start; }
  .share-buttons { flex-wrap: wrap; }

  .post-meta-bar { flex-direction: column; align-items: flex-start; }
  .post-meta-actions { margin-left: 0; }

  .hero-grid { padding: 0 16px; }

  /* Share buttons wrap on mobile */
  .share-buttons-inline { gap: 6px; }
  .share-btn-inline { font-size: 11px; padding: 5px 10px; }

  /* More stories: 1 col on mobile */
  .more-stories-grid { grid-template-columns: 1fr; }

  /* Comment form: full width inputs on mobile */
  .comment-form .comment-form-author,
  .comment-form .comment-form-email,
  .comment-form .comment-form-url {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}

/* =============================================
   UTILITIES
============================================= */
.text-gold   { color: var(--gold) !important; }
.text-green  { color: var(--text-green) !important; }
.text-muted  { color: var(--text-muted) !important; }
.bg-chip     { background: var(--bg-chip); }

.visually-hidden {
  position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden;
}

/* Smooth content load */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Read progress bar */
#read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
}

/* =============================================
   BODY TEXT OVERRIDE — Plus Jakarta Sans
   is a sans-serif; bump line-height slightly
============================================= */
.post-content p,
.post-content li {
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

/* =============================================
   COMMENTS
============================================= */
/* =============================================
   COMMENTS — Redesigned (Image 3 reference)
============================================= */
.comments-area {
  margin-top: 56px;
  padding-top: 0;
  border-top: none;
}

/* Comment count heading */
.comments-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.comments-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--gold);
}

/* Comment list */
.comment-list { list-style: none; padding: 0; margin: 0 0 48px; }

.comment {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

.comment:last-child { border-bottom: none; }

.comment .comment-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.comment-author .fn {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  font-style: normal;
}

.comment-metadata a {
  font-size: 11.5px;
  color: var(--text-muted);
  text-decoration: none;
}

.comment-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.comment-reply-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 10px;
  display: inline-block;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
  padding: 3px 10px;
  border-radius: 4px;
}

.comment-reply-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(27,67,50,0.05);
}

/* ========== COMMENT FORM — Image 3 design ========== */
.comment-respond {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-top: 8px;
  box-shadow: var(--shadow);
}

.comment-reply-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.comment-reply-title small { display: block; font-size: 13px; font-weight: 400; color: var(--text-muted); margin-top: 4px; }
.comment-reply-title small a { color: var(--accent); text-decoration: none; }

/* Required fields note */
.comment-notes {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.comment-notes .required { color: var(--gold); }

/* Labels */
.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.comment-form label .required { color: #e53e3e; }

/* All text inputs and textarea */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 20px;
  -webkit-appearance: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(27,67,50,0.08);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* Name + Email side by side */
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
  display: inline-block;
  width: calc(50% - 10px);
  vertical-align: top;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email { margin-right: 20px; }
.comment-form .comment-form-url { margin-right: 0; }

/* Cookie consent checkbox */
.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.comment-form .comment-form-cookies-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

/* Submit button */
.comment-form .form-submit { margin-bottom: 0; }

.comment-form .form-submit input[type="submit"] {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  background: var(--green-deep);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.comment-form .form-submit input[type="submit"]:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,67,50,0.25);
}

[data-theme="dark"] .comment-form .form-submit input[type="submit"] {
  background: var(--accent);
  color: #0D1117;
}

/* =============================================
   NEWSLETTER FOOTER STRIP — compact variant
============================================= */
.newsletter-footer-strip {
  padding: 48px 0;
}

.newsletter-footer-strip .newsletter-inner {
  max-width: 520px;
}

.newsletter-footer-strip h2 {
  font-size: clamp(20px, 2.5vw, 28px);
}

/* =============================================
   SEARCH PAGE NO-RESULTS CATEGORY CHIPS hover
============================================= */
.search-cat-chip:hover {
  background: var(--green-deep) !important;
  color: #fff !important;
  border-color: var(--green-deep) !important;
}
