/* ===========================
   style.css — {Domain Label}
   =========================== */

/* ===== CSS VARIABLES ===== */
:root {
  --primary-100: #c9d7e6;    /* light blue-gray — footer text, form borders */
  --primary-500: #1f5fa0;    /* medium blue — links, interactive elements */
  --primary-700: #0d3b66;    /* dark navy — header/footer bg, headings */
  --accent-400: #e0a500;     /* deeper gold — button hover */
  --accent-500: #f4b400;     /* gold — CTA buttons, icons, highlights */
  --text: #1a1a1a;           /* near-black — body text */
  --text-secondary: #3d556f; /* muted navy — lead copy, disclaimers */
  --text-muted: #555;        /* gray — secondary text */
  --white: #ffffff;
  --background: #f1f5f9;     /* light gray — section backgrounds, breadcrumbs */
  --surface-100: #eef4fb;    /* light blue tint — hero bg */
  --surface-200: #f6f9fc;    /* very light blue-gray — form fields, FTC block */
  --surface-warm: #fff7dc;   /* light yellow — arrow-cta, disclaimer bg */
  --border: #e3e9f0;         /* general borders */
  --box-shadow-sm: 0 1px 3px 0 rgba(34, 40, 42, 0.1);
  --box-shadow-md: 0 4px 20px 0 rgba(33, 37, 41, 0.05);
  --box-shadow-lg: 0 4px 20px 0 rgba(33, 37, 41, 0.15);
}

/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  width: 100%;
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

a { text-decoration: none; color: inherit; }

/* iOS overflow fix — never put overflow-x: hidden on html or body */
.pg-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== LOGO ===== */
.logo {
  max-width: 120px;
}

.logo a {
  display: flex;
}

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--primary-700);
  color: var(--white);
  padding: 15px 0;
  border-bottom: 3px solid var(--accent-500);
}

.site-header .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav {
  display: flex;
  justify-content: flex-start;
  gap: 22px;
  flex-wrap: nowrap;
}

.nav a {
  color: var(--white);
  font-size: 14px;
  white-space: nowrap;
}

.nav a:hover { color: var(--accent-500); }

/* Mobile menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              width 0.35s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  background: var(--surface-100);
  color: var(--text);
  padding: 50px 0 60px;
  position: relative;
}

/* Homepage hero — centered, no form */
.home .hero .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* Category / FAQ page hero — grid with form */
.pages .hero .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--primary-700);
}

.hero h1 em {
  font-style: normal;
  color: var(--primary-500);
  position: relative;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 24px;
}

/* Homepage hero overrides */
.home .hero-content { max-width: 820px; margin: 0 auto; }
.home .hero p.lead { max-width: 660px; margin-left: auto; margin-right: auto; }
.home .hero-pills { justify-content: center; }
.home .arrow-cta { margin: 0 auto; }

/* Eyebrow label (homepage) */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

/* Hero pills (homepage) */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-pills span {
  background: var(--white);
  border: 1px solid var(--primary-100);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--primary-500);
  font-weight: 600;
}

/* Hero bullets (category/FAQ) */
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}

.hero-bullets li {
  padding: 8px 0;
  font-size: 15px;
  color: #2c3e50;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hero-bullets li::before {
  content: "\2713";
  color: var(--accent-500);
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

/* Arrow CTA banner */
.arrow-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-700);
  background: var(--surface-warm);
  border-left: 4px solid var(--accent-500);
  padding: 14px 20px;
  border-radius: 4px;
  max-width: 480px;
}

.arrow-cta .arrow {
  font-size: 28px;
  color: var(--accent-500);
  animation: bounce-right 1.4s ease-in-out infinite;
}

@keyframes bounce-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

/* ===== LEAD FORM ===== */
.ht-form-wrap.cta {
  /* server injects VectorScript form here */
}

.lead-form {
  background: var(--white);
  border: 2px solid var(--primary-500);
  border-radius: 10px;
  padding: 28px 26px;
  box-shadow: 0 8px 24px rgba(13, 59, 102, 0.12);
  color: var(--text);
}

.lead-form h2 {
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--primary-700);
  font-weight: 800;
}

.field {
  border: 1px solid var(--primary-100);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: var(--surface-200);
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  margin-bottom: 2px;
}

.field label .req { color: #d9534f; }

.field input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
  padding: 2px 0;
}

.disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 12px 0;
}

.disclaimer a { color: var(--primary-500); }

.consent {
  border: 1px solid var(--primary-100);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--surface-200);
}

.consent input { margin-top: 3px; }

.submit-btn {
  width: 100%;
  background: var(--accent-500);
  color: var(--text);
  border: none;
  padding: 14px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
}

.submit-btn:hover { background: var(--accent-400); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  background: var(--background);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.breadcrumbs .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumbs a { color: var(--primary-500); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; color: #888; }
.breadcrumbs .current { color: var(--text-muted); }

/* ===== MAIN CONTENT ===== */
.content-section { padding: 50px 0; }

.content-section .wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-section h2 {
  font-size: 30px;
  color: var(--primary-700);
  margin-bottom: 16px;
  font-weight: 800;
}

.content-section h3 {
  font-size: 22px;
  color: var(--primary-700);
  margin: 24px 0 10px;
  font-weight: 700;
}

.content-section p {
  margin-bottom: 16px;
  font-size: 16px;
  color: #333;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--primary-700);
  color: var(--white);
  padding: 30px 0;
}

.stats-bar .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-num { font-size: 30px; font-weight: 800; color: var(--accent-500); }
.stat-label { font-size: 14px; color: var(--primary-100); margin-top: 4px; }

/* ===== SECTIONS BASE ===== */
.section { padding: 70px 0; }

.section .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-head { text-align: center; margin-bottom: 40px; }

.section-head h2 {
  font-size: 34px;
  color: var(--primary-700);
  font-weight: 800;
  margin-bottom: 10px;
}

.section-head p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== CATEGORY CARDS ===== */
.categories .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 22px;
  transition: all 0.2s;
  display: block;
}

.cat-card:hover {
  border-color: var(--primary-500);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13, 59, 102, 0.12);
}

.cat-icon {
  width: 48px;
  height: 48px;
  background: var(--surface-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.cat-card-title {
  display: block;
  font-size: 17px;
  color: var(--primary-700);
  margin-bottom: 8px;
  font-weight: 700;
}

.cat-card-p { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.cat-card .arrow { color: var(--primary-500); font-weight: 700; font-size: 13px; }

/* ===== FTC COMPLIANCE BLOCK ===== */
.ftc-block {
  background: var(--surface-200);
  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 20px; }

.ftc-head { text-align: center; margin-bottom: 40px; }

.ftc-head h2 {
  font-size: 30px;
  color: var(--primary-700);
  font-weight: 800;
  margin-bottom: 10px;
}

.ftc-head p { font-size: 16px; color: var(--text-muted); max-width: 700px; margin: 0 auto; }

.ftc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.ftc-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--box-shadow-md);
}

.ftc-icon {
  width: 52px;
  height: 52px;
  background: var(--surface-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--primary-500);
  margin-bottom: 18px;
}

.ftc-card h3 {
  font-size: 18px;
  color: var(--primary-700);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.ftc-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.ftc-disclaimer {
  background: var(--surface-warm);
  border-left: 4px solid var(--accent-500);
  padding: 20px 24px;
  margin: 40px auto 0;
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 1000px;
}

.ftc-disclaimer strong { color: var(--primary-700); }

/* ===== RESOURCE CARDS ===== */
.resources { background: var(--white); }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.resource-card {
  background: var(--white);
  border: 2px solid var(--surface-100);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.2s;
  display: block;
}

.resource-card:hover { border-color: var(--accent-500); }

.resource-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
  color: var(--primary-700);
}

.resource-card-title { display: block; font-size: 15px; color: var(--primary-700); font-weight: 700; margin-bottom: 6px; }
.resource-card-desc { display: block; font-size: 13px; color: #666; }

/* ===== HOW IT WORKS ===== */
.how-it-works { background: var(--surface-100); }

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.how-step { text-align: center; }

.how-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin: 0 auto 14px;
}

.how-step h3 { font-size: 17px; color: var(--primary-700); font-weight: 700; margin-bottom: 8px; }
.how-step p { font-size: 14px; color: var(--text-muted); }

/* ===== FEATURED GUIDES ===== */
.featured { background: var(--white); }

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
}

.featured-main {
  background: var(--primary-700);
  color: var(--white);
  border-radius: 12px;
  padding: 36px 30px;
}

.featured-main .tag {
  display: inline-block;
  background: var(--accent-500);
  color: var(--primary-700);
  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(--primary-100); font-size: 15px; margin-bottom: 18px; }

.featured-main a.read-btn {
  display: inline-block;
  background: var(--accent-500);
  color: var(--primary-700);
  padding: 10px 20px;
  font-weight: 700;
  border-radius: 6px;
  font-size: 14px;
}

.featured-card {
  background: var(--surface-200);
  border-radius: 12px;
  padding: 22px 20px;
  display: block;
}

.featured-card .label {
  font-size: 11px;
  color: var(--primary-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.featured-card-title {
  display: block;
  font-size: 16px;
  color: var(--primary-700);
  font-weight: 700;
  margin: 8px 0;
  line-height: 1.35;
}

.featured-card-desc { display: block; font-size: 13px; color: var(--text-muted); }

/* ===== STATE HUB (homepage) ===== */
.state-hub { background: var(--background); }

.state-hub-intro {
  background: var(--white);
  padding: 26px;
  border-radius: 10px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  text-align: center;
}

.state-hub-intro p { color: var(--text-muted); margin-bottom: 10px; font-size: 15px; }
.state-hub-intro strong { color: var(--primary-700); }

/* ===== STATES GRIDS (category / states-section) ===== */
.states-section {
  background: var(--background);
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.states-section .wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.states-section h2 {
  font-size: 28px;
  color: var(--primary-700);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 800;
}

.states-section .sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 30px;
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px 30px;
}

.states-grid a {
  color: var(--primary-500);
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px dotted transparent;
  display: block;
}

.states-grid a:hover { border-bottom-color: var(--primary-500); }

/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--white);
  padding: 70px 0;
  border-top: 1px solid var(--border);
}

.about-section .wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }

.about-section h2 {
  font-size: 30px;
  color: var(--primary-700);
  font-weight: 800;
  margin-bottom: 18px;
  text-align: center;
}

.about-section p { font-size: 16px; color: #333; margin-bottom: 16px; }

/* ===== SUBCATEGORY CARDS ===== */
.subcats {
  background: var(--primary-700);
  padding: 60px 0;
}

.subcats .wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.subcats h2 {
  font-size: 30px;
  color: var(--white);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 800;
}

.subcat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.subcat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: all 0.2s;
  display: block;
}

.subcat-card:hover {
  border-color: var(--primary-500);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 59, 102, 0.12);
}

.subcat-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-700);
  margin-bottom: 14px;
}

.subcat-card-title {
  display: block;
  font-size: 17px;
  color: var(--primary-700);
  margin-bottom: 8px;
  font-weight: 700;
}

.subcat-card-desc { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.subcat-card .arrow { color: var(--primary-500); font-weight: 700; font-size: 14px; }

/* ===== FAQ SECTION (category accordion) ===== */
.faq-section { padding: 60px 0; }

.faq-section .wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }

.faq-section h2 {
  font-size: 30px;
  color: var(--primary-700);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 800;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
}

.faq-q {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--primary-700);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-200);
  user-select: none;
}

.faq-q::after { content: "+"; font-size: 24px; color: var(--primary-500); }
.faq-item.open .faq-q::after { content: "\2212"; }

.faq-a {
  display: none;
  padding: 16px 22px;
  font-size: 15px;
  color: #444;
  border-top: 1px solid var(--border);
}

.faq-item.open .faq-a { display: block; }

.faq-cta { text-align: center; margin-top: 30px; }

.faq-cta a {
  display: inline-block;
  background: var(--primary-700);
  color: var(--white);
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
}

.faq-cta a:hover { background: var(--primary-500); }

/* ===== FAQ LIST SECTION (FAQs page) ===== */
.faq-list-section { padding: 60px 0; }

.faq-list-section .wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.faq-intro { max-width: 900px; margin: 0 auto 50px; }

.faq-intro h2 {
  font-size: 32px;
  color: var(--primary-700);
  margin-bottom: 16px;
  font-weight: 800;
  text-align: center;
}

.faq-intro p { font-size: 16px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.7; }
.faq-intro p:last-child { margin-bottom: 0; }

.faq-category {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  grid-column: 1 / -1;
  margin: 24px 0 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-500);
}

.faq-category:first-child { margin-top: 0; }

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

.faq-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  transition: all 0.2s;
}

.faq-card:hover {
  border-color: var(--primary-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 59, 102, 0.1);
}

.faq-card h3 {
  font-size: 17px;
  color: var(--primary-700);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.faq-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }

.faq-card a.read-more {
  color: var(--primary-500);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.faq-card a.read-more:hover { color: var(--primary-700); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-700);
  color: var(--primary-100);
  padding: 40px 0 20px;
  font-size: 14px;
}

.site-footer .wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-resources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.footer-legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.footer-desc {
  color: var(--primary-100);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 12px;
}

.footer-top h4 { color: var(--white); margin-bottom: 12px; font-size: 15px; }

.footer-top a {
  color: var(--primary-100);
  display: block;
  padding: 4px 0;
}

.footer-top a:hover { color: var(--accent-500); }

.footer-bottom {
  border-top: 1px solid var(--primary-500);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}

/* ===== LAYOUT RESET ===== */
.home .container.main {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.container.layout {
  max-width: 100%;
  padding: 0;
}

.container.layout .row.layout {
  margin: 0;
}

.container.layout .row.layout > .cols {
  overflow-x: hidden;
}

.home .container.layout .row.layout > .cols {
  padding: 0;
}

.pages .main-wrapper .container.main {
  padding: 24px 16px;
}

/* ===== FONTS RESET ===== */
.pages .main h1,
.pages .main h2 {
  font-weight: 700;
  color: var(--text);
}

.pages .main h1,
.pages .main h2,
.pages .main h3,
.pages .main p,
.pages .main strong {
  color: var(--text);
}

.pages .main h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.pages .main h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 40px 0 18px;
}

.pages .main h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  margin: 24px 0 10px;
}

.pages .main p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.pages .main strong {
  font-weight: 700;
}

/* ===== TABLE RESET ===== */
table { margin: 32px 0; }

table th, table td {
  border-color: var(--border) !important;
  padding: 8px 16px !important;
}

table td {
  color: var(--text) !important;
}

table th {
  background: var(--primary-500) !important;
  color: var(--white) !important;
  font-size: 13px !important;
  font-weight: bold !important;
}

table tbody tr:nth-child(even) td {
  background: var(--surface-100) !important;
}

/* ===== CONTACT FORM ===== */
#contact-form {
  margin: 45px auto 0;
  max-width: 500px;
}

#contact-form input,
#contact-form textarea {
  flex: 1;
  border: 2px solid var(--bs-gray-300, #dee2e6);
  border-radius: 6px;
  outline: 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  min-width: 100%;
}

#contact-form input:active,
#contact-form input:focus,
#contact-form textarea:active,
#contact-form textarea:focus {
  border: 2px solid var(--primary-500);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #6c757d;
}

#contact-form button {
  background: var(--primary-500);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 16px;
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
  white-space: nowrap;
  width: 100%;
}

#contact-form button:hover {
  background: var(--primary-700);
}

/* ===== WIDGETS ===== */

/* IMAGE STYLE RESET */
.item-current-image img {
  box-shadow: none !important;
  border-radius: 4px !important;
  border-color: #dee2e6 !important;
}

/* SUBLIST */
.item-sublist a {
  width: 100%;
  height: 100%;
}

.item.item-bubbles {
  margin-bottom: 32px;
}

.item-bubbles .row {
  margin: 0;
}

.bubbles-chip {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  display: flex;
  font-weight: 500;
  height: 100%;
  padding: 16px 48px 16px 24px;
  position: relative;
  transition: padding 0.2s ease-in-out;
}

.bubbles-chip:hover {
  color: var(--primary-700);
  background: var(--surface-100);
  border-color: var(--primary-100);
  padding-left: 20px;
}

.bubbles-chip:active,
.bubbles-chip:focus {
  background: var(--primary-700);
  color: var(--white);
}

.bubbles-link {
  display: block;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
}

.bubbles-link .bubbles-outer {
  height: 100%;
  padding: 5px;
  max-width: 100%;
}

.sibling.link-button .bubbles-link .bubbles-outer,
.sibling.link-button .bubbles-chip {
  height: auto;
}

.col-gap:has(> .item-bubbles)::before {
  display: none !important;
}

.bubbles-chip::after {
  content: url("data:image/svg+xml,%3Csvg width='13' height='12' viewBox='0 0 13 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.87771 7.01782H1.02042C0.737361 7.01782 0.496528 6.91886 0.297917 6.72094C0.0993056 6.52317 0 6.2833 0 6.00136C0 5.71942 0.0993056 5.4781 0.297917 5.2774C0.496528 5.07657 0.737361 4.97615 1.02042 4.97615H8.87771L5.66583 1.76428C5.46111 1.55955 5.35681 1.31719 5.35292 1.03719C5.34889 0.757332 5.45076 0.510249 5.65854 0.295943C5.86632 0.0948319 6.11014 -0.00377823 6.39 0.000110661C6.66986 0.00399955 6.91236 0.108583 7.1175 0.313861L12.0713 5.27407C12.1699 5.37282 12.2464 5.4856 12.3008 5.6124C12.3551 5.73935 12.3823 5.86865 12.3823 6.00032C12.3823 6.13199 12.3551 6.26122 12.3008 6.38803C12.2464 6.51497 12.1727 6.62497 12.0798 6.71803L7.10958 11.688C6.89403 11.9037 6.65368 12.0081 6.38854 12.0012C6.12354 11.9942 5.88715 11.8862 5.67938 11.6772C5.4716 11.4629 5.36771 11.2166 5.36771 10.9382C5.36771 10.6599 5.4716 10.4192 5.67938 10.2162L8.87771 7.01782Z' fill='%23f4b400'/%3E%3C/svg%3E%0A");
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.2s ease-in-out;
}

.bubbles-chip:hover::after {
  right: 10px;
}

/* SUBLIST CARDS */
.item-sublist:has(.sublist.card) .row > div {
  padding: 5px !important;
}

.sublist.card {
  border: none;
  border-radius: 6px;
  box-shadow: var(--box-shadow-md);
  transition: 0.2s ease-in;
}

.sublist.card:hover {
  box-shadow: var(--box-shadow-lg);
  color: var(--primary-500);
  transform: translateY(-4px);
}

.sublist.card h5 {
  margin-bottom: 0;
  font-weight: 500;
}

.sublist.card .card-body {
  padding: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .categories .grid,
  .ftc-grid,
  .how-grid,
  .featured-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-bar .wrap { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-resources,
  .footer-legal { grid-template-columns: 1fr 1fr; }

  .home .hero h1 { font-size: 34px; }
  .featured-main { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .pages .hero .wrap { grid-template-columns: 1fr; }
  .subcat-grid { grid-template-columns: repeat(2, 1fr); }
  .states-grid { grid-template-columns: repeat(3, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .nav { flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .pages h1 {
    font-size: 30px;
    margin-bottom: 16px;
  }

  .pages h2 {
    font-size: 25px;
    margin: 32px 0 16px;
  }

  .pages h3 {
    font-size: 20px;
    margin: 22px 0 8px;
  }

  .pages p {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 14px;
  }

  table {
    display: block !important;
    overflow-x: auto !important;
    border: 0 !important;
  }

  .row div:has(> .sublist.card) {
    padding: 0 !important;
  }

  .row:has(> div .sublist.card) {
    margin: 0;
    gap: 10px;
  }

  .sublist.card {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .sublist.card .card-img-top {
    border-radius: calc(var(--bs-border-radius, 0.375rem) - var(--bs-border-width, 1px));
    width: 120px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .sublist.card .card-body {
    flex: 1;
    padding: 1rem;
  }

  .sublist.card .card-body * {
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .sublist.card .card-body h5 {
    font-size: 16px;
  }
}

@media (max-width: 1180px) {
  .mobile-menu-toggle { display: flex; }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 10px 0;
  }

  .nav.open { display: flex; }
  .nav a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
  }

  .categories .grid,
  .ftc-grid,
  .how-grid,
  .resource-grid,
  .featured-grid { grid-template-columns: 1fr; }

  .subcat-grid { grid-template-columns: 1fr; }
  .states-grid { grid-template-columns: repeat(3, 1fr); }

  .hero h1 { font-size: 28px; }
  .stats-bar .wrap { grid-template-columns: repeat(2, 1fr); }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-resources,
  .footer-legal { grid-template-columns: 1fr; }
  .site-footer .logo { margin: 0 auto; }
}
