/* =========================
   BASE STYLES
========================= */

* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #2e5643;
  margin: 0;
  padding: 40px 0;
  padding-top: 70px;
  padding-bottom: 20px; /* same as footer height */

}
h4
{
  font-size: 28px;
  font-family: "Ribeye", serif;
  font-weight: 400;
  text-align: center;
  background: #adecce;
  margin: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 70px;
  background: #3e1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
}

.site-header h1 {
  color: #cef5ef;
  margin: 0;
}

.site-header h2 {
  color: #f6c67a;
  margin: 0;
}
/* =========================
   FIXED FOOTER
========================= */

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: #3e1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
/* =========================
   TIMELINE (DESKTOP)
========================= */

.timeline {
  max-width: 1100px;
  margin: auto;
  column-count: 2;
  column-gap: 80px;
  position: relative;
  padding: 40px 0;
}

/* Center vertical line */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #3e1a1a;
  transform: translateX(-50%);
}

/* =========================
   TIMELINE ITEMS
========================= */

.timeline-item {
  width: 100%;
  break-inside: avoid;
  margin-bottom: 140px;
  position: relative;
}

/* Brick staggering */
.timeline-item:nth-child(even) {
  margin-top: 70px;
}





/* =========================
   CONTENT CARD
========================= */

.content {
  background: rgb(243, 241, 234);
  padding: 20px;
  border-radius: 8px;
}

.content img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* =========================
   MOBILE (STACKED)
========================= */
@media (min-width: 769px) {


  .timeline {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;
    position: relative;
  }

  /* center line */
  .timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #3e1a1a;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {

  .timeline {
    column-count: 1;
    padding-left: 40px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    margin: 0 0 60px 0;
  }

  .timeline-item::before {
    left: -28px;
    right: auto;
  }
  .timeline-item::after {
    left: -20px;
  }
  .timeline-item:nth-child(even) {
    margin-top: 0;
  }


  .header-content {
    height: 70px;
  }

  .site-header h1 {
    font-size: 20px;
  }

  .site-header h2 {
    font-size: 12px;
  }

  body {
    padding-top: 70px;
  }
  .site-footer {
    position: fixed;
    font-size: 10px;
  }

}