﻿/* ========================================
   Timeline FAQ / Speaker Styles
======================================== */

/* Base wrappers */
.qodef-e-text {
  display: block;
}

.timeline-faq-item {
  margin: 10px 0;
}

.qodef-e-content-holder .timeline-faq {
  margin-top: 10px;
}

/* ========================================
   Name / Dept / University hierarchy
======================================== */

.timeline-faq-name {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 6px;
}

.timeline-faq-department {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  margin: 0 0 2px;
}

.timeline-faq-university {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
  opacity: 0.9;
  margin: 0 0 10px;
}

/* ========================================
   Intro / normal text block
======================================== */

.timeline-faq-text {
  position: relative;
  padding-left: 14px;
  padding-right: 0;
  margin-bottom: 14px;
}

.timeline-faq-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  border-radius: 10px;
  background: rgba(128, 150, 52, 0.9);
}

.timeline-faq-p {
  margin: 0 0 6px;
  opacity: 0.95;
  font-size: 15px;
  line-height: 1.6;
}

/* ========================================
   Accordion button
======================================== */

.timeline-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;

  background: rgba(128, 150, 52, 0.92);
  color: #ffffff;
  font-family: Sora, sans-serif;
  cursor: pointer;
  text-align: left;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.timeline-faq-q:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  filter: brightness(1.02);
}

.timeline-faq-item.is-open .timeline-faq-q {
  border-radius: 14px 14px 0 0;
}

/* Remove old decorative square/bullet */
.timeline-faq-qtext::before {
  display: none !important;
  content: none !important;
}

/* Header label */
.timeline-faq-qtext {
  flex: 1;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1.2;
}

/* Plus / minus indicator on left */
.timeline-faq-q::before {
  content: "+";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
}

.timeline-faq-item.is-open .timeline-faq-q::before {
  content: "–";
}

/* Arrow on right */
.timeline-faq-icon {
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}

.timeline-faq-item.is-open .timeline-faq-icon {
  transform: rotate(180deg);
}

/* ========================================
   Accordion answer panel
======================================== */

.timeline-faq-a {
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: none;
  border-radius: 0 0 14px 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);

  font-size: 15px;
  line-height: 1.65;

  animation: faqFade 0.18s ease;
}

@keyframes faqFade {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Links
======================================== */

.timeline-faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 12px;
}

.timeline-faq-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.timeline-faq-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.timeline-faq-links.is-answer .timeline-faq-link {
  font-size: 12.5px;
  padding: 7px 10px;
  margin-top: 10px;
}

/* ========================================
   People cards
======================================== */

.timeline-people {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  margin: 10px 0 12px;
}

.timeline-person {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  width: auto;
  max-width: 100%;

  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.timeline-person.is-answer {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.06);
}

.timeline-person__img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #e9e9e9 center/cover no-repeat;
  flex: 0 0 44px;
}

.timeline-person__meta {
  line-height: 1.2;
}

.timeline-person__label {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 3px;
}

.timeline-person__name {
  font-weight: 700;
  text-decoration: none;
}

.timeline-person__name:hover {
  text-decoration: underline;
}

.timeline-person.no-label .timeline-person__label {
  display: none;
}

/* Manual alignment overrides if used */
.timeline-person[data-person-align="right"] {
  margin-left: auto;
}

.timeline-person[data-person-align="left"] {
  margin-right: auto;
}

/* ========================================
   Default content alignment reset
======================================== */

.qodef-e-text .timeline-people,
.qodef-e-text .timeline-person,
.qodef-e-text .timeline-faq-text,
.qodef-e-text .timeline-faq,
.qodef-e-text .timeline-faq-links {
  text-align: left;
}

/* ========================================
   Timeline side mirroring
======================================== */

/* Left-side items */
.tlfaq-left .timeline-people {
  justify-content: flex-start;
}

.tlfaq-left .timeline-faq-links {
  justify-content: flex-start;
}

.tlfaq-left .timeline-person {
  margin-right: auto;
}

/* Right-side items */
.tlfaq-right .timeline-people {
  justify-content: flex-end;
}

.tlfaq-right .timeline-faq-links {
  justify-content: flex-end;
}

.tlfaq-right .timeline-person {
  margin-left: auto;
}

/* Move green line to the right on right-side items */
.tlfaq-right .timeline-faq-text {
  padding-left: 0;
  padding-right: 14px;
}

.tlfaq-right .timeline-faq-text::before {
  left: auto;
  right: 0;
}

/* Match right-side timeline text alignment */
.tlfaq-right .timeline-faq-name,
.tlfaq-right .timeline-faq-department,
.tlfaq-right .timeline-faq-university,
.tlfaq-right .timeline-faq-text,
.tlfaq-right .timeline-faq-p {
  text-align: right;
}

/* Keep accordion header readable even on right-side items */
.tlfaq-right .timeline-faq-qtext {
  text-align: left;
}