/* ─────────────────────────────────────────────────────────────────────────────
   SECTION 1: RESET + VARIABLES
   ───────────────────────────────────────────────────────────────────────────── */

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

:root {
  --primary:        #1f5fa0;
  --primary-dark:   #0d3b66;
  --primary-dim:    rgba(31, 95, 160, 0.10);
  --primary-border: rgba(31, 95, 160, 0.30);
  --primary-glow:   rgba(31, 95, 160, 0.15);
  --bg:             #ffffff;
  --bg2:            #eef4fb;
  --bg3:            #f6f9fc;
  --border:         #e3e9f0;
  --border2:        #c9d7e6;
  --text:           #1a1a1a;
  --muted:          #555555;
  --faint:          #888888;
  --ink:            #0d3b66;
  --ink2:           #3d556f;
  --white:          #ffffff;
  --surface:        #ffffff;
  --radius:         12px;
  --radius-sm:      10px;
  --radius-xs:      6px;
  --amber:          #f4b400;
  --orange:         var(--primary);
  --orange-dim:     var(--primary-dim);
  --orange-mid:     var(--primary-border);
  --box-shadow-2:   0 4px 20px 0 rgba(15,15,15,0.06);
  --box-shadow-3:   0 4px 20px 0 rgba(15,15,15,0.14);
}

html, body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Mulish', sans-serif;
}
html { -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
body.all-pages { display: flex; flex-direction: column; min-height: 100vh; }
body.all-pages .container.main { margin-top: 32px; }

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION 2: TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────────── */

h1 { font-family: 'Lora', serif; font-weight: 700; line-height: 1.15; }
h2, h3, h4, h5, h6 { font-family: 'Mulish', sans-serif; font-weight: 700; line-height: 1.25; }
p { font-family: 'Mulish', sans-serif; }

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION 3: NAVIGATION
   ───────────────────────────────────────────────────────────────────────────── */

nav {
  display: flex;
  align-items: center;
  height: 60px;
  background: var(--ink);
  border-bottom: 3px solid var(--amber);
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 48px;
  height: 100%;
}
.logo { height: 24px; display: block; flex-shrink: 0; }
.footer-logo { height: 24px; display: block; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 4px 6px;
  position: relative;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--amber); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 6px;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width .2s;
}
.nav-links a:hover::after { width: calc(100% - 12px); }

.nav-more { position: relative; }
.nav-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 4px 6px;
  transition: color .2s;
  white-space: nowrap;
}
.nav-more-btn:hover { color: var(--amber); }
.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  z-index: 300;
  min-width: 180px;
  display: none;
  padding: 6px 0;
  box-shadow: var(--box-shadow-3);
}
.nav-more:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: background .15s, color .15s;
}
.nav-dropdown a:hover { background: var(--primary-dim); color: var(--primary); }

.mobile-more { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

.mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background: var(--ink);
  display: none;
  flex-direction: column;
  z-index: 199;
  padding: 12px 0;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color .15s, background .15s;
}
.mobile-menu a:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION 4: LAYOUT CONTENT
   ───────────────────────────────────────────────────────────────────────────── */

/* Hero */
.hero {
  background: var(--bg2);
  background-image:
    radial-gradient(ellipse at 75% 40%, rgba(31,95,160,0.09) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(244,180,0,0.05) 0%, transparent 50%);
  padding: 72px 0 84px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  animation: hero-fade-in .65s ease both;
}
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
  display: inline-block;
}
.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.hero h1 {
  font-family: 'Lora', serif;
  font-size: 52px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--primary);
}
.hero p.lead {
  font-size: 18px;
  color: var(--ink2);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  justify-content: center;
}
.hero-pills span {
  background: var(--white);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(31,95,160,0.07);
}
.arrow-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: #fffbee;
  border-left: 4px solid var(--amber);
  padding: 16px 22px;
  border-radius: 4px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 4px 18px rgba(244,180,0,0.14);
}
.arrow-cta .arrow {
  font-size: 26px;
  color: var(--amber);
  animation: bounce-right 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes bounce-right {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(8px); }
}

/* Stats bar */
.stats-bar {
  background: var(--ink);
  padding: 30px 0;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-inner > div {
  position: relative;
}
.stats-inner > div + div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}
.stat-num {
  font-family: 'Lora', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--border2);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* Section base */
.section { padding: 70px 0; }
.section .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: 34px;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 16px;
}
.section-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
}
.section-head p {
  font-size: 16px;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Categories grid */
.categories .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 26px 22px;
  display: block;
  position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cat-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-3px);
  box-shadow: inset 0 3px 0 var(--amber), var(--box-shadow-3);
}
.cat-card:hover .cat-icon {
  transform: scale(1.1);
  background: var(--primary-dim);
}
.cat-icon {
  width: 48px;
  height: 48px;
  background: var(--bg2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
  transition: transform .25s ease, background .2s;
}
.cat-card h3 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 700;
  transition: color .2s;
}
.cat-card:hover h3 { color: var(--primary); }
.cat-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.cat-card .arrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  display: inline-block;
  transition: letter-spacing .2s;
}
.cat-card:hover .arrow {
  letter-spacing: 2px;
}

/* FTC block */
.ftc-block {
  background: var(--bg3);
  padding: 70px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ftc-block .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.ftc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ftc-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--box-shadow-2);
  border-top: 3px solid var(--primary-border);
  transition: box-shadow .2s, transform .2s, border-top-color .2s;
}
.ftc-card:hover {
  box-shadow: var(--box-shadow-3);
  transform: translateY(-2px);
  border-top-color: var(--primary);
}
.ftc-icon {
  width: 52px;
  height: 52px;
  background: var(--bg2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.ftc-card h3 {
  font-size: 18px;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}
.ftc-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.ftc-disclaimer {
  background: #fff7dc;
  border-left: 4px solid var(--amber);
  padding: 20px 24px;
  margin-top: 40px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.6;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.ftc-disclaimer strong { color: var(--ink); }

/* Resource grid */
.resources { background: var(--bg); }
.resource-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.resource-card {
  background: var(--surface);
  border: 2px solid var(--bg2);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
  display: block;
  position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.resource-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-3);
}
.resource-icon {
  width: 56px;
  height: 56px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
  color: var(--ink);
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.resource-card:hover .resource-icon {
  transform: scale(1.15) rotate(8deg);
}
.resource-card h3 {
  font-size: 15px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 6px;
  transition: color .2s;
}
.resource-card:hover h3 { color: var(--primary); }
.resource-card p {
  font-size: 13px;
  color: var(--faint);
}

/* How it works */
.how-it-works { background: var(--bg2); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.how-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12.5%;
  width: 75%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--border2) 0, var(--border2) 6px,
    transparent 6px, transparent 14px
  );
  pointer-events: none;
}
.how-step { text-align: center; position: relative; }
.how-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
  outline: 3px solid var(--primary-border);
  outline-offset: 3px;
  position: relative;
  z-index: 1;
  transition: background .2s, outline-color .2s;
}
.how-step:hover .how-num {
  background: var(--primary);
  outline-color: var(--primary-glow);
}
.how-step h3 {
  font-size: 17px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 8px;
}
.how-step p {
  font-size: 14px;
  color: var(--muted);
}

/* Featured guides */
.featured { background: var(--bg); }
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
}
.featured-main {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 30px;
}
.featured-main .tag {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.featured-main h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
}
.featured-main p {
  color: var(--border2);
  font-size: 15px;
  margin-bottom: 18px;
}
a.read-btn {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 20px;
  font-weight: 700;
  border-radius: var(--radius-xs);
  font-size: 14px;
  transition: background .2s;
}
a.read-btn:hover { background: #e0a500; }

.featured-card {
  background: var(--bg3);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: block;
  position: relative;
  border-left: 3px solid transparent;
  transition: transform .2s, box-shadow .2s, border-left-color .2s;
}
.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-3);
  border-left-color: var(--primary);
}
.featured-card .label {
  display: inline-block;
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--primary-dim);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.featured-card h4 {
  font-size: 16px;
  color: var(--ink);
  font-weight: 700;
  margin: 8px 0;
  line-height: 1.35;
  transition: color .2s;
}
.featured-card:hover h4 { color: var(--primary); }
.featured-card p {
  font-size: 13px;
  color: var(--muted);
}

/* State hub */
.state-hub { background: var(--bg3); }
.state-hub-intro {
  background: var(--surface);
  padding: 26px;
  border-radius: var(--radius-sm);
  margin-bottom: 30px;
  border: 1px solid var(--border);
  text-align: center;
}
.state-hub-intro p {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 15px;
}
.state-hub-intro p:last-child { margin-bottom: 0; }
.state-hub-intro strong { color: var(--ink); }
.states-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px 30px;
}
.states-grid a {
  color: var(--primary);
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, transform .2s, border-bottom-color .2s;
  display: block;
}
.states-grid a:hover {
  transform: translateX(4px);
  border-bottom-color: var(--primary);
  color: var(--primary-dark);
}

/* About section */
.about-section {
  background: var(--bg);
  padding: 70px 0;
  border-top: 1px solid var(--border);
}
.about-section .wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.about-section h2 {
  font-size: 30px;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 18px;
  text-align: center;
}
.about-section p {
  font-size: 16px;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION 4.5: INTERACTIVE STATES
   ───────────────────────────────────────────────────────────────────────────── */

a, button, input, textarea, select,
.cat-card, .resource-card, .featured-card, .ftc-card, .sublist.card {
  transition: color .2s ease, background-color .2s ease,
              border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION 5: FOOTER
   ───────────────────────────────────────────────────────────────────────────── */

footer {
  background: var(--ink);
  padding: 48px;
  color: rgba(255,255,255,0.5);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.38);
  margin-top: 14px;
}
.footer-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.28);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-col a:hover { color: rgba(255,255,255,0.88); }
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 22px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a, .footer-bottom a {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  transition: color .2s;
}
.footer-links a:hover, .footer-bottom a:hover { color: rgba(255,255,255,0.6); }
.footer-copy { font-size: 11.5px; color: rgba(255,255,255,0.22); }
.footer-disclaimer {
  max-width: 700px;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  line-height: 1.65;
  margin: 20px auto 0;
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION 6: CONTACT FORM
   ───────────────────────────────────────────────────────────────────────────── */

.contact-form-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 40px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink2);
}
input, textarea, select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}
button[type="submit"] {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-weight: 700;
  padding: 13px;
  cursor: pointer;
  transition: background .2s;
}
button[type="submit"]:hover { background: var(--primary-dark); }

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION 7: WIDGETS
   ───────────────────────────────────────────────────────────────────────────── */

/* Topic rail marquee */
.topic-rail {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 12px 0;
}
.topic-rail-inner {
  display: flex;
  width: max-content;
  gap: 12px;
}
.topic-rail-inner.is-marquee {
  animation: marquee 36s linear infinite;
}
.topic-rail-inner.is-marquee:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* SUBLIST widget */
.item-sublist { list-style: none; padding: 0; margin: 0; }
.sublist.card {
  border: none !important;
  box-shadow: var(--box-shadow-2);
  transition: box-shadow .2s, transform .2s, color .2s;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sublist.card:hover {
  box-shadow: var(--box-shadow-3);
  transform: translateY(-4px);
}
.sublist.card:hover h5,
.sublist.card:hover .card-title { color: var(--primary-dark); }
@media (max-width: 767.98px) {
  .sublist.card { flex-direction: row !important; }
  .sublist.card .card-img-top,
  .sublist.card img { width: 120px; height: 100%; object-fit: cover; flex-shrink: 0; }
}

/* BUBBLES widget */
.item-bubbles { width: 100%; }
.bubbles-chip { margin-bottom: 10px; }
.bubbles-chip:last-child { margin-bottom: 0; }
.bubbles-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  transition: padding .2s, background .2s, border-color .2s;
  text-decoration: none;
}
.bubbles-link:hover {
  padding-left: 20px;
  background: var(--primary-dim);
  border-color: var(--primary-border);
}
/* Arrow SVG — primary color #1f5fa0 encoded as %231f5fa0 */
.bubbles-link::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231f5fa0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  flex-shrink: 0;
  margin-left: auto;
  line-height: 0;
}
.bubbles-link .bubbles-outer { height: auto !important; padding: 3px 0; }
.bubbles-outer {
  display: flex;
  align-items: center;
  height: auto;
  padding: 3px 0;
}
.bubbles-chip-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.sibling.link-button {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: auto !important;
  min-height: 0 !important;
}
repeat {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
}
.col-gap:has(> .item-bubbles)::before { display: none !important; }

/* DIR-GRID widget */
.dir-text {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
}
.dir-icon { flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION 8: LAYOUT RESET + WIDTH INVARIANTS
   ───────────────────────────────────────────────────────────────────────────── */

.container.main { max-width: 1600px !important; }
body.all-pages .content .container.main { padding: 24px 16px; }
.dir-content {
  max-width: 1140px !important;
  margin: 0 auto !important;
  padding: 52px 48px;
  background: var(--bg);
}
.nav-inner   { max-width: 1200px; margin: 0 auto; width: 100%; }
.footer-inner { max-width: 1200px; margin: 0 auto; width: 100%; }

/* Hero full-width = YES */
body.home-page .container.main { width: 100%; max-width: 100% !important; padding: 0; }
.container.layout { max-width: 100%; padding: 0 !important; }
.container.layout .row.layout { margin: 0 !important; }
body.home-page .container.layout .row.layout > .cols { padding: 0 !important; }
body.home-page .container.layout .col-gap { padding: 0 !important; }

/* Always include */
body.all-pages .content .container.main { padding: 24px 16px; }

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION 9: RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */

/* Tablet ≤1199px */
@media (max-width: 1199.98px) {
  nav .nav-inner { padding: 0 24px; }
  .nav-more { display: none; }
  .dir-content { padding: 40px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 38px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .categories .grid { grid-template-columns: repeat(2, 1fr); }
  .ftc-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: repeat(3, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-main { grid-column: 1 / -1; }
  .states-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile ≤767px */
@media (max-width: 767.98px) {
  nav .nav-inner { padding: 0 16px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-more { display: block !important; }
  footer { padding: 0; }
  .footer-inner { padding: 28px 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .dir-content { padding: 28px 16px; }
  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 16px; }
  .arrow-cta { font-size: 14px; padding: 12px 16px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .categories .grid { grid-template-columns: 1fr; }
  .ftc-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .states-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }
  .about-section { padding: 48px 0; }
}

/* Small mobile ≤374px */
@media (max-width: 374px) {
  .hero h1 { font-size: 26px; }
  .resource-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
}
