/* START RETHINK SECTION */
.rethinking-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.rethinking-section h2,
.rethinking-section .subtext {
  opacity: 0;
}

.info-block {
  max-width: 950px;
  font-family: "new-science", sans-serif;
  font-weight: 300;
  margin: 0 max(72px, 7vw);
}

.info-block .subtext .underline {
  background-color: #de4d16;
}

.text-block {
  opacity: 0;
  margin-top: 48px;
  font-size: max(3vw, 24px);
  line-height: 1.4;
  color: #000;
}

.text-block.visible {
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .info-block {
    margin: 0 40px;
  }
  .text-block {
    font-size: 20px;
    margin-top: 32px;
  }
}

/* ----------- START OF TIMELINE SECTION ----------- */

.timeline-container {
  display: flex;
  max-width: 994px;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding-right: 80px;
}

.slides {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.slide {
  position: absolute;
  right: 0;
  max-width: 882px;
  text-align: right;
  margin: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.slide h2,
.slide h1,
.slide p {
  margin: 0;
  font-size: 48px;
  opacity: 1;
  transform: translateY(0);
}

.slide h2 {
  color: #1d7031;
  font-style: italic;
}

.slide h1 {
  background: #1d7031;
  color: white;
  display: inline-block;
  padding: 0.2em 0.5em;
  margin: 10px 0;
}

.slide p {
  font-size: 28px;
  color: #333;
}
.source {
  font-size: 20px;
}

.timeline {
  height: 100%;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.8);
}

.timeline-line {
  position: absolute;
  top: 50px;
  bottom: 50px;
  width: 2px;
  background: #1d7031;
}

.dates {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100% - 100px);
  z-index: 2;
  margin-left: 80%;
}

.date {
  position: relative;
  font-size: 14px;
  color: #1d7031;
  cursor: none;
  padding: 4px 0;
}

.date::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s ease;
}

.date:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.date.active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.date.active {
  font-weight: bold;
}

.indicator {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #1d7031;
  border-radius: 50%;
  left: calc(50% - 5px);
  transition: top 0.3s ease;
}

.arrow {
  cursor: none;
  font-size: 40px;
  color: #1d7031;
  user-select: none;
  margin: 15px 0;
}

@media screen and (max-width: 1024px) {
  .timeline-container {
    padding-left: 40px;
  }
}

@media screen and (max-width: 768px) {
  .timeline-container {
    padding-bottom: 32px;
    flex-direction: column;
    align-items: center;
  }

  .slides {
    width: 100%;
    margin-top: 64px;
  }

  .slide {
    width: 100%;
    gap: 24px;
    padding-left: 20px;
  }

  .slide h1,
  .slide h2 {
    font-size: 24px;
  }

  .slide p {
    font-size: 18px;
  }

  .slide .source {
    font-size: 12px;
  }

  .timeline {
    height: 32px;
    justify-content: center;
    transform: rotate(-90deg);
  }

  .timeline-line {
    display: none;
  }

  .timeline .indicator {
    display: none;
  }

  .timeline .dates {
    display: none;
  }
}

/* ----------- START OF LEGAL AND ETHICAL SECTION ----------- */

.legal-and-ethical {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px;
  height: 100vh;
  height: 100dvh;
}

.legal-and-ethical .wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto;
  gap: 80px;
  max-width: 1020px;
}

.legal-and-ethical h1 {
  margin: 0;
  font-size: 24px;
}

.legal-and-ethical .underline {
  z-index: -1;
}

.legal-and-ethical .text-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 100%;
}

.legal-and-ethical p {
  font-size: 1.6em;
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  .legal-and-ethical .wrapper {
    padding: 20px;
    gap: 24px;
  }

  .legal-and-ethical h1 {
    font-size: 20px;
    text-align: center;
  }

  .legal-and-ethical .text-grid {
    grid-template-columns: 1fr;
  }

  .legal-and-ethical p {
    font-size: 16px;
    line-height: 1.4;
  }
}

/*  ----------------- SECTION RESOURCES ---------------- */
.section.resources {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  gap: 10vh;
}

.blocTitleResources {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.blocTitleResources .titleWrapper:first-of-type .underline {
  background: #de4d16;
}

.blocTitleResources h2 {
  font-size: 4em;
}

.blocTitleResources h3 {
  color: white;
  font-size: 2em;
  z-index: 1;
  position: relative;
}

.resources .buttons-wrapper {
  display: flex;
  justify-content: center;
  gap: 180px;
}

.resources .button {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.resources .icon-wrapper {
  position: relative;
  width: fit-content;
}

.resources p {
  font-size: 1.5em;
  color: white;
  text-align: center;
  font-weight: 600;
  background-color: #de4d16;
  padding: 4px 40px;
}

.resources .button:last-of-type .iconDL {
  transform: translateX(-25%);
}

@media screen and (max-width: 768px) {
  .resources h2 {
    font-size: 2.5em;
  }

  .resources h3 {
    font-size: 1.3em;
  }

  .resources .buttons-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .resources .button {
    width: 100%;
    max-width: 400px;
  }

  .resources p {
    width: 100%;
    text-align: center;
    padding: 4px 20px;
  }
}
