/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  padding-top: 0; /* Handled by body padding-top in shared.css */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding after body offset */
  padding-bottom: 60px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for hero image */
  overflow: hidden;
  position: relative;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-faq__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual flow, but no text on image */
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, #08160F 100%); /* Fade from semi-transparent to solid background */
  border-radius: 10px;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size for H1 */
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-faq__subtitle {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styles */
.page-faq__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__introduction-section,
.page-faq__deposit-withdraw-section,
.page-faq__games-section,
.page-faq__support-section {
  background-color: #08160F; /* Background */
  padding: 60px 0;
}

.page-faq__account-section,
.page-faq__promotions-section,
.page-faq__security-section,
.page-faq__conclusion-section {
  background-color: #11271B; /* Card BG */
  padding: 60px 0;
}

.page-faq__text-block {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item.active {
  background-color: #0A4B2C; /* Deep Green */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  transition: color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-faq__faq-question:hover {
  color: #57E38D; /* Glow */
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #57E38D; /* Glow */
  margin-left: 15px;
}

.page-faq__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  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: 1000px; /* Sufficient height for content */
  padding-top: 10px;
}

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

.page-faq__faq-answer a {
  display: inline-block;
  margin-top: 10px;
}

/* Button Styles */
.page-faq__btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: bold;
  color: #57E38D; /* Glow */
  background-color: transparent;
  border: 2px solid #57E38D; /* Glow */
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-faq__btn-secondary:hover {
  background-color: #57E38D;
  color: #08160F; /* Background */
  transform: translateY(-1px);
}

.page-faq__btn-large {
  padding: 15px 40px;
  font-size: 1.2rem;
}

/* Image Specific Styles */
.page-faq__promo-image,
.page-faq__security-image,
.page-faq__support-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  border: 1px solid #2E7A4E; /* Border */
}

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
  }
  .page-faq__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-faq__subtitle {
    font-size: 1rem;
  }
  .page-faq__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }
  .page-faq__text-block {
    font-size: 0.95rem;
  }
  .page-faq__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-faq__faq-answer {
    padding: 0 15px 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add margin for stacked buttons */
  }
  .page-faq__btn-primary:last-child,
  .page-faq__btn-secondary:last-child {
    margin-bottom: 0;
  }
  .page-faq__hero-content .page-faq__btn-primary {
    margin-bottom: 0; /* No extra margin for single hero button */
  }

  /* Force responsive images and containers */
  .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-section,
  .page-faq__introduction-section,
  .page-faq__account-section,
  .page-faq__deposit-withdraw-section,
  .page-faq__promotions-section,
  .page-faq__games-section,
  .page-faq__security-section,
  .page-faq__support-section,
  .page-faq__conclusion-section,
  .page-faq__hero-image-wrapper,
  .page-faq__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-faq__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-faq__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    font-size: 1rem;
    padding: 10px 20px;
  }
}