/* Timeline container */
.company-timeline {
    padding: 56px 0;
  }
  
  /* Title */
  .timeline-title {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text);
  }
  
  /* Timeline line */
  .timeline-container {
    position: relative;
    margin: 0 auto;
    max-width: 960px;
    overflow: visible;
  }
  
  .timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #852b23; /* your red */
  }
  
  /* Individual blocks */
  .timeline-block {
    position: relative;
    width: 50%;
    padding: 20px 30px;
  }
  
  .timeline-block:nth-child(odd) {
    left: 0;
    text-align: right;
  }
  
  .timeline-block:nth-child(even) {
    left: 50%;
    text-align: left;
  }
  
  /* Icon */
  .timeline-icon {
    position: absolute;
    top: 20px;
    width: 40px;
    height: 40px;
    background-color: #f4b900; /* yellow */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #852b23;
    font-size: 18px;
    border: 2px solid #852b23;
  }
  
  .timeline-block:nth-child(odd) .timeline-icon {
    right: -20px;
  }
  
  .timeline-block:nth-child(even) .timeline-icon {
    left: -20px;
  }
  
  /* Content card */
  .timeline-content {
    background: var(--card);
    padding: 16px 24px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    color: var(--text);
  }
  
  /* Date styling */
  .timeline-date {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    margin-top: 8px;
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    .timeline-container::before {
      left: 20px;
    }
  
    .timeline-block,
    .timeline-block:nth-child(odd),
    .timeline-block:nth-child(even) {
      width: 100%;
      left: 0;
      text-align: left;
      margin-left: 40px;
      padding: 16px 0;
    }
  
    .timeline-block .timeline-icon {
      left: -40px;
      right: auto;
    }
  }
  /* Initial state: hidden and shifted */
.timeline-block {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
  }
  
  /* When visible in viewport */
  .timeline-block.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .timeline-block:nth-child(odd) {
    transform: translateX(-50px);
  }
  
  .timeline-block:nth-child(even) {
    transform: translateX(50px);
  }
  
  .timeline-block.visible {
    transform: translateX(0);
    opacity: 1;
  }
  