/* Top section */
.timeline-container {
  margin: 69px auto 40px auto;
  max-width: 1044px;
  padding: 0 20px;
}

.timeline-container h2 {
  font-family: 'Work Sans';
  font-weight: 700;
  font-size: 38px;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 0;
}

.breakthrough-wrapper {
  display: block;
}

.timeline-image {
  width: 100%;
}

.timeline-text {
  width: 100%;
  padding-left: 0;
  padding: 80px 15px 0 15px;
}

/* DESKTOP LAYOUT */
@media (min-width: 768px) {
  .timeline-container {
    margin: 80px auto;
    padding: 0;
  }

  .breakthrough-wrapper {
    display: flex;
    align-items: center;
  }

  .timeline-image {
    width: 40%;
  }

  .timeline-text {
    width: 60%;
    padding-left: 40px;
    padding-top: 0;
    padding: 0 0 0 40px;
  }
}

/* ================= TABS ================= */
.researchtimeline-wrapper {
  padding: 92px 20px 0 20px;
}

.researchtimeline-tabs-desktop.top-tabs {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin-bottom: 120px;
  padding: 0;
  border-bottom: 1px solid #001a70;
}

.researchtimeline-tabs-desktop.top-tabs li {
  list-style: none;
  padding-bottom: 10px;
  cursor: pointer;
  font-size: 38px;
  color: #01719e;
  font-weight: 300;
  min-width: 282px;
  text-align: center;
  position: relative;
}

.researchtimeline-tabs-desktop.top-tabs li.active {
  color: #001a70;
  font-weight: 700;
}

.researchtimeline-tabs-desktop.top-tabs li.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 10px;
  background: #001a70;
}

/* DESKTOP BOTTOM TABS */
.researchtimeline-bottom-tabs {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin-top: 110px;
  margin-bottom: 0;
  padding: 0;
  border-top: 1px solid #001a70;
}

.researchtimeline-bottom-tabs li {
  list-style: none;
  padding-top: 10px;
  cursor: pointer;
  font-size: 38px;
  font-weight: 300;
  color: #01719e;
  min-width: 282px;
  text-align: center;
  position: relative;
}

.researchtimeline-bottom-tabs li.active {
  color: #001a70;
  font-weight: 700;
}

.researchtimeline-bottom-tabs li.active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 10px;
  background: #001a70;
}
@media (max-width: 767px) {
  /* Hide desktop tabs */
  .researchtimeline-tabs-desktop,
  .researchtimeline-bottom-tabs {
    display: none !important;
  }

  /* MOBILE DROPDOWN */
  .researchtimeline-mobile-wrapper {
    display: block;
    margin-bottom: 90px;
  }
  .researchtimeline-mobile-wrapper-bottom {
    margin-top: 110px;
  }

  .researchtimeline-mobile-selected {
    padding-bottom: 15px;
    font-size: 38px;
    font-weight: 700;
    color: #001a70;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #001a70;
  }

  .researchtimeline-mobile-options {
    display: none;
    padding: 0;
    margin: 0;
  }

  .researchtimeline-mobile-options li {
    list-style: none;
    padding: 15px 0;
    font-size: 38px;
    font-weight: 300;
    border-bottom: 1px solid #001a70;
    color: #01719e;
    cursor: pointer;
  }

  .researchtimeline-mobile-options li.active {
    font-weight: 700;
    color: #001a70;
  }
}

/* ================= CONTENT ================= */
.researchtimeline-content .rt-content {
  display: none;
  position: relative;
}

.researchtimeline-content .rt-content.active {
  display: block;
}
#rt-1960s .rt-content-inner {
  padding-top: 0;
}

.rt-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: 25px 0;
}

.rt-content-inner {
  max-width: 1044px;
  margin: 0 auto;
  padding: 34px 0 95px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.rt-content-inner h2 {
  margin-bottom: 20px;
  margin-top: 0;
  font-family: 'Work Sans', sans-serif;
  font-size: 44px;
  font-weight: 700;
}

.rt-content-inner p {
  font-size: 20px;
}

#rt-2020s::before {
  background-image: url('/modules/custom/ccf_research_timeline/images/2020s.png');
}

#rt-2010s::before {
  background-image: url('/modules/custom/ccf_research_timeline/images/2010s.png');
}

#rt-1960s::before {
  background-image: url('/modules/custom/ccf_research_timeline/images/1960s-2000s.png');
}

/* ================= TIMELINE ================= */
.rt-tabs-card-star {
  margin: 0 auto 100px;
  max-width: 1072px;
  text-align: center;
}
.rt-tabs-card-timeline {
  position: relative;
  max-width: 1072px;
  margin: 0 auto;
  z-index: 2;
}

.rt-tabs-card-line {
  position: absolute;
  height: 100%;
  width: 6px;
  background: #00b3f0;
  overflow: hidden;
  left: 0;
  transform: none;
  top: 0;
}

.rt-tabs-card-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--fill-height, 0%);
  background: #001a70;
  transition: height 0.1s linear;
}

.rt-tabs-card-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.rt-tabs-card-item {
  display: flex;
  width: 100%;
}

.rt-tabs-card-left {
  justify-content: flex-start;
  padding-right: 50%;
}
.rt-tabs-card-left .rt-tabs-card {
  margin-right: 40px;
}

.rt-tabs-card-right {
  justify-content: flex-end;
  padding-left: 50%;
}
.rt-tabs-card-right .rt-tabs-card {
  margin-left: 40px;
}

.rt-tabs-card {
  width: 486px;
}

.rt-tabs-card img {
  width: 100%;
  margin-bottom: 20px;
}

.rt-tabs-card h4 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 700;
  margin-top: 0;
  line-height: 32px;
}

.rt-tabs-card p {
  font-size: 20px;
  line-height: 28px;
}
.rt-tabs-card p span {
  font-style: italic;
}

/* Mobile */
@media (max-width: 767px) {
  #rt-2020s::before {
    background-image: url('/modules/custom/ccf_research_timeline/images/2020s-mobile.png');
  }
  #rt-2010s::before {
    background-image: url('/modules/custom/ccf_research_timeline/images/2010s-mobile.png');
  }
  #rt-1960s::before {
    background-image: url('/modules/custom/ccf_research_timeline/images/1960s-2000s-mobile.png');
  }

  .rt-content::before {
    background-position: center 15px;
    background-size: contain;
  }
  .rt-tabs-card-star {
    margin: 0 auto 50px;
  }

  .rt-content-inner {
    padding: 30px 15px 50px;
  }
  .rt-content-inner h2 {
    margin-bottom: 15px;
  }
  .rt-content-inner p {
    padding-left: 15px;
    padding-right: 15px;
  }
  .rt-tabs-card-item {
    justify-content: flex-start;
    padding-left: 60px;
  }

  .rt-tabs-card-left,
  .rt-tabs-card-right {
    padding: 0;
  }

  .rt-tabs-card {
    width: 100%;
  }
  .rt-tabs-card-left .rt-tabs-card {
    margin-right: 0;
  }
  .rt-tabs-card-right .rt-tabs-card {
    margin-left: 0;
  }
  .rt-tabs-card-list {
    margin-left: 38px;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .rt-content::before {
    background-size: contain;
  }
  .researchtimeline-tabs-desktop.top-tabs li {
    min-width: 216px;
  }
  .researchtimeline-bottom-tabs li {
    min-width: 216px;
  }
}

/* Desktop only */
@media (min-width: 768px) {
  .researchtimeline-mobile-wrapper {
    display: none;
  }
  .researchtimeline-wrapper {
    padding: 60px 0 100px 0;
  }
}

/* ================= Research in Action ================= */
.research-action-wrapper {
  background: #caf1ff;
  text-align: center;
  position: relative;
  z-index: 1;
}
.research-action-wrapper::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: #caf1ff;
  z-index: -1;
}

.research-action-section {
  padding: 80px 0;
  margin: 0 auto;
  font-family: 'Work Sans', sans-serif;
}

.research-action-title {
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 40px;
  font-size: 38px;
  font-family: 'Work Sans', sans-serif;
}

.research-action-description {
  max-width: 918px;
  margin: 0 auto 80px auto;
  font-size: 20px;
  line-height: 28px;
}

.research-action-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.research-action-card {
  width: 282px;
  height: 282px;
  background: #fff;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 20px;
  padding: 26px 18px 30px 18px;
  box-shadow: 0px 0px 40px 0px #00000014;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.research-action-card img {
  margin-bottom: 20px;
}

.research-action-count {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #001a70;
  line-height: 48px;
}

.research-action-label {
  font-size: 24px;
  color: #00b3f0;

  font-weight: 700;
  line-height: 32px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 762px) {
  .research-action-section {
    padding: 80px 20px;
  }
  .research-action-description{
    padding: 0 15px;
  }
}

/* ================= CARD SCROLL ANIMATION ================= */

.rt-tabs-card-item {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
  will-change: transform, opacity;
}

/* LEFT cards – slide from left */
.rt-tabs-card-left {
  transform: translateX(-200px);
}

/* RIGHT cards – slide from right */
.rt-tabs-card-right {
  transform: translateX(200px);
}

/* ACTIVE (visible) */
.rt-tabs-card-item.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* ====== mobile card animation override ===== */
@media (max-width: 767px) {

  /* cards to come from RIGHT */
  .rt-tabs-card-item {
    opacity: 0;
    transform: translateX(200px);
  }

  /* Ignore left/right positioning animation */
  .rt-tabs-card-left,
  .rt-tabs-card-right {
    transform: translateX(200px);
  }

  /* When visible */
  .rt-tabs-card-item.is-visible {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ================= CENTER SCROLL LINE ================= */

@media (min-width: 768px) {
  .rt-tabs-card-line {
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
  }
}
/* class for heading colours */
.rt-heading-teal {
  color: #009ca6;
}
.rt-heading-light-blue {
  color: #00b3f0;
}
.rt-heading-orange {
  color: #e57200;
}
.rt-heading-purple {
  color: #a05eb5;
}
.rt-heading-lime {
  color: #78be20;
}
.rt-heading-grey {
  color: #6f818c;
}

/* ================= POPUP ================= */

.rt-popup-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.rt-popup {
  background: #fff;
  width: 90%;
  max-width: 931px;
  height: 75vh;
  padding: 60px 30px 40px;
  position: relative;
  border-radius: 16px;
  border: 3px solid #001a70;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rt-popup-data h4 {
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 24px;
  line-height: 32px;
}
.rt-popup-data p {
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 0;
}

.rt-popup-content {
  display: flex;
  gap: 30px;
  flex: 1;
  min-height: 0;
  align-items: center;
}

.rt-popup-left img {
  max-width: 400px;
  height: auto;
}

.rt-popup-right {
  flex: 1;
  overflow-y: visible;
  min-height: 0;
}

.rt-popup-close {
  position: absolute;
  top: 0;
  right: 38px;
  font-size: 30px;
  border: 0;
  background: none;
  cursor: pointer;
  color: #01719e;
}

.rt-more-btn {
  margin-top: 7px;
  background: none;
  border: 0;
  color: #01719ef0;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 20px;
  line-height: 28px;
}

body.rt-popup-open {
  overflow: hidden;
}

/* MOBILE */
@media (max-width: 768px) {
  .rt-popup-content {
    flex-direction: column;
    overflow-y: auto;
  }

  .rt-popup-left {
    flex-shrink: 0;
  }
  .rt-popup-left img {
    max-width: 100%;
  }
  .rt-popup-right {
    flex: 1;
  }
  .rt-popup-close {
    right: 20px;
  }
  .rt-popup {
    padding: 60px 26px 40px;
    max-height: 75vh;
  }
}

html.rt-popup-open,
body.rt-popup-open {
  overflow: hidden;
}

body.rt-popup-open {
  width: 100%;
}

/* slider */

/* Global Section */
.rt-global-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 0;
}

.rt-global-heading-box {
  text-align: center;
}

.rt-global-heading {
  font-family:
    Work Sans,
    sans-serif;
  font-size: 36px;
  line-height: 40px;
  margin-bottom: 20px;
  margin-top: 0;
}

.rt-global-subtext {
  font-size: 20px;
  line-height: 28px;
  margin: 0 auto;
}

.rt-global-image-wrapper {
  display: flex;
  justify-content: center;
}

/* Desktop Image */
.rt-global-img-desktop {
  width: 100%;
  max-width: 1000px;
  display: block;
}

/* Mobile Image */
.rt-global-img-mobile {
  width: 100%;
  max-width: 100%;
  display: none;
}

.rt-global-footer-text {
  font-size: 15px;
  max-width: 792px;
  line-height: 19px;
  color: #6f818c;
  text-align: center;
  margin: 0 auto;
  padding-top: 10px;
}

@media (max-width: 768px) {
  .rt-global-section {
    padding: 91px 0 0 0;
  }
  .rt-global-heading-box {
    padding: 0 35px;
  }
  .rt-global-subtext{
    margin-bottom: 33px;
  }
  .rt-global-image-wrapper{
    margin-bottom: 60px;
  }
  .rt-global-footer-text{
    padding: 0 35px;
  }
  /* Switch Images */
  .rt-global-img-desktop {
    display: none;
  }

  .rt-global-img-mobile {
    display: block;
  }
}

/* ===== SLIDER SECTION ===== */

.rt-image-slider.gallery-slider {
  padding: 60px 0 113px 0;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #001A70;
  position: relative;
  z-index: 1;
}
.rt-image-slider.gallery-slider  p{
  max-width: 995px;
  margin: 0 auto 57px auto;
  color: #fff;
  text-align: center;
  font-size: 20px;
  line-height: 28px;
}

.rt-image-slider-item {
  padding-top: 40px;
}

.rt-image-slider .slide-item {
  max-width: 518px;
  padding: 0 15px;
}

.rt-image-slider img {
  width: 100%;
  margin: 0 auto;
  display: block;
}
.rt-image-slider .slick-track {
  display: flex;
}

.rt-image-slider-item .slick-prev {
  margin-left: -53px;
}

.rt-image-slider-item .slick-next {
  margin-left: 20px;
}

.rt-image-slider.gallery-slider .slick-arrow {
  position: absolute;
  text-align: center;
  left: 48%;
  top: 100%;
  background-color: #FFFFFF;
  right: 0;
  bottom: 0;
}
.rt-image-slider.gallery-slider .slick-slider {
  padding-bottom: 40px;
}

/* arrow icon visible */
.rt-image-slider-item .slick-prev:before,
.rt-image-slider-item .slick-next:before {
  font-size: 20px;
  color: #001a70;
  opacity: 1;
}

/* Dots */

.rt-image-slider-item .slick-dots {
  width: 100%;
}
.rt-image-slider.gallery-slider .slick-dots  {
  top: -30px;
}

.rt-image-slider-item .slick-dots li {
  margin: 0 7px;
}

.rt-image-slider-item .slick-dots button {
  width: 17px;
  height: 17px;
  background: #FFFFFF;
  border-radius: 50%;
}

.rt-image-slider-item .slick-dots .slick-active button {
  background: #00B3F0;

}
@media (max-width: 768px) {
  .rt-image-slider.gallery-slider{
    padding: 52px 0 133px 0;
  }
  .rt-image-slider.gallery-slider p{
    padding: 0 35px;
  }
  .rt-image-slider .slide-item {
    padding: 0 20px;
  }
}
