/* Estilo geral da linha do tempo */

.timeline_rbm {
  position: relative;
  max-width: 1000px;
  margin: auto;
  padding: 60px 0;
  overflow: hidden;
}

/* Linha central com gradiente */

.timeline_rbm::after {
  content: '';
  position: absolute;
  width: 8px;
  background: linear-gradient(to bottom, #b18a25, #8b6f1b);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(177, 138, 37, 0.3);
  z-index: 1;
}

/* Item da linha do tempo */

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(50px);
  animation: slideIn 0.8s ease-out forwards;
  animation-delay: calc(0.2s * var(--item-index));
  z-index: 2;
}

/* Definindo índices para animação */

.timeline-item:nth-child(1) {
  --item-index: 1;
}

.timeline-item:nth-child(2) {
  --item-index: 2;
}

.timeline-item:nth-child(3) {
  --item-index: 3;
}

.timeline-item:nth-child(4) {
  --item-index: 4;
}

.timeline-item:nth-child(5) {
  --item-index: 5;
}

.timeline-item:nth-child(6) {
  --item-index: 6;
}

/* Posicionamento dos itens à esquerda e direita */

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

/* Conteúdo do item com sombra aprimorada */

.timeline-content {
  background: linear-gradient(145deg, #fff8e1, #f5e7c6);
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(177, 138, 37, 0.2);
  z-index: 3;
}

/* Conector movido para o timeline-content */

.timeline-content::before {
  content: '';
  position: absolute;
  top: 16px;
  width: 12px;
  height: 2px;
  background: linear-gradient(to right, #b18a25, transparent);
  z-index: 2;
}

/* Posicionamento dos conectores */

.timeline-item.left .timeline-content::before {
  right: -12px;
}

.timeline-item.right .timeline-content::before {
  left: -12px;
}

/* Efeito de hover no conteúdo */

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2), 0 6px 12px rgba(0, 0, 0, 0.12);
}

/* Estilo do título */

.timeline-content h4 {
  margin: 0 0 10px;
  color: #8b6f1b;
  font-size: 1.4em;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Estilo do texto com maior contraste */

.timeline-content p {
  margin: 0;
  color: #2a2a2a;
  font-size: 1em;
  line-height: 1.6;
}

/* Marcador da linha do tempo com pulsação */

.timeline-marker {
  position: absolute;
  top: 20px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, #b18a25, #8b6f1b);
  border-radius: 50%;
  border: 4px solid #fff;
  z-index: 10;
  /*box-shadow: 0 0 15px rgba(177, 138, 37, 0.5);*/
  transition: transform 0.3s ease;
  animation: pulse 2s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estilo do texto do ano dentro do marcador */

.timeline-marker span {
  color: #fff;
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;
}

/* Efeito de hover no marcador */

.timeline-item:hover .timeline-marker {
  transform: scale(1.2);
  animation: none;
}

/* Posicionamento dos marcadores */

.timeline-item.left .timeline-marker {
  right: -35px;
}

.timeline-item.right .timeline-marker {
  left: -35px;
}

/* Animação de entrada */

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animação de pulsação para marcadores */

@keyframes pulse {
  0%, 100% {
  }
  50% {
  }
}

/* Responsividade */

@media (max-width: 768px) {
  .timeline_rbm {
    padding-left: 10px;
  }
}

@media (max-width: 768px) {
  .timeline_rbm::after {
    left: 30px;
    width: 6px;
  }
}

@media (max-width: 768px) {
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 15px;
    left: 0 !important;
  }
}

@media (max-width: 768px) {
  .timeline-marker {
    left: -25px !important;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .timeline-marker span {
    font-size: 1.1em;
    line-height: 1;
  }
}

@media (max-width: 768px) {
  .timeline-content::before {
    left: -20px !important;
    right: auto !important;
    width: 14px;
    background: linear-gradient(to right, #b18a25, transparent);
  }
}

@media (max-width: 768px) {
  .timeline-content {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 768px) {
  .timeline-content:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18), 0 5px 10px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 576px) {
  .timeline_rbm {
    padding: 30px 5px;
    padding-left: 26px;
    margin-left: 0px;
  }
}

@media (max-width: 576px) {
  .timeline_rbm::after {
    left: 28px;
    width: 5px;
  }
}

@media (max-width: 576px) {
  .timeline-item {
    padding-left: 60px;
    padding-right: 10px;
  }
}

@media (max-width: 576px) {
  .timeline-marker {
    left: -22px !important;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .timeline-marker span {
    font-size: 1em;
  }
}

@media (max-width: 576px) {
  .timeline-content::before {
    left: -18px !important;
    width: 12px;
  }
}

@media (max-width: 576px) {
  .timeline-content {
    padding: 12px;
    font-size: 0.9em;
  }
}

