/* style/faq.css */
.page-faq {
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --background-color-dark: #08160F;
  --card-bg-color: #11271B;
  --border-color: #2E7A4E;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;

  color: var(--text-main-color); /* Default text color for the page */
  background-color: var(--background-color-dark);
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: var(--background-color-dark);
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the background image for text readability */
}

.page-faq__hero-content {
  position: relative; /* Ensure content is above image but not overlapping */
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-faq__description {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  line-height: 1.6;
  margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-faq__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
}

.page-faq__btn-secondary {
  background: var(--card-bg-color);
  color: var(--text-main-color);
  border: 2px solid var(--border-color);
}

.page-faq__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: var(--deep-green-color);
  border-color: var(--glow-color);
  color: var(--glow-color);
}

.page-faq__section {
  padding: 80px 0;
  background-color: var(--background-color-dark);
}

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

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 60px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-faq__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-faq__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-faq__text-block {
  flex: 1;
  min-width: 0;
}

.page-faq__text-block p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary-color);
}

.page-faq__image-block {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.page-faq__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: block; /* Ensure it behaves as a block element */
}

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

.page-faq__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: var(--text-main-color);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-main-color);
  background-color: var(--deep-green-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> tag */
}

.page-faq__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default arrow for <summary> */
}

.page-faq__faq-question:hover {
  background-color: var(--border-color);
}

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

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 2000px; /* Arbitrarily large value for smooth transition */
  padding-top: 15px;
}

/* Ensure images in content area are responsive */
.page-faq__content-area img,
.page-faq__general-info-section img,
.page-faq__transaction-section img,
.page-faq__games-section img,
.page-faq__download-app-section img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-faq__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-faq__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-faq__hero-content {
    margin-top: 20px;
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-faq__description {
    font-size: 1rem;
  }

  .page-faq__section-title {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 0 40px 0;
  }
  
  .page-faq__hero-content {
    padding: 0 15px;
  }

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

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

  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-faq__description {
    font-size: 0.95rem;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Limit button group width on small screens */
    margin: 0 auto;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-faq__section-title {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    margin-bottom: 40px;
  }

  .page-faq__text-block p {
    font-size: 0.95rem;
  }

  .page-faq__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-faq__faq-answer {
    font-size: 0.9rem;
    padding: 0 20px 15px;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__content-wrapper,
  .page-faq__image-block,
  .page-faq__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal overflow */
  }
  /* Ensure video sections also respect mobile padding */
  .page-faq__hero-section {
    padding-top: 10px !important; 
  }
  
  /* For elements that might contain padding, apply it here if needed for spacing */
  .page-faq__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Specific overrides for button containers to ensure they don't cause overflow */
  .page-faq__cta-buttons {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}