.knowledge-section {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(65, 145, 255, .11), transparent 28rem),
    linear-gradient(180deg, #f7fbff 0%, #eef5fd 100%);
  border-block: 1px solid #e2ebf6;
}

.knowledge-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(25, 83, 151, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 83, 151, .028) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
}

.knowledge-section .container {
  position: relative;
  z-index: 1;
}

.knowledge-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.knowledge-head__copy {
  max-width: 700px;
}

.knowledge-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #0d67d9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.knowledge-kicker::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: #0d67d9;
}

.knowledge-head h2 {
  margin: 0;
  color: #0b2858;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.knowledge-head p {
  margin: 11px 0 0;
  max-width: 650px;
  color: #63748c;
  font-size: 17px;
}

.knowledge-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #cbdcf1;
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  color: #125cae;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(32, 82, 139, .06);
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.knowledge-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce7f3;
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 34px rgba(20, 62, 112, .075);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.knowledge-card:hover {
  transform: translateY(-3px);
  border-color: #c4d9ef;
  box-shadow: 0 18px 42px rgba(20, 62, 112, .12);
}

.knowledge-card__visual {
  display: block;
  position: relative;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  background: linear-gradient(135deg, #0b356d 0%, #0a6fa1 100%);
}

.knowledge-card__visual::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(5, 26, 55, .3), transparent);
  pointer-events: none;
}

.knowledge-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.knowledge-card:hover .knowledge-card__visual img {
  transform: scale(1.025);
}

.knowledge-card__placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, .92);
}

.knowledge-card__placeholder svg {
  width: 64px;
  height: 64px;
}

.knowledge-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.knowledge-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: #8591a3;
  font-size: 12px;
}

.knowledge-card__category {
  color: #0d67d9;
  font-weight: 800;
}

.knowledge-card h3 {
  margin: 0;
  color: #102e61;
  font-size: 21px;
  line-height: 1.28;
}

.knowledge-card h3 a {
  text-decoration: none;
}

.knowledge-card p {
  margin: 10px 0 0;
  color: #64758c;
  font-size: 15px;
  line-height: 1.62;
}

.knowledge-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: #0d67d9;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .knowledge-section { padding: 58px 0; }
  .knowledge-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knowledge-card:first-child { grid-column: 1 / -1; }
  .knowledge-card:first-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .knowledge-card:first-child .knowledge-card__visual { aspect-ratio: auto; min-height: 245px; }
}

@media (max-width: 759px) {
  .knowledge-section { padding: 40px 0 96px; }
  .knowledge-head { gap: 12px; margin-bottom: 16px; }
  .knowledge-kicker { margin-bottom: 6px; font-size: 12px; }
  .knowledge-head h2 { font-size: 29px; line-height: 1.1; }
  .knowledge-head p { margin-top: 8px; font-size: 14.5px; line-height: 1.58; }
  .knowledge-all { width: 100%; min-height: 44px; padding-inline: 15px; }
  .knowledge-grid { grid-template-columns: 1fr; gap: 12px; }
  .knowledge-card:first-child { display: flex; grid-column: auto; }
  .knowledge-card,
  .knowledge-card:first-child { border-radius: 16px; }
  .knowledge-card__visual,
  .knowledge-card:first-child .knowledge-card__visual {
    min-height: 0;
    height: 138px;
    aspect-ratio: auto;
  }
  .knowledge-card__visual img { object-position: center 34%; }
  .knowledge-card__placeholder svg { width: 48px; height: 48px; }
  .knowledge-card__body { padding: 15px 16px 16px; }
  .knowledge-card__meta { margin-bottom: 6px; font-size: 11.5px; }
  .knowledge-card h3 { font-size: 18.5px; line-height: 1.28; }
  .knowledge-card p {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .knowledge-card__more { padding-top: 12px; }

  /* Reduce the mobile control stack without changing behavior or touch safety. */
  .sticky-cta {
    gap: 7px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .sticky-cta .btn-primary { min-height: 48px; border-radius: 15px; }
  .sticky-cta .icon-btn { width: 46px; height: 46px; border-radius: 14px; }
  .chat:not(.open) { bottom: calc(68px + env(safe-area-inset-bottom)); }
  .chat:not(.open) .chat-bubble { width: 52px; height: 52px; border-radius: 18px; }
  .chat:not(.open) .cb-icon { width: 52px; height: 52px; }
  .chat:not(.open) .cb-icon svg { width: 29px; height: 29px; }
  .chat:not(.open) .cb-label { display: none !important; }
  .a11y-fab {
    left: 10px;
    width: 44px;
    height: 44px;
    bottom: calc(68px + env(safe-area-inset-bottom));
    border-radius: 13px;
  }
  .a11y-fab svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-card,
  .knowledge-card__visual img { transition: none; }
}

/* Compact professional-info link for the insurance-review landing page.
   Keeps the conversion page light while preserving a clear path to /articles/. */
.knowledge-compact {
  padding: 28px 0;
  border-block: 1px solid #e2ebf6;
  background: #f7fbff;
}

.knowledge-compact__inner {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.knowledge-compact h2 {
  margin: 0;
  color: #0b2858;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
}

.knowledge-compact p {
  margin: 6px 0 0;
  color: #63748c;
  font-size: 15px;
}

@media (max-width: 759px) {
  .knowledge-compact {
    padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  }

  .knowledge-compact__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .knowledge-compact h2 {
    font-size: 24px;
  }

  .knowledge-compact p {
    font-size: 14px;
    line-height: 1.55;
  }
}
