/* style/faq.css */
.page-faq {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensure page content background is white */
  padding-top: var(--header-offset, 120px); /* Fixed header offset for PC and mobile */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 20px 40px;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF; /* Light text for dark hero background */
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Slightly transparent to let text stand out */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__subtitle {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-faq__button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 150px; /* Ensure buttons are not too small */
  text-align: center;
}

.page-faq__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-faq__button--register:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

.page-faq__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-faq__button--login:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-faq__section-heading {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-faq__section-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-faq__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #555555;
}

.page-faq__accordion-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 50px;
}

.page-faq__category-section {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.page-faq__category-title {
  font-size: 2em;
  color: #000000;
  margin-bottom: 25px;
  text-align: center;
}

.page-faq__category-image {
  width: 100%;
  height: auto;
  max-width: 600px; /* Constrain category image width */
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto 30px;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__accordion-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__accordion-summary {
  display: block;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  position: relative;
  list-style: none; /* Remove default marker */
  outline: none;
  transition: background-color 0.3s ease;
}

.page-faq__accordion-summary:hover {
  background-color: #f0f0f0;
}

.page-faq__accordion-summary::marker, .page-faq__accordion-summary::-webkit-details-marker {
  display: none;
}

.page-faq__accordion-summary::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-faq__accordion-item[open] > .page-faq__accordion-summary::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-faq__accordion-content {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #444444;
  line-height: 1.8;
}

.page-faq__accordion-content p {
  margin-bottom: 10px;
}

.page-faq__accordion-content .page-faq__button--download {
  margin-top: 20px;
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  display: inline-block;
}

.page-faq__accordion-content .page-faq__button--download:hover {
  background-color: #e0a83e;
  border-color: #e0a83e;
}

.page-faq__contact-support-section {
  background-color: #000000; /* Dark background for contact section */
  color: #FFFFFF;
  text-align: center;
  padding: 60px 20px;
  border-radius: 12px;
  margin-top: 60px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

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

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

.page-faq__button--support {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
  font-size: 1.1em;
}

.page-faq__button--support:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-faq__accordion-container {
    grid-template-columns: 1fr 1fr;
  }
  .page-faq__category-section:nth-child(odd) {
    grid-column: 1 / 2;
  }
  .page-faq__category-section:nth-child(even) {
    grid-column: 2 / 3;
  }
}

@media (max-width: 768px) {
  .page-faq {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }
  .page-faq__hero-section {
    padding: 60px 15px 30px;
  }
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__subtitle {
    font-size: 1em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__button {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  .page-faq__section-heading {
    font-size: 2em;
  }
  .page-faq__intro-text {
    font-size: 0.95em;
  }
  .page-faq__category-title {
    font-size: 1.7em;
  }
  .page-faq__accordion-summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-faq__accordion-summary::after {
    right: 20px;
  }
  .page-faq__accordion-content {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }
  .page-faq__contact-title {
    font-size: 2em;
  }
  .page-faq__contact-description {
    font-size: 1em;
  }

  /* Critical: Prevent content overflow for images on mobile */
  .page-faq img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Still ensure minimum size */
    min-height: 200px; /* Still ensure minimum size */
  }
  .page-faq__category-image {
    max-width: 100%; /* Ensure category image doesn't overflow */
  }
  .page-faq__hero-image {
    max-width: 100%; /* Ensure hero image doesn't overflow */
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-heading {
    font-size: 1.8em;
  }
  .page-faq__category-title {
    font-size: 1.5em;
  }
  .page-faq__contact-title {
    font-size: 1.8em;
  }
}