 :root {
    --navy: #152c47;
    --red: #BE1823;
    --lime: #d3d800;
    --ink: #0f1b2d;
    --muted: #5c6a80;
    --shadow: rgba(21, 44, 71, 0.15);
  }

  body {
    background: #f6f8fb;
    font-family: "Poppins", "Segoe UI", sans-serif;
  }

  .timeline-wrap {
    background: linear-gradient(180deg, #fafbfd, #f3f6fb);
    padding: clamp(20px, 3vw, 32px);
    border-radius: 18px;
    border: 1px solid rgba(21, 44, 71, 0.08);
  }

  .timeline-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* 2-column grid per row */
  .timeline-row {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: stretch;
  }

  /* IMAGE BOX */
  .timeline-image-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px var(--shadow);
    border: 1px solid rgba(21, 44, 71, 0.1);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .timeline-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.35s ease;
  }

  .timeline-image-box:hover .timeline-image {
    transform: scale(1.05);
  }

  .image-caption {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, rgba(21, 44, 71, 0.88), rgba(21, 44, 71, 0.75));
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: 10px;
    font-size: 0.95rem;
  }

  /* CARD STYLING */
  .timeline-item {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 22px 26px;
    min-height: 240px;
    border: 2px solid transparent;
    box-shadow: 0 6px 20px rgba(21, 44, 71, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
    transition: all 0.35s ease;
  }

  /* Gradient border trick */
  .timeline-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(211, 216, 0, 0.8), rgba(21, 44, 71, 0.6));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }

  /* Animations */
  .timeline-row:nth-child(1) .timeline-item { animation-delay: 0.2s; }
  .timeline-row:nth-child(2) .timeline-item { animation-delay: 0.4s; }
  .timeline-row:nth-child(3) .timeline-item { animation-delay: 0.6s; }

  @keyframes fadeUp {
    0% { opacity: 0; transform: translateY(25px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  /* Card hover glow */
  .timeline-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(21, 44, 71, 0.18);
    border-color: var(--lime);
  }

  .timeline-date {
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.3px;
    font-size: 1rem;
  }

  .timeline-title {
    margin: 6px 0 10px;
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 700;
  }

  .timeline-description {
    color: var(--ink);
    line-height: 1.6;
    font-size: 1rem;
    opacity: 0.95;
  }

  .photo-description {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--muted);
    font-style: italic;
  }

  /* Responsive */
  @media (max-width: 992px) {
    .timeline-row {
      grid-template-columns: 1fr;
    }
    .timeline-image-box,
    .timeline-item {
      min-height: 200px;
    }
  }