/* style/faq.css */

/* Base styles */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-faq__section {
  padding: 60px 0;
  text-align: center;
}

.page-faq__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  min-height: 500px;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-faq__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

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

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

.page-faq__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-faq__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-faq__btn--secondary {
  background: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-faq__btn--secondary:hover {
  background: #2AD16F;
  color: #ffffff;
}

.page-faq__btn--text {
  background: none;
  color: #57E38D; /* Glow */
  border: none;
  padding: 5px 10px;
  font-size: 1em;
  white-space: normal;
}

.page-faq__btn--text:hover {
  text-decoration: underline;
  color: #2AD16F;
}

/* General Info Section */
.page-faq__general-info {
  background-color: #08160F; /* Background */
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
}

.page-faq__image--centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__image--small {
  max-width: 600px;
  display: block;
  margin: 30px auto;
}

/* FAQ List */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 40px auto;
}

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 20px 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
  text-align: left;
}

.page-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-size: 1.3em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  padding: 10px 0;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  margin-left: 15px;
  color: #57E38D; /* Glow */
  transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
  padding-top: 15px;
  border-top: 1px solid #1E3A2A; /* Divider */
  margin-top: 15px;
  color: #A7D9B8; /* Text Secondary */
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: #A7D9B8;
}

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 15px;
  color: #A7D9B8;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
}

.page-faq__faq-answer strong {
  color: #F2FFF6;
}

/* Section specific styling */
.page-faq__registration-login .page-faq__faq-item {
  border-color: #22C768;
}

.page-faq__transactions .page-faq__faq-item {
  border-color: #11A84E;
}

.page-faq__games-products .page-faq__faq-item {
  border-color: #F2C14E; /* Gold */
}

.page-faq__promotions .page-faq__faq-item {
  border-color: #57E38D; /* Glow */
}

.page-faq__security-support .page-faq__faq-item {
  border-color: #1E3A2A; /* Divider */
}

.page-faq__app-download .page-faq__faq-item {
  border-color: #0A4B2C; /* Deep Green */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__container {
    padding: 0 15px;
  }

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

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

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

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

  .page-faq__subtitle {
    font-size: 1em;
  }

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

  .page-faq__btn {
    width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-faq__faq-item summary {
    font-size: 1.1em;
  }

  .page-faq__faq-answer {
    font-size: 0.95em;
  }

  /* 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__hero-content,
  .page-faq__cta-buttons,
  .page-faq__faq-list,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-faq__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-faq__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}