/* ============================================
   AllNewsInvest - Main Stylesheet
   Design System: Navy/Green Financial Theme
   ============================================ */

/* ── Variables & Tokens ─────────────────────── */
:root {
  --primary:       #0a1628;
  --primary-mid:   #122044;
  --primary-light: #1e3a6e;
  --accent:        #00a86b;
  --accent-light:  #00d488;
  --accent-dark:   #007a4d;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --surface:       #ffffff;
  --surface-2:     #f4f6f9;
  --surface-3:     #edf0f5;
  --border:        #e2e8f0;
  --border-dark:   #cbd5e1;
  --text:          #1a202c;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --card-shadow:   0 4px 20px rgba(0,0,0,.08);
  --card-hover:    0 12px 40px rgba(0,0,0,.14);
  --nav-h:         72px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --transition:    .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ── Reading Progress Bar ───────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0; z-index: 9999;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width .1s linear;
}

/* ── Ad Containers ──────────────────────────── */
.ad-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  overflow: hidden;
}
.ad-header { width: 100%; height: 90px; margin: 0; border-radius: 0; border-left: none; border-right: none; }
.ad-sidebar { width: 300px; min-height: 250px; }
.ad-inline { width: 100%; height: 280px; margin: 2rem 0; }
.ad-end-article { width: 100%; height: 280px; margin: 2rem 0; }

/* ── Container ──────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navigation & Header ────────────────────── */
.market-ticker {
  background: #060e1b;
  color: #fff;
  font-size: .8rem;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  overflow: hidden;
}
.market-ticker-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.market-ticker-inner::-webkit-scrollbar { display: none; }
.ticker-column {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.ticker-label {
  color: rgba(255,255,255,.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .7rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.ticker-items {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.ticker-item {
  font-family: inherit;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .3rem;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
}
.ticker-item .up { color: var(--accent-light); }
.ticker-item .down { color: #f87171; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,22,40,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
  transition: background var(--transition);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,168,107,.4);
}
.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.logo-accent { color: var(--accent-light); }
.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  display: block;
  padding: .5rem .75rem;
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.nav-link.active { color: var(--accent-light); }

.lang-flag {
  opacity: 0.5;
  transition: opacity var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
}
.lang-flag:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}
.lang-flag.active {
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Section ───────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #1a4a8a 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(0,168,107,.15);
  border: 1px solid rgba(0,168,107,.3);
  color: var(--accent-light);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .35rem .75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-excerpt {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
}
.hero-meta i { color: var(--accent-light); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,168,107,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,168,107,.5);
  color: #fff;
}
.btn-outline {
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.btn-sm { padding: .5rem 1.25rem; font-size: .8rem; }
.btn-green {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,168,107,.35);
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,168,107,.5); color: #fff; }
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  position: relative;
  aspect-ratio: 16/10;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.hero-image:hover img { transform: scale(1.03); }
.hero-category-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .75rem;
  border-radius: 100px;
}

/* ── Section Styling ────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--surface-2); }
.section-dark {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  padding: 4rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .5rem;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .75rem;
  line-height: 1.25;
}
.section-title.light { color: #fff; }
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
.section-sub.light { color: rgba(255,255,255,.7); }

/* ── Article Cards ──────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.article-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover);
  border-color: var(--accent);
}
.card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.article-card:hover .card-image img { transform: scale(1.06); }
.card-cat {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25rem .65rem;
  border-radius: 100px;
}
.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .6rem;
  flex-wrap: wrap;
}
.card-meta span {
  display: flex;
  align-items: center;
  gap: .3rem;
  color: var(--text-light);
  font-size: .76rem;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: .6rem;
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card:hover .card-title { color: var(--accent-dark); }
.card-excerpt {
  color: var(--text-muted);
  font-size: .875rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  gap: .5rem;
  flex-wrap: wrap;
}
.card-author {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 500;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.card-author-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-author-avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  flex-shrink: 0;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.read-more:hover { gap: .5rem; }

/* ── Financial Tools ────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.tools-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.tool-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.tool-card-link .tool-card {
  height: 100%;
}
.tool-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.tool-card:hover {
  box-shadow: var(--card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.tool-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(10,22,40,.2);
}
.tool-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .4rem;
}
.tool-desc {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.calc-field label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
}
.calc-field input, .calc-field select {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color var(--transition);
}
.calc-field input:focus, .calc-field select:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(0,168,107,.1);
}
.calc-result {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}
.calc-result-label { color: rgba(255,255,255,.7); font-size: .8rem; }
.calc-result-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-light);
  font-variant-numeric: tabular-nums;
}

/* ── Trending Section ───────────────────────── */
.trending-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}
.trending-list { display: flex; flex-direction: column; gap: 1rem; }
.trending-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}
.trending-item:hover { background: rgba(255,255,255,.1); border-color: var(--accent); }
.trending-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  min-width: 40px;
  opacity: .5;
}
.trending-content .trending-cat {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-light);
  margin-bottom: .25rem;
}
.trending-content .trending-title {
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: .4rem;
  transition: color var(--transition);
}
.trending-item:hover .trending-title { color: var(--accent-light); }
.trending-content .trending-meta {
  color: rgba(255,255,255,.5);
  font-size: .77rem;
}

/* ── Guides Section ─────────────────────────── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.guide-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  transition: all var(--transition);
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--card-hover); }
.guide-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(0,168,107,.15), rgba(0,212,136,.15));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.guide-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .5rem;
}
.guide-desc {
  color: var(--text-muted);
  font-size: .875rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* ── Newsletter ─────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content:'';
  position:absolute; inset:0;
  background: radial-gradient(circle at 30% 50%, rgba(0,168,107,.15) 0%, transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(30,58,110,.3) 0%, transparent 60%);
}
.newsletter-inner { position: relative; max-width: 560px; margin: 0 auto; }
.newsletter-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 6px 20px rgba(0,168,107,.4);
}
.newsletter-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .6rem;
}
.newsletter-sub { color: rgba(255,255,255,.7); font-size: 1rem; margin-bottom: 2rem; }
.newsletter-form {
  display: flex;
  gap: .5rem;
  max-width: 480px;
  margin: 0 auto 1rem;
}
.newsletter-form input {
  flex: 1;
  padding: .85rem 1.25rem;
  border-radius: 100px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: .9rem;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus {
  border-color: var(--accent-light);
  outline: none;
  background: rgba(255,255,255,.15);
}
.newsletter-form button {
  padding: .85rem 1.75rem;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,168,107,.4);
}
.newsletter-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,168,107,.5); }
.newsletter-privacy { color: rgba(255,255,255,.5); font-size: .78rem; }
.newsletter-msg { margin-top: .75rem; font-size: .9rem; }
.newsletter-msg.success { color: var(--accent-light); }
.newsletter-msg.error { color: #f87171; }

/* ── Footer ─────────────────────────────────── */
.site-footer {
  background: var(--primary);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-tagline { color: rgba(255,255,255,.6); font-size: .875rem; line-height: 1.6; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-links h4 {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.25rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-light); }
.footer-newsletter h4 {
  color: #fff; font-size: .9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .75rem;
}
.footer-newsletter p { color: rgba(255,255,255,.6); font-size: .875rem; margin-bottom: 1rem; }
.footer-sub-form {
  display: flex;
  gap: .5rem;
  flex-direction: column;
}
.footer-sub-form input {
  padding: .7rem 1rem;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: .875rem;
  transition: border-color var(--transition);
}
.footer-sub-form input::placeholder { color: rgba(255,255,255,.4); }
.footer-sub-form input:focus { border-color: var(--accent); }
.footer-sub-form button {
  padding: .7rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.footer-sub-form button:hover { background: var(--accent-light); }
.footer-sub-msg { font-size: .8rem; margin-top: .5rem; }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom p { color: rgba(255,255,255,.5); font-size: .8rem; }
.footer-disclaimer-text { max-width: 60%; }

/* ── Blog Listing ───────────────────────────── */
.blog-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 3.5rem 0;
  text-align: center;
}
.blog-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
}
.blog-header p { color: rgba(255,255,255,.7); font-size: 1.05rem; }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
  padding: 3rem 0;
}
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.sidebar-widget {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}
.sidebar-widget h3 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--accent);
}
.category-list { display: flex; flex-direction: column; gap: .4rem; }
.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem .6rem;
  border-radius: 6px;
  color: var(--text);
  font-size: .875rem;
  transition: all var(--transition);
}
.category-link:hover { background: var(--surface-2); color: var(--accent); }
.category-count {
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: .73rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 100px;
}

/* ── Single Article ─────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0;
}
.article-hero-img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}
.article-header { margin-bottom: 2rem; }
.article-cats {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.tag-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(0,168,107,.12);
  color: var(--accent-dark);
}
.article-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}
.article-meta-bar span {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-muted);
  font-size: .85rem;
}
.article-meta-bar i { color: var(--accent); }
.article-content { line-height: 1.85; font-size: 1.05rem; color: #2d3748; }
.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2.5rem 0 1rem;
}
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 .75rem;
}
.article-content p { margin-bottom: 1.35rem; }
.article-content ul, .article-content ol {
  margin: 1rem 0 1.35rem 1.5rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content strong { color: var(--primary); font-weight: 700; }
.article-content em { font-style: italic; color: var(--text-muted); }
.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(0,168,107,.06) 0%, rgba(0,168,107,.02) 100%);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--primary-mid);
  font-size: 1.1rem;
  font-style: italic;
}
.article-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }

/* ── Tools Page ─────────────────────────────── */
.tools-page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 3.5rem 0;
  text-align: center;
  color: #fff;
}
.tools-page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: .5rem;
}
.tools-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}
.tool-card-full {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.tool-card-full:hover { box-shadow: var(--card-hover); border-color: var(--accent); }
.tool-seo-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.55;
}

/* ── Admin ──────────────────────────────────── */
.admin-login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #1a4a8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo .logo-icon { margin: 0 auto .75rem; width: 56px; height: 56px; font-size: 1.4rem; }
.login-logo h1 { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.login-logo p { color: var(--text-muted); font-size: .875rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}
.form-group input, .form-group textarea,
.form-group select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(0,168,107,.1);
}
.form-error { color: var(--danger); font-size: .8rem; margin-top: .3rem; }
.btn-block { width: 100%; justify-content: center; }
.admin-body {
  background: var(--surface-2);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  background: var(--primary);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.admin-topbar .nav-logo { gap: .5rem; }
.admin-topbar .logo-text { font-size: 1.1rem; }
.admin-nav-actions { display: flex; align-items: center; gap: .5rem; }
.admin-nav-actions a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  border-radius: 8px;
  transition: all var(--transition);
}
.admin-nav-actions a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav-actions a.btn-danger { background: var(--danger); color: #fff; }
.admin-content { flex: 1; padding: 2rem; }
.admin-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.admin-page-title i { color: var(--accent); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  text-align: center;
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto .75rem;
}
.stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--text-muted); font-size: .85rem; }
.admin-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  padding: .75rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  background: var(--surface-2);
  border-bottom: 2px solid var(--border);
}
.admin-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface-2); }
.status-badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.status-published { background: rgba(0,168,107,.12); color: var(--accent-dark); }
.status-draft { background: rgba(245,158,11,.12); color: #b45309; }
.status-scheduled { background: rgba(99,102,241,.12); color: #4f46e5; }
.action-btns { display: flex; gap: .4rem; }
.btn-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-edit { background: rgba(99,102,241,.1); color: #4f46e5; }
.btn-edit:hover { background: #4f46e5; color: #fff; }
.btn-delete { background: rgba(239,68,68,.1); color: var(--danger); }
.btn-delete:hover { background: var(--danger); color: #fff; }
.editor-container {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.editor-toolbar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: .5rem .75rem;
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
}
.editor-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
  font-size: .85rem;
  font-weight: 700;
  transition: all var(--transition);
}
.editor-btn:hover { background: var(--border); }
.editor-textarea {
  width: 100%;
  min-height: 350px;
  padding: 1rem;
  border: none;
  font-size: .95rem;
  line-height: 1.7;
  resize: vertical;
  background: var(--surface);
  color: var(--text);
}
.upload-zone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface-2);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(0,168,107,.04);
}
.upload-zone i { font-size: 2.5rem; color: var(--text-light); margin-bottom: .75rem; }
.upload-zone p { color: var(--text-muted); font-size: .9rem; }
.upload-preview { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.preview-img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: 2.5rem;
}
.pagination a, .pagination span {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Static Pages ───────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 3.5rem 0;
  text-align: center;
  color: #fff;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: .5rem;
}
.page-header p { color: rgba(255,255,255,.7); font-size: 1rem; }
.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.page-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2.5rem 0 .75rem;
}
.page-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.page-content ul {
  list-style: disc;
  margin: .75rem 0 1.25rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.page-content strong { color: var(--text); font-weight: 600; }

/* ── Alerts & messages ──────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.25rem;
  border-radius: 10px;
  font-size: .9rem;
  margin-bottom: 1.25rem;
}
.alert-success { background: rgba(0,168,107,.1); color: var(--accent-dark); border: 1px solid rgba(0,168,107,.25); }
.alert-danger { background: rgba(239,68,68,.1); color: #b91c1c; border: 1px solid rgba(239,68,68,.25); }
.alert-warning { background: rgba(245,158,11,.1); color: #92400e; border: 1px solid rgba(245,158,11,.25); }

/* ── Utilities ──────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: .5rem; }
.hidden { display: none !important; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .trending-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-layout, .article-layout { grid-template-columns: 1fr; }
  .ad-sidebar { display: none; }
  .tools-full-grid { grid-template-columns: 1fr; }
}

/* ── Tablet (≤ 768 px) ──────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Navigation */
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: .25rem;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 30px rgba(0,0,0,.3);
    z-index: 999;
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { padding: 2.5rem 0 2rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image { order: -1; }
  .hero-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .hero-excerpt { font-size: .95rem; }

  /* Article cards: 1 column on mobile */
  .articles-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Card footer: prevent author name from overflowing */
  .card-footer { flex-wrap: nowrap; }
  .card-author { font-size: .75rem; }

  /* Guides */
  .guides-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Tools */
  .tools-grid { grid-template-columns: 1fr; }
  .calc-form { grid-template-columns: 1fr; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; }
  .newsletter-form input,
  .newsletter-form button { width: 100%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-disclaimer-text { max-width: 100%; }

  /* Admin */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-content { padding: 1rem; }

  /* Sections */
  .section { padding: 2.5rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-title { font-size: clamp(1.4rem, 5vw, 1.9rem); }

  /* Page headers */
  .page-header { padding: 2.5rem 0; }
  .page-header h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .blog-header { padding: 2.5rem 0; }
  .blog-header h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  /* Blog listing padding */
  .blog-layout { padding: 2rem 0; }

  /* Buttons */
  .btn { padding: .7rem 1.5rem; font-size: .875rem; }
}

/* ── Small Mobile (≤ 480 px) ────────────────── */
@media (max-width: 480px) {
  /* Market ticker: scrollable strip */
  .market-ticker { padding: .35rem 0; }
  .market-ticker-inner { gap: 1.25rem; padding: 0 .25rem; }
  .ticker-column { gap: .5rem; }
  .ticker-items { gap: .5rem; }
  .ticker-item { font-size: .75rem; }
  .ticker-label { font-size: .65rem; }

  /* Stats & admin */
  .stats-grid { grid-template-columns: 1fr; }

  /* Cards: full-width single column with comfortable padding */
  .articles-grid { gap: 1rem; }
  .card-body { padding: 1rem; }
  .card-title { font-size: .95rem; }
  .card-excerpt { font-size: .825rem; -webkit-line-clamp: 2; line-clamp: 2; }

  /* Card footer: keep read-more visible */
  .card-footer { gap: .4rem; }
  .card-author { font-size: .72rem; }
  .card-author-avatar { width: 24px; height: 24px; font-size: .6rem; }
  .read-more { font-size: .75rem; }

  /* Guides page cards */
  .guide-card { padding: 1.25rem; }
  .guide-title { font-size: .95rem; }
  .guide-desc { font-size: .825rem; }

  /* Section spacing */
  .section { padding: 2rem 0; }
  .container { padding: 0 1rem; }

  /* Hero */
  .hero { padding: 2rem 0 1.5rem; }
  .hero-badge { font-size: .7rem; padding: .3rem .65rem; }
  .hero-meta { gap: .6rem; }
  .hero-meta span { font-size: .78rem; }

  /* Buttons */
  .btn { padding: .65rem 1.25rem; font-size: .85rem; }
  .btn-sm { padding: .45rem 1rem; font-size: .78rem; }

  /* Tools CTA banner on guides page */
  .section > .container > div[style*="border-radius"] {
    padding: 2rem 1.25rem;
  }

  /* Scroll to top button: smaller on mobile */
  .scroll-top { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; font-size: .9rem; }

  /* Newsletter */
  .newsletter-title { font-size: clamp(1.3rem, 5vw, 1.75rem); }
  .newsletter-sub { font-size: .9rem; }
  .newsletter-form { padding: 0 .5rem; }

  /* Footer */
  .footer-grid { gap: 1.5rem; }
  .site-footer { padding: 2.5rem 0 0; }

  /* Page header */
  .page-header { padding: 2rem 0; }
  .page-header h1 { font-size: clamp(1.4rem, 7vw, 2rem); }
}

/* ── Lazy Load Fade ─────────────────────────── */
img.lazy { opacity: 0; transition: opacity .4s ease; }
img.lazy.loaded { opacity: 1; }

/* ── Skeleton Loader ────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--surface-3) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Scroll to top ──────────────────────────── */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
  width: 44px; height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,168,107,.4);
  opacity: 0; transform: translateY(10px);
  transition: all var(--transition);
  pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.scroll-top:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ── Divider ────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2rem 0;
}

/* ── No posts placeholder ───────────────────── */
.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.no-posts i { font-size: 3rem; color: var(--border-dark); margin-bottom: 1rem; display: block; }

/* ── Search bar ─────────────────────────────── */
.search-bar {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.search-bar input {
  flex: 1;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: .9rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition);
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar button {
  padding: .75rem 1.25rem;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
}

/* ── Comments Section ─────────────────────── */
.comments-separator {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), var(--accent), var(--border), transparent);
  margin: 4rem 0 3rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.comments-separator::after {
  content: '\f086';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  background: var(--surface);
  padding: 0 1.5rem;
  color: var(--accent);
  font-size: 1.25rem;
  position: absolute;
}

.comments-section {
  margin-bottom: 4rem;
}

.comments-header {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.comment-form-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
  border: 1px solid var(--border);
  margin-bottom: 3.5rem;
}

.comment-form-container h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.field-group.full-width {
  grid-column: span 2;
}

.field-group label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: .25rem;
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: .85rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: .95rem;
  background: var(--surface-2);
  color: var(--text);
  transition: all var(--transition);
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(0,168,107,.1);
}

.field-group textarea {
  min-height: 180px;
  resize: vertical;
}

.submit-container {
  grid-column: span 2;
  margin-top: .5rem;
  display: flex;
  justify-content: flex-start;
}

/* Comment List Styles */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.comment-node {
  border-bottom: 1px solid var(--surface-2);
  padding-bottom: 2rem;
}

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

.comment-item {
  display: flex;
  gap: 1.25rem;
}

.comment-avatar {
  width: 48px;
  height: 48px;
  background: var(--surface-3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}

.comment-author {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.comment-date {
  font-size: .8rem;
  color: var(--text-light);
}

.comment-body {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: .75rem;
}

.comment-actions {
  display: flex;
  gap: 1rem;
}

.comment-reply-btn {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color var(--transition);
}

.comment-reply-btn:hover {
  color: var(--accent-dark);
}

/* Reply Form Transitions */
.reply-form-wrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  margin-top: 0;
}

.reply-form-wrapper.visible {
  max-height: 500px;
  opacity: 1;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comment-replies {
  margin-left: 4rem;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .comment-form {
    grid-template-columns: 1fr;
  }
  .field-group.full-width {
    grid-column: 1;
  }
  .submit-container {
    grid-column: 1;
  }
  .comment-replies {
    margin-left: 1.5rem;
  }
}
