/* style/faq.css */

.page-faq {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 20px 40px;
  text-align: center;
  background: linear-gradient(135deg, #000000, #333333); /* Dark gradient background */
  color: #ffffff; /* Light text for dark background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-faq__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45; /* Highlight with accent color */
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 150px;
  text-align: center;
}

.page-faq__button--register {
  background-color: #FCBC45; /* Login color for Register */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

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

.page-faq__button--login:hover {
  background-color: #333333;
  border-color: #FCBC45;
  color: #FCBC45;
}

.page-faq__hero-image {
  width: 100%;
  max-width: 1200px; /* Ensure image doesn't overflow */
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Accordion Section */
.page-faq__accordion-section {
  background-color: #f8f8f8; /* Light background for content */
  padding: 60px 20px;
}

.page-faq__content-area {
  max-width: 1000px;
  margin: 0 auto;
}

.page-faq__section-title {
  font-size: 2.2em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__accordion-container {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-faq__accordion-item {
  border-bottom: 1px solid #e0e0e0;
}

.page-faq__accordion-item:last-child {
  border-bottom: none;
}

.page-faq__accordion-header {
  font-size: 1.2em;
  padding: 20px 25px;
  background-color: #ffffff;
  color: #000000;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-faq__accordion-header::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-faq__accordion-header.is-active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-faq__accordion-header:hover {
  background-color: #f5f5f5;
}

.page-faq__accordion-content {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background-color: #fdfdfd;
  color: #555555;
}

.page-faq__accordion-content.is-active {
  max-height: 500px; /* Adjust as needed for content height */
  padding: 20px 25px;
}

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

.page-faq__accordion-content p:last-child {
  margin-bottom: 0;
}

.page-faq__accordion-content a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-faq__accordion-content a:hover {
  text-decoration: underline;
}

/* CTA Section */
.page-faq__cta-section {
  background-color: #000000; /* Dark background */
  padding: 60px 20px;
  color: #ffffff;
  text-align: center;
}

.page-faq__cta-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-faq__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-faq__cta-content {
  max-width: 700px;
}

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

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

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

.page-faq__button--contact:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

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

.page-faq__button--play:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}


/* Responsive Design */
@media (min-width: 769px) {
  .page-faq__cta-container {
    flex-direction: row;
    text-align: left;
  }

  .page-faq__cta-content {
    text-align: left;
    margin-left: 40px;
  }
}


@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px 30px;
  }

  .page-faq__main-title {
    font-size: 2em;
  }

  .page-faq__intro-text {
    font-size: 1em;
  }

  .page-faq__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__hero-image {
    max-width: 100%;
    width: 100%; /* Ensure mobile images don't overflow */
    height: auto;
  }

  .page-faq__accordion-section {
    padding: 40px 15px;
  }

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

  .page-faq__accordion-header {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-faq__accordion-content.is-active {
    padding: 15px 20px;
  }

  .page-faq__cta-section {
    padding: 40px 15px;
  }

  .page-faq__cta-title {
    font-size: 1.8em;
  }

  .page-faq__cta-description {
    font-size: 1em;
  }

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

  .page-faq__button--contact,
  .page-faq__button--play {
    margin-right: 0;
    margin-bottom: 0;
  }
  .page-faq__cta-image {
    max-width: 100%;
    width: 100%; /* Ensure mobile images don't overflow */
    height: auto;
  }

  /* Crucial for content images not to overflow on mobile */
  .page-faq img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure all content images meet minimum size requirements */
.page-faq img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensure images fill their space without distortion */
}