/* ============================================================
   Adsitec Theme — Main Stylesheet (Full Light Edition)
   Education Hub · Light Mode · Purple Accent
   ============================================================ */

:root {
  --black:       #000000;
  --white:       #FFFFFF;
  --bg:          #FAFAF7;
  --gray-50:     #F7F7F7;
  --gray-100:    #EDEDED;
  --gray-300:    #CCCCCC;
  --gray-500:    #888888;
  --gray-700:    #444444;
  --purple:      #6D28D9;
  --purple-dark: #5B21B6;
  --purple-ink:  #2E1065;
  --purple-50:   #F5F3FF;
  --purple-100:  #EDE9FE;
  --purple-200:  #DDD6FE;
  --line:        #E8E4ED;
  --ink:         #14101F;
  --font: 'Inter', 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; padding: 12px 16px; background: var(--purple); color: #fff; z-index: 10000; border-radius: 6px; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ───── NAV ───── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(20,16,31,0.04);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 32px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  overflow: hidden;
}
.logo { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; max-height: 40px; }
.logo .dot { color: var(--purple); }
.logo img,
.logo .custom-logo,
.logo .custom-logo-link,
.logo .custom-logo-link img,
.nav .custom-logo,
.nav .custom-logo-link img {
  max-height: 36px !important;
  width: auto !important;
  height: auto !important;
  display: inline-block;
  object-fit: contain;
}
.nav-menu { display: flex; gap: 36px; align-items: center; }
.nav-menu a { font-size: 14px; font-weight: 500; color: var(--gray-700); transition: color .15s; }
.nav-menu a:hover { color: var(--ink); }
.nav-menu a.current { color: var(--ink); font-weight: 700; }

/* ── Blog nav-wrap (Blog link + caret button) ── */
.nav-blog-wrap { display: flex; align-items: center; gap: 2px; }
.blog-cat-btn {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 4px 3px;
  color: var(--gray-500); transition: color .15s, transform .2s;
  line-height: 1;
}
.blog-cat-btn:hover { color: var(--ink); }
.blog-cat-btn[aria-expanded="true"] { color: var(--purple); transform: rotate(180deg); }

/* ── Blog categories strip — full-width, anchored to nav bottom ── */
.blog-cats {
  border-top: 1px solid var(--line);
  background: var(--white);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.blog-cats::-webkit-scrollbar { display: none; }
.blog-cats-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 32px;
  display: flex; gap: 4px; align-items: center;
  height: 44px;
}
.blog-cats-inner a {
  flex-shrink: 0;
  font-size: 13px; font-weight: 500; color: var(--gray-700);
  padding: 5px 12px; border-radius: 20px;
  transition: background .13s, color .13s;
  white-space: nowrap;
}
.blog-cats-inner a:hover { background: var(--purple-50); color: var(--purple); }
.blog-cats-inner a.blog-cat-all {
  font-weight: 600; color: var(--ink);
  border: 1px solid var(--line);
  margin-right: 6px;
}
.blog-cats-inner a.blog-cat-all:hover { border-color: var(--purple-200); background: var(--purple-50); color: var(--purple); }

.nav-actions { display: flex; gap: 12px; align-items: center; }
.btn-ghost {
  font-size: 13px; font-weight: 500; color: var(--gray-700);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px;
  transition: all .15s; background: var(--white); cursor: pointer; font-family: inherit;
}
.btn-ghost:hover { border-color: var(--purple-200); color: var(--ink); }
.btn-fill {
  font-size: 13px; font-weight: 600;
  background: var(--purple); color: var(--white);
  padding: 9px 18px; border-radius: 8px;
  transition: background .15s; border: none; cursor: pointer; font-family: inherit;
}
.btn-fill:hover { background: var(--purple-dark); }

/* ───── HERO ───── */
.hero {
  background: linear-gradient(165deg, var(--white) 0%, var(--purple-50) 55%, var(--purple-100) 100%);
  padding: 100px 0 88px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(109,40,217,0.08) 0%, transparent 65%),
    linear-gradient(rgba(109,40,217,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,40,217,0.03) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  pointer-events: none;
}
.hero-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 24px;
  padding: 6px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px;
}
.hero-eyebrow .accent { color: var(--purple); }
.hero h1 {
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.035em;
  color: var(--ink); max-width: 16ch; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--purple); }
.hero-desc {
  font-size: 18px; color: var(--gray-700);
  max-width: 52ch; line-height: 1.65; margin-bottom: 44px; font-weight: 300;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-white {
  padding: 14px 28px; background: var(--purple); color: var(--white);
  font-size: 14px; font-weight: 700; border-radius: 8px; transition: background .15s;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 1px 2px rgba(109,40,217,0.2);
}
.btn-white:hover { background: var(--purple-dark); }
.btn-ghost-white {
  padding: 14px 28px; border: 1px solid var(--line); color: var(--ink);
  font-size: 14px; font-weight: 600; border-radius: 8px; transition: all .15s;
  background: var(--white);
}
.btn-ghost-white:hover { border-color: var(--purple-200); background: var(--purple-50); }
.hero-numbers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 56px;
}
.hero-num {
  padding: 20px 24px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.hero-num:hover { border-color: var(--purple-200); box-shadow: 0 4px 16px rgba(109,40,217,0.06); }
.hero-num .n { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.hero-num .l { font-size: 13px; color: var(--gray-500); margin-top: 6px; font-weight: 500; }

/* ───── SECTION SHELL ───── */
.sec { padding: 80px 0; }
.sec-bg-gray { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-bg-purple { background: var(--purple-50); }
.sec-bg-dark { background: var(--purple-50); border-top: 1px solid var(--purple-200); }
.sec-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.sec-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 24px; flex-wrap: wrap; }
.sec-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); margin-bottom: 8px; }
.sec-title { font-size: clamp(22px, 2.8vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.sec-title-dark { color: var(--ink); }
.see-all { font-size: 13px; font-weight: 600; color: var(--gray-500); display: inline-flex; align-items: center; gap: 4px; transition: color .15s; white-space: nowrap; }
.see-all:hover { color: var(--ink); }

/* ───── TOPIC BAR ───── */
.topics-strip {
  border-bottom: 1px solid var(--gray-100);
  padding: 0 32px;
  overflow-x: auto;
}
.topics-scroll {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; gap: 0;
}
.topic-tab {
  padding: 16px 24px; font-size: 13px; font-weight: 600;
  color: var(--gray-500); border-bottom: 2px solid transparent;
  white-space: nowrap; transition: all .15s; cursor: pointer;
  background: transparent; border-left: none; border-right: none; border-top: none;
  font-family: inherit; text-decoration: none;
}
.topic-tab:hover { color: var(--ink); border-bottom-color: var(--gray-300); }
.topic-tab.active { color: var(--ink); border-bottom-color: var(--purple); }

/* ───── CATEGORY CARDS ───── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  border-radius: 16px; overflow: hidden;
  aspect-ratio: 4/3;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  isolation: isolate;
}
.cat-card.disabled { opacity: .55; cursor: default; pointer-events: none; filter: saturate(0.5); }
.cat-card:hover:not(.disabled) { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.18); }
.cat-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
}
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 50%);
  pointer-events: none;
}
.cat-glyph {
  position: absolute; right: -10px; bottom: -30px; z-index: 0;
  font-size: 180px; font-weight: 900; line-height: 1;
  color: rgba(255,255,255,0.14);
  letter-spacing: -0.06em;
  pointer-events: none;
  font-family: 'Inter', -apple-system, sans-serif;
  user-select: none;
}
.cat-glyph.glyph-sm { font-size: 140px; right: 4px; bottom: -10px; }
.cat-badge {
  position: relative; z-index: 1;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75); margin-bottom: 8px;
}
.cat-name {
  position: relative; z-index: 1;
  font-size: 20px; font-weight: 800; color: var(--white);
  line-height: 1.2; letter-spacing: -0.02em;
}
.cat-count {
  position: relative; z-index: 1;
  font-size: 12px; color: rgba(255,255,255,0.65);
  margin-top: 6px; font-weight: 500;
}

/* Category gradient backgrounds — platform brand colors */
.cat-meta     { background: linear-gradient(135deg, #4267B2 0%, #1877F2 50%, #0C47B0 100%); }
.cat-google   { background: linear-gradient(135deg, #FBBC05 0%, #EA4335 45%, #B31412 100%); }
.cat-martech  { background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 45%, #4C1D95 100%); }
.cat-ai       { background: linear-gradient(135deg, #1E293B 0%, #0F172A 60%, #020617 100%); }
.cat-tiktok   { background: linear-gradient(135deg, #25F4EE 0%, #1C1C1C 50%, #FE2C55 100%); }
.cat-line     { background: linear-gradient(135deg, #06C755 0%, #049A41 60%, #014C20 100%); }
.cat-content  { background: linear-gradient(135deg, #FB923C 0%, #F97316 45%, #C2410C 100%); }
.cat-strategy { background: linear-gradient(135deg, #94A3B8 0%, #64748B 50%, #334155 100%); }

/* ───── FEATURED GUIDE ───── */
.featured-block {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(20,16,31,0.06);
}
.featured-left {
  padding: 48px 44px;
  background: linear-gradient(140deg, var(--purple-ink) 0%, #4C1D95 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  background-size: cover; background-position: center;
  min-height: 380px;
  position: relative;
}
.featured-left.has-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(46,16,101,0.92) 0%, rgba(76,29,149,0.85) 100%);
  pointer-events: none;
}
.featured-left > * { position: relative; z-index: 1; }
.featured-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple-200); margin-bottom: 20px; }
.featured-title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: var(--white); line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 16px; }
.featured-desc { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.65; font-weight: 300; }
.featured-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 40px;
  padding: 13px 24px; background: var(--white); color: var(--ink);
  font-size: 14px; font-weight: 700; border-radius: 8px; align-self: flex-start;
  transition: opacity .15s;
}
.featured-cta:hover { opacity: .88; }
.featured-right { background: var(--purple-50); padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.featured-right h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 20px; }
.featured-right ul { list-style: none; }
.featured-right li {
  padding: 14px 0; border-bottom: 1px solid var(--purple-200);
  font-size: 14px; color: var(--gray-700); font-weight: 500;
  display: flex; align-items: center; gap: 12px;
}
.featured-right li:last-child { border-bottom: none; }
.featured-right li .ic { color: var(--purple); font-size: 12px; font-weight: 700; }
.featured-right li a {
  display: flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none; width: 100%;
  transition: color 0.18s;
}
.featured-right li a:hover { color: var(--purple); }
.featured-right li a:hover .ic { color: var(--purple-700, var(--purple)); }
.featured-meta-row { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.featured-badge { padding: 6px 12px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--white); }

/* ───── ARTICLE GRID ───── */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.art-card {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--gray-100); background: var(--white);
  transition: border-color .15s, transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.art-card:hover { border-color: var(--purple-200); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(109,40,217,0.08); }
.art-thumb { width: 100%; aspect-ratio: 16/9; background: var(--gray-100); overflow: hidden; }
.art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-thumb-fallback { background: linear-gradient(135deg, var(--purple), #4C1D95); width: 100%; height: 100%; }
.art-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.art-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple); margin-bottom: 10px; }
.art-title { font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 10px; }
.art-desc { font-size: 13px; color: var(--gray-500); line-height: 1.55; margin-bottom: 16px; flex: 1; }
.art-footer { display: flex; align-items: center; justify-content: space-between; }
.art-type { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 4px; background: var(--purple-50); color: var(--purple); }
.art-read { font-size: 12px; font-weight: 600; color: var(--purple); }

/* ───── LEAD FORM ───── */
.lead-card {
  max-width: 720px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 56px 48px;
  box-shadow: 0 4px 24px rgba(20,16,31,0.05);
}
.lead-inner { text-align: center; }
.lead-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); margin-bottom: 16px; }
.lead-title { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 12px; }
.lead-sub { font-size: 16px; color: var(--gray-700); line-height: 1.65; margin-bottom: 32px; font-weight: 400; }
.lead-form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin: 0 auto; text-align: left; }
.lead-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form input,
.lead-form textarea {
  width: 100%; padding: 14px 18px;
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 8px; color: var(--ink); font-size: 14px; font-family: var(--font);
}
.lead-form textarea { min-height: 96px; resize: vertical; }
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: var(--gray-500); }
.lead-form input:focus,
.lead-form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109,40,217,0.1); }
.lead-form button {
  margin-top: 4px; padding: 14px 22px; background: var(--purple); color: var(--white);
  font-size: 14px; font-weight: 700; border: none; border-radius: 8px;
  cursor: pointer; font-family: var(--font); transition: background .15s;
}
.lead-form button:hover:not(:disabled) { background: var(--purple-dark); }
.lead-form button:disabled { opacity: .65; cursor: wait; }
.lead-form-status { font-size: 13px; margin-top: 12px; text-align: center; }
.lead-form-status--success { color: #047857; }
.lead-form-status--error { color: #B91C1C; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-note { font-size: 12px; color: var(--gray-500); margin-top: 16px; text-align: center; }

/* ───── FOOTER ───── */
.footer { background: var(--white); padding: 64px 0 32px; border-top: 1px solid var(--line); color: var(--gray-700); }
.footer-top { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-logo { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin-bottom: 12px; }
.footer-logo .dot { color: var(--purple); }
.footer-tagline { font-size: 14px; color: var(--gray-500); line-height: 1.65; max-width: 28ch; }
.footer-col h5 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--gray-500); transition: color .15s; }
.footer-col a:hover { color: var(--purple); }
.footer-bottom { max-width: var(--wrap); margin: 0 auto; padding: 24px 32px 0; display: flex; justify-content: space-between; font-size: 13px; color: var(--gray-500); flex-wrap: wrap; gap: 12px; }

/* ───── SINGLE / PAGE CONTENT ───── */
.single-article { background: var(--white); }

/* ───── GUIDES PAGE (full-width, no entry-wrap) ───── */
.guides-page { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .guides-page { padding: 0 20px; } }
.entry-wrap { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.entry-wrap h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; color: var(--ink); }
.entry-wrap h2 { font-size: 28px; font-weight: 700; margin: 36px 0 16px; letter-spacing: -0.02em; color: var(--ink); }
.entry-wrap h3 { font-size: 22px; font-weight: 700; margin: 28px 0 12px; letter-spacing: -0.01em; color: var(--ink); }
.entry-wrap p { margin-bottom: 16px; color: var(--gray-700); line-height: 1.75; font-size: 16px; }
.entry-wrap a { color: var(--purple); text-decoration: underline; }
.entry-wrap ul, .entry-wrap ol { margin: 0 0 16px 24px; }
.entry-wrap li { margin-bottom: 6px; color: var(--gray-700); }
.entry-wrap img { border-radius: 12px; margin: 24px 0; }
.entry-wrap blockquote { border-left: 4px solid var(--purple); padding: 12px 20px; margin: 24px 0; background: var(--purple-50); border-radius: 0 8px 8px 0; color: var(--gray-700); font-style: italic; }
.entry-wrap pre { background: var(--gray-50); padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 13px; border: 1px solid var(--gray-100); }
.entry-wrap code { background: var(--purple-50); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; color: var(--purple); }
.entry-wrap table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.entry-wrap th, .entry-wrap td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-wrap th { background: var(--purple-50); color: var(--purple-ink); font-weight: 600; font-size: 13px; letter-spacing: 0.01em; }
.entry-wrap tr:last-child td { border-bottom: none; }
.entry-wrap tr:hover td { background: var(--gray-50); }
.entry-meta { font-size: 13px; color: var(--gray-500); margin-bottom: 32px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.entry-meta a { color: var(--purple); }
.entry-thumb { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 16px; margin-bottom: 32px; }

/* ───── MOBILE NAV ───── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--ink); font-size: 22px; line-height: 1;
  margin-left: 8px;
}
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 199;
  background: rgba(20,16,31,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0;
  width: min(300px, 88vw); height: 100%;
  background: var(--white); padding: 24px 28px;
  display: flex; flex-direction: column; gap: 0;
  box-shadow: -8px 0 32px rgba(20,16,31,0.12);
  overflow-y: auto;
}
.mobile-nav-close {
  align-self: flex-end; background: none; border: none; cursor: pointer;
  font-size: 24px; color: var(--gray-500); padding: 4px; margin-bottom: 24px;
  line-height: 1;
}
.mobile-nav-panel a {
  display: block; padding: 14px 0;
  font-size: 16px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color .15s;
}
.mobile-nav-panel a:last-child { border-bottom: none; }
.mobile-nav-panel a:hover { color: var(--purple); }
.mobile-nav-panel .mobile-nav-cta {
  margin-top: 24px; padding: 14px 0;
  background: var(--purple); color: var(--white) !important;
  border-radius: 8px; text-align: center;
  font-size: 14px; border-bottom: none !important;
}

/* ── Mobile accordion submenu ── */
.mob-item {
  border-bottom: 1px solid var(--line);
}
.mob-item:last-of-type { border-bottom: none; }
.mob-sub-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 14px 0; font-family: var(--font);
  font-size: 16px; font-weight: 600; color: var(--ink);
  text-align: left;
}
.mob-sub-toggle svg {
  flex-shrink: 0; color: var(--gray-500);
  transition: transform .2s;
}
.mob-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mob-sub {
  display: none;
  flex-direction: column;
  padding: 0 0 8px 12px;
  gap: 0;
}
.mob-sub.open { display: flex; }
.mob-sub a {
  display: block; padding: 10px 0;
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  border-radius: 0;
}
.mob-sub a:first-child { font-weight: 600; color: var(--ink); }
.mob-sub a:last-child { border-bottom: none; }
.mob-sub a:hover { color: var(--purple); }

/* ───── RESPONSIVE ───── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
  /* — Container padding — */
  .container,
  .sec-inner,
  .hero-inner,
  .nav-inner { padding-left: 20px; padding-right: 20px; }
  .topics-strip { padding-left: 20px; padding-right: 20px; }

  /* — Nav — */
  .nav-menu { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-actions .btn-ghost { display: none; }

  /* — Hero — */
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: clamp(32px, 8.5vw, 48px); }
  .hero-desc { font-size: 16px; margin-bottom: 32px; }
  .hero-numbers { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 40px; }
  .hero-num { padding: 16px 18px; }
  .hero-num .n { font-size: 24px; }

  /* — Cat cards — */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card {
    aspect-ratio: unset;
    min-height: 130px;
    padding: 16px;
    border-radius: 12px;
  }
  .cat-name { font-size: 15px; }
  .cat-badge { font-size: 9px; letter-spacing: 0.09em; margin-bottom: 5px; }
  .cat-count { font-size: 11px; margin-top: 4px; }
  .cat-glyph { font-size: 110px; right: -8px; bottom: -18px; }
  .cat-glyph.glyph-sm { font-size: 85px; right: 0; bottom: -10px; }

  /* — Featured — */
  .featured-block { grid-template-columns: 1fr; }
  .featured-left { padding: 36px 24px; min-height: 260px; }
  .featured-right { padding: 28px 24px; }

  /* — Articles — */
  .article-grid { grid-template-columns: 1fr; }

  /* — Footer — */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 36px; }
  .footer-top > div:first-child { grid-column: span 2; }
  .footer-bottom { padding: 20px 20px 0; }

  /* — Lead form — */
  .lead-form-row { grid-template-columns: 1fr; }
  .lead-card { padding: 36px 20px; }
  .lead-title { font-size: clamp(24px, 6vw, 34px); }

  /* — Entry (single article) — */
  .entry-wrap { padding: 48px 20px; }
  .entry-wrap h1 { font-size: clamp(28px, 7vw, 40px); }
  .entry-wrap h2 { font-size: 22px; margin: 28px 0 12px; }
  .entry-wrap h3 { font-size: 18px; margin: 22px 0 10px; }
  .entry-wrap table { font-size: 13px; display: block; overflow-x: auto; white-space: nowrap; }
  .entry-wrap th, .entry-wrap td { padding: 9px 12px; }
  .entry-thumb { aspect-ratio: 16/9; }
}

@media (max-width: 480px) {
  /* — Container padding tighter — */
  .container,
  .sec-inner,
  .hero-inner,
  .nav-inner { padding-left: 16px; padding-right: 16px; }
  .topics-strip { padding-left: 0; padding-right: 0; }

  /* — Cat cards: 1 column on very small screens — */
  .cat-grid { grid-template-columns: 1fr; gap: 8px; }
  .cat-card {
    min-height: 110px;
    padding: 20px;
    border-radius: 12px;
  }
  .cat-name { font-size: 17px; }
  .cat-glyph { font-size: 120px; right: -8px; bottom: -20px; }
  .cat-glyph.glyph-sm { font-size: 95px; right: 0; bottom: -12px; }

  /* — Footer — */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-top > div:first-child { grid-column: span 2; }
}
