/* ==========================================================================
   How to Become a Driving Instructor Page Styles
   Brand: DIT (NUI Driving Instructor Training)
   Primary: #508916 (green)
   Mobile-first responsive design
   ========================================================================== */

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

.how-to-become-page .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.how-to-become-page section {
  padding: 3rem 0;
}

.how-to-become-page section:nth-child(even):not(.htb-hero):not(.lead-capture) {
  background: var(--htb-bg-alt);
}

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

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

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

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

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

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

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

.htb-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;
}

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

/* ---------- Section headings ---------- */
.how-to-become-page h2 {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--htb-text);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.how-to-become-page h2 em {
  font-style: normal;
  color: var(--htb-green);
}

.how-to-become-page .section-intro {
  color: var(--htb-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 750px;
}

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

.htb-tldr strong {
  color: var(--htb-green-dark);
}

/* ---------- Two Paths Cards ---------- */
.htb-paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .htb-paths {
    grid-template-columns: 1fr 1fr;
  }
}

.htb-path-card {
  background: #fff;
  border: 2px solid var(--htb-border);
  border-radius: var(--htb-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.htb-path-card__header {
  background: linear-gradient(135deg, var(--htb-green-dark), var(--htb-green));
  color: #fff;
  padding: 1.25rem 1.25rem 1rem;
}

.htb-path-card__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.htb-path-card__badge--alt {
  background: rgba(255, 255, 255, 0.3);
}

.htb-path-card__header h3 {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.htb-path-card__body {
  padding: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--htb-text);
}

.htb-path-card__body p {
  margin: 0 0 0.75rem;
}

.htb-path-card__body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.htb-path-card__body ul li {
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  font-size: 0.9rem;
}

.htb-path-card__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--htb-green);
}

.htb-path-card__body ul li strong {
  color: var(--htb-green-dark);
}

.htb-path-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.htb-path-card__links a {
  color: var(--htb-green-dark);
  text-decoration: underline;
  font-weight: 500;
  font-size: 0.875rem;
}

.htb-path-card__links a:hover {
  color: var(--htb-green);
}

/* ---------- Why Choose NUI Feature Grid ---------- */
.htb-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .htb-features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .htb-features {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.htb-feature-card {
  background: #fff;
  border: 1px solid var(--htb-border);
  border-radius: var(--htb-radius);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.htb-feature-card:hover {
  border-color: var(--htb-green);
  box-shadow: 0 3px 10px rgba(80, 137, 22, 0.1);
}

.htb-feature-card strong {
  display: block;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 0.95rem;
  color: var(--htb-green-dark);
  margin-bottom: 0.5rem;
}

.htb-feature-card p {
  font-size: 0.875rem;
  color: var(--htb-text-muted);
  line-height: 1.6;
  margin: 0;
}

.htb-feature-card a {
  color: var(--htb-green-dark);
  text-decoration: underline;
}

.htb-feature-card a:hover {
  color: var(--htb-green);
}

/* ---------- 5-Step Simplified Timeline ---------- */
.htb-timeline {
  position: relative;
  padding-left: 2.5rem;
}

.htb-timeline::before {
  content: '';
  position: absolute;
  left: 1.125rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--htb-border);
  border-radius: 2px;
}

.htb-step {
  position: relative;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.htb-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.htb-step__marker {
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.htb-step__number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--htb-green);
  color: #fff;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(80, 137, 22, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.htb-step:hover .htb-step__number {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(80, 137, 22, 0.4);
}

.htb-step__content {
  background: #fff;
  border: 1px solid var(--htb-border);
  border-radius: var(--htb-radius);
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.htb-step__content strong {
  display: block;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--htb-text);
  margin-bottom: 0.4rem;
}

.htb-step__content p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--htb-text-muted);
  margin: 0;
}

.htb-step__content a {
  color: var(--htb-green-dark);
  text-decoration: underline;
}

.htb-step__content a:hover {
  color: var(--htb-green);
}

/* ---------- Career Appeal Stats ---------- */
.htb-career-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.how-to-become-page .stat-counter {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: #fff;
  border: 1px solid var(--htb-border);
  border-radius: var(--htb-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.how-to-become-page .stat-counter__value {
  display: block;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--htb-green);
  line-height: 1.2;
}

.how-to-become-page .stat-counter__label {
  display: block;
  font-size: 0.8rem;
  color: var(--htb-text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

@media (max-width: 480px) {
  .htb-career-stats {
    grid-template-columns: 1fr;
  }
}

/* ---------- Career Content ---------- */
.htb-career-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--htb-text);
}

.htb-career-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.htb-career-content ul li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--htb-border);
}

.htb-career-content ul li:last-child {
  border-bottom: none;
}

.htb-career-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--htb-green);
}

.htb-career-content ul li strong {
  color: var(--htb-text);
}

.htb-career-content a {
  color: var(--htb-green-dark);
  text-decoration: underline;
}

.htb-career-content a:hover {
  color: var(--htb-green);
}

/* ---------- ROI Calculator ---------- */
.htb-calculator {
  background: #fff;
  border: 2px solid var(--htb-green);
  border-radius: var(--htb-radius);
  padding: 1.5rem;
  margin-top: 0;
}

.htb-calculator h3 {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--htb-text);
  margin: 0 0 0.5rem;
}

.htb-calculator h3 em {
  font-style: normal;
  color: var(--htb-green);
}

.htb-calculator__subtitle {
  color: var(--htb-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.htb-calculator__subtitle a {
  color: var(--htb-green-dark);
  text-decoration: underline;
}

.how-to-become-page .calc-field {
  margin-bottom: 1.25rem;
}

.how-to-become-page .calc-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--htb-text);
  margin-bottom: 0.4rem;
}

.how-to-become-page .calc-field__value {
  font-weight: 700;
  color: var(--htb-green);
  font-size: 0.95rem;
}

.how-to-become-page .calc-field input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--htb-border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.how-to-become-page .calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--htb-green);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.how-to-become-page .calc-field input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--htb-green);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.how-to-become-page .calc-field input[type="range"]:focus {
  outline: 2px solid var(--htb-green);
  outline-offset: 2px;
}

.how-to-become-page .calc-output {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--htb-green-light);
}

.how-to-become-page .calc-output__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.how-to-become-page .calc-output__label {
  color: var(--htb-text-muted);
}

.how-to-become-page .calc-output__value {
  font-weight: 700;
  color: var(--htb-text);
  font-size: 1.05rem;
}

.how-to-become-page .calc-output__total {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--htb-green);
}

.how-to-become-page .calc-output__total .calc-output__label {
  font-weight: 700;
  color: var(--htb-text);
  font-size: 1.05rem;
}

.how-to-become-page .calc-output__total .calc-output__value {
  font-size: 1.4rem;
  color: var(--htb-green);
}

.how-to-become-page .calc-output__roi {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--htb-green-light);
  border-radius: var(--htb-radius);
  text-align: center;
  font-size: 0.95rem;
  color: var(--htb-text);
}

.how-to-become-page .calc-output__roi strong {
  color: var(--htb-green-dark);
}

/* ---------- FAQ Accordion ---------- */
.how-to-become-page .faq-accordion {
  margin-top: 1.5rem;
}

.how-to-become-page .faq-accordion__item {
  border: 1px solid var(--htb-border);
  border-radius: var(--htb-radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: #fff;
}

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

.how-to-become-page .faq-accordion__question:hover {
  background: rgba(80, 137, 22, 0.04);
}

.how-to-become-page .faq-accordion__question:focus-visible {
  outline: 2px solid var(--htb-green);
  outline-offset: -2px;
}

.how-to-become-page .faq-accordion__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  margin-left: 1rem;
}

.how-to-become-page .faq-accordion__icon::before,
.how-to-become-page .faq-accordion__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--htb-green);
  border-radius: 1px;
  transition: transform 0.25s ease;
}

.how-to-become-page .faq-accordion__icon::before {
  transform: translate(-50%, -50%);
}

.how-to-become-page .faq-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.how-to-become-page .faq-accordion__item[data-open="true"] .faq-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.how-to-become-page .faq-accordion__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.how-to-become-page .faq-accordion__answer-inner {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--htb-text-muted);
}

.how-to-become-page .faq-accordion__answer-inner a {
  color: var(--htb-green-dark);
  text-decoration: underline;
}

.how-to-become-page .faq-accordion__answer-inner a:hover {
  color: var(--htb-green);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .htb-step {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .htb-path-card {
    transition: none;
  }
  .htb-feature-card {
    transition: none;
  }
  .htb-step__number {
    transition: none;
  }
  .faq-accordion__answer {
    transition: none;
  }
  .faq-accordion__icon::before,
  .faq-accordion__icon::after {
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .how-to-become-page section {
    padding: 2rem 0;
  }

  .how-to-become-page .stat-counter__value {
    font-size: 1.4rem;
  }

  .htb-calculator {
    padding: 1rem;
  }

  .htb-timeline {
    padding-left: 2rem;
  }

  .htb-step__marker {
    left: -2rem;
  }

  .htb-step__marker,
  .htb-step__number {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8rem;
  }

  .htb-timeline::before {
    left: 0.8rem;
  }

  .htb-step__content {
    padding: 0.875rem;
  }

  .htb-step__content strong {
    font-size: 0.9rem;
  }
}
