/* style/faq.css */

:root {
  --primary-color: #3A0CA3;
  --secondary-color: #FFD700;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #2c2c2c;
  --border-color: #e0e0e0;
  --hover-color: #4e19b8;
}

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

.page-faq .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-faq .hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
  padding: 80px 20px;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-faq .hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  transform: rotate(45deg);
  opacity: 0.2;
  z-index: 0;
}

.page-faq .hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-faq .hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: bold;
}

.page-faq .hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--secondary-color);
}

.page-faq .cta-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--text-light);
}

.page-faq .faq-section {
  padding: 60px 20px;
  background-color: var(--background-light);
}

.page-faq .section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq .section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq .faq-item {
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-faq .faq-item:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-faq .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-faq .faq-question:hover {
  background-color: #f5f5f5;
}

.page-faq .faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--primary-color);
  font-weight: 600;
  flex-grow: 1;
}

.page-faq .faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-faq .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: var(--background-light);
  color: var(--text-dark);
}

.page-faq .faq-answer p {
  margin-bottom: 15px;
  padding-bottom: 5px;
  font-size: 1.05em;
}

.page-faq .faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-faq .faq-answer ol {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-faq .faq-answer li {
  margin-bottom: 8px;
  font-size: 1.05em;
}

.page-faq .faq-item.active .faq-answer {
  max-height: 800px; /* Adjust as needed for content length */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

.page-faq .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.page-faq .download-app-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.95em;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-faq .download-app-button:hover {
  background: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-faq .hero-title {
    font-size: 2.8em;
  }

  .page-faq .hero-description {
    font-size: 1.1em;
  }

  .page-faq .section-title {
    font-size: 2em;
  }

  .page-faq .faq-question h3 {
    font-size: 1.15em;
  }
}

@media (max-width: 768px) {
  .page-faq .hero-section {
    padding: 60px 15px;
  }

  .page-faq .hero-title {
    font-size: 2.2em;
  }

  .page-faq .hero-description {
    font-size: 1em;
  }

  .page-faq .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-faq .faq-section {
    padding: 40px 15px;
  }

  .page-faq .section-title {
    font-size: 1.8em;
  }

  .page-faq .section-description {
    font-size: 0.95em;
  }

  .page-faq .faq-question {
    padding: 15px 20px;
  }

  .page-faq .faq-question h3 {
    font-size: 1em;
  }

  .page-faq .faq-toggle {
    font-size: 1.5em;
  }

  .page-faq .faq-answer {
    padding: 0 20px;
  }

  .page-faq .faq-item.active .faq-answer {
    padding: 15px 20px;
  }

  .page-faq .faq-answer p, .page-faq .faq-answer li {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-faq .hero-title {
    font-size: 1.8em;
  }

  .page-faq .cta-button {
    width: 100%;
    max-width: 250px;
  }

  .page-faq .section-title {
    font-size: 1.5em;
  }

  .page-faq .faq-question h3 {
    font-size: 0.95em;
  }
}