/* ============================================================
   Content sections - lines, plates, colour (site palette)
   ============================================================ */
:root {
  --sec-ink: #1a1a1a;
  --sec-violet: #7c31f6;
  --sec-violet-soft: #f4eeff;
  --sec-red: #dc2626;
  --sec-line: #e6e3ee;
}

/* ---------- Spacing ---------- */
.section-hero.section-spacing-lg { padding-bottom: 36px; }
.section-hero .rating-cards-wrap { margin-bottom: 20px; }
.section-hero .content-text-block > p:last-child { margin-bottom: 0 !important; }
.section-spacing-sm { padding: 44px 0; }
.section-spacing-sm.bg-grey { background-color: #f8f5ff !important; }
.section-spacing-sm .content-text-block > p { margin-top: 0 !important; }
.section-spacing-sm .content-text-block + .content-text-block { margin-top: 18px; }

/* ---------- Section title ---------- */
.section-spacing-sm h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 22px !important;
}
.section-spacing-sm h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  background: var(--sec-violet);
  box-shadow: 70px 0 0 var(--sec-ink);
}

/* ---------- Lead paragraph ---------- */
.section-spacing-sm .col-lg-10 > .content-text-block:first-of-type > p:first-child:not([style*="font-size"]) {
  max-width: 880px;
  padding: 18px 22px;
  background: #fff;
  border: 2px solid var(--sec-ink);
  border-left: 8px solid var(--sec-violet);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--sec-ink);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 22px !important;
}

/* ---------- Plates: sub-heading + following paragraph ---------- */
.section-spacing-sm .content-text-block { counter-reset: sec-plate; }
.section-spacing-sm .content-text-block > p[style*="font-size: 28px"] {
  counter-increment: sec-plate;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 0 !important;
  padding: 14px 20px;
  background: var(--sec-violet-soft);
  border: 3px solid var(--sec-ink);
  border-bottom-width: 2px;
  border-radius: 14px 14px 0 0;
  box-shadow: 5px 0 0 var(--sec-ink);
  font-family: "Funnel Display", "DM Sans", sans-serif;
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  color: var(--sec-ink);
}
.section-spacing-sm .content-text-block > p[style*="font-size: 28px"]::before {
  content: counter(sec-plate);
  flex: 0 0 auto;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sec-ink);
  color: #fff;
  border-radius: 8px;
  font-family: "Bebas Neue", "DM Sans", sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.section-spacing-sm .content-text-block > p[style*="font-size: 28px"]:first-child,
.section-spacing-sm .content-text-block > p[style*="font-size: 28px"]:nth-child(1) { margin-top: 6px !important; }
.section-spacing-sm .content-text-block > p[style*="font-size: 28px"] + p {
  margin: 0 !important;
  padding: 16px 20px 18px;
  background: #fff;
  border: 3px solid var(--sec-ink);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 5px 5px 0 var(--sec-ink), 5px 0 0 var(--sec-ink);
}
.section-spacing-sm .content-text-block > p[style*="font-size: 28px"]:has(+ p + p[style*="margin-top: 14px"]) + p {
  border-radius: 0;
  box-shadow: 5px 0 0 var(--sec-ink);
  padding-bottom: 6px;
}
.section-spacing-sm .content-text-block > p[style*="font-size: 28px"] + p + p[style*="margin-top: 14px"] {
  margin: 0 !important;
  padding: 0 20px 18px;
  background: #fff;
  border: 3px solid var(--sec-ink);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 5px 5px 0 var(--sec-ink), 5px 0 0 var(--sec-ink);
}

/* ---------- Lists ---------- */
.section-spacing-sm .content-text-block ul,
.section-spacing-sm .content-text-block ol {
  list-style: none !important;
  margin: 16px 0 20px !important;
  padding: 6px 20px !important;
  background: #fff;
  border: 2px solid var(--sec-ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--sec-violet);
}
.section-spacing-sm .content-text-block ol { counter-reset: sec-step; }
.section-spacing-sm .content-text-block ul > li,
.section-spacing-sm .content-text-block ol > li {
  position: relative;
  margin: 0 !important;
  padding: 14px 0 14px 40px;
  border-bottom: 1px solid var(--sec-line);
  line-height: 1.6;
}
.section-spacing-sm .content-text-block ul > li:last-child,
.section-spacing-sm .content-text-block ol > li:last-child { border-bottom: 0; }
.section-spacing-sm .content-text-block ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 23px;
  width: 12px;
  height: 12px;
  background: var(--sec-violet);
  border: 2px solid var(--sec-ink);
  border-radius: 3px;
  transform: rotate(45deg);
}
.section-spacing-sm .content-text-block ol > li { counter-increment: sec-step; }
.section-spacing-sm .content-text-block ol > li::before {
  content: counter(sec-step);
  position: absolute;
  left: 0;
  top: 13px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sec-ink);
  color: #fff;
  border-radius: 50%;
  font-family: "Bebas Neue", "DM Sans", sans-serif;
  font-size: 16px;
}
.section-spacing-sm .content-text-block li > p { margin: 0 !important; }
.section-spacing-sm .content-text-block li > p[style*="font-size: 28px"] {
  font-family: "Funnel Display", "DM Sans", sans-serif;
  font-size: 21px !important;
  font-weight: 600 !important;
  line-height: 1.25;
  margin-bottom: 6px !important;
}
.section-spacing-sm .content-text-block li strong { color: var(--sec-violet); }

/* ---------- Tables in text ---------- */
.section-spacing-sm .content-text-block div[class^="nice-table"] {
  border: 3px solid var(--sec-ink) !important;
  border-radius: 14px !important;
  box-shadow: 5px 5px 0 var(--sec-ink) !important;
  overflow: hidden !important;
  background: #fff !important;
}
.section-spacing-sm .content-text-block div[class^="nice-table"] thead th {
  background: var(--sec-violet) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: 0 !important;
}
.section-spacing-sm .content-text-block div[class^="nice-table"] td {
  border-top: 1px solid var(--sec-line) !important;
  hyphens: manual !important;
}
.section-spacing-sm .content-text-block div[class^="nice-table"] td:first-child {
  font-weight: 700;
  color: var(--sec-ink);
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 2px solid var(--sec-ink) !important;
  border-radius: 12px !important;
  box-shadow: 4px 4px 0 var(--sec-ink);
  background: #fff !important;
}
.faq-toggle { color: var(--sec-violet); font-weight: 700; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .section-hero.section-spacing-lg { padding-bottom: 16px; }
  .section-spacing-sm { padding: 32px 0; }
  .section-spacing-sm .col-lg-10 > .content-text-block:first-of-type > p:first-child:not([style*="font-size"]) {
    font-size: 16px;
    padding: 14px 16px;
    border-left-width: 6px;
  }
  .section-spacing-sm .content-text-block > p[style*="font-size: 28px"] {
    font-size: 20px !important;
    padding: 12px 14px;
    gap: 10px;
  }
  .section-spacing-sm .content-text-block > p[style*="font-size: 28px"]::before { min-width: 28px; height: 28px; font-size: 16px; }
  .section-spacing-sm .content-text-block > p[style*="font-size: 28px"] + p,
  .section-spacing-sm .content-text-block > p[style*="font-size: 28px"] + p + p[style*="margin-top: 14px"] { padding-left: 14px; padding-right: 14px; }
  .section-spacing-sm .content-text-block ul,
  .section-spacing-sm .content-text-block ol { padding: 4px 14px !important; }
  .section-spacing-sm .content-text-block ul > li,
  .section-spacing-sm .content-text-block ol > li { padding-left: 36px; }
  .section-spacing-sm .content-text-block li > p[style*="font-size: 28px"] { font-size: 18px !important; }
  .section-spacing-sm .content-text-block div[class^="nice-table"] {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
  }
  .section-spacing-sm .content-text-block div[class^="nice-table"] tr {
    border: 2px solid var(--sec-ink) !important;
    border-radius: 12px !important;
    box-shadow: 4px 4px 0 var(--sec-ink) !important;
  }
  .section-spacing-sm .content-text-block div[class^="nice-table"] td:first-child {
    background: var(--sec-violet-soft) !important;
  }
}
