/* Educational content sections shared by the landing page and the resource pages.
   Reuses the landing palette (landing-layout.css) and defines its own fallbacks for pages that do not load it. */
:root {
  --c-ink: #16324f;
  --c-muted: #526579;
  --c-brand: #0b5d78;
  --c-brand-dark: #08465c;
  --c-accent: #e6a23c;
  --c-surface: #f4f8fa;
  --c-border: #dbe5ea;
  --c-display: 'Literata', Georgia, 'Times New Roman', serif;
}

.c-section {
  background: #ffffff;
  padding: 76px 24px;
  color: var(--c-ink);
}

.c-section.c-alt {
  background: var(--c-surface);
}

.c-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.c-narrow {
  max-width: 760px;
}

.c-eyebrow {
  margin: 0 0 10px;
  color: var(--c-brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.c-section h2 {
  margin: 0;
  color: var(--c-ink);
  font-family: var(--c-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.22;
  text-wrap: balance;
}

.c-section h3 {
  margin: 0;
  color: var(--c-ink);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.c-section p,
.c-section li {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.c-section p {
  margin: 16px 0 0;
  color: var(--c-muted);
  text-wrap: pretty;
}

.c-section a:not(.c-btn):not(.c-resource-card) {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.c-section a:not(.c-btn):not(.c-resource-card):hover {
  color: var(--c-brand-dark);
}

/* Two-column layout: heading + lead on one side, supporting content on the other. */
.c-split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.c-split > * {
  flex: 1 1 340px;
  min-width: 0;
}

.c-split > .c-split-main {
  flex: 1.15 1 380px;
}

/* Numbered steps */
.c-steps {
  display: grid;
  gap: 18px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.c-steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #ffffff;
  padding: 22px 24px;
  counter-increment: step;
  box-shadow: 0 8px 24px rgba(22, 50, 79, 0.05);
}

.c-steps li::before {
  display: flex;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-ink);
  content: counter(step);
  font-family: var(--c-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.c-steps h3 {
  font-size: 1.1rem;
}

.c-steps p {
  margin: 6px 0 0;
  font-size: 1rem;
}

/* Cards */
.c-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.c-card {
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(22, 50, 79, 0.05);
}

.c-card p {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.65;
}

/* Checklist */
.c-check {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.c-check li {
  position: relative;
  padding-left: 36px;
  color: var(--c-ink);
}

.c-check li::before {
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-brand);
  content: '';
}

.c-check li::after {
  position: absolute;
  left: 7px;
  top: calc(0.32em + 5px);
  width: 8px;
  height: 5px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: '';
  transform: rotate(-45deg);
}

.c-check strong {
  display: block;
  font-weight: 700;
}

.c-check span {
  display: block;
  color: var(--c-muted);
  font-size: 1rem;
}

/* Plain bullets for prose lists */
.c-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.c-list li {
  position: relative;
  padding-left: 26px;
  color: var(--c-muted);
}

.c-list li::before {
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-accent);
  content: '';
}

.c-list strong {
  color: var(--c-ink);
}

/* Callout boxes */
.c-note {
  margin-top: 32px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #ffffff;
  padding: 22px 24px;
}

.c-alt .c-note {
  background: #ffffff;
}

.c-note h3 {
  font-size: 1.05rem;
}

.c-note p {
  margin-top: 8px;
  font-size: 1rem;
}

.c-note p + p {
  margin-top: 12px;
}

/* Calls to action */
.c-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 36px;
}

.c-cta p {
  flex: 1 1 280px;
  margin: 0;
  font-size: 1rem;
}

.c-btn {
  display: inline-block;
  border-radius: 7px;
  background: var(--c-brand);
  padding: 15px 26px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.c-btn:hover {
  background: var(--c-brand-dark);
  box-shadow: 0 8px 18px rgba(11, 93, 120, 0.24);
  color: #ffffff;
  transform: translateY(-2px);
}

/* FAQ accordion (native details/summary) */
.c-faq {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.c-faq details {
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #ffffff;
}

.c-faq summary {
  position: relative;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  color: var(--c-ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}

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

.c-faq summary::after {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--c-brand);
  border-bottom: 2px solid var(--c-brand);
  content: '';
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}

.c-faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.c-faq details > div {
  padding: 0 22px 20px;
}

.c-faq details p {
  margin: 0;
  font-size: 1rem;
}

.c-faq details p + p {
  margin-top: 12px;
}

/* Resource cards */
.c-resource-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #ffffff;
  padding: 24px;
  color: var(--c-ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(22, 50, 79, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.c-resource-card:hover {
  border-color: var(--c-brand);
  box-shadow: 0 14px 30px rgba(22, 50, 79, 0.12);
  transform: translateY(-3px);
}

.c-resource-card .c-tag {
  color: var(--c-brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.c-resource-card h3 {
  margin-top: 10px;
  font-size: 1.2rem;
}

.c-resource-card p {
  margin: 10px 0 0;
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.c-resource-card .c-more {
  margin-top: auto;
  padding-top: 18px;
  color: var(--c-brand);
  font-size: 0.95rem;
  font-weight: 700;
}

/* Visible focus for every interactive element introduced here */
.c-section a:focus-visible,
.c-faq summary:focus-visible,
.c-btn:focus-visible,
.c-resource-card:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .c-section {
    padding: 44px 18px;
  }

  .c-split {
    gap: 28px;
  }

  .c-steps li {
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }

  .c-card,
  .c-note,
  .c-resource-card {
    padding: 18px;
  }

  .c-btn {
    width: 100%;
  }

  .c-faq summary {
    padding: 16px 48px 16px 18px;
  }

  .c-faq details > div {
    padding: 0 18px 18px;
  }
}
