/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #000000; /* Inherited from shared.css, but ensure consistency */
}

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

.page-faq h1, .page-faq h2, .page-faq h3 {
  color: #FFD700; /* Gold for headings */
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-faq p {
  margin-bottom: 15px;
}

.page-faq__text-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__text-link:hover {
  color: #f0f0f0;
  text-decoration: underline;
}

.text-highlight {
  color: #FFD700;
}

/* Buttons */
.page-faq__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: #FFD700; /* Gold */
  color: #000000; /* Dark text for gold background */
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-faq__btn-primary:hover {
  background-color: #e6c200; /* Darker gold */
  color: #000000;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-faq__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000; /* Dark text for gold background */
  transform: translateY(-2px);
}

/* Hero Banner Section */
.page-faq__hero-banner {
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Brand colors gradient */
  padding-top: 10px; /* Clear fixed header */
  margin-top: 0;
  padding-bottom: 60px;
  text-align: center;
  color: #ffffff;
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for content */
}

.page-faq__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-faq__section-description {
  font-size: 1.05em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

/* FAQ Item Styles */
.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background-color: #1a1a1a; /* Darker background for FAQ items */
  border: 1px solid #333;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #222222; /* Darker background for question */
  border-bottom: 1px solid #333;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-question:hover {
  background: #333333;
  border-color: #444;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold text for question */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  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: 28px;
  height: 28px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Rotate to form an 'X' or just change to '-' */
}

.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: #f0f0f0; /* Light text for answer */
  background-color: #1a1a1a;
}

.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: #1a1a1a;
  border-radius: 0 0 8px 8px;
}

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

.page-faq__faq-answer .page-faq__btn-secondary {
  margin-top: 10px;
}

/* Call to Action Section */
.page-faq__cta-section {
  padding: 80px 0;
  text-align: center;
  background: #8B0000; /* Dark Red background */
  color: #ffffff; /* White text for dark red background */
}

.page-faq__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-faq__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
  .page-faq__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 15px;
    line-height: 1.5;
  }
  
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__hero-banner,
  .page-faq__faq-section,
  .page-faq__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 10px !important; /* Ensure content clears fixed header */
  }

  .page-faq__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

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

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

  .page-faq__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-faq__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-faq__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-faq__faq-answer {
    padding: 0 15px;
  }
  
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px !important;
  }

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

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

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

  .page-faq__btn-primary, .page-faq__btn-secondary {
    width: 100%;
    padding: 15px 20px;
  }

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

  .page-faq__hero-banner,
  .page-faq__faq-section,
  .page-faq__cta-section,
  .page-faq__hero-content,
  .page-faq__faq-list,
  .page-faq__cta-section .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__cta-title {
    font-size: 1.6em;
  }
}