/* ============================================================
   style.css — kimkhuyy.lat main stylesheet
   Font: Public Sans (Google Fonts)
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  --navy:        #0F1B2D;
  --navy-light:  #162436;
  --navy-mid:    #1e3250;
  --gold:        #C9973A;
  --gold-light:  #E0B55A;
  --gold-pale:   #f5e6c8;
  --text-primary:   #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted:     #718096;
  --text-light:     #a0aec0;
  --bg-body:     #f8f7f4;
  --bg-card:     #ffffff;
  --bg-muted:    #f2f0eb;
  --border:      #e2ddd6;
  --border-light:#ede9e2;
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:   0 12px 32px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --transition:  .2s ease;
  --font:        'Public Sans', system-ui, -apple-system, sans-serif;
  --container:   1200px;
  --header-h:    64px;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Container ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.375rem); }
h4 { font-size: 1.125rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 32px;
}

.site-logo { flex-shrink: 0; }
.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
}
.logo-dot { color: var(--gold); }

.site-nav { flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: block;
  padding: 6px 14px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--navy);
  background: var(--bg-muted);
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}
.search-toggle:hover { color: var(--navy); background: var(--bg-muted); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Search Overlay ─────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15,27,45,.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.search-overlay.active { opacity: 1; pointer-events: all; }
.search-overlay-inner {
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-form {
  flex: 1;
  display: flex;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.search-input {
  flex: 1;
  padding: 16px 20px;
  font-size: 1.125rem;
  border: none;
  outline: none;
  color: var(--text-primary);
}
.search-btn {
  padding: 0 20px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.search-btn:hover { color: var(--navy); }
.search-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.search-close:hover { background: rgba(255,255,255,.25); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 72px 0 64px;
}
.hero-label {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(201,151,58,.15);
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 20px;
  border: 1px solid rgba(201,151,58,.3);
  margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p { color: rgba(255,255,255,.7); font-size: 1.125rem; max-width: 560px; }

/* ── Featured Post ──────────────────────────────────────── */
.featured-section { padding: 56px 0 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.view-all {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.view-all:hover { color: var(--navy); }

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.featured-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.featured-card-image img,
.featured-card-image .post-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-card-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-card-body .post-meta { margin-bottom: 14px; }
.featured-card-body h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); margin-bottom: 14px; line-height: 1.3; }
.featured-card-body h2 a { color: var(--navy); transition: color var(--transition); }
.featured-card-body h2 a:hover { color: var(--gold); }
.featured-card-body .excerpt { margin-bottom: 24px; font-size: .95rem; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap var(--transition), color var(--transition);
}
.read-more:hover { gap: 10px; color: var(--navy); }

/* ── Post Grid ──────────────────────────────────────────── */
.posts-section { padding: 48px 0 72px; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.post-card-image img,
.post-card-image .post-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.03); }

.post-card-body { padding: 22px; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cat-badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 20px;
  color: #fff;
  background: var(--navy);
}
.post-date, .post-views, .post-read-time {
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-card-body h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 8px; }
.post-card-body h3 a { color: var(--navy); transition: color var(--transition); }
.post-card-body h3 a:hover { color: var(--gold); }
.post-card-body .excerpt { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Post Placeholder Images ────────────────────────────── */
.post-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
.post-placeholder svg { opacity: .7; }

/* Broker-specific gradient backgrounds */
.bg-deriv    { background: linear-gradient(135deg, #cc2020 0%, #7a0d0d 100%); }
.bg-ic       { background: linear-gradient(135deg, #1a3560 0%, #0a1c38 100%); }
.bg-xm       { background: linear-gradient(135deg, #1a5c8a 0%, #0a2e47 100%); }
.bg-exness   { background: linear-gradient(135deg, #00884a 0%, #004a28 100%); }
.bg-pepper   { background: linear-gradient(135deg, #1e3a5f 0%, #0d1f33 100%); }
.bg-fbs      { background: linear-gradient(135deg, #e67e22 0%, #8a4a10 100%); }
.bg-etoro    { background: linear-gradient(135deg, #00c176 0%, #006640 100%); }
.bg-oanda    { background: linear-gradient(135deg, #e84040 0%, #7a1818 100%); }
.bg-plus500  { background: linear-gradient(135deg, #2563eb 0%, #1034a6 100%); }
.bg-avatrade { background: linear-gradient(135deg, #1e6b8a 0%, #0a3347 100%); }
.bg-default  { background: linear-gradient(135deg, #1e3a5f 0%, #0d1f33 100%); }

/* ── Sidebar Layout ─────────────────────────────────────── */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 56px 0 80px;
  align-items: start;
}

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.widget-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.widget-cat-list { display: flex; flex-direction: column; gap: 6px; }
.widget-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.widget-cat-item:hover { background: var(--bg-muted); color: var(--navy); }
.widget-cat-count {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-muted);
  padding: 2px 8px;
  border-radius: 12px;
}

.recent-post-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.recent-thumb img, .recent-thumb .post-placeholder { width: 100%; height: 100%; object-fit: cover; }
.recent-post-info { flex: 1; min-width: 0; }
.recent-post-title {
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.recent-post-title:hover { color: var(--gold); }
.recent-post-date { font-size: .7rem; color: var(--text-muted); margin-top: 4px; }

/* ── Single Post ────────────────────────────────────────── */
.post-hero {
  background: var(--navy);
  padding: 56px 0 0;
  color: #fff;
}
.post-hero-inner { max-width: 800px; }
.post-hero .post-meta { margin-bottom: 20px; }
.post-hero .post-date, .post-hero .post-views, .post-hero .post-read-time { color: rgba(255,255,255,.6); }
.post-hero h1 { color: #fff; margin-bottom: 0; }
.post-hero-image {
  margin-top: 40px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16/7;
}
.post-hero-image img, .post-hero-image .post-placeholder { width: 100%; height: 100%; object-fit: cover; }

.post-content-wrap {
  padding: 0 0 80px;
}
.post-content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* Article Body */
.article-body {
  padding: 48px 0;
  max-width: 720px;
}
.article-body h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }
.article-body h3 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
.article-body p { font-size: 1.0125rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 1.2rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { font-size: 1.0125rem; color: var(--text-secondary); margin-bottom: .4rem; line-height: 1.7; }
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--navy); }
.article-body strong { color: var(--text-primary); }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow); }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 1.5rem 0;
  background: var(--bg-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.article-body th {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.article-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.article-body tr:nth-child(even) td { background: var(--bg-muted); }

/* Broker Summary Box */
.broker-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 2rem;
}
.broker-summary-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.broker-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pros-list, .cons-list { }
.pros-list h4 { color: #15803d; font-size: .875rem; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.cons-list h4 { color: #dc2626; font-size: .875rem; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.pros-list ul { list-style: none; padding: 0; }
.cons-list ul { list-style: none; padding: 0; }
.pros-list li, .cons-list li {
  font-size: .875rem;
  color: var(--text-secondary);
  padding: 4px 0 4px 20px;
  position: relative;
  line-height: 1.5;
}
.pros-list li::before { content: '✓'; position: absolute; left: 0; color: #15803d; font-weight: 700; }
.cons-list li::before { content: '✗'; position: absolute; left: 0; color: #dc2626; font-weight: 700; }

.affiliate-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 24px;
  gap: 16px;
}
.affiliate-cta-text { font-size: .9rem; color: rgba(255,255,255,.85); }
.affiliate-cta-text strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 2px; }
.affiliate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--gold);
  color: var(--navy) !important;
  text-decoration: none !important;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.affiliate-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Risk Disclaimer */
.risk-disclaimer {
  background: #fefce8;
  border: 1px solid #fbbf24;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 2rem 0;
  font-size: .85rem;
  color: #78350f;
  line-height: 1.6;
}
.risk-disclaimer strong { color: #92400e; }

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 0 0;
}
.page-link, .page-current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
}
.page-link {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.page-link:hover { color: var(--navy); border-color: var(--navy); }
.page-current { background: var(--navy); color: #fff; border: 1px solid var(--navy); }

/* ── Author Box ─────────────────────────────────────────── */
.author-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  margin-bottom: 0;
}
.author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--border-light);
}
.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box-info h4 { font-size: 1rem; margin-bottom: 4px; }
.author-box-info p { font-size: .875rem; color: var(--text-muted); }

/* ── About Page ─────────────────────────────────────────── */
.about-page { padding: 72px 0 80px; }
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Category Page ──────────────────────────────────────── */
.category-hero {
  padding: 48px 0;
  background: var(--navy);
  color: #fff;
}
.category-hero h1 { color: #fff; margin-bottom: 8px; }
.category-hero p { color: rgba(255,255,255,.7); }

/* ── Search Page ────────────────────────────────────────── */
.search-page { padding: 56px 0 80px; }
.search-page-form {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin-bottom: 40px;
}
.search-page-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-page-input:focus { border-color: var(--navy); }
.btn-primary {
  padding: 12px 24px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--navy-mid); }

/* ── Related Posts ──────────────────────────────────────── */
.related-posts { padding: 48px 0; border-top: 1px solid var(--border); }
.related-posts h3 { margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .footer-logo .logo-text { color: #fff; }
.footer-tagline { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-light); margin: 12px 0 12px; }
.footer-desc { font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.6; }
.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.footer-disclaimer-short { margin-top: 20px; font-size: .75rem; color: rgba(255,255,255,.4); line-height: 1.5; }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copyright { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-note { font-size: .8rem; color: rgba(255,255,255,.3); }

/* ── Utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.no-results { text-align: center; padding: 64px 0; color: var(--text-muted); }
.no-results h3 { margin-bottom: 8px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .post-content-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card-image { aspect-ratio: 16/7; }
  .about-grid { grid-template-columns: 200px 1fr; gap: 40px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: none;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 10px 12px; }

  .posts-grid { grid-template-columns: 1fr; }
  .broker-summary-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 220px; margin: 0 auto; }
  .related-grid { grid-template-columns: 1fr; }
  .affiliate-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .post-hero { padding: 40px 0 0; }
  .featured-card-body { padding: 24px; }
}
