/* style/faq.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Dodger Blue */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f5f5f5;
  --background-dark: #2c3e50;
  --border-color: #e0e0e0;
}

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

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

.page-faq-section {
  padding: 60px 0;
}

.page-faq-hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.page-faq-hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-faq-hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.page-faq-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-color-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-faq-main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-color-light);
  font-weight: bold;
}

.page-faq-subtitle {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq-section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-faq-section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-faq-section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-color-dark);
}

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

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

/* FAQ Specific Styles */
.page-faq-list-section {
  background-color: #ffffff;
}

.page-faq-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.faq-item.active {
  border-color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f9f9f9;
}

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

.faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

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

.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);
}

.faq-item.active .faq-answer {
  max-height: 1000px; /* Adjust as needed for content height */
  padding: 20px 25px;
}

.faq-answer p {
  margin-bottom: 15px;
  color: var(--text-color-dark);
}

.faq-answer ul,
.faq-answer ol {
  margin-left: 25px;
  margin-bottom: 15px;
  color: var(--text-color-dark);
}

.faq-answer li {
  margin-bottom: 8px;
}

.faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.faq-answer a:hover {
  text-decoration: underline;
}

.page-faq-contact-cta {
  background-color: var(--background-dark);
  color: var(--text-color-light);
  text-align: center;
}

.page-faq-contact-cta .page-faq-section-title {
  color: var(--primary-color);
}

.page-faq-contact-cta .page-faq-section-title::after {
  background: var(--text-color-light);
}

.page-faq-contact-cta .page-faq-section-description {
  color: var(--text-color-light);
}

.page-faq-contact-button {
  background: var(--secondary-color);
  color: var(--text-color-light);
  margin-right: 20px;
}

.page-faq-contact-button:hover {
  background: var(--primary-color);
  color: var(--text-color-dark);
}

.page-faq-register-button {
  background: var(--primary-color);
  color: var(--text-color-dark);
}

.page-faq-register-button:hover {
  background: var(--secondary-color);
  color: var(--text-color-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq-main-title {
    font-size: 2.8em;
  }
  .page-faq-subtitle {
    font-size: 1.2em;
  }
  .page-faq-section-title {
    font-size: 2em;
  }
  .faq-question h3 {
    font-size: 1.15em;
  }
}

@media (max-width: 768px) {
  .page-faq-hero {
    padding: 40px 15px;
  }
  .page-faq-main-title {
    font-size: 2.2em;
  }
  .page-faq-subtitle {
    font-size: 1em;
  }
  .page-faq-section {
    padding: 40px 0;
  }
  .page-faq-section-title {
    font-size: 1.8em;
  }
  .page-faq-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .faq-question {
    padding: 15px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .faq-question h3 {
    margin-bottom: 10px;
    font-size: 1.1em;
  }
  .faq-toggle {
    align-self: flex-end;
    margin-top: -30px; /* Adjust to position correctly */
    margin-left: 0;
    font-size: 1.8em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-faq-contact-button {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .page-faq-main-title {
    font-size: 1.8em;
  }
  .page-faq-subtitle {
    font-size: 0.9em;
  }
  .page-faq-section-title {
    font-size: 1.5em;
  }
  .page-faq-cta-button {
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
  .page-faq-contact-button {
    margin-bottom: 15px;
  }
}