/*
 * Datastorms FAQ Component v1.4
 * Aansluiting op de bestaande Datastorms.eu homepage:
 * gebruikt de WordPress wide-size, erft de site-typografie en volgt
 * dezelfde tweekoloms-verhouding en kaartdichtheid als de sectie erboven.
 */
.ds-faq {
  --ds-text: #0f1b2d;
  --ds-muted: #536a7d;
  --ds-surface: #f4f7fa;
  --ds-card: #ffffff;
  --ds-border: #d7e2ea;
  --ds-blue: #149ed5;
  --ds-blue-soft: #eaf7fc;
  --ds-purple: #6547f5;
  --ds-purple-soft: #f0ecff;
  --ds-radius: 16px;

  width: 100%;
  margin: 0;
  padding: clamp(58px, 4.8vw, 72px) 0;
  background: var(--ds-surface);
  color: var(--ds-text);
}

.ds-faq,
.ds-faq * {
  box-sizing: border-box;
}

/* Geen eigen fontfamilie: het component erft exact de site-typografie. */
.ds-faq__eyebrow::before,
.ds-faq__eyebrow::after,
.ds-faq__title::before,
.ds-faq__title::after,
.ds-faq__intro::before,
.ds-faq__intro::after,
.ds-faq__cta h3::before,
.ds-faq__cta h3::after,
.ds-faq__cta p::before,
.ds-faq__cta p::after {
  content: none !important;
  display: none !important;
}

.ds-faq__inner {
  width: calc(100% - 56px);
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.ds-faq__lead,
.ds-faq__header,
.ds-faq__items {
  min-width: 0;
}

/* Desktop-uitlijning afgestemd op de homepage-sectie erboven. */
.ds-faq__lead {
  padding-left: clamp(0px, 1.4vw, 22px);
}

.ds-faq__items {
  transform: translateX(clamp(0px, 0.9vw, 14px));
}

.ds-faq__header {
  margin: 0;
}

.ds-faq__eyebrow {
  font-family: inherit !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  color: var(--ds-blue) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
}

/* Dichter bij de H2-grootte van de bestaande homepage. */
.ds-faq__title {
  font-family: inherit !important;
  max-width: 590px;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ds-text) !important;
  font-size: clamp(2.45rem, 3.15vw, 3.3rem) !important;
  font-weight: 400 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.035em !important;
}

.ds-faq__intro {
  font-family: inherit !important;
  max-width: 575px;
  margin: 22px 0 0 !important;
  padding: 0 !important;
  color: var(--ds-muted) !important;
  font-size: clamp(1.02rem, 1.16vw, 1.14rem) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

.ds-faq__items {
  display: grid;
  gap: 14px;
}

.ds-faq__item {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--ds-border);
  border-left: 4px solid var(--ds-blue);
  border-radius: var(--ds-radius);
  background: var(--ds-card);
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ds-faq__item:hover {
  border-color: #c8d9e5;
  border-left-color: var(--ds-blue);
  box-shadow: 0 8px 22px rgba(15, 27, 45, 0.045);
}

.ds-faq__item[open] {
  border-left-color: var(--ds-purple);
}

.ds-faq__item > summary {
  list-style: none;
}

.ds-faq__item > summary::-webkit-details-marker {
  display: none;
}

/* Zelfde visuele schaal als de cards in Cursussen & trainingen. */
.ds-faq__question {
  font-family: inherit !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 18px 24px;
  cursor: pointer;
  color: var(--ds-text) !important;
  font-size: clamp(1.01rem, 1.10vw, 1.12rem) !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.005em !important;
}

.ds-faq__question-text::before,
.ds-faq__question-text::after {
  content: none !important;
  display: none !important;
}

.ds-faq__question:focus-visible {
  outline: 3px solid rgba(20, 158, 213, 0.5);
  outline-offset: -4px;
  border-radius: calc(var(--ds-radius) - 2px);
}

.ds-faq__icon {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 11px;
  background: var(--ds-blue-soft);
  color: var(--ds-blue);
  transition: background-color 160ms ease, color 160ms ease;
}

.ds-faq__icon::before,
.ds-faq__icon::after {
  content: '' !important;
  display: block !important;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.ds-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 160ms ease;
}

.ds-faq__item[open] .ds-faq__icon {
  background: var(--ds-purple-soft);
  color: var(--ds-purple);
}

.ds-faq__item[open] .ds-faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.ds-faq__answer {
  margin: 0;
  padding: 0 82px 24px 24px;
}

.ds-faq__answer-inner {
  font-family: inherit !important;
  max-width: 720px;
  color: var(--ds-muted);
  font-size: 0.98rem !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}

.ds-faq__answer-inner p,
.ds-faq__answer-inner ul,
.ds-faq__answer-inner ol {
  color: inherit !important;
  font: inherit !important;
}

.ds-faq__answer-inner > :first-child {
  margin-top: 0 !important;
}

.ds-faq__answer-inner > :last-child {
  margin-bottom: 0 !important;
}

.ds-faq__cta {
  max-width: 575px;
  margin-top: 30px;
}

.ds-faq__cta h3 {
  font-family: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ds-text) !important;
  font-size: 1.08rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.ds-faq__cta p {
  font-family: inherit !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  color: var(--ds-muted) !important;
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
}

.ds-faq__button {
  font-family: inherit !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(100deg, #18a5dc 0%, #1f9fe0 46%, #6547f5 100%);
  color: #fff !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.ds-faq__button:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.ds-faq__button:focus-visible {
  outline: 3px solid rgba(101, 71, 245, 0.3);
  outline-offset: 4px;
}

@media (max-width: 960px) {
  .ds-faq__lead {
    padding-left: 0;
  }

  .ds-faq__items {
    transform: none;
  }

  .ds-faq__inner {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ds-faq__title,
  .ds-faq__intro,
  .ds-faq__cta {
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .ds-faq {
    padding: 52px 0;
  }

  .ds-faq__inner {
    width: calc(100% - 32px);
  }

  .ds-faq__eyebrow {
    margin-bottom: 14px !important;
    font-size: 0.78rem !important;
  }

  .ds-faq__title {
    font-size: clamp(2.15rem, 10vw, 2.8rem) !important;
  }

  .ds-faq__intro {
    margin-top: 18px !important;
    font-size: 1rem !important;
  }

  .ds-faq__items {
    gap: 12px;
  }

  .ds-faq__question {
    grid-template-columns: minmax(0, 1fr) 38px;
    min-height: 80px;
    padding: 18px;
    font-size: 1rem !important;
  }

  .ds-faq__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .ds-faq__answer {
    padding: 0 18px 20px;
  }

  .ds-faq__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds-faq__item,
  .ds-faq__icon,
  .ds-faq__icon::after,
  .ds-faq__button {
    transition: none;
  }
}
