/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  color: #FFF3E6; /* Text Main color for dark body background */
  background-color: #0D0E12; /* Body background from shared.css */
  font-family: Arial, sans-serif; /* Example font */
  line-height: 1.6;
}

/* Hero Section */
.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  padding-bottom: 40px;
  background-color: #17191F; /* Card BG color for hero section */
  color: #FFF3E6;
}

.page-faq__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 16px;
}

.page-faq__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFB04D; /* Glow color for main title */
}

.page-faq__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF3E6;
}

.page-faq__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  max-width: 100%; /* For button responsiveness */
  box-sizing: border-box; /* For button responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  border: none;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #FFA53A; /* Auxiliary color for text */
  border: 2px solid #FFA53A; /* Auxiliary color for border */
}

.page-faq__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F; /* Card BG color on hover */
}

.page-faq__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-faq__hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Content Section - General */
.page-faq__content-section,
.page-faq__cta-bottom-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background color for main content sections */
  color: #FFF3E6;
}

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

.page-faq__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFB04D; /* Glow color for section titles */
}

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

.page-faq__faq-item {
  background-color: #17191F; /* Card BG color */
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #A84F0C; /* Border color */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFF3E6;
  background-color: #17191F;
  position: relative;
  list-style: none; /* Hide default details marker */
}

/* Hide default details marker for Webkit browsers */
.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFA53A; /* Auxiliary color for toggle icon */
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #FFF3E6;
  line-height: 1.7;
}

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

.page-faq__faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
}

.page-faq__faq-answer .page-faq__btn-primary {
  margin-top: 15px;
}

/* Bottom CTA Section */
.page-faq__cta-bottom-section .page-faq__container {
  text-align: center;
}

.page-faq__cta-bottom-section .page-faq__description {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.page-faq__cta-bottom-section .page-faq__cta-buttons {
  justify-content: center;
}

/* General image responsive styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-faq__hero-content {
    order: 2; /* Content below image on tablet */
  }

  .page-faq__hero-image {
    order: 1; /* Image above content on tablet */
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-faq__section-title {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-faq__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-faq__hero-container {
    padding: 30px 15px; /* Adjust padding for mobile */
    gap: 20px;
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-faq__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    padding: 0 15px; /* Add padding to button container */
    box-sizing: border-box;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important; /* Full width for buttons on mobile */
    max-width: 100% !important;
    padding: 12px 20px !important; /* Adjust padding for mobile buttons */
    font-size: 0.95rem !important;
    white-space: normal !important; /* Ensure text wraps */
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-faq__hero-image img {
    border-radius: 8px;
  }

  /* Content Sections */
  .page-faq__content-section,
  .page-faq__cta-bottom-section {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 15px !important; /* Ensure container has padding */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  /* FAQ List */
  .page-faq__faq-list {
    max-width: 100%;
  }

  .page-faq__faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-faq__faq-toggle {
    font-size: 1.5rem;
  }

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

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

  /* General Images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
}