/**foundation page **/

body {
  background-color: aliceblue;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  background-color: #151370;
  color: white;
  padding: 0.6rem;
  text-align: center;
}

header h1 {
  font-size: 35px;
}

nav ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

#intro {
  padding-top: 20px;
  margin-left: 300px;
  margin-right: 300px;
  text-align: justify;
}

div ul {
  margin: auto;
  text-align: justify;
}

main {
  padding-top: 50px;
  margin-left: 300px;
  margin-right: 300px;
}

#subjects {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

section {
  flex: 1 1 45%;
  margin: 20px;
  padding: 20px;
  border: 1px solid #66ac4c;
  border-radius: 20px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.3s, background-color 1s;
  position: relative;
}

section:hover {
  transform: scale(1.035);
  box-shadow: 0 0 20px rgba(0, 0, 0, 1);
  background-color: #023c6c;
}

section:hover h2 {
  color: white;
}

section:hover p {
  color: white;
}

section:hover ul {
  color: white;
}

section:hover h3 {
  color: white;
}

/* Mentor */
#mentors {
  margin-left: 300px;
  padding-top: 50px;
}

#mentors-section {
  padding: 10px;
  margin: 0 300px 0 300px;
  display: flex;
  justify-content: space-between;
  text-align: center;
  flex-wrap: nowrap;
}

.mentor {
  flex: 1;
  margin: 5px;
  border: 1px solid #66ac4c;
  border-radius: 20px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.5s;
}

.mentor:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 0, 0, 1);
}

.mentor img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.mentor-name {
  margin-top: 10px;
  font-weight: bold;
}

p.mentor-name {
  margin-bottom: -6px;
}

/*** Testimonial ***/

.testimonials-name {
  color: #ffffff;
}

.testimonials {
  padding: 40px 0;
  background: #023c6c;
  color: #434343;
  text-align: center;
}

.inner {
  max-width: 1400px;
  margin: auto;
  overflow: hidden;
  padding: 0 20px;
}

.border {
  width: 160px;
  height: 5px;
  background: #ffffff;
  margin: 26px auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.col {
  flex: 25%;
  max-width: 25%;
  box-sizing: border-box;
  padding: 15px;
}

.testimonial {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
}

.testimonial img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.name {
  font: bolder;
  font-family: "Times New Roman", Times, serif;
  font-size: 25px;
  text-transform: uppercase;
  margin: 20px 0;
}

@media screen and (max-width: 960px) {
  .col {
    flex: 100%;
    max-width: 80%;
  }
}

@media screen and (max-width: 600px) {
  .col {
    flex: 100%;
    max-width: 100%;
  }
}

/* Frequently Asked Questions */
#faqs {
  padding-top: 50px;
  margin-left: 300px;
}

#faq {
  border: 1px solid #ffffff;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.5s, background-color 0.5s;
  position: relative;
  padding: 10px 20px;
  margin-bottom: 70px;
  margin-left: 300px;
  margin-right: 300px;
  max-width: 1200px;
  text-align: justify;
}

#faq:hover {
  transform: none;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.8);
  background-color: transparent;
}

#faq:hover h2,
#faq:hover p {
  color: inherit;
}

#faq:hover ul {
  color: inherit;
}

#faq .faq-item {
  margin-bottom: 10px;
}

#faq .faq-question {
  background-color: #66ac4c;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
}

#faq .faq-answer {
  text-align: left;
  margin-top: 2px;
  display: none;
  padding: 1px;
  border: 1px solid #66ac4c;
}

#faq .faq-answer p {
  margin-left: 5px;
  margin-right: 5px;
}

#faq .faq-answer:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  background-color: #023c6c;
  color: white;
}

/* Footer */
footer {
  background-color: #023c6c;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  bottom: 0;
}

footer p {
  color: white;
}

/* Responsive Design */
@media (max-width: 1280px) {
  header {
    flex-direction: column;
  }

  #intro,
  main,
  #faq,
  #faqs,
  #mentors {
    margin-left: 10px;
    margin-right: 10px;
  }

  section {
    flex: 1 1 100%;
    margin-left: 0;
    margin-right: 0;
  }

  #mentors-section {
    margin: 20px 10px;
    flex-wrap: nowrap;
  }

  .mentor {
    flex: 1 1 45%;
  }

  .faq-question {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 24px;
  }

  nav ul {
    font-size: 14px;
  }

  nav ul li {
    margin: 5px 0;
  }

  section {
    margin: 10px 0;
  }

  .mentor {
    flex: 1 1 100%;
  }

  #intro,
  main,
  #faq {
    padding: 10px;
  }
}
