/* style/faq.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000000; /* Black */
  --accent-color: #FF0000; /* Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark-card: rgba(255, 255, 255, 0.08);
  --border-color: #444;
}

.page-faq {
  color: var(--text-light); /* Default text color for dark body background */
  background-color: transparent; /* Body background from shared.css */
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-faq__hero-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--secondary-color); /* Black background for hero */
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-faq__highlight {
  color: var(--primary-color);
}

.page-faq__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

.page-faq__cta-button {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-faq__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button--secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-faq__cta-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-faq__faq-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
  color: var(--text-light);
}

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

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-color);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.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; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: var(--text-light);
  transform: rotate(180deg);
}

.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;
  color: #e0e0e0;
  font-size: 16px;
  line-height: 1.7;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0 0 8px 8px;
}

.page-faq__faq-answer p {
  margin: 0;
  padding: 0;
}

.page-faq__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #e6c200;
}

.page-faq__cta-bottom {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-color);
}

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

.page-faq__cta-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq {
    padding-top: 100px; /* Adjust for fixed header on mobile */
  }

  .page-faq__hero-section,
  .page-faq__cta-bottom {
    padding: 60px 15px;
  }

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

  .page-faq__description {
    font-size: 16px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px;
    padding: 12px 25px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-faq__faq-section {
    padding: 40px 0;
  }

  .page-faq__section-title {
    font-size: 28px;
    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 {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 10px;
  }

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

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

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

  .page-faq__cta-description {
    font-size: 16px;
  }

  /* General image/video responsiveness for all images/videos within .page-faq */
  .page-faq img,
  .page-faq video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__container,
  .page-faq__faq-list,
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 30px;
  }
  .page-faq__section-title {
    font-size: 24px;
  }
  .page-faq__cta-title {
    font-size: 26px;
  }
  .page-faq__faq-question h3 {
    font-size: 15px;
  }
  .page-faq__faq-toggle {
    font-size: 22px;
    width: 26px;
    height: 26px;
  }
}