/* Health insurance SEO guide — Bootstrap-aligned, mobile-first */

:root {
  --health-sticky-top: 120px;
  --health-teal: #008b8f;
  --health-orange: #d86a2b;
  --health-gradient: linear-gradient(135deg, #008b8f 0%, #d86a2b 100%);
  --health-gradient-soft: linear-gradient(135deg, rgba(0, 139, 143, 0.1) 0%, rgba(216, 106, 43, 0.1) 100%);
}

html:has(.health-insurance-guide) {
  scroll-behavior: smooth;
}

.health-insurance-guide section[id],
.health-guide-main .health-guide-section,
#quote {
  scroll-margin-top: var(--health-sticky-top);
}

/* Hero */
.health-hero-section {
  background: var(--health-gradient-soft);
  border-radius: 0 0 24px 24px;
}

@media (min-width: 992px) {
  .health-hero-section > .container > .row {
    align-items: stretch;
  }

  .health-hero-section > .container > .row > .col-lg-6.order-lg-1 {
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .health-hero-section .health-hero-image-wrap img {
    display: block;
  }
}

.health-hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 12px;
  /* background: var(--health-gradient); */
  opacity: 0.15;
  z-index: -1;
}

.health-hero-image-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--health-gradient);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(216, 106, 43, 0.35);
  letter-spacing: 0.02em;
}

.health-hero-image {
  max-width: 100%;
  height: auto;
}

.health-offer-badge {
  background: var(--health-gradient);
  box-shadow: 0 4px 14px rgba(0, 139, 143, 0.25);
}

.health-offer-highlight {
  font-size: 1.1em;
  font-weight: 800;
}

.health-hero-gradient-bar {
  background: var(--health-gradient);
  height: 6px;
}

.health-quote-card {
  border-top: 6px solid transparent;
  border-image: var(--health-gradient) 1;
}

.health-btn-gradient {
  background: var(--health-gradient);
  border: none;
  color: #fff !important;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.health-btn-gradient:hover,
.health-btn-gradient:focus {
  opacity: 0.92;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(0, 139, 143, 0.35);
  transform: translateY(-1px);
}

.health-brand-text {
  color: var(--health-teal);
}

.health-guide-eyebrow {
  letter-spacing: 0.08em;
  color: var(--health-teal);
}

.health-guide-lead {
  font-size: 1.125rem;
  line-height: 1.75;
}

/* Layout */
.health-guide-layout-row {
  display: block;
}

@media (min-width: 992px) {
  .health-guide-layout-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 2rem;
    align-items: start;
  }
}

.health-guide-sidebar {
  position: sticky;
  top: var(--health-sticky-top);
  max-height: calc(100vh - var(--health-sticky-top) - 1.5rem);
  overflow-y: auto;
  z-index: 10;
}

.health-guide-toc {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-top: 3px solid var(--health-teal);
}

.health-guide-toc-list {
  margin-bottom: 0;
}

.health-guide-toc-list li {
  margin-bottom: 0.15rem;
}

.health-guide-toc-link {
  display: block;
  padding: 0.3rem 0 0.3rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #6f6f6f;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.health-guide-toc-link:hover,
.health-guide-toc-link:focus {
  color: var(--health-teal);
}

.health-guide-toc-link.active {
  color: var(--health-teal);
  border-left-color: var(--health-orange);
  font-weight: 600;
}

.health-guide-main > .health-guide-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.health-guide-main > .health-guide-section.bg-light,
.health-guide-main > .health-guide-section.bg-light-gray {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: 8px;
}

.health-guide-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 3px solid transparent;
}

.health-guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 139, 143, 0.12) !important;
  border-top-color: var(--health-teal);
}

.health-guide-list li {
  margin-bottom: 0.65rem;
  padding-left: 0.25rem;
}

.health-guide-list-check li::marker {
  content: "✓ ";
  color: var(--health-teal);
  font-weight: 700;
}

.health-guide-list-cross li::marker {
  content: "✕ ";
  color: var(--health-orange);
  font-weight: 700;
}

.health-guide-steps {
  counter-reset: health-step;
  list-style: none;
  padding-left: 0;
}

.health-guide-steps > li {
  counter-increment: health-step;
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.75rem;
}

.health-guide-steps > li::before {
  content: counter(health-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--health-teal);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.health-guide-steps-compact > li {
  padding-left: 2.5rem;
  margin-bottom: 0.75rem;
}

.health-guide-steps-compact > li::before {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8rem;
}

.health-guide-table th {
  background: var(--health-gradient-soft);
  font-weight: 600;
  white-space: nowrap;
  color: var(--health-teal);
}

.health-guide-glossary dt {
  font-weight: 600;
  color: var(--health-teal);
  margin-top: 1rem;
}

.health-guide-glossary dt:first-child {
  margin-top: 0;
}

.health-guide-glossary dd {
  margin-bottom: 0;
  color: #6f6f6f;
}

.health-guide-cta-box {
  background: var(--health-gradient);
  box-shadow: 0 8px 28px rgba(0, 139, 143, 0.2);
}

.health-guide-faq .panel-collapse.show + .panel-heading,
.health-guide-faq .panel-heading.active-accordion {
  border-left: 3px solid var(--health-teal);
}

@media (max-width: 991.98px) {
  .health-guide-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .health-guide-toc-mobile .health-guide-toc-list {
    columns: 2;
    column-gap: 1rem;
  }
}

@media (max-width: 767.98px) {
  .health-guide-toc-mobile .health-guide-toc-list {
    columns: 1;
  }

  .health-guide-lead {
    font-size: 1rem;
  }

  .health-guide-steps > li {
    padding-left: 3rem;
  }

  .health-guide-table {
    font-size: 0.9rem;
  }
}
