.regattasHeroImg {
  width: 100%;
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.3), 
      rgba(0, 0, 0, 0.3)), 
    url("images/sailingPhotos/rotations.jpeg");
  height: 75vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

body {
  background: #f5f5f5;
}

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

.timeline::after {
  content: '';
  position: absolute;
  width: 1px;
  background: #999;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.timelineItem {
  padding: 20px 0;
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

.redDot {
  width: 20px;
  height: 20px;
  background: var(--clr-accent-1);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
}

.timelineContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.timelineContent.left {
  flex-direction: row;
}

.timelineContent.right {
  flex-direction: row-reverse;
}

.regattaDetails, .regattaImg {
  width: 45%;
}

.regattaDetails {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.regattaDetails h2 {
  color: var(--clr-black);
  margin-bottom: 5px;
  font-size: var(--fs-575);
  font-weight: var(--fw-bold);
}

.regattaDetails h3 {
  font-size: var(--fs-450);
  color: var(--clr-accent-1);
  margin-bottom: 5px;
}

.regattaDetails .date {
  color: var(--clr-accent-1);
  font-weight: bold;
  margin-bottom: 10px;
}

.regattaImg img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
  .timeline::after {
    display: none;
  }

  .timelineItem {
    padding: 0;
    margin-bottom: 40px;
  }

  .redDot {
    display: none;
  }

  .timelineContent, 
  .timelineContent.left, 
  .timelineContent.right {
    flex-direction: column;
  }

  .regattaDetails, 
  .regattaImg {
    width: 100%;
    margin-bottom: 20px;
  }
  .regattaImg {
    order: 2; /* Ensure image comes after text on smaller screens */
  }
  .regattaImg img {
    height: 200px;
  }
}