section {
  opacity: 0;
  transform: translateY(20px);
}

/* Page Header */
.page-header {
    position: relative;
    background: url('../assets/images/history.jpeg') no-repeat center center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
  }

  .page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); /* Overlay for readability */
    z-index: 1;
  }

  .page-header .container {
    position: relative;
    z-index: 2;
  }

  .page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }

  .header-underline {
    width: 80px;
    height: 4px;
    background-color: #ff4444; /* Blue underline */
    margin: 0 auto;
    border-radius: 2px;
  }

  /* Timeline Section */
  .timeline-section {
    padding: 80px 0;
    background-color: #f5f5f5;
  }

  .timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
  }

  .timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #1a4ba3; /* Blue central line */
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
  }

  .timeline-item {
    position: relative;
    width: 50%;
    padding: 30px 20px;
  }

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

  .timeline-year {
    position: absolute;
    width: 120px;
    height: 50px;
    background-color: #1a4ba3; /* Blue bubble */
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    z-index: 1;
  }

  .timeline-item .timeline-year { right: -60px; }
  .timeline-item.right .timeline-year { left: -60px; }

  .timeline-content {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    position: relative;
    opacity: 0;
    transform: translateY(30px); /* Scroll-up animation start */
    transition: all 0.6s ease-out;
  }

  .timeline-item:not(.right) .timeline-content { margin-right: 60px; }
  .timeline-item.right .timeline-content { margin-left: 60px; }

  .timeline-content h2 {
    color: #1a4ba3;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }

  .timeline-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
  }

  /* Scroll Animation */
  .timeline-content.show {
    opacity: 1;
    transform: translateY(0);
  }

  /* Responsive */
  @media (max-width: 768px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 20px; }
    .timeline-item.right { left: 0; }
    .timeline-item .timeline-year, .timeline-item.right .timeline-year { left: 0; right: auto; }
    .timeline-item .timeline-content, .timeline-item.right .timeline-content { margin: 0; }
  }

  @media (max-width: 480px) {
    .page-header h1 { font-size: 2rem; }
    .timeline-content { padding: 20px; }
    .timeline-content h2 { font-size: 1.25rem; }
    .timeline-year { width: 100px; height: 40px; font-size: 1.1rem; }
  }
