.about {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.section.gray {
  background-color: rgb(245, 245, 245);
}

.section.white {
  background-color: white;
}

.about .headline,
.company-details-container {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 90%;
  margin: 0 auto;
  padding: 60px 0;
}

.about .headline .image,
.company-details-container .image,
.team .image {
  width: 35%;
  object-fit: cover;
}

.about .headline .header,
.team .header {
  color: black;
  font-family: "Quicksand", sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}

.about .headline .details,
.company-details-container .details,
.team .details {
  color: black;
  font-weight: 300;
  font-size: 20px;
}

.about .headline .text,
.company-details-container .text,
.team .text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.certifications {
  margin: 40px 0;
  display: flex;
  align-items: flex-end;
}

.certification i {
  font-size: 45px;
}

.certification img {
  width: 50px;
}

.certification {
  flex: 1;
  color: black;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.core-values-header,
.faqs-header {
  color: black;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  font-size: 50px;
  margin: 30px 0;
}

.horizontal-divider {
  height: 1px;
  background-color: gray;
}

.core-values-container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.core-values {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.core-value {
  flex: 1;
  background-color: rgb(245, 245, 245);
  border: 1px solid lightgray;
  border-radius: 18px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.core-value .header {
  color: black;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  font-size: 20px;
  text-align: center;
}

.core-value .details,
.answer p {
  color: black;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
}

.team {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 90%;
  margin: 0 auto;
  padding: 60px 0;
}

.faqs-container {
  width: 90%;
  margin: 0 auto 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faqs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
  padding-inline-start: 0;
}

.faq {
  border: 1px solid lightgray;
  padding: 25px;
  border-radius: 18px;
  background-color: rgb(245, 245, 245);
  color: black;
  font-weight: 300;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}

.question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.question p {
  font-weight: 500;
  font-size: 24px;
}

.answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.answer p {
  padding-top: 12px;
}

.faq.active .answer {
  max-height: 100vh; 
  animation: fade 0.3s ease-in-out;
}

.faq.active .arrow {
  transform: rotate(225deg);
}

.arrow {
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 5.7px;
  height: 15px;
  transform: rotate(45deg);
  transition: transform 0.5s ease-in;
}

/* adding the fade in effect for faqs */
@keyframes fade  {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

.faq:hover {
  box-shadow: 0px 0px 5px 2px rgba(211, 211, 211, 0.75);
  cursor: pointer;
}

@media (max-width: 1040px) {
  .about .headline .header,
  .team .header {
    font-size: 26px;
  }

  .about .headline .details,
  .company-details-container .details,
  .team .details {
    font-size: 17px;
  }

  .core-values {
    flex-wrap: wrap;
  }

  .core-value {
    flex: initial;
    width: 47%;
  }
}

@media (max-width: 910px) {
  .about .headline,
  .company-details-container,
  .team {
    flex-direction: column;
  }

  .certifications {
    flex-wrap: wrap;
  }

  .certification {
    flex: initial;
    width: 50%;
    margin-bottom: 35px;
  }

  .certification img {
    width: 36px;
  }

  /* Change the orders so that the text is shown above the image */
  .about .headline .text,
  .company-details-container .text,
  .team .text {
    order: 0;
  }

  .about .headline .image,
  .company-details-container .image,
  .team .image {
    order: 1;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .core-value {
    width: 100%;
  }

  .core-values-header,
  .faqs-header {
    font-size: 36px;
  }

  .question p {
    font-size: 20px;
  }
}
