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

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

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

.typical-day-page section {
  padding: 3rem 0;
}

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

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

.typical-day-page h2 em {
  font-style: normal;
  color: var(--td-green);
}

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

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

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

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

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

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

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

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

.typical-day-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;
}

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

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

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

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

.typical-day-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(--td-green);
  margin-bottom: 0.25rem;
}

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

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

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

.typical-day-tldr p {
  margin: 0;
}

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

/* ---------- Day Timeline ---------- */
.day-timeline {
  position: relative;
  padding-left: 60px;
}

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

.day-timeline__block {
  position: relative;
  margin-bottom: 1rem;
}

.day-timeline__block:last-child {
  margin-bottom: 0;
}

.day-timeline__marker {
  position: absolute;
  left: -60px;
  top: 0;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.day-timeline__time {
  display: inline-block;
  background: var(--td-green);
  color: #fff;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

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

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

.day-timeline__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  gap: 0.5rem;
}

.day-timeline__title {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--td-text);
  flex: 1;
  min-width: 150px;
}

.day-timeline__duration {
  font-size: 0.8rem;
  color: var(--td-text-muted);
  font-weight: 500;
}

.day-timeline__toggle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

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

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

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

.day-timeline__block[data-open="true"] .day-timeline__toggle::after {
  transform: rotate(90deg);
}

.day-timeline__detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.day-timeline__block[data-open="true"] .day-timeline__detail {
  max-height: 300px;
}

.day-timeline__detail-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--td-text-muted);
}

.day-timeline__detail-inner p {
  margin: 0;
}

/* Mobile timeline adjustments */
@media (max-width: 479px) {
  .day-timeline {
    padding-left: 48px;
  }

  .day-timeline::before {
    left: 22px;
  }

  .day-timeline__marker {
    left: -48px;
    width: 44px;
  }

  .day-timeline__time {
    font-size: 0.65rem;
    padding: 0.2rem 0.35rem;
  }

  .day-timeline__title {
    font-size: 0.85rem;
  }

  .day-timeline__header {
    padding: 0.75rem 1rem;
  }
}

/* ---------- Scenario Cards ---------- */
.typical-day-page .scenario-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.typical-day-page .scenario-card:hover {
  border-color: var(--td-green);
  box-shadow: 0 4px 16px rgba(80, 137, 22, 0.1);
}

.typical-day-page .scenario-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.15rem 1.25rem;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.typical-day-page .scenario-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--td-green-light);
  color: var(--td-green);
  border-radius: 50%;
  font-size: 1.1rem;
}

.typical-day-page .scenario-card__title {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--td-text);
  flex: 1;
}

.typical-day-page .scenario-card__teaser {
  display: none;
  font-size: 0.85rem;
  color: var(--td-text-muted);
}

@media (min-width: 600px) {
  .typical-day-page .scenario-card__teaser {
    display: inline;
  }
}

.typical-day-page .scenario-card__toggle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

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

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

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

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

.typical-day-page .scenario-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

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

.typical-day-page .scenario-card__body-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--td-text-muted);
}

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

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

.typical-day-page .scenario-card__body-inner a {
  color: var(--td-green-dark);
  font-weight: 500;
}

/* ---------- Data Callout ---------- */
.typical-day-data-callout {
  background: var(--td-green-light);
  border-left: 4px solid var(--td-green);
  border-radius: var(--td-radius);
  padding: 1.5rem;
}

.typical-day-data-callout ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.typical-day-data-callout li {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--td-text);
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  position: relative;
}

.typical-day-data-callout li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--td-green);
}

.typical-day-data-callout li:last-child {
  margin-bottom: 0;
}

/* ---------- Tips ---------- */
.typical-day-tips-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.typical-day-tip {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  padding: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.typical-day-tip:hover {
  border-color: var(--td-green);
  box-shadow: 0 4px 16px rgba(80, 137, 22, 0.1);
}

.typical-day-tip__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--td-green-light);
  color: var(--td-green);
  border-radius: 50%;
  font-size: 1.1rem;
}

.typical-day-tip h3 {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--td-text);
  margin: 0 0 0.35rem;
}

.typical-day-tip p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--td-text-muted);
  margin: 0;
}

.typical-day-tip a {
  color: var(--td-green-dark);
  font-weight: 500;
}

.typical-day-links {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--td-text-muted);
}

.typical-day-links a {
  color: var(--td-green-dark);
  font-weight: 500;
}

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

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

.typical-day-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(--td-text);
  text-align: left;
  line-height: 1.4;
  gap: 1rem;
}

.typical-day-page .faq-accordion__question:hover {
  color: var(--td-green);
}

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

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

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

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

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

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

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

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

.typical-day-page .faq-accordion__answer-inner p {
  margin: 0;
}

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

