/* =========================
   TIMELINE – LAYOUT GERAL
   ========================= */

/* Laterais cinza (bg-light) */
.tl-wrap {
  background: #f8f9fa;        /* equivalente ao bg-light do Bootstrap */
  padding: 0vh 15vh;            /* respiro superior/inferior da seção */
}

/* Miolo branco contínuo (container central) */
.tl-surface {
  max-width: 100%;
  margin: 0 5vh;
  background: #fff;
  border-radius: 0px;
  padding: 32px 0px;

  box-shadow: 0px 0px 60px -4px rgb(0 0 0 / 10%);
}

/* Namespace da timeline */
.tl {
  --tl-text: #111827;
  --tl-muted: #6b7280;
  --tl-accent: #a8821f;       /* laranja principal */
  --tl-line: var(--tl-accent);
  --tl-shadow: 0 10px 20px rgba(17,24,39,.08);

  position: relative;
  display: grid;
  gap: 32px;
  color: var(--tl-text);
}

/* Linha vertical central */
.tl::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 3.5%;
  bottom: 3.5%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--tl-line);
  pointer-events: none;
  z-index: 3;
}

/* =========================
   ITENS / COLUNAS / ANO
   ========================= */

.tl-item {
  display: grid;
  grid-template-columns: 1fr 64px 1fr; /* esquerda | eixo | direita */
  gap: 28px;
  align-items: center;
  position: relative;
  padding: 5vh 5vh;
  background: transparent;    /* usa o fundo do .tl-surface */
  border-radius: 0;           /* sem raio individual (miolo já tem) */
}

/* Nada de full-bleed por item */
.tl-item::before,
.tl-item::after { display: none; }

/* Item cinza (faixa limitada ao miolo branco) */
.tl-item.is-gray {
  background: #f3f4f6;
  border-radius: 0px;
}

/* Conteúdo acima das camadas */
.tl-item > * { position: relative; z-index: 4; }

/* Alternância das colunas */
.tl-col { display: block; }
.tl-left  { grid-column: 1; }
.tl-right { grid-column: 3; }

/* Eixo do ano */
.tl-axis {
  grid-column: 2;
  position: relative;
  height: 100%;
}

/* Ano – padrão: branco + borda tracejada laranja */
.tl-year {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #fff;
  color: var(--tl-accent);
  border: 2px dashed var(--tl-accent);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .3px;
  z-index: 5;
}

/* Círculo sólido em itens .is-gray/.is-solid */
.tl-item.is-solid .tl-year,
.tl-item.is-gray  .tl-year {
  background: var(--tl-accent);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgb(119 92 23 / 24%);
}

/* Cortes de linha no 1º e no último (cor branca do miolo) */
.tl-item.tl-first .tl-axis::before,
.tl-item.tl-last  .tl-axis::after {
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  width:2px;
  background:#fff; /* mesma cor do .tl-surface */
  z-index:6;
}
.tl-item.tl-first .tl-axis::before { top:50%; bottom:50%; }
.tl-item.tl-last  .tl-axis::after  { top:100%; bottom:0; }

/* =========================
   TIPOGRAFIA / MÍDIA
   ========================= */

.tl-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--tl-accent);
}

.tl-desc {
  margin: 0;
  color: var(--tl-muted);
  line-height: 1.7;
}
.tl-text-right{
  text-align: right;
}

.tl-media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--tl-shadow);
  background: #f8fafc;
  display: block;
  aspect-ratio: 16/9;
}
.tl-media img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Mock de vídeo (se usar) */
.tl-media-video { position: relative; }
.tl-video-ui {
  position: absolute;
  inset: auto 12px 12px 12px;
  height: 32px;
  background: rgba(0,0,0,.35);
  border-radius: 8px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 10px;
}
.tl-play {
  width: 18px; height: 18px; display:inline-block;
  border-left: 18px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.tl-progress {
  position:relative; flex:1;
  height:6px; background:rgba(255,255,255,.45);
  border-radius:999px;
}
.tl-progress::after {
  content:""; position:absolute; left:0; top:0; bottom:0;
  width:35%; background:#fff; border-radius:999px;
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 900px) {
  .tl-surface {
    border-radius: 0px;
    padding: 16px 0px;
    margin: 0;
  }

  .tl-item.is-gray {
    padding: 32px 0px;
  }

  .tl-text-right {
    text-align: start;
  }

  .tl-item {
    grid-template-columns: 1fr 64px;  /* conteúdo | eixo */
    gap: 0;
    padding: 8px 0;
    align-items: stretch;
  }

  .tl-left, .tl-right {
    grid-column: 1;
    background: transparent;
    padding: 0px 2vh;
    border-radius: 0;
    max-width: 100%;
  }

  .tl-axis {
    grid-column: 2;
    position: relative;
    min-height: 100%;
    right: 5vh;
  }

  .tl-year {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--tl-accent);
    border: 2px dashed var(--tl-accent);
    box-shadow: none;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: .3px;
    line-height: 1;
    z-index: 1;
  }

  .tl-item.is-gray .tl-year,
  .tl-item.is-solid .tl-year {
    background: var(--tl-accent);
    color: #fff;
    border: none;
    box-shadow: 0 6px 16px rgba(255, 90, 0, .25);
  }

  .tl-item.is-solid .tl-axis { top: 3vh; }

  /* some a linha contínua e cortes no mobile */
  .tl::before { display: none; }
  .tl-item.tl-first .tl-axis::before,
  .tl-item.tl-last  .tl-axis::after { display: none; }

  /* opcional: esconder mídias no mobile */
  .tl-media,
  .tl-media-video,
  .tl-video-ui { display: none !important; }

  .tl-title {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--tl-accent);
  }
  .tl-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--tl-muted);
  }

  .tl-wrap {
    padding: 0vh 0vh;
  }
}
