/* Projects Slider Styles */

.reviews {
  padding-top: 60px;
  padding-bottom: 80px;
}

.reviews_title {
  margin-bottom: 50px;
}

.get-funding__projects.reviews {
  padding: 0;
  margin-bottom: 50px;
}

.get-funding__projects .project {
  background-color: #fff;
}

.home .financing__get-funding {
  font-family: "Montserrat", sans-serif;
  color: #272727;
}

.home .financing__get-funding .get-funding__title {
  font-size: 45px;
  line-height: 120%;
}

.get-funding__projects .project_info_right_text {
  font-size: 16px;
  line-height: 150%;
}

.get-funding__projects .project_info_right_text h4 {
  line-height: 120%;
}

.reviews.cont4:has(> .projects-slider) {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.projects-slider {
  width: 100%;
  max-width: none;
  overflow-x: clip;
  position: relative;
}

.projects-navigation {
  display: flex;
  gap: 19px;
  justify-content: center;
  align-items: center;
  margin-top: 35px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.projects-navigation .reviews_arrow {
  font-size: 30px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #5786c2;
  padding: 0px 10px;
  border-radius: 50%;
  margin: 0;
  user-select: none;
  transition: background 0.3s;
  color: #5786c2;
  text-align: center;
  font-weight: 300;
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.projects-navigation .reviews_arrow .reviews-arrow-icon {
  display: block;
  flex: 0 0 10px;
  width: 10px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  pointer-events: none;
}

.projects-navigation .reviews_arrow:hover,
.projects-navigation .reviews_arrow:active,
.projects-navigation .reviews_arrow:focus-visible {
  background: #5786c2;
  color: #fff;
}

.projects-navigation .reviews_arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.projects-navigation .reviews_progress {
  flex: 1 1 auto;
  min-width: 0;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background-color: #e3e8ef;
}

.projects-navigation .reviews_progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background-color: #5786c2;
  transition: width 0.5s ease;
}

@media (max-width: 1024px) {
  .home .financing__get-funding .get-funding__title {
    font-size: 36px;
  }

  .projects-navigation .reviews_progress {
    height: 5px;
  }
}

/* Stretch every card to the tallest slide without changing height on navigation. */
.projects-slider > .swiper-wrapper {
  align-items: stretch;
}

.projects-slider > .swiper-wrapper > .swiper-slide {
  display: flex;
  flex-direction: row;
  height: auto;
}

/* Project card */
.project {
  min-width: 100%;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 0px;
  display: flex;
  gap: 0px;
  background-color: none;
  border-radius: 8px;
  overflow: hidden;
}

.project_img {
  position: relative;
  flex-shrink: 0;
  min-width: 30%;
  width: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

.project_img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project_info_right_text {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 30px;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.project_info_right h4,
.project_info_right_text h4 {
  font-size: 24px;
}

.project_info_right_text .content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project_info_right_text p {
  line-height: 150%;
  color: #272727;
  width: 100%;
}

/* Adaptive: 1279px */
@media (max-width: 1279px) {
  .cont4 {
    max-width: 100%;
  }
  
  .project_img {
    min-width: 45%;
    width: 45%;
  }
}

/* Adaptive: 768px */
@media (max-width: 768px) {
  .reviews .projects-navigation {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    justify-content: space-between;
  }

  .home .financing__get-funding .get-funding__title {
    font-size: 24px;
  }

  .get-funding__projects .project_info_right_text h4 {
    line-height: 130%;
  }

  .project {
    flex-direction: column;
  }

  .project_img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .project_info_right_text {
    padding: 30px 0;
  }
}

@media (min-width: 400px) and (max-width: 500px) {
  .home .financing__get-funding .get-funding__title {
    font-size: 24px !important;
  }
}

/* Compact project cards on short desktop screens. */
@media (min-width: 1025px) and (max-height: 800px) {
  .home .financing__get-funding {
    padding: 24px 0;
  }

  .home .financing__get-funding .get-funding__title,
  .reviews.cont4:has(> .projects-slider) > .reviews_title {
    max-width: none;
    margin-bottom: 30px;
    font-size: 34px;
    line-height: 120%;
  }

  div.reviews.cont4:has(> .projects-slider) {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .get-funding__projects.reviews {
    margin-bottom: 24px;
  }

  .projects-slider .project_img {
    position: relative;
    flex: 0 0 25%;
    min-width: 0;
    width: 25%;
  }

  .projects-slider .project_img img {
    position: absolute;
    inset: 0;
  }

  .projects-slider .project_info_right_text {
    min-width: 0;
    min-height: 0;
    gap: 12px;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 140%;
  }

  .projects-slider .project_info_right_text h4 {
    font-size: 21px;
    line-height: 120%;
  }

  .projects-slider .project_info_right_text .content {
    display: block;
    line-height: inherit;
  }

  .projects-slider .project_info_right_text .content > em {
    display: block;
    margin-bottom: 6px;
  }

  .projects-slider .project_info_right_text .content > strong {
    display: block;
    margin-top: 6px;
  }

  .projects-slider .project_info_right_text .content > br:first-child,
  .projects-slider .project_info_right_text .content > br:last-child,
  .projects-slider .project_info_right_text .content > br:has(+ strong),
  .projects-slider .project_info_right_text .content > strong + br,
  .projects-slider .project_info_right_text .content > em + br {
    display: none;
  }

  .projects-slider .project_info_right_text p {
    margin-bottom: 6px;
    line-height: inherit;
  }

  .reviews .projects-navigation {
    margin-top: 14px;
  }
}
