/* style/faq.css */

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

.page-faq__hero-section {
  background-color: #f8f8f8;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-faq__hero-title {
  font-size: 3.2em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-faq__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

.page-faq__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 180px;
  text-align: center;
}

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

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

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

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

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-faq__section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

.page-faq__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.page-faq__faq-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-faq__question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 10px;
}

.page-faq__question::after {
  content: '+';
  font-size: 1.2em;
  font-weight: bold;
  color: #FCBC45;
  transition: transform 0.3s ease;
}

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

.page-faq__answer {
  font-size: 1.1em;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  padding-left: 10px;
}

.page-faq__answer.active {
  max-height: 300px; /* Adjust as needed for content length */
  padding-top: 10px;
}

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

.page-faq__answer a {
  color: #000000;
  text-decoration: underline;
}

.page-faq__answer a:hover {
  color: #FCBC45;
}

.page-faq__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-faq__support-section {
  text-align: center;
}

.page-faq__support-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__support-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

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

.page-faq__button--responsible-gaming:hover {
  background-color: #333333;
  border-color: #333333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq {
    padding-top: var(--header-offset-mobile, 80px);
  }

  .page-faq__hero-section {
    padding: 60px 15px;
  }

  .page-faq__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-faq__button {
    width: 100%;
    min-width: unset;
  }

  .page-faq__section {
    margin: 40px auto;
    padding: 0 15px;
  }

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

  .page-faq__question {
    font-size: 1.2em;
    padding-right: 5px;
  }

  .page-faq__answer {
    font-size: 0.95em;
  }

  .page-faq__image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }

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

  .page-faq__support-cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }

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

  .page-faq__question {
    font-size: 1.1em;
  }

  .page-faq__faq-item {
    padding: 20px;
  }

  .page-faq__button {
    padding: 12px 20px;
    font-size: 1em;
  }
}