/* style/resources-qh88-faq.css */
.page-resources-qh88-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #1a1a2e, so text is light */
  background-color: transparent; /* Main content background is handled by sections */
}

.page-resources-qh88-faq__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-resources-qh88-faq__hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-resources-qh88-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-resources-qh88-faq__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-resources-qh88-faq__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-qh88-faq__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-resources-qh88-faq__hero-cta-button {
  display: inline-block;
  background-color: #C30808; /* Login color */
  color: #FFFF00; /* Login font color */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
}

.page-resources-qh88-faq__hero-cta-button:hover {
  background-color: #e02020;
}

.page-resources-qh88-faq__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.page-resources-qh88-faq__section-title {
  font-size: 2.5em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-resources-qh88-faq__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources-qh88-faq__dark-bg {
  background-color: #017439; /* Main brand color */
  color: #ffffff;
  padding: 60px 0;
}

.page-resources-qh88-faq__faq-section,
.page-resources-qh88-faq__promotions-section,
.page-resources-qh88-faq__games-section,
.page-resources-qh88-faq__other-questions-section {
  background-color: #1a1a2e; /* Body background color */
  color: #ffffff;
  padding: 60px 0;
}

.page-resources-qh88-faq__faq-list {
  margin-top: 30px;
}

.page-resources-qh88-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-qh88-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-resources-qh88-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-resources-qh88-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFFF00; /* Use a contrasting color for the toggle */
  transition: transform 0.3s ease;
}

.page-resources-qh88-faq__faq-item[open] .page-resources-qh88-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-qh88-faq__faq-answer {
  padding: 20px;
  font-size: 1.05em;
  color: #e0e0e0;
  background-color: rgba(0, 0, 0, 0.3);
}

.page-resources-qh88-faq__faq-answer p {
  margin-bottom: 15px;
}

.page-resources-qh88-faq__faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 5px;
}

.page-resources-qh88-faq__cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.page-resources-qh88-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-resources-qh88-faq__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
}

.page-resources-qh88-faq__btn-primary:hover {
  background-color: #e02020;
}

.page-resources-qh88-faq__btn-secondary {
  background-color: #017439; /* Main brand color */
  color: #FFFFFF;
  border-color: #017439;
}

.page-resources-qh88-faq__btn-secondary:hover {
  background-color: #02944b;
  border-color: #02944b;
}

/* Details element specific styling to remove default marker */
.page-resources-qh88-faq__faq-item summary {
  list-style: none;
}

.page-resources-qh88-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-resources-qh88-faq__hero-section {
    height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-qh88-faq__hero-title {
    font-size: 2em;
  }

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

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

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

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

  .page-resources-qh88-faq__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-qh88-faq__cta-button,
  .page-resources-qh88-faq__hero-cta-button,
  .page-resources-qh88-faq__btn-primary,
  .page-resources-qh88-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile image responsiveness */
  .page-resources-qh88-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-qh88-faq__container,
  .page-resources-qh88-faq__introduction-section,
  .page-resources-qh88-faq__faq-section,
  .page-resources-qh88-faq__transaction-section,
  .page-resources-qh88-faq__promotions-section,
  .page-resources-qh88-faq__security-section,
  .page-resources-qh88-faq__games-section,
  .page-resources-qh88-faq__support-section,
  .page-resources-qh88-faq__other-questions-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-resources-qh88-faq__hero-title {
    font-size: 1.6em;
  }
  .page-resources-qh88-faq__section-title {
    font-size: 1.5em;
  }
}