@import url(./layout.css);
@import url(./fonts.css);
@import url(./typo.css);

nav {
  position: relative;
  display: flex;
  flex-direction: row;
  list-style: none;
  height: 100%;
  align-items: center;
  justify-content: center;
}

nav a {
  width: calc(var(--nav-width) / var(--nav-items));
  text-align: center;
  padding: 12px 16px;
  margin: 0 2px;
  font-weight: 400;
  font-size: var(--nav-font-size);
  text-decoration: none;
  color: unset;
}

button {
  position: relative;
  padding: 12px 16px;
  font-family: var(--poppins-font);
  font-weight: 500;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  gap: 12px;
  display: flex;
  align-items: center;
}

button img {
  width: 15px;
  height: 15px;
}

.button-group {
  display: flex;
  flex-direction: row;
  gap: 14px;
}

.green-btn {
  background-color: var(--nigerian-green);
  color: var(--white);
}

.white-btn {
  background-color: var(--white);
  color: var(--nigerian-green);
  border: 1px solid var(--nigerian-green);
}

.active {
  color: var(--nigerian-green);
}

/* Index page */
.hero {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 48px;
  margin-top: 45px;
}

.hero > * {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: flex-start;
}

.hero-desc {
  align-items: flex-start;
  width: 626px;
}

.hero-img {
  width: 626px;
  align-items: center;
}

.hero-img > img {
  width: 100%;
  height: 512px;
}

.hero-heading {
  width: 576px;
}

.hero-heading > * {
  margin: 20px 0;
}

.hero-heading h3 {
  font-size: 48px;
  line-height: 56px;
}

.hero-heading h3 span {
  color: var(--nigerian-green);
}

.hero-heading h5 {
  font-size: 32px;
  line-height: 40px;
}

.access-list {
  background-color: #0d4721;
  height: 623px;
  padding: 40px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.access-list .container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin: 0 auto;
}

.list-children {
  width: 435px;
  height: 288px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 0.3px solid var(--nigerian-green);
  padding: 24px 18px;
  border-radius: 12px;
  gap: 24px;
}

.list-children:hover {
  border: 1.5px solid #1b7339;
  box-shadow: 0px 4px 16px -2px #02a55626;
}

.list-children button {
  background-color: transparent;
  color: var(--white);
  cursor: pointer;
}
.list-children button img {
  width: 15px;
  height: 15px;
}

/* .list-children img {
  width: 100%;
} */

.list-children h4 {
  font-size: 18px;
  color: var(--white);
  padding: 0 18px;
  font-weight: 500;
}

.list-children p {
  font-size: 15px;
  font-weight: 300;
  padding: 0 18px;
  color: var(--white);
}

footer .content {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  height: 344px;
  gap: 24px;
}

.content-children {
  min-width: 320px;
  height: 100%;
}

.content-children h6 {
  padding: 8px;
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
}

.content-children p,
.content-children a {
  font-weight: 300;
  font-size: 16px;
  padding: 8px;
  color: var(--white);
}

.copy {
  font-size: 16px;
  color: var(--white);
  font-weight: 300;
}

.faq-section {
  width: calc(var(--child-width) + 400px);
  margin: 0 auto;
}

.faq-section > h2 {
  margin: 20px 0;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: none;
  background-color: #fff;
  color: #8c8c8c;
  padding: 15px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #d0e8d5;
  color: #333;
}

.faq-question:after {
  content: "\25BC"; /* down arrow */
  font-size: 12px;
}

.faq-question.active:after {
  content: "\25B2"; /* up arrow */
}

.faq-question.active {
  background-color: var(--nigerian-green);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  min-height: 0;
  overflow: hidden;
  background-color: #ecebeb;
  color: #666;
  font-size: 14px;
  border-top: none;
  transition: max-height 0.5s ease, min-height 0.5s ease, padding 0.5s ease;
}

.faq-answer p {
  margin-bottom: 0;
}

.faq-answer.open {
  max-height: 400px;
  min-height: 200px;
  padding: 15px;
}

/* about page */
.page-topic {
  min-height: 272px;
  background-color: var(--nigerian-green);
  padding: 80px;
}

.page-topic > * {
  margin: 10px 0;
}

.page-topic h3 {
  font-size: 46px;
  line-height: 56px;
  font-weight: 700;
  font-family: var(--poppins-font);
}

.about-content {
  padding: 80px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  min-height: 100vh;
  width: var(--container-width);
  gap: 80px;
}

.sidebar {
  min-height: 100vh;
  width: 172px;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
}

.sidebar a {
  font-size: 24px;
  font-weight: 600;
  padding: 16px;
  color: none;
  text-decoration: none;
}

.sidebar a:not(.active) {
  color: #1b1f26b8;
}

.sidebar hr {
  color: var(--nigerian-green);
  border-top: 3px solid var(--nigerian-green);
  margin: 16px 0;
}

.descriptions {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
}

.descriptions h3 {
  color: var(--nigerian-green);
  font-weight: 500;
  font-size: 32px;
}

.descriptions p {
  font-weight: 400;
  color: #3e4a5b;
  font-size: 18px;
  line-height: 28px;
}

.descriptions ul {
  margin-left: 35px;
}

.descriptions li {
  font-weight: 400;
  color: #3e4a5b;
  font-size: 18px;
  line-height: 28px;
  padding-left: 14px;
}

/* contact us page */
.top-cards {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.top-cards .card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  padding: 30px 24px;
  gap: 14px;
  box-shadow: 0px 4px 16px -2px #1b253314;
  border: 0.2px solid #a9b1bd;
  width: 435px;
  height: 222px;
}

.card h4 {
  font-weight: 600;
  font-size: 31px;
  color: #02a556;
}

.card p {
  font-weight: 300;
  font-size: 16px;
  color: #3e4a5b;
}

.contact-space {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 60px;

  border-radius: 8px;
  margin-bottom: 100px;
  margin-top: 100px;
}

.contact-map {
  width: 620px;
}

.contact-map img {
  width: 100%;
}

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px;
  gap: 40px;
  width: 620px;
  box-shadow: 0px 4px 16px -2px #1b253314;
  border: 0.2px solid #a9b1bd;
  border-radius: 8px;
}

.form-field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  gap: 8px;
}

.form-field label {
  font-size: 16px;
  font-weight: 400;
  color: #3e4a5b;
}

.form-field input,
.form-field textarea {
  border: 1px solid #c5c9cf;
  padding: 16px;
  width: 100%;
  border-radius: 8px;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #a9afb8;
  font-size: 16px;
  font-weight: 400;
}

.contact-form button {
  background-color: var(--nigerian-green);
  color: var(--white);
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 400;
}

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.dot {
  height: 15px;
  width: 15px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #3bb75e;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.typewrite {
  animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: black;
  }
}

#sudtitle,
#description {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.fade-in {
  opacity: 1 !important;
}
