@import url("https://fonts.googleapis.com/css2?family=Overpass:wght@200;400;600;700&display=swap");

* {
  margin: 0%;
  padding: 0%;
  box-sizing: border-box;
  font-family: "Overpass", sans-serif;
}
body {
  background-color: aliceblue;
}
body section .heroBg {
  height: 50vh;
  width: 100%;
  background-color: #7f53ac;
  background-image: linear-gradient(315deg, #7f53ac 0%, #647dee 74%);
  clip-path: ellipse(100% 90% at 50% 2%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
body section .heroBg article {
  text-align: center;
  margin-bottom: 3rem;
}
body section .heroBg article h1 {
  font-size: 4rem;
}
body section .faqCont {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0.5rem;
  margin-top: -5.8rem;
  transform: translateZ(10px);
  margin-bottom: 1rem;
}
body section .faq {
  background-color: #fff;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  margin: 1rem 0;
  border-radius: 0.35rem;
}
body section .faq .questionCont {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
body section .faq .questionCont .question p {
  line-height: 1.5;
  font-size: 1rem;
  color: rgb(92, 92, 92);
  transition: 0.3s ease color;
}
body section .faq .questionCont .icon button {
  border: none;
  outline: none;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.5s ease transform;
}
body section .faq .questionCont .icon button ion-icon {
  font-size: 1.2rem;
}
.answerCont {
  max-height: 0;
  overflow: hidden;
  transition: 0.8s ease;
}
body section .faq .answerCont .answer {
  padding: 2rem;
  padding-top: 0;
}
body section .faq .answerCont .answer p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Active FAQ */

body section .faq.active .answerCont {
  max-height: 200px;
}
body section .faq.active .questionCont .question p {
  color: #647dee;
}
body section .faq.active .questionCont .icon button {
  transform: rotate(-180deg);
}

/* Ripple Effect */
@keyframes rippleEffect {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 1000px) {
  body section .faqCont {
    margin-top: -6rem;
  }
}

@media (max-width: 800px) {
  body section .faqCont {
    margin-top: -7rem;
  }
}
@media (max-width: 500px) {
  body section .heroBg {
    clip-path: ellipse(140% 85% at 50% 2%);
  }
  body section .faqCont {
    margin-top: -7.5rem;
  }
}
