/* =====================================================
   TopKasynoRanking — Dark Theme Design
   ===================================================== */

:root {
  --primary:       #d4a017;
  --primary-light: #e8b830;
  --accent:        #d4a017;
  --accent-hover:  #b8880f;
  --bg:            #0d0f14;
  --bg-card:       #161b24;
  --bg-card-alt:   #1c2333;
  --text:          #e2e8f0;
  --text-muted:    #8a9ab5;
  --border:        #2a3348;
  --success:       #22c55e;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --shadow-sm:     0 1px 6px rgba(0,0,0,.4);
  --shadow-md:     0 4px 20px rgba(0,0,0,.55);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.65);
  --radius:        10px;
  --radius-sm:     6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── AFFILIATE DISCLAIMER BAR ─────────────────────── */
.affiliate-bar {
  background: #1a140a;
  border-bottom: 2px solid var(--accent);
}
.affiliate-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 20px;
}
.affiliate-bar .alert {
  background: transparent;
  border: none;
  border-left: none;
  box-shadow: none;
  padding-left: 0;
  margin: 0;
}
.affiliate-bar strong { color: #f59e0b; }

/* ── HEADER / NAV ─────────────────────────────────── */
.site-header {
  background: #0a0c11;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.6);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 62px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--accent); }
.logo-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: #0a0c11;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,.12); color: #fff; }

.age-badge {
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── MAIN CONTAINER ───────────────────────────────── */
.main-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 40px 20px 32px;
  background: linear-gradient(135deg, #0f1420 0%, #1a2035 100%);
  border-radius: var(--radius);
  margin-bottom: 28px;
  color: #fff;
  border: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  max-width: 620px;
  margin: 0 auto 20px;
}
.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
}

/* ── SECTION HEADING ──────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}
.section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── CASINO CARDS ─────────────────────────────────── */
.casino-list { display: flex; flex-direction: column; gap: 14px; }

.casino-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
  overflow: hidden;
}
.casino-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.casino-card.rank-1 { border-left: 4px solid var(--accent); }
.casino-card.rank-2 { border-left: 4px solid #94a3b8; }
.casino-card.rank-3 { border-left: 4px solid #b45309; }

/* Rank column */
.card-rank {
  width: 52px;
  padding: 20px 0;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  background: var(--bg-card-alt);
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
}
.rank-1 .card-rank { background: #1f1a0d; color: var(--accent); }
.rank-2 .card-rank { background: #141820; color: #8a9ab5; }
.rank-3 .card-rank { background: #1a1209; color: #c97d30; }
.rank-num { font-size: 20px; }

/* Body column */
.card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.casino-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.badge-gold  { background: #2a1e05; color: #f59e0b; border: 1px solid #78490a; }
.badge-blue  { background: #0d1829; color: #60a5fa; border: 1px solid #1e3a5f; }
.badge-green { background: #071a10; color: #4ade80; border: 1px solid #14532d; }

.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stars { color: var(--accent); font-size: 14px; letter-spacing: 1px; }
.star-score { font-weight: 700; font-size: 13.5px; color: var(--text); }
.star-max { color: var(--text-muted); font-size: 12px; }

.card-bonus {
  background: #071a10;
  border: 1px solid #14532d;
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  font-size: 13px;
  color: #4ade80;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
}
.card-bonus::before { content: '🎁'; font-size: 13px; }

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.feature-tag {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 12px;
}

.card-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.card-meta span { display: flex; align-items: center; gap: 4px; }
.meta-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); display: inline-block; }

/* CTA column */
.card-cta {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  border-left: 1px solid var(--border);
  align-self: stretch;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-align: center;
  width: 100%;
  transition: opacity .2s, transform .15s;
  letter-spacing: .2px;
  text-decoration: none;
}
.btn-primary:hover { opacity: .92; transform: scale(1.02); color: #fff; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  text-decoration: none;
  width: 100%;
  text-align: center;
}
.btn-secondary:hover { border-color: var(--accent); background: var(--bg-card-alt); color: var(--text); }

.cta-disclaimer {
  font-size: 10.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}
.cta-disclaimer a { font-size: 10.5px; }

/* ── INFO SECTION ─────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.info-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.info-icon {
  width: 38px; height: 38px;
  background: #141e2e;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

/* ── PAGE CONTENT (privacy, cookies, contact) ─────── */
.page-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}
.page-content h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}
.page-content .lead {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.page-content h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.page-content h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 18px 0 8px; }
.page-content p { font-size: 14px; color: var(--text); line-height: 1.75; margin-bottom: 12px; }
.page-content ul, .page-content ol {
  padding-left: 22px;
  margin-bottom: 14px;
}
.page-content li { font-size: 14px; color: var(--text); line-height: 1.75; margin-bottom: 4px; }
.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 16px;
}
.page-content th {
  background: #1c2333;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--accent);
}
.page-content td {
  padding: 9px 14px;
  border: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.page-content tr:nth-child(even) td { background: #131720; }

/* ── CONTACT FORM ─────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-card);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,160,32,.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.checkbox-group input { width: auto; margin-top: 3px; flex-shrink: 0; }
.checkbox-group label { font-size: 13px; font-weight: 400; color: var(--text-muted); cursor: pointer; }

.contact-info-box {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-info-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--accent); }
.contact-info-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--text);
  align-items: flex-start;
}
.contact-info-row strong { min-width: 70px; color: var(--text-muted); font-weight: 600; }

/* ── ALERTS ───────────────────────────────────────── */
.alert {
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 13.5px;
  margin-bottom: 20px;
  border-left: 4px solid;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-warning { background: #1e1507; border-color: var(--accent); color: #fbbf24; }
.alert-success { background: #071a10; border-color: var(--success); color: #4ade80; }
.alert-info    { background: #0a1325; border-color: #3b82f6; color: #93c5fd; }
.alert-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── RESPONSIBLE GAMBLING BOX ─────────────────────── */
.rg-box {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 32px;
  background: var(--bg-card-alt);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.rg-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--accent);
  color: #0a0c11;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 900;
}
.rg-content h4 { font-size: 14px; font-weight: 700; margin-bottom: 5px; color: var(--accent); }
.rg-content p { font-size: 13px; color: var(--text-muted); margin-bottom: 0; }
.rg-content a { font-size: 13px; font-weight: 600; }

/* ── COOKIE BANNER ────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #0f1420;
  border-top: 1px solid var(--border);
  color: #fff;
  padding: 16px 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
}
#cookie-banner p { font-size: 13.5px; color: rgba(255,255,255,.85); max-width: 700px; }
#cookie-banner a { color: var(--accent); }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--accent);
  color: #0a0c11;
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-cookie-accept:hover { opacity: .88; }
.btn-cookie-settings {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.3);
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-cookie-settings:hover { color: #fff; border-color: rgba(255,255,255,.6); }

/* ── FOOTER ───────────────────────────────────────── */
.site-footer {
  background: #060810;
  border-top: 1px solid var(--border);
  color: rgba(255,255,255,.7);
  padding: 40px 20px 24px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-brand .nav-logo { margin-bottom: 12px; font-size: 18px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: 13.5px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
}
.footer-disclaimer strong { color: rgba(255,255,255,.7); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
}
.age-footer {
  background: var(--danger);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 11px;
  border-radius: 16px;
}

/* ── PAGE-SPECIFIC UTILS ──────────────────────────── */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }

.update-date {
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 22px;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  .casino-card {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
  }
  .card-cta {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--border);
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 16px;
    min-width: auto;
  }
  .card-rank { grid-row: 1; }
  .card-body { grid-column: 2; grid-row: 1; }
  .btn-primary, .btn-secondary { width: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
  .page-content { padding: 24px 20px; }
}
@media (max-width: 520px) {
  .card-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; }
}


/* =====================================================
   Blog System Styles
   ===================================================== */

/* ── Breadcrumbs ─────────────────────────────────────── */
.breadcrumbs {
  margin-bottom: 1.5rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  font-size: .82rem;
  color: var(--text-muted);
}
.breadcrumbs li + li::before {
  content: '›';
  margin-right: .4rem;
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--accent); }

/* ── Blog header / hero ──────────────────────────────── */
.blog-header {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  margin-bottom: 2rem;
}
.blog-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--accent);
  margin-bottom: .5rem;
}
.blog-header p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── Blog search form ────────────────────────────────── */
.blog-search-form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.blog-search-form input[type="search"] {
  flex: 1;
  padding: .75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--text);
  font-size: .95rem;
  outline: none;
}
.blog-search-form input[type="search"]:focus {
  border-color: var(--accent);
}
.blog-search-form button {
  padding: .75rem 1.3rem;
  background: var(--accent);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  font-size: .95rem;
  transition: background .2s;
}
.blog-search-form button:hover { background: var(--accent-hover); }

/* ── Blog two-column layout ──────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}
.blog-layout--post {
  grid-template-columns: 1fr 260px;
}
@media (max-width: 900px) {
  .blog-layout,
  .blog-layout--post {
    grid-template-columns: 1fr;
  }
}

/* ── Posts grid ──────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.posts-grid--related {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
}

/* ── Post card ───────────────────────────────────────── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.post-card-image-link {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-card-alt);
}
.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.post-card:hover .post-card-image { transform: scale(1.04); }
.post-card-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
}
.post-card-body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.post-card-category {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  background: rgba(212, 160, 23, .12);
  padding: .2rem .55rem;
  border-radius: 20px;
  align-self: flex-start;
}
.post-card-category:hover { background: rgba(212, 160, 23, .25); }
.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta {
  display: flex;
  gap: .75rem;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
}

/* ── Blog sidebar ────────────────────────────────────── */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 1rem;
}
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.widget-title {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}

/* Sidebar search */
.sidebar-search-form { display: flex; }
.sidebar-search-inner {
  display: flex;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.sidebar-search-inner input {
  flex: 1;
  padding: .5rem .75rem;
  background: var(--bg);
  border: none;
  color: var(--text);
  font-size: .875rem;
  outline: none;
}
.sidebar-search-inner input:focus { background: var(--bg-card-alt); }
.sidebar-search-inner button {
  padding: .5rem .75rem;
  background: var(--accent);
  border: none;
  color: #000;
  cursor: pointer;
  font-size: .9rem;
  transition: background .2s;
}
.sidebar-search-inner button:hover { background: var(--accent-hover); }

/* Widget categories */
.widget-categories {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.widget-categories li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem .6rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .875rem;
  transition: background .15s, color .15s;
}
.widget-categories li a:hover {
  background: var(--bg-card-alt);
  color: var(--accent);
}
.cat-count {
  background: var(--bg-card-alt);
  border-radius: 20px;
  padding: .05rem .45rem;
  font-size: .72rem;
  color: var(--text-muted);
}

/* Widget post list */
.widget-posts { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.widget-post-item { display: flex; gap: .7rem; align-items: flex-start; }
.widget-post-thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  flex-shrink: 0;
}
.widget-post-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.widget-post-title {
  font-size: .825rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.widget-post-title:hover { color: var(--accent); }
.widget-post-date,
.widget-post-views {
  font-size: .72rem;
  color: var(--text-muted);
}

/* ── Single post ─────────────────────────────────────── */
.blog-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-featured-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.post-header {
  padding: 1.8rem 2rem 1.2rem;
}
.post-category-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  background: rgba(212, 160, 23, .12);
  padding: .2rem .6rem;
  border-radius: 20px;
  margin-bottom: .8rem;
}
.post-category-badge:hover { background: rgba(212, 160, 23, .25); }
.post-header h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  line-height: 1.25;
  margin-bottom: .8rem;
  color: var(--text);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.post-reading-time, .post-views { color: var(--text-muted); }

/* Post content */
.post-content {
  padding: 0 2rem 2rem;
  line-height: 1.8;
  color: var(--text);
  font-size: .95rem;
}
.post-content h2 {
  font-size: 1.35rem;
  color: var(--accent);
  margin: 1.8rem 0 .7rem;
}
.post-content h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 1.4rem 0 .5rem;
}
.post-content p { margin-bottom: 1rem; }
.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.post-content li { margin-bottom: .3rem; }
.post-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content a:hover { color: var(--accent-hover); }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: .75rem 1.2rem;
  margin: 1.2rem 0;
  background: var(--bg-card-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}
.post-content pre, .post-content code {
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  font-size: .875rem;
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
}
.post-content pre { padding: 1rem; overflow-x: auto; margin-bottom: 1rem; }
.post-content code { padding: .1em .35em; }
.post-content pre code { padding: 0; background: none; }

/* Post footer */
.post-footer {
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.btn-back, .btn-category {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.btn-back {
  background: var(--bg-card-alt);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-back:hover { background: var(--border); color: var(--text); }
.btn-category {
  background: rgba(212, 160, 23, .12);
  color: var(--accent);
  border: 1px solid rgba(212, 160, 23, .3);
}
.btn-category:hover { background: rgba(212, 160, 23, .22); color: var(--accent); }

@media (max-width: 700px) {
  .post-header { padding: 1.2rem 1rem .8rem; }
  .post-content { padding: 0 1rem 1.5rem; }
  .post-footer  { padding: 1rem; }
}

/* ── Related posts section ───────────────────────────── */
.related-posts {
  margin-top: 2.5rem;
}
.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.2rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}

/* ── Search results ──────────────────────────────────── */
.search-summary {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.search-summary strong, .search-summary em {
  color: var(--text);
}

/* ── Empty state ─────────────────────────────────────── */
.blog-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.blog-empty p { margin-bottom: 1rem; }

/* ── Pagination ──────────────────────────────────────── */
.pagination { margin: 2rem 0 1rem; }
.pagination-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  justify-content: center;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 .6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: .875rem;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
a.page-link:hover {
  background: var(--bg-card-alt);
  border-color: var(--accent);
  color: var(--accent);
}
.page-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.page-ellipsis {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  padding: 0 .3rem;
}
