/* FAQ Page CSS */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  0% {
    max-height: 0;
    opacity: 0;
    transform: scaleY(0.95);
  }
  100% {
    max-height: 500px;
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes slideUp {
  0% {
    max-height: 500px;
    opacity: 1;
    transform: scaleY(1);
  }
  100% {
    max-height: 0;
    opacity: 0;
    transform: scaleY(0.95);
  }
}

header {
  background-color: #000;
  color: #fff;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

nav {
  display: flex;
  gap: 1rem;
  transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: #ccc;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle::before {
  content: '\2630';
  display: inline-block;
  transition: transform 0.3s ease;
}

.menu-toggle.active::before {
  content: '\2715';
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    flex-direction: column;
    background: #000;
    width: 100%;
    padding: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
  }

  nav.active {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-wrapper {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.faq-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-heading h1 {
  font-size: 2.5rem;
  color: #000;
}

.faq-heading p {
  font-size: 1.1rem;
  color: #555;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  animation: fadeIn 0.8s ease-in-out;
  overflow: hidden;
}

.faq-item:hover {
  transform: translateY(-3px);
}

.question {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #111;
}

.answer {
  font-size: 1rem;
  color: #444;
  margin-top: 0.8rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform-origin: top;
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.answer.show {
  max-height: 500px;
  opacity: 1;
  transform: scaleY(1);
}

.answer.hide {
  max-height: 0;
  opacity: 0;
  transform: scaleY(0.95);
}

.question.open i {
  transform: rotate(180deg);
}

footer {
  background-color: #000;
  color: #ccc;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  margin-top: 3rem;
}
