.guide-hero {
  padding: 9rem 2rem 4rem;
  background:
    linear-gradient(145deg, rgba(26, 54, 93, 0.96) 0%, rgba(43, 108, 176, 0.9) 100%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 40%);
  color: #f4f8ff;
}

.guide-hero-container {
  max-width: 1100px;
  margin: 0 auto;
}

.guide-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.9rem;
}

.guide-hero p {
  max-width: 75ch;
  color: rgba(244, 248, 255, 0.9);
}

.guide-main {
  padding: 4rem 2rem 5rem;
}

.guide-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.guide-card {
  background: var(--surface-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
}

.guide-card h2 {
  color: var(--primary-color);
  margin-bottom: 0.65rem;
}

.guide-card h3 {
  color: var(--primary-color);
  margin: 1rem 0 0.55rem;
  font-size: 1.05rem;
}

.guide-card p {
  color: var(--text-color);
}

.numbered-list {
  margin-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.numbered-list li {
  color: var(--text-color);
}

.doc-intro {
  margin: 0.3rem 0 1rem;
  color: var(--light-text);
}

.doc-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.doc-group {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}

.doc-group h3 {
  margin: 0 0 0.55rem;
}

.check-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.check-list li {
  color: var(--text-color);
}
.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item h3 {
  margin-top: 0;
}

.note {
  border-left: 4px solid var(--secondary-color);
  background: rgba(66, 153, 225, 0.08);
  padding: 0.75rem 0.9rem;
  border-radius: 0.45rem;
}

@media (max-width: 768px) {
  .guide-hero {
    padding: 7rem 1.1rem 3rem;
  }

  .guide-main {
    padding: 2.5rem 1rem 3rem;
  }

  .guide-card {
    padding: 1rem;
  }
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.72);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  padding-right: 1.3rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p,
.faq-item .numbered-list {
  margin-top: 0.65rem;
}

/* Content link readability */
.faq-item a,
.doc-group a,
.self-group a,
.note a {
  color: #1f4fa8;
  text-decoration-color: rgba(31, 79, 168, 0.5);
  text-underline-offset: 2px;
}

.faq-item a:hover,
.doc-group a:hover,
.self-group a:hover,
.note a:hover {
  color: #163f87;
}

html[data-theme="dark"] .faq-item a,
html[data-theme="dark"] .doc-group a,
html[data-theme="dark"] .self-group a,
html[data-theme="dark"] .note a {
  color: #8fc8ff;
  text-decoration-color: rgba(143, 200, 255, 0.7);
}

html[data-theme="dark"] .faq-item a:hover,
html[data-theme="dark"] .doc-group a:hover,
html[data-theme="dark"] .self-group a:hover,
html[data-theme="dark"] .note a:hover {
  color: #c7e4ff;
}

html[data-theme="dark"] .faq-item a:visited,
html[data-theme="dark"] .doc-group a:visited,
html[data-theme="dark"] .self-group a:visited,
html[data-theme="dark"] .note a:visited {
  color: #a7cfff;
}

html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .doc-group {
  background: rgba(9, 18, 31, 0.72);
}

.faq-intro {
  margin-bottom: 0.9rem;
  color: var(--light-text);
}

.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.faq-category-link {
  text-decoration: none;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.75);
}

.faq-category-link:hover {
  background: rgba(66, 153, 225, 0.14);
}

.faq-category {
  margin-top: 1.2rem;
}

.faq-category-title {
  color: var(--primary-color);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

html[data-theme="dark"] .faq-category-link {
  background: rgba(9, 18, 31, 0.72);
}






/* Hero and section navigation enhancements */
.guide-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(244, 248, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #f4f8ff;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
}

.guide-quick-nav {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.guide-quick-link {
  text-decoration: none;
  color: #f4f8ff;
  border: 1px solid rgba(244, 248, 255, 0.45);
  background: rgba(7, 18, 38, 0.28);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s ease;
}

.guide-quick-link:hover {
  background: rgba(244, 248, 255, 0.18);
}

/* Self-employed card redesign */
.self-employed-card {
  background:
    linear-gradient(180deg, rgba(66, 153, 225, 0.08), rgba(66, 153, 225, 0.03)),
    var(--surface-panel);
}

.self-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.self-group {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}

.self-group h3 {
  margin: 0 0 0.55rem;
}

html[data-theme="dark"] .self-group {
  background: rgba(9, 18, 31, 0.72);
}

@media (max-width: 768px) {
  .guide-quick-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }
}



.faq-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.faq-quick-links a {
  text-decoration: none;
  border: 1px solid var(--border-color);
  background: rgba(66, 153, 225, 0.12);
  color: var(--primary-color);
  border-radius: 999px;
  padding: 0.34rem 0.75rem;
  font-weight: 700;
  font-size: 0.86rem;
}

.faq-step-note {
  border-left: 3px solid var(--secondary-color);
  background: rgba(66, 153, 225, 0.08);
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
}

.faq-callout {
  margin-top: 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 0.55rem;
  padding: 0.6rem 0.75rem;
  background: rgba(66, 153, 225, 0.08);
}

.faq-callout-paid {
  background: rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .faq-quick-links a {
  background: rgba(143, 200, 255, 0.14);
  color: #d6eaff;
}

html[data-theme="dark"] .faq-step-note,
html[data-theme="dark"] .faq-callout {
  background: rgba(143, 200, 255, 0.1);
}

html[data-theme="dark"] .faq-callout-paid {
  background: rgba(255, 255, 255, 0.06);
}

.collapsible-card {
  padding: 0.8rem;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 8% 12%, rgba(66, 153, 225, 0.14), transparent 36%),
    var(--surface-panel);
}

.guide-collapse {
  border: 1px solid var(--border-color);
  border-radius: calc(var(--radius-sm) + 2px);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.35rem 0.45rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-collapse:hover {
  transform: translateY(-1px);
  border-color: rgba(66, 153, 225, 0.36);
  box-shadow: 0 10px 24px rgba(25, 50, 86, 0.1);
}

.guide-collapse[open] {
  border-color: rgba(66, 153, 225, 0.5);
  box-shadow: 0 12px 26px rgba(25, 50, 86, 0.12);
}

.guide-collapse summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(66, 153, 225, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(236, 244, 255, 0.7));
  position: relative;
}

.guide-collapse summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4d9cf5, #2f6ebb);
}

.guide-collapse summary::-webkit-details-marker {
  display: none;
}

.guide-collapse summary span {
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  padding-left: 0.2rem;
}

.guide-collapse summary small {
  color: #355682;
  font-weight: 700;
  font-size: 0.86rem;
  border: 1px solid rgba(66, 153, 225, 0.34);
  background: rgba(66, 153, 225, 0.12);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
}

.guide-collapse summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  border: 1px solid rgba(66, 153, 225, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  font-weight: 800;
}

.guide-collapse[open] summary::after {
  content: "-";
}

.guide-collapse > *:not(summary) {
  margin-top: 0.9rem;
}

@media (max-width: 768px) {
  .guide-collapse summary {
    grid-template-columns: 1fr auto;
  }

  .guide-collapse summary small {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

html[data-theme="dark"] .collapsible-card {
  background:
    radial-gradient(circle at 8% 12%, rgba(141, 194, 255, 0.14), transparent 36%),
    var(--surface-panel);
}

html[data-theme="dark"] .guide-collapse {
  background: rgba(9, 18, 31, 0.72);
  border-color: rgba(143, 200, 255, 0.2);
}

html[data-theme="dark"] .guide-collapse summary {
  background: linear-gradient(180deg, rgba(26, 44, 69, 0.92), rgba(14, 26, 42, 0.86));
  border-color: rgba(143, 200, 255, 0.28);
}

html[data-theme="dark"] .guide-collapse summary small {
  color: #d7eaff;
  border-color: rgba(143, 200, 255, 0.36);
  background: rgba(143, 200, 255, 0.12);
}

html[data-theme="dark"] .guide-collapse summary::after {
  color: #d7eaff;
  border-color: rgba(143, 200, 255, 0.36);
  background: rgba(16, 31, 49, 0.95);
}

