/* style/faq.css */

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

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* body padding-top handles header offset; this is for visual spacing below header */
  padding-top: 10px;
  background-color: #0D0E12; /* Ensure background matches body */
}

.page-faq__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Important for flex child */
}

.page-faq__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 100%; /* Ensure image container doesn't overflow */
  overflow: hidden; /* Hide potential overflow */
  box-sizing: border-box;
}

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

.page-faq__hero-content {
  position: relative; /* Keep relative for z-index if needed for other elements later */
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin-top: 30px; /* Positive margin to place it below the image with some space */
  padding: 20px;
  background: rgba(13, 14, 18, 0.7); /* Semi-transparent background for text readability */
  border-radius: 8px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-faq__intro-text {
  font-size: clamp(16px, 2vw, 18px);
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-faq__cta-button:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%); /* Hover effect */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Section */
.page-faq__content-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Ensure background matches body */
}

.page-faq__section-title {
  font-size: clamp(24px, 3vw, 36px);
  color: #FFF3E6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

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

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* Card BG color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: #FFF3E6; /* Text Main */
}

details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: rgba(255, 139, 26, 0.1); /* Lighter orange tint on hover */
  color: #FFA53A; /* Auxiliary color on hover */
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: inherit; /* Inherit color from summary */
}

.page-faq__faq-toggle {
  font-size: 26px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
  color: #FF8C1A; /* Main color when open */
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #17191F; /* Card BG color */
  border-top: 1px solid #A84F0C; /* Border color */
  border-radius: 0 0 8px 8px;
  color: #FFF3E6; /* Text Main */
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #FFF3E6; /* Text Main */
}

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  list-style-position: inside;
  margin-bottom: 15px;
  padding-left: 20px;
  color: #FFF3E6; /* Text Main */
}

.page-faq__faq-answer ol li,
.page-faq__faq-answer ul li {
  margin-bottom: 8px;
  font-size: 16px;
}

.page-faq__faq-answer a {
  color: #FFA53A; /* Auxiliary color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
  color: #FF8C1A; /* Main color on hover */
}

.page-faq__faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 6px;
  object-fit: cover;
  min-width: 200px; /* Min size constraint */
  min-height: 200px; /* Min size constraint */
}

/* Call to Action Section at the bottom */
.page-faq__cta-section {
  text-align: center;
  padding: 50px 20px;
  background: #17191F; /* Card BG color */
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid #A84F0C; /* Border color */
}

.page-faq__cta-title {
  font-size: clamp(22px, 3vw, 32px);
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 17px;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button--secondary {
  background: #FF8C1A; /* Main color */
  color: #ffffff;
  padding: 15px 40px;
  margin-bottom: 15px;
}

.page-faq__cta-button--secondary:hover {
  background: #FFA53A; /* Auxiliary color on hover */
}

.page-faq__cta-register-text {
  font-size: 16px;
  color: #FFF3E6; /* Text Main */
  margin-top: 20px;
}

.page-faq__cta-register-text a {
  color: #FFA53A; /* Auxiliary color for links */
  text-decoration: underline;
  font-weight: bold;
}

.page-faq__cta-register-text a:hover {
  color: #FF8C1A; /* Main color on hover */
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-faq__hero-content {
    margin-top: 30px; /* Ensure no overlap with image */
    padding: 15px;
  }

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

  .page-faq__intro-text {
    font-size: 15px;
  }

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

  .page-faq__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
    flex-wrap: wrap; /* Allow question and toggle to wrap */
  }

  .page-faq__faq-qtext {
    font-size: 15px;
    width: calc(100% - 45px); /* Make space for toggle */
  }

  .page-faq__faq-toggle {
    font-size: 22px;
    margin-left: 10px;
    width: 35px;
    height: 35px;
    line-height: 35px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }

  .page-faq__faq-answer p,
  .page-faq__faq-answer ol li,
  .page-faq__faq-answer ul li {
    font-size: 15px;
  }

  .page-faq__faq-answer img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px; /* Keep min size */
    min-height: 200px; /* Keep min size */
  }

  .page-faq__cta-section {
    padding: 30px 15px;
    margin-top: 30px;
  }

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

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

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

  .page-faq__cta-register-text {
    font-size: 14px;
  }

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

  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

  @media (max-width: 768px) {
    .page-faq img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }

    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    /* Button specific responsive rules for mobile */
    .page-faq__cta-button,
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
    }

    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }

    .page-faq__cta-buttons {
      display: flex;
      flex-direction: column;
    }
  }
}