/* CSS specifically for the Home page */
/* Home Page */
.hero {
  background-color: #fdfdfd;
  min-height: 70vh;
  max-height: 900px;
  /* max-height: 85vh; */
}

.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* padding-top: 3rem; */
}

.slide {
  display: none;
  opacity: 0.5;
  animation: opacity 0.5s ease-out forwards;
}

.slide.active {
  display: block;
}

.slide-btn {
  position: absolute;
  right: 0;
  top: 3;
  background-color: white;
  z-index: 30;
}

#forward,
#back {
  width: 48px;
  cursor: pointer;
}

#forward:hover,
#back:hover {
  border: 1px solid green;
}

.slide-image {
  min-width: 100%;
  width: auto;
  max-height: 85vh;
  max-width: unset;
}

.slide-caption {
  text-align: center;
}

.caption-heading {
  font-weight: bold;
  line-height: 0;
  font-size: 1.5rem;
}

@media (min-width: 1024px) {
  .slide-image {
    max-height: unset;
  }
  .slide-caption {
    float: right;
    text-align: left;
  }
}

.active {
  display: block; /* Show the active slide */
  opacity: 1; /* Fade in the active slide */
}

@media (min-width: 1440px) {
  /* .hero {
    min-height: 90vh;
  } */
  #forward,
  #back {
    width: 78px;
  }
  .slider {
    padding-top: 3rem;
  }
}

/* mission section */
.mission-banner {
  position: relative;
  width: 85%;
  margin-top: -12rem;
  max-width: 1522px;
}

.mission-wrapper {
  background-color: white;
  z-index: 1;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: end;
  margin-top: 50px;
  position: relative;
  padding: 1rem;
}

.grey-underlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #f1f3f5;
  z-index: 1;
  padding: 30px 30px 0 0;
  box-sizing: border-box;
  margin-top: 25px;
  margin-left: 25px;
}

.mission-title {
  font-weight: 400;
  text-align: left;
  font-size: 4rem;
  padding-top: 2rem;
  align-self: flex-end;
}
@media screen and (min-width: 768px) {
  .mission-banner {
    margin-top: -6rem;
  }
}

@media screen and (min-width: 1024px) {
  .mission-banner {
    margin-left: 2.9rem;
    margin-top: -4.5rem;
    width: 75%;
  }
  .grey-underlay {
    margin-top: 40px;
    margin-left: 40px;
  }
}

@media screen and (min-width: 1440px) {
  .mission-banner {
    width: 85%;
  }
  .grey-underlay {
    margin-top: 50px;
    margin-left: 50px;
  }
  .mission-title {
    padding-right: 17%;
    padding-top: 3rem;
  }
}

@media screen and (min-width: 1520px) {
  .mission-title {
    font-size: 96px;
    padding-top: 4rem;
  }
}

/* Vision */
.vision {
  position: relative;
  /* padding: 9rem 2rem 4rem; */
  margin: auto;
  background-color: white;
  color: #393737;
}

.vision-info {
  gap: 4rem;
}

.vision-card {
  position: relative;
  width: 100%;
  /* background-color: #275c0d; */
  z-index: 1;
  height: 100%;
  margin-bottom: 3rem;
}

.vision-image {
  width: 93%;
  min-width: 50%;
  height: 90%;
}

.vision-underlay {
  position: absolute;
  background: #f1f3f5;
  width: 90%;
  height: 70%;
  z-index: -1;
  bottom: -10%;
  right: 0;
}

.vision-button {
  border: none;
  background-color: white;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.8125rem;
  line-height: 1.875rem;
  width: fit-content;
}

/* Custom animation for collapse */
#collapseExample {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.1s ease-in-out, opacity 0.5s ease-in-out; /* Smooth animation for both */
  opacity: 0;
}

#collapseExample.show {
  max-height: 1000px;
  opacity: 1;
}

@media (min-width: 1440px) {
  .vision-card {
    max-width: 50%;
  }
}

/* Value section */
.values {
  background-color: #fdfdfd;
  color: #393737;
  width: fit;
  margin: auto;
}

.value-grid {
  display: grid;
  width: fit-content;
  max-width: 1200px;
  margin-top: 2rem;
}

.value-grid p {
  font-size: 2rem;
  line-height: 2.5rem;
}

.value-card {
  width: 100%;
  max-width: 378px;
  height: 453px;
  border-radius: 6px;
  border: 1px solid #bfbfbf;
  padding: 8rem 3rem;
  justify-content: space-between;
}

.value-card:hover {
  background-color: #0a4019;
  color: white;
}

.value-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  background-color: #0a4019;
  padding-top: 17rem;
  color: white;
  font-size: 40px;
  line-height: 50px;
}

.value-link:hover {
  background-color: rgb(143, 187, 143);
}

.value-image {
  width: 85px;
}

@media (min-width: 768px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .value-card {
    padding: 4rem 3rem;
    gap: 1rem;
    justify-content: unset;
  }
  .value-grid p {
    font-size: 1.25rem;
    line-height: 2rem;
  }
}

@media (min-width: 1440px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Investors services section */
.services {
  background-color: white;
}

.service-grid {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  margin-top: 4rem;
  margin-bottom: 6rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 564px;
}

.image-wrapper {
  position: relative;
  color: white;
  background-color: #0a4019;
  border-radius: 35px;
  max-height: 642px;
  min-height: 320px;
}

.image-wrapper:hover .services-image {
  opacity: 0;
}

.image-wrapper:hover .hover-text {
  opacity: 1;
}

.hover-text {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  align-items: start;
  font-size: 40px;
  opacity: 0;
  padding: 3rem;
  transition: opacity 0.3s ease;
}

.services-image {
  border-radius: 35px;
  max-height: 642px;
  width: 100%;
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: fit-content;
    gap: 4rem;
  }
}

@media (min-width: 1024px) {
  .service-grid {
    gap: 6rem;
  }
}

/* Approach section */
.approach {
  background-color: #fdfdfd;
}

.approach-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.approach-detail {
  display: none;
  position: relative;
  height: fit-content;
}

.approach-card {
  position: relative;
}

.approach-image {
  height: 600px;
  width: auto;
  max-width: unset;
}

.approach-image-caption {
  background-color: white;
  z-index: 2;
  position: absolute;
  right: 0;
  bottom: -10rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem;
  gap: 1rem;
  width: 90%;
  max-width: 350px;
}

.approach-image-caption hr {
  color: grey;
  width: 30%;
}

@media (min-width: 1024px) {
  .approach-tab {
    justify-content: center;
  }
  .approach-card {
    width: fit-content;
  }
  .approach-image {
    max-width: 100%;
  }
  .approach-image-caption {
    flex-direction: row;
    width: 75%;
    position: absolute;
    bottom: 0;
    right: -2px;
    max-width: 1128px;
    padding: 4rem;
  }
  .approach-image-caption hr {
    display: none;
  }
}
@media (min-width: 1440px) {
  .approach-image {
    height: unset;
  }
}

/* Members section */
.members {
  background-color: white;
}

.become-member-link {
  width: 100%;
  min-width: 50%;
  background-color: #0a4019;
  font-size: 3rem;
  /* font-size: 96px; */
  line-height: 6.25rem;
  padding: 8rem 4rem;
  order: 2;
}

.become-member-link:hover {
  opacity: 75%;
  border: 1px solid #0a4019;
}

.members-image {
  width: 541px;
  order: 1;
}

.members-grid {
  display: grid;
  margin: auto;
  width: fit-content;
  gap: 2rem;
}

.member-card {
  max-width: 410px;
  border-radius: 16px;
  background-color: #fbfbfb;
  border: 1px solid #bfbfbf;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}
.member-card.details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-link {
  border-radius: 53px;
  padding: 15px 35px;
  border: 1px solid #197043;
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  color: black;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.875rem;
}

.member-link:hover {
  color: white;
  background-color: #0a4019;
  border: 1px solid #275c0d;
  border-radius: 50px;
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

@media screen and (min-width: 768px) {
  .members-image {
    display: block;
    max-width: none;
    order: 2;
  }
  .members-grid {
    gap: 0px;
    grid-template-columns: repeat(2, 1fr);
  }
  .become-member-link {
    width: 60%;
    font-size: 4rem;
    order: 1;
  }
}

@media screen and (min-width: 1200px) {
  .become-member-link {
    padding: 4rem 3rem 4rem 14rem;
    font-size: 6rem;
    line-height: 6.25rem;
    width: 54%;
  }
  .members-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
