/* ========================================
   Knowledge Article
======================================== */

.knowledge-article {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

/* ========================================
   Lead
======================================== */

.knowledge-lead {
  font-size: 18px;
  line-height: 2;
  margin-bottom: 12px;
}

/* ========================================
   Heading
======================================== */

.knowledge-article h1 {
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 24px;
}

.knowledge-article h2.wp-block-heading {
  padding-top: 0;
  margin-top: 40px;
  margin-bottom: 14px;
}

.knowledge-article h2.wp-block-heading + p {
  margin-top: 0;
}

.knowledge-article h3.wp-block-heading {
  padding-top: 0;
  margin-top: 24px;
  margin-bottom: 12px;
}

/* ========================================
   List
======================================== */

.knowledge-list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.knowledge-list li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 28px;
  line-height: 1.9;
  font-size: 16px;
}

.knowledge-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2af6b4;
}

.knowledge-article ol {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  counter-reset: knowledge-ordered-list;
}

.knowledge-article ol li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 36px;
  line-height: 1.9;
  font-size: 16px;
  counter-increment: knowledge-ordered-list;
}

.knowledge-article ol li::before {
  content: counter(knowledge-ordered-list);
  position: absolute;
  top: 0.36em;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #2af6b4;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* ========================================
   Table
======================================== */

.knowledge-article table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
  border: 1px solid #dcdcdc;
  background: #fff;
  font-size: 15px;
  line-height: 1.75;
}

.knowledge-article th,
.knowledge-article td {
  padding: 14px 16px;
  border: 1px solid #dcdcdc;
  vertical-align: top;
  text-align: left;
}

.knowledge-article th {
  color: #111;
  font-weight: 700;
}

.knowledge-article tbody td:first-child {
  width: 28%;
  min-width: 160px;
  color: #111;
}

/* ========================================
   Related
======================================== */

.knowledge-related-box {
  margin-top: 56px;
  margin-bottom: 48px;
}

.knowledge-related-box .wp-block-group__inner-container {
  padding-top: 8px;
  padding-bottom: 8px;
}

.knowledge-related-box .wp-block-group__inner-container > p {
  font-weight: 700;
  font-size: 18px;
  color: #111;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* ========================================
   Related Links
======================================== */

.knowledge-list-links li a {
  color: #0f62fe;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 98, 254, 0.2);
  transition: 0.2s ease;
}

.knowledge-list-links li a:hover {
  color: #084ec1;
}

/* ========================================
   Knowledge Index Page
======================================== */

.knowledge-index-page {
  padding-top: 24px;
  padding-bottom: 96px;
}

/* ========================================
   Breadcrumb
======================================== */

.knowledge-breadcrumb {
  margin-bottom: 24px;
}

/* ========================================
   Hero
======================================== */

.knowledge-hero {
  max-width: 760px;
  margin-bottom: 48px;
}

.knowledge-eyebrow {
  margin: 0 0 8px;
  color: #1fa97d;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.knowledge-hero h1 {
  padding-top: 0;
  margin: 0 0 20px;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* ========================================
   Knowledge Grid
======================================== */

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

/* ========================================
   Knowledge Card
======================================== */

.knowledge-card {
  padding: 28px 24px 26px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.knowledge-card:hover {
  border-color: #2af6b4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.knowledge-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.knowledge-card p {
  margin: 0 0 22px;
  color: #333;
  font-size: 14px;
  line-height: 1.85;
}

.knowledge-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.knowledge-card li {
  position: relative;
  padding-left: 16px;
}

.knowledge-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 3px;
  height: 14px;
  border-radius: 999px;
  background: #2af6b4;
}

.knowledge-card a {
  color: #0f62fe;
  font-size: 14px;
  line-height: 1.7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.knowledge-card a:hover {
  color: #084ec1;
}

/* ========================================
   Knowledge CTA
======================================== */

.knowledge-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 80px;
  padding: 48px 56px;
  border-radius: 10px;
  background:
    linear-gradient(
      135deg,
      #2af6b4 0%,
      #1dd8a0 45%,
      #0da17a 100%
    );
}

.knowledge-cta-content {
  max-width: 620px;
}

.knowledge-cta h2 {
  margin: 0 0 12px;
  color: #111;
  font-size: 34px;
  line-height: 1.3;
  font-weight: 800;
}

.knowledge-cta p {
  margin: 0;
  color: #111;
  font-size: 15px;
  line-height: 1.8;
}

.knowledge-cta-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 18px 28px;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.knowledge-cta-button:hover {
  background: #111;
  color: #fff;
}

/* ========================================
   Responsive
======================================== */

@media screen and (max-width: 960px) {

  .knowledge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .knowledge-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 767px) {

  .knowledge-article {
    font-size: 15px;
    line-height: 1.8;
  }

  .knowledge-lead {
    font-size: 16px;
    line-height: 1.9;
  }

  .knowledge-article h2.wp-block-heading {
    margin-top: 48px;
    margin-bottom: 12px;
  }

  .knowledge-article h3.wp-block-heading {
    margin-top: 28px;
  }

  .knowledge-list li {
    font-size: 15px;
    line-height: 1.8;
    padding-left: 24px;
  }

  .knowledge-list li::before {
    width: 8px;
    height: 8px;
  }

  .knowledge-article ol li {
    font-size: 15px;
    line-height: 1.8;
    padding-left: 32px;
  }

  .knowledge-article ol li::before {
    top: 0.32em;
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .knowledge-article table {
    display: block;
    overflow-x: auto;
    width: 100%;
    font-size: 14px;
    white-space: normal;
  }

  .knowledge-article th,
  .knowledge-article td {
    min-width: 180px;
    padding: 12px 14px;
  }

  .knowledge-article tbody td:first-child {
    min-width: 140px;
  }

  .knowledge-related-box {
    margin-top: 48px;
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 640px) {

  .knowledge-index-page {
    padding-top: 20px;
    padding-bottom: 72px;
  }

  .knowledge-breadcrumb {
    margin-bottom: 20px;
  }

  .knowledge-hero {
    margin-bottom: 40px;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-card {
    padding: 24px 20px;
  }

  .knowledge-card h2 {
    font-size: 22px;
  }

  .knowledge-cta {
    margin-top: 56px;
    padding: 32px 24px;
  }

  .knowledge-cta h2 {
    font-size: 26px;
  }

  .knowledge-cta-button {
    width: 100%;
    min-width: 0;
  }
}
