@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");

.top5-1 {
  --white: #fff;
  --black: #323135;
  --crystal: #7fc3daec;
  --columbia-blue: #91cfe4;
  --midnight-green: #257bc7;
  --yellow: #78b9d3;
  --timeline-gradient: rgba(206, 233, 228, 1) 0%, rgba(206, 233, 228, 1) 50%,
    rgba(206, 233, 228, 0) 100%;
    opacity:0.85;
}


.top5-1 button {
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

.top5-1 a {
  color: inherit;
}

.top5-1 img {
  max-width: 100%;
  height: auto;
}

.top5-1 {
  font: normal 16px/1.5 "Inter", sans-serif;
  background: var(--columbia-blue);
  color: var(--black);
  margin-bottom: 50px;
  height: 100vh;
}

/* .sect sect
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.top5-1 .sect {
  padding: 55px 0;
}

.top5-1 .sect .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.top5-1 .sect h1 {
  font-size: 2.5rem;
  line-height: 1.25;
  color: white;
}


/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.top5-1 .timeline {
  position: relative;
  white-space: nowrap;
  max-width: 1400px;
  padding: 0 10px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px auto;
  grid-gap: 20px;
}


.top5-1 .timeline .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 20px;
  color: var(--white);
  background: var(--midnight-green);
  white-space: normal;
  border-radius: 10px;
}

.top5-1 .timeline .info img {
  margin-bottom: 20px;
}

.top5-1 .timeline .info p {
  margin-top: 10px;
  color: var(--crystal);
}

.top5-1 .timeline .info a {
  text-decoration: none;
}

.top5-1 .timeline ol::-webkit-scrollbar {
  height: 12px;
}

.top5-1 .timeline ol::-webkit-scrollbar-thumb,
.top5-1 .timeline ol::-webkit-scrollbar-track {
  border-radius: 92px;
}

.top5-1 .timeline ol::-webkit-scrollbar-thumb {
  background: var(--midnight-green);
}

.top5-1 .timeline ol::-webkit-scrollbar-track {
  background: var(--yellow);
}

.top5-1 .timeline ol {
  font-size: 0;
  padding: 250px 0;
  transition: all 1s;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--yellow) var(--midnight-green);
}

.top5-1 .timeline ol li {
  position: relative;
  display: inline-block;
  list-style-type: none;
  width: 160px;
  height: 5px;
  background: var(--white);
  scroll-snap-align: start;
}

.top5-1 .timeline ol li:last-child {
  width: 200px;
}

.top5-1 .timeline ol li:not(:first-child) {
  margin-left: 14px;
}

.top5-1 .timeline ol li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 1px);
  bottom: 0;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--midnight-green);
  z-index: 1;
}

.top5-1 .timeline ol li div {
  position: absolute;
  left: calc(100% + 7px);
  width: 280px;
  padding: 15px;
  font-size: 1rem;
  white-space: normal;
  color: var(--black);
  background: var(--white);
  border-radius: 0 10px 10px 10px;
}

.top5-1 .timeline ol li div::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

.top5-1 .timeline ol li:nth-child(odd) div {
  top: -16px;
  transform: translateY(-100%);
  border-radius: 10px 10px 10px 0;
}

.top5-1 .timeline ol li:nth-child(odd) div::before {
  top: 100%;
  border-width: 8px 8px 0 0;
  border-color: var(--white) transparent transparent transparent;
}

.top5-1 .timeline ol li:nth-child(even) div {
  top: calc(100% + 16px);
}

.top5-1 .timeline ol li:nth-child(even) div::before {
  top: -8px;
  border-width: 8px 0 0 8px;
  border-color: transparent transparent transparent var(--white);
}

.top5-1 .timeline time {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--midnight-green);
}

/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 800px) {
  .top5-1 .timeline {
    display: block;
  }

  .top5-1 .timeline::before,
  .top5-1 .timeline::after {
    width: 50px;
  }

  .top5-1 .timeline::before {
    left: 0;
  }

  .top5-1 .timeline .info {
    display: none;
  }
}

/* FOOTER STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.top5-1 .page-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 5px;
  z-index: 2;
  color: var(--black);
  background: var(--columbia-blue);
}

.top5-1 .page-footer a {
  display: flex;
  margin-left: 4px;
}