/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is #000 from shared.css */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Space for fixed header on desktop */
}

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

.page-faq a {
  color: #FFD700; /* Gold links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq a:hover {
  color: #ffa500; /* Darker gold on hover */
  text-decoration: underline;
}

.page-faq__main-heading {
  font-size: 42px;
  font-weight: bold;
  color: #FFD700; /* Gold for main heading */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #FFD700; /* Gold for section titles */
  text-align: center;
  margin: 60px 0 30px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-faq__category-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700; /* Gold for category titles */
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.page-faq__intro-text {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0; /* Light grey for intro text */
}

/* Hero Intro Section */
.page-faq__hero-intro-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #1A1A1A, #000000); /* Dark gradient background */
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-faq__hero-intro-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Call to action buttons */
.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-faq__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.page-faq__btn--primary {
  background-color: #FFD700; /* Gold background */
  color: #1A1A1A; /* Dark text for gold background */
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-faq__btn--primary:hover {
  background-color: #ffa500; /* Darker gold on hover */
  color: #000000;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}

.page-faq__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.page-faq__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 20px;
  background-color: #1A1A1A; /* Dark background for FAQ content */
}

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

.page-faq__category {
  margin-bottom: 50px;
}

/* FAQ item styles */
.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for items */
  border: 1px solid rgba(255, 215, 0, 0.1);
}

/* FAQ default state - answer hidden */
.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 20px;
  opacity: 0;
  color: #f0f0f0; /* Light grey text for answers */
  background: rgba(255, 255, 255, 0.03);
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* 🚨 Ensure it can expand for any content */
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 215, 0, 0.15);
}

/* Question styles */
.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter for question background */
  border-radius: 5px;
  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.12);
}

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

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

/* Toggle icon */
.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: #ffa500; /* Darker gold when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Contact Support Section */
.page-faq__contact-support {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #000000, #1A1A1A); /* Dark gradient */
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  margin-top: 60px;
}

.page-faq__contact-support .page-faq__section-title {
  margin-top: 0;
  color: #FFD700;
}

.page-faq__contact-support .page-faq__intro-text {
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__main-heading {
    font-size: 36px;
  }
  .page-faq__section-title {
    font-size: 28px;
  }
  .page-faq__category-title {
    font-size: 22px;
  }
  .page-faq__intro-text {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-faq__main-heading {
    font-size: 30px;
  }
  .page-faq__section-title {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .page-faq__category-title {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-faq__intro-text {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-faq__hero-intro-section {
    padding: 60px 15px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-faq__faq-list-section {
    padding: 40px 15px;
  }
  .page-faq__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-faq__faq-question h3 {
    font-size: 15px;
    width: calc(100% - 40px); /* Adjust width for toggle icon */
  }
  .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__contact-support {
    padding: 40px 15px;
    margin-top: 40px;
  }

  /* 🚨 Mobile image responsiveness (mandatory) */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__hero-intro-section,
  .page-faq__faq-list-section,
  .page-faq__faq-list-container,
  .page-faq__category,
  .page-faq__faq-item,
  .page-faq__contact-support {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no horizontal scroll for image containers */
.page-faq__hero-intro-container,
.page-faq__faq-list-container,
.page-faq__category,
.page-faq__contact-support {
  overflow: hidden;
}