/* style/faq.css */
.page-faq {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main for dark background */
  background-color: #08160F; /* Background */
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #11271B; /* Card BG for hero section */
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width on larger screens */
  margin-bottom: 30px; /* Space between image and content */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  filter: none;
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  color: #F2FFF6;
}

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

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #11A84E; /* Primary Color */
  border: 2px solid #11A84E; /* Primary Color */
}

.page-faq__btn-secondary:hover {
  background: #11A84E; /* Primary Color */
  color: #ffffff;
}

.page-faq__section {
  padding: 80px 20px;
  text-align: center;
}

.page-faq__introduction-section {
  padding: 60px 20px;
  text-align: center;
}

.page-faq__dark-section {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-faq__light-bg {
  background-color: #11271B; /* Card BG as lighter section background */
  color: #F2FFF6; /* Text Main */
}

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: bold;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold */
}

.page-faq__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-faq__section-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 40px auto 0;
  border-radius: 12px;
  object-fit: cover;
  filter: none;
}

.page-faq__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  background-color: #0A4B2C; /* Deep Green */
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-item summary:hover {
  background-color: #11A84E; /* Primary Color */
}

.page-faq__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  color: #F2C14E; /* Gold */
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-faq__faq-answer p {
  margin-bottom: 1em;
}

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

.page-faq__contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: center;
}

.page-faq__contact-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 40px 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
  .page-faq__description {
    font-size: 1em;
  }
  .page-faq__section-title {
    font-size: clamp(1.6em, 4vw, 2em);
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }
  .page-faq__hero-content {
    padding: 0 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }
  .page-faq__description {
    font-size: 0.95em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__introduction-section,
  .page-faq__general-questions,
  .page-faq__account-security,
  .page-faq__deposit-withdrawal,
  .page-faq__game-betting,
  .page-faq__technical-support,
  .page-faq__contact-assistance,
  .page-faq__conclusion-section {
    padding: 40px 15px;
  }
  
  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    display: block !important;
    filter: none;
  }
  
  .page-faq__section, .page-faq__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-faq__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }
  .page-faq__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
}