/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #0d0d0d; /* Matching body background */
  padding-top: 120px; /* Spacing for fixed header on desktop */
}

/* Hero Section for FAQ page */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  padding: 0;
  margin-bottom: 40px;
  overflow: hidden;
}

.page-faq__hero-container {
  position: relative;
  width: 100%;
  height: 350px; /* Adjust height as needed */
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.page-faq__main-title {
  font-size: 3.2em;
  color: #FFCC00; /* Accent color for main title */
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-faq__intro-text {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto;
}

/* Main content area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #0d0d0d; /* Ensure consistent background */
}

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

.page-faq__section-title {
  font-size: 2.2em;
  color: #FFCC00; /* Accent color for section titles */
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-faq__section-title--spacing {
  margin-top: 60px;
}

.page-faq__section-description {
  font-size: 1.1em;
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 40px;
}

/* FAQ List Styles */
.page-faq__faq-list {
  margin-top: 30px;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 204, 0, 0.2); /* Subtle accent border */
}

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

.page-faq__faq-question:hover {
  background: #2a2a2a;
  border-color: #FFCC00;
}

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

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFCC00;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  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: #ffffff;
  transform: rotate(45deg); /* Change to X or rotate for active state */
}

.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: #1a1a1a;
  color: #e0e0e0;
  font-size: 1.05em;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Use !important and large value */
  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 ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
}

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

.page-faq__faq-answer a {
  color: #FFCC00;
  text-decoration: none;
  font-weight: bold;
}

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

/* Call to Action Section */
.page-faq__cta-section {
  background: #1a1a1a;
  padding: 50px 30px;
  text-align: center;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #FFCC00;
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  margin: 10px;
  cursor: pointer;
}

.page-faq__btn-primary {
  background: #FFCC00;
  color: #000000; /* Dark text for light button */
  border: 2px solid #FFCC00;
}

.page-faq__btn-primary:hover {
  background: #e6b800;
  border-color: #e6b800;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-faq__btn-secondary:hover {
  background: #FFCC00;
  color: #000000; /* Dark text for light button */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
}

.page-faq__link-btn {
  color: #FFCC00;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__link-btn:hover {
  color: #ffffff;
}

.page-faq__image-wrapper {
  margin: 20px 0;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 204, 0, 0.2);
}

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__intro-text {
    font-size: 1.1em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__faq-question h3 {
    font-size: 1.1em;
  }
  .page-faq__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }
  .page-faq__faq-answer {
    font-size: 1em;
  }
  .page-faq__cta-title {
    font-size: 2.2em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    padding-top: 100px; /* Spacing for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-container {
    height: 250px;
  }
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__intro-text {
    font-size: 1em;
    padding: 0 10px;
  }
  .page-faq__content-area {
    padding: 30px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-question h3 {
    font-size: 1em;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }
  .page-faq__cta-section {
    padding: 40px 20px;
    margin-top: 40px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 0.95em;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    display: block;
    width: calc(100% - 20px);
    margin: 10px auto;
    font-size: 1em;
    padding: 12px 20px;
  }

  /* Mobile image forced responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__image-wrapper {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }
}