/* style/faq.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #00CED1; /* Turquoise */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #1a1a2e;
  --card-bg-light: #ffffff;
  --border-light: #e0e0e0;
  --hover-bg-light: #f5f5f5;
}

.page-faq {
  background-color: var(--background-dark); /* Body background is dark */
  color: var(--text-light); /* Default text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Desktop: Ensure content is not hidden by fixed header */
}

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* HERO Section Styles */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
}

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

.page-faq__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  color: var(--text-light);
}

.page-faq__hero-description a {
  color: var(--text-light);
  text-decoration: underline;
  font-weight: bold;
}

.page-faq__hero-description a:hover {
  color: #f0f0f0;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #E0B500; /* Slightly darker gold for contrast */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-button:hover {
  background: #FFC107; /* Lighter gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-faq__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: 18px;
  color: #cccccc;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__section-description a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-faq__section-description a:hover {
  text-decoration: underline;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #2a2a4a; /* Slightly lighter dark background for answer */
  color: #e0e0e0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 16px;
}

.page-faq__faq-answer ol, .page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

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

.page-faq__faq-answer h4 {
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

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

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #3a3a5a; /* Darker background for question */
  border: 1px solid #4a4a7a;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-faq__faq-question:hover {
  background: #4a4a6a;
  border-color: #5a5a8a;
}

.page-faq__faq-question:active {
  background: #5a5a7a;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}

.page-faq__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 20px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.page-faq__cta-section {
  padding: 80px 0;
  background: linear-gradient(90deg, #1a1a2e, #2a2a4a);
  text-align: center;
}

.page-faq__cta-content {
  max-width: 800px;
}

.page-faq__cta-title {
  font-size: 40px;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 20px;
  color: #e0e0e0;
  margin-bottom: 40px;
}

.page-faq__cta-button--large {
  padding: 18px 50px;
  font-size: 22px;
  border-radius: 10px;
  background: var(--primary-color);
  color: var(--text-dark); /* Ensure dark text on primary color button */
}

.page-faq__cta-button--large:hover {
  background: #FFC107;
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-faq__main-title {
    font-size: 40px;
  }

  .page-faq__hero-description {
    font-size: 18px;
  }

  .page-faq__section-title {
    font-size: 32px;
  }

  .page-faq__cta-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .page-faq {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding-top: 160px !important; /* Mobile: Ensure hero content is not hidden */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-container {
    padding: 0 15px;
  }

  .page-faq__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-faq__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-faq__faq-list-section {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-faq__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .page-faq__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }

  .page-faq__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

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

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }

  .page-faq__faq-answer p {
    font-size: 15px;
  }

  .page-faq__faq-answer h4 {
    font-size: 16px;
  }

  .page-faq__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__cta-section {
    padding: 50px 0;
  }

  .page-faq__cta-title {
    font-size: 30px;
  }

  .page-faq__cta-description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-faq__cta-button--large {
    padding: 15px 35px;
    font-size: 18px;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}