/* Our Story Section */
*,
*::before,
*::after {
  box-sizing: border-box;
}


.our-story {
  background: #ffffff;
  padding: 60px 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.our-story h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #01354d;
}

.our-story .intro {
  text-align: center;
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 40px;
}

/* ADD after .timeline block (prevents flex/child overflow) */
.timeline,
.timeline-item {
  min-width: 0;
}


.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #ffc107; /* golden yellow line */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 12px 10px;
  position: relative;
  width: 50%;
  min-width: 0;       
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  background: #f9f9f9;
  padding: 18px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: calc(50vw - 120px); /* uses viewport so it fits at small sizes */
  width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.timeline-content h3 {
  color: #01354d;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.timeline-content p {
  color: #555;
}

/* ADD right after .timeline-content p */
.timeline-content p {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}


.timeline-item::before {
  content: '';
  position: absolute;
  top: 35px;
  width: 20px;
  height: 20px;
  background-color: #ffc107;
  border-radius: 50%;
  border: 5px solid #fff;
  z-index: 1;
}

.timeline-item:nth-child(odd)::before {
  right: -8px;
}

.timeline-item:nth-child(even)::before {
  left: -8px;
}

.future {
  margin-top: 60px;
  text-align: center;
}

.future h3 {
  font-size: 1.8rem;
  color: #01354d;
  margin-bottom: 15px;
}

.future p {
  font-size: 1.1rem;
  color: #444;
  max-width: 700px;
  margin: 0 auto;
}

/* ADD at the end of the file */
/* ADD at end of file - keeps left/right columns even on narrow screens */
@media (max-width: 700px) {

  .our-story {
    padding: 28px 10px;
  }

  .timeline {
    max-width: 100%;
    padding: 10px 20px; /* less horizontal padding on small screens */
  }

  .timeline-item {
    width: 50%;           /* keep two-column layout */
    padding: 8px 6px;     /* further reduce padding */
  }

  /* make the center line thinner and ensure it's centered visually */
  .timeline::after {
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
  }

  /* smaller cards and text so they fit inside half the viewport */
  .timeline-content {
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    max-width: calc(50vw - 80px); /* narrower on mobile */
  }

  .timeline-item::before {
    top: 28px;
    width: 12px;
    height: 12px;
    border-width: 3px;
  }

  /* slight header size reduction */
  .timeline-content h3 {
    font-size: 1.05rem;
  }
}

