/* ==========================================================================
   UFABET Dark Premium — Luxury Casino Edition
   ========================================================================== */

:root {
  --black:      #0a0a0a;
  --black-2:    #111111;
  --black-3:    #181818;
  --black-4:    #202020;

  --gold:       #c9a84c;
  --gold-light: #e2c06e;
  --gold-dim:   rgba(201,168,76,.12);
  --gold-line:  rgba(201,168,76,.25);

  --white:      #f0ede8;
  --gray:       #888888;
  --gray-2:     #555555;
  --gray-3:     #2a2a2a;

  --font:       'IBM Plex Sans Thai', 'Sarabun', sans-serif;
  --header-h:   70px;
  --max-w:      1240px;
  --narrow:     840px;
  --ease:       .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
strong, b { font-weight: 600; color: var(--gold-light); }

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

.section { padding: 88px 0; }
.section--alt { background: var(--black-2); }

.section-eyebrow {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.section-heading {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700; line-height: 1.25; color: var(--white); margin-bottom: 18px;
}
.section-heading em { font-style: normal; color: var(--gold); }
.section-sub { font-size: 16px; color: var(--gray); line-height: 1.8; max-width: 580px; }
.section-header { margin-bottom: 52px; }
.section-header--center { text-align: center; }
.section-header--center .section-sub { margin: 0 auto; }
.gold-rule { width: 40px; height: 1px; background: var(--gold); margin: 20px 0; }
.gold-rule--center { margin: 20px auto; }

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--black);
  border-bottom: 1px solid var(--gold-line);
  z-index: 1000;
}
body.admin-bar .site-header { top: 32px; }
body.admin-bar .mobile-nav  { top: calc(var(--header-h) + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .mobile-nav  { top: calc(var(--header-h) + 46px); }
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: var(--header-h); gap: 20px;
}
.site-logo-text {
  display: flex; align-items: center;
  font-size: 24px; font-weight: 700; letter-spacing: .02em; text-decoration: none;
}
.logo-ufa { color: var(--gold-light); }
.logo-bet { color: var(--white); }
.custom-logo { height: 44px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 2px; }
.primary-nav a {
  font-size: 14px; font-weight: 500; color: var(--gray);
  padding: 8px 16px; border-radius: 3px;
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--white); background: rgba(255,255,255,.06); }

.header-ctas { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-register {
  background: var(--gold); color: #000; font-size: 13.5px; font-weight: 700;
  padding: 9px 22px; border-radius: 3px; border: none;
  transition: background var(--ease); white-space: nowrap;
}
.btn-register:hover { background: var(--gold-light); color: #000; }
.btn-login {
  color: var(--gold); font-size: 13.5px; font-weight: 600;
  padding: 8px 20px; border-radius: 3px;
  border: 1px solid var(--gold-line); background: transparent;
  transition: background var(--ease), border-color var(--ease); white-space: nowrap;
}
.btn-login:hover { background: var(--gold-dim); border-color: var(--gold); color: var(--gold-light); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white); border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--black-2); border-bottom: 1px solid var(--gold-line);
  padding: 12px 28px 24px; z-index: 999;
  opacity: 0; transform: translateY(-6px);
  transition: opacity var(--ease), transform var(--ease); pointer-events: none;
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: all; }
.mobile-nav a {
  display: block; font-size: 15px; color: var(--gray);
  padding: 13px 0; border-bottom: 1px solid var(--gray-3);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav-ctas { display: flex; gap: 10px; margin-top: 16px; }
.mobile-nav-ctas .btn-register, .mobile-nav-ctas .btn-login { flex: 1; text-align: center; }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: auto;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 28px) 0 52px;
  background: var(--black);
  border-bottom: 1px solid var(--gold-line);
}
.hero-inner { max-width: none; flex: 1; }
.hero .container { display: flex; align-items: center; gap: 52px; justify-content: space-between; }
.hero-img { flex-shrink: 0; width: 50%; max-width: 640px; }
.hero-img img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--gold-line); display: block; }
.about-visual { background: var(--black-2); border: 1px solid var(--gold-line); overflow: hidden; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--gold-line);
  color: var(--gold); font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 32px; letter-spacing: .08em;
}
.hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #4caf50; }

.hero h1 {
  font-size: clamp(28px, 5vw, 52px); font-weight: 700;
  line-height: 1.2; color: var(--white); margin-bottom: 24px;
}
.hero h1 .gold { color: var(--gold); }
.hero p { font-size: 17px; color: var(--gray); line-height: 1.85; margin-bottom: 40px; max-width: 600px; }
.hero p strong { color: var(--gold-light); }

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
.btn-primary {
  background: var(--gold); color: #000; font-size: 15px; font-weight: 700;
  padding: 14px 32px; border-radius: 3px; border: none; transition: background var(--ease);
}
.btn-primary:hover { background: var(--gold-light); color: #000; }
.btn-secondary {
  color: var(--gold); font-size: 15px; font-weight: 600;
  padding: 13px 28px; border-radius: 3px;
  border: 1px solid var(--gold-line); background: transparent;
  transition: background var(--ease), border-color var(--ease);
}
.btn-secondary:hover { background: var(--gold-dim); border-color: var(--gold); }

.trust-row { display: flex; flex-wrap: wrap; gap: 14px; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--gray-2); }
.trust-item::before { content: '✓'; color: var(--gold); font-weight: 600; }

/* ── STATS BAR ──────────────────────────────────────────────────────────── */
.stats-bar { background: var(--black-2); border-bottom: 1px solid var(--gray-3); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  padding: 28px 20px; text-align: center;
  border-right: 1px solid var(--gray-3);
}
.stat-item:last-child { border-right: none; }
.stat-n { font-size: clamp(24px, 3vw, 36px); font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.stat-l { font-size: 13px; color: var(--gray); }

/* ── ABOUT ──────────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-text p { font-size: 15.5px; color: var(--gray); line-height: 1.85; margin-bottom: 14px; }
.about-list { margin-top: 32px; }
.about-list-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--gray-3);
}
.about-list-item:last-child { border-bottom: none; }
.ali-mark { color: var(--gold); font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.ali-title { font-size: 14.5px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.ali-desc  { font-size: 13.5px; color: var(--gray); }
.about-visual {
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  overflow: hidden;
  min-height: 380px;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 380px; }

/* ── SECURITY ───────────────────────────────────────────────────────────── */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gray-3); }
.sec-card { background: var(--black-2); padding: 36px 32px; }
.sec-icon { color: var(--gold); display: block; margin-bottom: 18px; line-height: 0; }
.sec-icon svg { width: 32px; height: 32px; }
.svc-icon { color: var(--gold); display: block; margin-bottom: 16px; line-height: 0; }
.svc-icon svg { width: 40px; height: 40px; }
.dep-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; line-height: 0; }
.dep-icon svg { width: 22px; height: 22px; }
.sec-card h3 { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.sec-card p  { font-size: 14px; color: var(--gray); line-height: 1.75; }

/* ── SERVICES ───────────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gray-3); }
.svc-card { background: var(--black-2); padding: 40px 32px; transition: background var(--ease); }
.svc-card:hover { background: var(--black-3); }
.svc-num { font-size: 11px; font-weight: 600; letter-spacing: .15em; color: var(--gold); margin-bottom: 20px; display: block; }
.svc-card h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.3; }
.svc-card p  { font-size: 14.5px; color: var(--gray); line-height: 1.8; }
.svc-tag { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--gold); border: 1px solid var(--gold-line); padding: 3px 10px; border-radius: 2px; }

/* ── REGISTER ───────────────────────────────────────────────────────────── */
.register-grid { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--gray-3); }
.step:last-child { border-bottom: none; }
.step-n {
  flex-shrink: 0; width: 34px; height: 34px; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #000;
}
.step-title { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.step-desc  { font-size: 13.5px; color: var(--gray); }
.register-box {
  background: var(--black-2); border: 1px solid var(--gold-line);
  padding: 32px; position: sticky; top: 88px;
}
.register-box h3 { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 20px; }
.check-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--gray); }
.check-list li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.btn-register-lg {
  display: block; width: 100%; text-align: center;
  background: var(--gold); color: #000; font-size: 15px; font-weight: 700;
  padding: 15px; border-radius: 3px; border: none; transition: background var(--ease);
}
.btn-register-lg:hover { background: var(--gold-light); color: #000; }

/* ── DEPOSIT ────────────────────────────────────────────────────────────── */
.deposit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.dep-list { display: flex; flex-direction: column; margin-top: 28px; }

.section-top-img {
  width: 100%; margin-bottom: 48px;
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--gold-line);
}
.section-top-img img {
  width: 100%; height: auto; display: block;
}
.dep-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--gray-3); }
.dep-item:last-child { border-bottom: none; }
.dep-icon { flex-shrink: 0; font-size: 20px; margin-top: 2px; }
.dep-title { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.dep-desc  { font-size: 13.5px; color: var(--gray); }
.dep-aside-box { background: var(--black-2); border: 1px solid var(--gray-3); padding: 28px; margin-bottom: 14px; }
.dep-aside-box h3 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.dep-aside-box ul { display: flex; flex-direction: column; gap: 10px; }
.dep-aside-box ul li { font-size: 14px; color: var(--gray); padding-left: 16px; position: relative; }
.dep-aside-box ul li::before { content: '—'; position: absolute; left: 0; color: var(--gray-2); }
.dep-note { border-left: 2px solid var(--gold); background: var(--black-2); padding: 16px 20px; }
.dep-note p { font-size: 14px; color: var(--gray); margin: 0; }
.dep-note strong { color: var(--gold-light); }

/* ── SAFETY ─────────────────────────────────────────────────────────────── */
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gray-3); }
.safe-card { background: var(--black-2); padding: 32px; }
.safe-n { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block; }
.safe-card h3 { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.safe-card p  { font-size: 14px; color: var(--gray); line-height: 1.7; }
.keyword-note { margin-top: 40px; border-left: 2px solid var(--gold); background: var(--black-2); padding: 14px 20px; }
.keyword-note p { font-size: 14px; color: var(--gray); margin: 0; }
.keyword-note strong { color: var(--gold-light); }

/* ── RANKINGS TABLE ─────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-3); }
.rankings-table { width: 100%; border-collapse: collapse; }
.rankings-table thead th {
  background: var(--black-3); color: var(--gold);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--gold-line);
}
.rankings-table tbody tr { border-bottom: 1px solid var(--gray-3); transition: background var(--ease); }
.rankings-table tbody tr:last-child { border-bottom: none; }
.rankings-table tbody tr:hover { background: rgba(255,255,255,.025); }
.rankings-table td { padding: 14px 20px; font-size: 14px; color: var(--gray); }
.rankings-table td:first-child { color: var(--gold); font-weight: 700; font-size: 15px; text-align: center; width: 60px; }
.rankings-table td:nth-child(2) { color: var(--white); font-weight: 600; }
.row-top td { background: rgba(201,168,76,.04); }
.rank-badge { display: inline-block; background: var(--gold); color: #000; font-size: 10px; font-weight: 700; padding: 1px 7px; margin-left: 6px; vertical-align: middle; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-3); }
.faq-item summary {
  list-style: none; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer; color: var(--white); font-size: 15px; font-weight: 600; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-arrow { flex-shrink: 0; font-size: 20px; color: var(--gold); line-height: 1; transition: transform var(--ease); font-weight: 300; }
.faq-item[open] .faq-arrow { transform: rotate(45deg); }
.faq-body { padding: 0 0 22px; font-size: 15px; color: var(--gray); line-height: 1.85; }

/* ── CTA BANNER ─────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--black-2);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  padding: 80px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 4vw, 38px); font-weight: 700; color: var(--white); margin-bottom: 12px; }
.cta-band p  { font-size: 16px; color: var(--gray); max-width: 460px; margin: 0 auto 32px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--black-2); border-top: 1px solid var(--gray-3); padding: 64px 0 0; }
.footer-top { display: grid; grid-template-columns: 260px 1fr; gap: 60px; padding-bottom: 48px; border-bottom: 1px solid var(--gray-3); }
.footer-brand .site-logo-text { font-size: 26px; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; color: var(--gray); line-height: 1.75; margin-bottom: 18px; }
.footer-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-chip { font-size: 11.5px; color: var(--gray-2); border: 1px solid var(--gray-3); padding: 3px 9px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col li a { font-size: 13.5px; color: var(--gray); transition: color var(--ease); }
.footer-col li a:hover { color: var(--white); }
.footer-bottom { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12.5px; color: var(--gray-2); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 12px; color: var(--gray-2); transition: color var(--ease); }
.footer-legal a:hover { color: var(--gray); }
.responsible-badge { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray-2); }
.responsible-badge .icon { color: var(--gold); line-height: 0; }

/* ── BREADCRUMB ─────────────────────────────────────────────────────────── */
.breadcrumb-bar { padding: 14px 0; background: var(--black-2); border-bottom: 1px solid var(--gray-3); margin-top: var(--header-h); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray); }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: var(--gray-3); }
.breadcrumb .current { color: var(--white); }

/* ── PAGE CONTENT ───────────────────────────────────────────────────────── */
.page-content { padding: 64px 0; margin-top: var(--header-h); }
.page-content h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 700; margin-bottom: 28px; }
.page-content h2 { font-size: 22px; font-weight: 600; margin: 40px 0 14px; color: var(--white); }
.page-content h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; }
.page-content p { font-size: 15.5px; color: var(--gray); margin-bottom: 16px; line-height: 1.85; }
.page-content ul, .page-content ol { color: var(--gray); padding-left: 20px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.page-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.page-content table th { background: var(--black-3); color: var(--gold); padding: 11px 16px; text-align: left; font-size: 13px; }
.page-content table td { padding: 11px 16px; border-bottom: 1px solid var(--gray-3); font-size: 14px; color: var(--gray); }

/* ── PROSE SECTIONS (text-heavy content) ──────────────────────────────── */
.prose-block p { font-size: 15.5px; color: var(--gray); line-height: 1.85; margin-bottom: 16px; }
.prose-block strong { color: var(--gold-light); }
.prose-block h3,
.sub-h3 { font-size: 16px; font-weight: 700; color: var(--white); margin: 28px 0 12px; }

.text-list { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.text-list li { display: flex; gap: 14px; font-size: 15px; color: var(--gray); line-height: 1.7; }
.text-list li::before { content: '—'; color: var(--gold); flex-shrink: 0; font-weight: 600; margin-top: 3px; }
.text-list li strong { color: var(--white); display: inline; }

.italic-note {
  font-size: 14px; color: var(--gray-2); font-style: italic;
  border-left: 2px solid var(--gold-line);
  padding: 10px 16px; margin-top: 20px; background: var(--black-2);
}
.italic-note strong { color: var(--gold-light); font-style: normal; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid, .register-grid, .deposit-grid, .safety-with-img { grid-template-columns: 1fr; }
  .register-grid { gap: 40px; }
  .register-box { position: static; }
  .services-grid, .security-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--gray-3); }
}
@media (max-width: 768px) {
  :root { --header-h: 62px; }
  .primary-nav, .header-ctas { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }
  .section { padding: 64px 0; }
  .hero { padding: calc(var(--header-h) + 24px) 0 44px; }
  .hero .container { flex-direction: column; }
  .hero-img { display: none; }
  .services-grid, .security-grid, .safety-grid { grid-template-columns: 1fr; background: none; }
  .svc-card, .sec-card, .safe-card { border-bottom: 1px solid var(--gray-3); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .rankings-table thead th:nth-child(4), .rankings-table td:nth-child(4) { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }
  .hero h1 { font-size: 26px; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero-btns .btn-secondary { display: none; }
}

/* ── SINGLE POST ─────────────────────────────────────────────────────────── */
.single-wrap  { padding: 0 0 80px; }

.single-layout { max-width: 800px; margin: 0 auto; }

.single-header { padding: 48px 0 32px; border-bottom: 1px solid var(--gray-3); margin-bottom: 32px; }

.single-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.single-cat-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-line);
  padding: 3px 12px; border-radius: 2px;
  transition: background var(--ease), color var(--ease);
}
.single-cat-tag:hover { background: var(--gold-dim); color: var(--gold-light); }

.single-title { font-size: clamp(22px, 4vw, 36px); font-weight: 700; line-height: 1.25; color: var(--white); margin-bottom: 20px; }

.single-meta { display: flex; flex-wrap: wrap; gap: 18px; }
.single-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray); }
.single-meta-item svg { color: var(--gold); flex-shrink: 0; }

.single-thumbnail { margin-bottom: 40px; border-radius: 6px; overflow: hidden; border: 1px solid var(--gold-line); }
.single-thumbnail img { width: 100%; height: auto; display: block; }

.single-content { font-size: 16px; color: var(--gray); line-height: 1.9; }
.single-content h2 { font-size: clamp(18px, 3vw, 24px); font-weight: 700; color: var(--white); margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-3); }
.single-content h3 { font-size: clamp(16px, 2.5vw, 20px); font-weight: 600; color: var(--white); margin: 32px 0 12px; }
.single-content h4 { font-size: 16px; font-weight: 600; color: var(--gold-light); margin: 24px 0 10px; }
.single-content p { margin-bottom: 20px; }
.single-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.single-content a:hover { color: var(--gold-light); }
.single-content strong, .single-content b { color: var(--gold-light); font-weight: 600; }
.single-content ul, .single-content ol { padding-left: 22px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.single-content ul li { list-style: disc; }
.single-content ol li { list-style: decimal; }
.single-content blockquote {
  border-left: 3px solid var(--gold); background: var(--black-2);
  padding: 16px 20px; margin: 28px 0; border-radius: 0 4px 4px 0;
  font-size: 15px; color: var(--gray);
}
.single-content blockquote p { margin: 0; }
.single-content img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--gold-line); margin: 24px 0; }
.single-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.single-content table th { background: var(--black-3); color: var(--gold); padding: 11px 16px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--gold-line); }
.single-content table td { padding: 11px 16px; border-bottom: 1px solid var(--gray-3); color: var(--gray); font-size: 14.5px; }
.single-content code { background: var(--black-3); color: var(--gold-light); padding: 2px 7px; border-radius: 3px; font-size: .9em; }
.single-content pre { background: var(--black-3); border: 1px solid var(--gray-3); border-radius: 4px; padding: 20px; overflow-x: auto; margin: 24px 0; }
.single-content pre code { background: none; padding: 0; color: var(--text); }

.single-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--gray-3); }
.single-tags-label { font-size: 12px; font-weight: 600; color: var(--gray-2); text-transform: uppercase; letter-spacing: .1em; }
.single-tag {
  font-size: 12px; color: var(--gray); background: var(--black-3);
  border: 1px solid var(--gray-3); padding: 4px 12px;
  transition: border-color var(--ease), color var(--ease);
}
.single-tag:hover { border-color: var(--gold-line); color: var(--gold); }

.post-nav { margin-top: 48px; border-top: 1px solid var(--gray-3); padding-top: 40px; }
.post-nav-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav-item {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--black-2); border: 1px solid var(--gray-3);
  padding: 20px 22px; border-radius: 4px;
  transition: border-color var(--ease), background var(--ease);
}
.post-nav-item:hover { border-color: var(--gold-line); background: var(--black-3); }
.post-nav-next { text-align: right; }
.post-nav-dir { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; }
.post-nav-next .post-nav-dir { justify-content: flex-end; }
.post-nav-title { font-size: 14px; font-weight: 600; color: var(--white); line-height: 1.4; }

.related-posts { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--gray-3); }
.related-heading { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 28px; }

/* ── POST CARD (shared by archive + related) ────────────────────────────── */
.post-card {
  background: var(--black-2); border: 1px solid var(--gray-3);
  border-radius: 4px; overflow: hidden;
  transition: border-color var(--ease);
  display: flex; flex-direction: column;
}
.post-card:hover { border-color: var(--gold-line); }
.post-card-img { display: block; overflow: hidden; aspect-ratio: 16/9; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.post-card:hover .post-card-img img { transform: scale(1.03); }
.post-card-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-cat {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-line);
  padding: 2px 10px; align-self: flex-start; border-radius: 2px;
}
.post-card-title { font-size: 15.5px; font-weight: 600; line-height: 1.4; flex: 1; }
.post-card-title a { color: var(--white); transition: color var(--ease); }
.post-card-title a:hover { color: var(--gold-light); }
.post-card-excerpt { font-size: 14px; color: var(--gray); line-height: 1.7; }
.post-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--gray-2); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--gray-3); }
.post-card-read { display: flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 600; font-size: 12.5px; transition: gap var(--ease); }
.post-card:hover .post-card-read { gap: 7px; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── ARCHIVE ─────────────────────────────────────────────────────────────── */
.archive-wrap { padding: 0 0 80px; }

.archive-header { padding: 48px 0 40px; border-bottom: 1px solid var(--gray-3); margin-bottom: 48px; }
.archive-title { font-size: clamp(24px, 4vw, 38px); font-weight: 700; color: var(--white); margin-bottom: 16px; }
.archive-desc { font-size: 16px; color: var(--gray); line-height: 1.8; max-width: 640px; }
.archive-count { font-size: 13px; color: var(--gray-2); margin-top: 8px; }

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

.archive-pagination { display: flex; justify-content: center; }
.archive-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.archive-pagination li a,
.archive-pagination li span {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; font-size: 14px;
  background: var(--black-2); border: 1px solid var(--gray-3); border-radius: 3px;
  color: var(--gray); transition: border-color var(--ease), color var(--ease);
}
.archive-pagination li a:hover { border-color: var(--gold-line); color: var(--gold); }
.archive-pagination li span.current { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 700; }

.archive-empty { text-align: center; padding: 80px 0; }
.archive-empty p { font-size: 16px; color: var(--gray); margin-bottom: 24px; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .post-nav-inner { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .post-nav-next .post-nav-dir { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .archive-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
