/* ==========================================================================
   Who Should Consider Page Styles
   Brand: DIT (NUI Driving Instructor Training)
   Primary: #508916 (green)
   Mobile-first responsive design
   ========================================================================== */

/* ---------- Shared ---------- */
.who-should-page {
  --who-green: #508916;
  --who-green-light: #e8f5d6;
  --who-green-dark: #3a6610;
  --who-text: #242427;
  --who-text-muted: #6c6d74;
  --who-border: #e5e5e7;
  --who-bg-alt: #f7f7f7;
  --who-radius: 8px;
}

.who-should-page .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.who-should-page section {
  padding: 3rem 0;
}

.who-should-page section:nth-child(even):not(.who-hero):not(.lead-capture) {
  background: var(--who-bg-alt);
}

.who-should-page h2 {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--who-text);
  margin: 0 0 0.5rem;
}

.who-should-page h2 em {
  font-style: normal;
  color: var(--who-green);
}

.who-should-page .section-intro {
  color: var(--who-text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 750px;
}

/* ---------- Hero ---------- */
.who-should-page .who-hero {
  background: linear-gradient(135deg, var(--who-green-dark) 0%, var(--who-green) 100%) !important;
  color: #fff;
  padding: 2rem 0 3rem;
}

.who-hero .breadcrumb {
  margin-bottom: 1.5rem;
}

.who-hero .breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.who-hero .breadcrumb li::after {
  content: '>';
  margin: 0 0.5rem;
  opacity: 0.7;
}

.who-hero .breadcrumb li:last-child::after {
  content: '';
  margin: 0;
}

.who-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.who-hero .breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.who-hero h1 {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.who-hero .hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 750px;
  opacity: 0.95;
}

/* ---------- TLDR ---------- */
.who-tldr {
  background: var(--who-green-light);
  border-left: 4px solid var(--who-green);
  padding: 1.5rem;
  border-radius: var(--who-radius);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--who-text);
}

.who-tldr p {
  margin: 0;
}

.who-tldr a {
  color: var(--who-green-dark);
  font-weight: 500;
}

/* ---------- Scenario Cards (NEW PATTERN) ---------- */
.scenario-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scenario-card {
  background: #fff;
  border: 1px solid var(--who-border);
  border-radius: var(--who-radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scenario-card:hover {
  border-color: var(--who-green);
}

.scenario-card__header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.25rem;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: background-color 0.15s ease;
}

.scenario-card__header:hover {
  background: var(--who-bg-alt);
}

.scenario-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--who-green-light);
  color: var(--who-green);
  border-radius: 50%;
  font-size: 1.2rem;
}

.scenario-card__title {
  display: block;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--who-text);
  line-height: 1.3;
}

.scenario-card__teaser {
  display: block;
  font-size: 0.9rem;
  color: var(--who-text-muted);
  line-height: 1.4;
  margin-top: 0.15rem;
}

/* Stack title and teaser */
.scenario-card__header {
  flex-wrap: wrap;
}

.scenario-card__icon + .scenario-card__title {
  flex: 1;
  min-width: 0;
}

.scenario-card__teaser {
  flex-basis: 100%;
  padding-left: calc(44px + 1rem);
}

.scenario-card__toggle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  margin-left: auto;
}

.scenario-card__toggle::before,
.scenario-card__toggle::after {
  content: '';
  position: absolute;
  background: var(--who-green);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.scenario-card__toggle::before {
  width: 20px;
  height: 2px;
  top: 9px;
  left: 0;
}

.scenario-card__toggle::after {
  width: 2px;
  height: 20px;
  top: 0;
  left: 9px;
}

.scenario-card[data-open="true"] .scenario-card__toggle::after {
  transform: rotate(90deg);
}

.scenario-card[data-open="true"] {
  border-color: var(--who-green);
  box-shadow: 0 4px 16px rgba(80, 137, 22, 0.1);
}

/* Body expand/collapse */
.scenario-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.scenario-card[data-open="true"] .scenario-card__body {
  max-height: 500px;
}

.scenario-card__body-inner {
  padding: 0 1.25rem 1.5rem;
  padding-left: calc(44px + 1rem + 1.25rem);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--who-text-muted);
}

.scenario-card__body-inner p {
  margin: 0 0 0.75rem;
}

.scenario-card__body-inner p:last-child {
  margin-bottom: 0;
}

.scenario-card__body-inner a {
  color: var(--who-green-dark);
  font-weight: 500;
}

/* Mobile adjustment */
@media (max-width: 599px) {
  .scenario-card__teaser {
    padding-left: calc(44px + 1rem);
  }

  .scenario-card__body-inner {
    padding-left: 1.25rem;
  }
}

/* ---------- Traits Grid ---------- */
.traits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .traits-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .traits-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.trait-card {
  background: #fff;
  border: 1px solid var(--who-border);
  border-radius: var(--who-radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.trait-card:hover {
  border-color: var(--who-green);
  box-shadow: 0 4px 16px rgba(80, 137, 22, 0.1);
}

.trait-card__icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--who-green);
}

.trait-card h3 {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--who-text);
  margin: 0 0 0.5rem;
}

.trait-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--who-text-muted);
  margin: 0;
}

.trait-card a {
  color: var(--who-green-dark);
  font-weight: 500;
}

/* 5 cards: last card spans 2 cols on tablet, centered on large */
@media (min-width: 600px) and (max-width: 899px) {
  .traits-grid .trait-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    justify-self: center;
  }
}

@media (min-width: 900px) {
  .traits-grid .trait-card:nth-child(4) {
    grid-column: 1 / 2;
  }
  .traits-grid .trait-card:nth-child(5) {
    grid-column: 2 / 3;
  }
}

/* ---------- Quiz ---------- */
.who-quiz {
  max-width: 700px;
  background: #fff;
  border: 1px solid var(--who-border);
  border-radius: var(--who-radius);
  padding: 2rem;
}

.who-quiz__question {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--who-border);
}

.who-quiz__question:last-child {
  border-bottom: none;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.who-quiz__question-text {
  font-size: 1rem;
  color: var(--who-text);
  line-height: 1.5;
  margin: 0 0 1rem;
}

.who-quiz__question-text strong {
  color: var(--who-green);
}

.who-quiz__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 600px) {
  .who-quiz__options {
    flex-direction: row;
    gap: 0.75rem;
  }
}

.who-quiz__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--who-border);
  border-radius: var(--who-radius);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--who-text);
  transition: border-color 0.15s ease, background-color 0.15s ease;
  flex: 1;
}

.who-quiz__option:hover {
  border-color: var(--who-green);
  background: var(--who-green-light);
}

.who-quiz__option input[type="radio"] {
  accent-color: var(--who-green);
  margin: 0;
}

.who-quiz__option:has(input:checked) {
  border-color: var(--who-green);
  background: var(--who-green-light);
  font-weight: 500;
}

.who-quiz__submit {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--who-green);
  color: #fff;
  border: none;
  border-radius: var(--who-radius);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.who-quiz__submit:hover:not(:disabled) {
  background: var(--who-green-dark);
}

.who-quiz__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.who-quiz__result {
  margin-top: 1.5rem;
}

.who-quiz__result-inner {
  background: var(--who-green-light);
  border-left: 4px solid var(--who-green);
  border-radius: var(--who-radius);
  padding: 1.5rem;
  text-align: center;
}

.who-quiz__score {
  display: block;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--who-green);
  margin-bottom: 0.5rem;
}

.who-quiz__message {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--who-text);
  margin: 0;
}

/* ---------- Stat Counters ---------- */
.who-stat-counters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .who-stat-counters {
    grid-template-columns: repeat(3, 1fr);
  }
}

.who-stat-counter {
  text-align: center;
  background: #fff;
  border: 1px solid var(--who-border);
  border-radius: var(--who-radius);
  padding: 1.5rem 1rem;
}

.who-stat-counter__value {
  display: block;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--who-green);
  margin-bottom: 0.25rem;
}

.who-stat-counter__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--who-text);
  margin-bottom: 0.25rem;
}

.who-stat-counter__source {
  display: block;
  font-size: 0.72rem;
  color: var(--who-text-muted);
  font-style: italic;
}

/* ---------- Quality Callout ---------- */
.quality-callout {
  background: var(--who-green-light);
  border-left: 4px solid var(--who-green);
  border-radius: var(--who-radius);
  padding: 1.5rem;
}

.quality-callout p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--who-text);
  margin: 0;
}

/* ---------- FAQ Accordion ---------- */
.who-should-page .faq-accordion {
  max-width: 1100px;
}

.who-should-page .faq-accordion__item {
  border: 1px solid var(--who-border);
  border-radius: var(--who-radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: #fff;
}

.who-should-page .faq-accordion__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.15rem 1.25rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--who-text);
  text-align: left;
  line-height: 1.4;
  gap: 1rem;
}

.who-should-page .faq-accordion__question:hover {
  color: var(--who-green);
}

.who-should-page .faq-accordion__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.who-should-page .faq-accordion__icon::before,
.who-should-page .faq-accordion__icon::after {
  content: '';
  position: absolute;
  background: var(--who-green);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.who-should-page .faq-accordion__icon::before {
  width: 20px;
  height: 2px;
  top: 9px;
  left: 0;
}

.who-should-page .faq-accordion__icon::after {
  width: 2px;
  height: 20px;
  top: 0;
  left: 9px;
}

.who-should-page .faq-accordion__item[data-open="true"] .faq-accordion__icon::after {
  transform: rotate(90deg);
}

.who-should-page .faq-accordion__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.who-should-page .faq-accordion__item[data-open="true"] .faq-accordion__answer {
  max-height: 500px;
}

.who-should-page .faq-accordion__answer-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--who-text-muted);
}

.who-should-page .faq-accordion__answer-inner p {
  margin: 0;
}

.who-should-page .faq-accordion__answer-inner a {
  color: var(--who-green-dark);
  font-weight: 500;
}

