/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default text color, ensuring contrast with dark body background */
  background-color: var(--bg-color, #08160F);
}

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

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding for the first section */
  padding-bottom: 60px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  z-index: 1;
  max-height: 500px; /* Limit hero image height */
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 800px;
  margin-top: -100px; /* Adjust to place content slightly over the image, but not covering text */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 1) 100%);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3em);
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1em;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-faq__section {
  padding: 60px 0;
  background-color: var(--bg-color, #08160F);
}

.page-faq__section-title {
  font-size: 2.5em;
  color: var(--text-main-color, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 10px;
}

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

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

.page-faq__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  border: 1px solid var(--border-color, #2E7A4E);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  background-color: var(--card-bg-color, #11271B);
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: var(--deep-green-color, #0A4B2C);
  border-bottom: 1px solid var(--main-color, #11A84E);
}

.page-faq__faq-question:hover {
  background-color: var(--deep-green-color, #0A4B2C);
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--main-color, #11A84E);
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Change '+' to 'x' or similar on open */
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
  background-color: var(--card-bg-color, #11271B);
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__image--left {
  float: left;
  margin-right: 30px;
  max-width: 400px;
  margin-bottom: 30px;
}

.page-faq__image--right {
  float: right;
  margin-left: 30px;
  max-width: 400px;
  margin-bottom: 30px;
}

.page-faq__registration-section .page-faq__container,
.page-faq__games-section .page-faq__container,
.page-faq__support-section .page-faq__container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
}

.page-faq__registration-section .page-faq__image,
.page-faq__games-section .page-faq__image,
.page-faq__support-section .page-faq__image {
  flex: 1 1 400px; /* Allow image to grow/shrink, base at 400px */
  max-width: 45%; /* Limit width */
  margin-bottom: 0;
}

.page-faq__registration-section .page-faq__faq-list,
.page-faq__games-section .page-faq__faq-list,
.page-faq__support-section .page-faq__faq-list {
  flex: 1 1 600px; /* Allow faq list to grow/shrink, base at 600px */
  max-width: 55%; /* Limit width */
}

.page-faq__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: #ffffff;
  color: var(--main-color, #11A84E);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid var(--main-color, #11A84E);
  margin-top: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary:hover {
  background-color: var(--main-color, #11A84E);
  color: #ffffff;
}

.page-faq__cta-section {
  background-color: var(--deep-green-color, #0A4B2C);
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid var(--divider-color, #1E3A2A);
}

.page-faq__cta-title {
  font-size: 2.2em;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    margin-top: -80px;
  }

  .page-faq__image--left,
  .page-faq__image--right {
    max-width: 100%;
    float: none;
    margin: 0 auto 30px auto;
  }

  .page-faq__registration-section .page-faq__image,
  .page-faq__games-section .page-faq__image,
  .page-faq__support-section .page-faq__image {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .page-faq__registration-section .page-faq__faq-list,
  .page-faq__games-section .page-faq__faq-list,
  .page-faq__support-section .page-faq__faq-list {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__hero-section {
    padding-bottom: 40px;
  }

  .page-faq__hero-image {
    max-height: 300px;
  }

  .page-faq__hero-content {
    margin-top: -60px;
    padding: 15px;
  }

  .page-faq__main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

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

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

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

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

  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  .page-faq__image {
    max-width: 100% !important;
    height: auto !important;
    display: block !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;
  }
  
  .page-faq__cta-section {
    padding: 50px 20px;
  }

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

  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__registration-section .page-faq__faq-list,
  .page-faq__games-section .page-faq__faq-list,
  .page-faq__support-section .page-faq__faq-list {
    max-width: 100%;
  }

  .page-faq__registration-section .page-faq__image,
  .page-faq__games-section .page-faq__image,
  .page-faq__support-section .page-faq__image {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-content {
    margin-top: -40px;
  }

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

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

  .page-faq__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-faq__faq-answer {
    font-size: 0.9em;
    padding: 12px 15px;
  }

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