/* AREA RESERVADA PARA SEÇÃO PEDAGOGIA */

.timeline-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
}

.timeline-container {
  position: relative;
  height: 1600px; /* AUMENTADO de 800px para 1200px > Aumentadar para acomodar o novo step */
  padding-top: 20px;
}

.timeline-line {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.timeline-step {
  position: absolute;
  display: flex;
  align-items: center;
  z-index: 1;
  opacity: 0;
  transform: translateY(-50%);
  transition: all 0.8s ease;
}

/* Inverte imagem e texto horizontalmente */
.timeline-step.img-right {
  flex-direction: row-reverse;
}

.timeline-step.img-right .text.left {
  text-align: right;
  margin-left: 0;
  margin-right: 20px;
}


.timeline-step img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 4px solid #DD8240;
  object-fit: cover;
  z-index: 2;
}

.timeline-step .text {
  background: #8a85eb;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}

.timeline-step .text.left {
  margin-left: 20px;
  text-align: left;
}

.timeline-step .text.right {
  margin-right: 20px;
  text-align: right;
}

.timeline-step {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.timeline-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* TODO MOVER PARA OUTRO STYLE  */

.timeline-info-box {
  margin-top: 100px;
  background: #fff8f3;
  border: 2px solid #DD8240;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.timeline-info-box h2 {
  color: #DD8240;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.timeline-info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-info-box li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.5;
}

.timeline-info-box li i {
  font-size: 1.6rem;
  color: #DD8240;
  flex-shrink: 0;
  margin-top: 3px;
}

.icon-laranja-grande {
  font-size: 3rem;
  color: #DD8240;
}

/* ===== MOBILE: timeline em linha reta ===== */
@media (max-width: 768px) {

  /* Variáveis para ajuste fino */
  :root {
    --img-size: 84px;     /* tamanho da imagem */
    --line-x: 16px;       /* posição horizontal da linha */
    --dot-size: 14px;     /* tamanho do ponto */
    --gap-y: 24px;        /* espaço entre steps */
    --line-color: #DD8240;
  }

  /* Remove a linha curva do desktop */
  .timeline-line { 
    display: none; 
  }

  /* Alinha o container */
  .timeline-container {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    padding-left: calc(var(--line-x) + 16px);
  }

  /* ===== STEP BASE - versão mobile ===== */
  .timeline-step {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    display: flex !important;
    flex-direction: row !important;   /* imagem → texto */
    align-items: flex-start !important;
    gap: 12px !important;

    width: 100% !important;
    margin: 0 0 var(--gap-y) 0 !important;

    opacity: 1 !important;
    transform: none !important;
  }

  /* Neutraliza totalmente o zig-zag no mobile */
  .timeline-step.img-right {
    flex-direction: row !important;
  }

  .timeline-step.img-right .text.left,
  .timeline-step.img-right .text.right {
    margin: 0 !important;
    text-align: left !important;
  }

  /* ===== IMAGEM ===== */
  .timeline-step img {
    order: 0 !important;
    width: var(--img-size) !important;
    height: var(--img-size) !important;
    flex: 0 0 var(--img-size) !important;
    object-fit: contain !important;
  }

  /* ===== TEXTO ===== */
  .timeline-step .text {
    order: 1 !important;
    width: auto !important;
    max-width: none !important;
    text-align: left !important;
  }

  .timeline-step .text h3 {
    font-size: 1.1rem;
    color: #DD8240;
    margin: 0 0 0.25rem 0;
  }

  .timeline-step .text p {
    font-size: .95rem;
    line-height: 1.55;
    margin: 0;
  }

  /* ===== DOT (ponto da linha do tempo) ===== */
  .timeline-step::before {
    content: "";
    position: absolute;
    left: calc(var(--line-x) - (var(--dot-size) / 2));
    top: calc((var(--img-size) / 2) - (var(--dot-size) / 2));
    width: var(--dot-size);
    height: var(--dot-size);
    background: #fff;
    border: 3px solid var(--line-color);
    border-radius: 50%;
    box-shadow: 0 0 0 3px #fff; 
  }

  /* Linha que liga um dot ao próximo */
  .timeline-step::after {
    content: "";
    position: absolute;
    left: calc(var(--line-x) - 1.5px);
    top: calc((var(--img-size) / 2) + (var(--dot-size) / 2));
    width: 3px;
    height: calc(100% - ((var(--img-size) / 2) + (var(--dot-size) / 2)) + var(--gap-y));
    background: var(--line-color);
    border-radius: 3px;
  }

  /* O último não puxa linha pra baixo */
  .timeline-step:last-of-type::after {
    display: none;
  }

  /* Ajuste específico que você usa */
  .estrutura-lousa {
    margin-top: 400px !important;
  }
  /* FIM DO LAYOUT MOBILE */
}


/* ===== (Opcional) Forçar “linha reta” também no desktop =====
   Basta colocar timeline--straight na <section>.
*/
.timeline--straight .timeline-line { display: none; }
.timeline--straight .timeline-container { padding-left: calc(var(--line-x, 16px) + 16px); }
.timeline--straight .timeline-step {
  position: relative !important; left: auto !important; top: auto !important;
  margin: 0 0 var(--gap-y, 24px) 0; display: flex; gap: 12px; align-items: flex-start;
}
.timeline--straight .timeline-step img {
  width: var(--img-size, 84px); height: var(--img-size, 84px); object-fit: contain; flex: 0 0 var(--img-size, 84px);
}
.timeline--straight .timeline-step::before,
.timeline--straight .timeline-step::after { /* reaproveita as mesmas regras usadas no @media */ }


