.page-faq {
  background-color: var(--background-color, #B71C1C);
  color: var(--text-main-color, #FFF5E1);
  font-family: Arial, sans-serif;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 40px;
}

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

.page-faq__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 900px;
  width: 90%;
  z-index: 10;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text contrast */
  border-radius: 10px;
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #FFD86A; /* Gold color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: clamp(16px, 1.8vw, 20px);
  color: #FFF5E1;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-inline {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  display: inline-block;
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

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

.page-faq__btn-secondary:hover {
  background: rgba(242, 181, 68, 0.2);
  transform: translateY(-2px);
}

.page-faq__btn-inline {
  background: #E53935;
  color: #FFF5E1;
  border: 1px solid #C91F17;
  padding: 8px 15px;
  font-size: 14px;
  margin-top: 10px;
}

.page-faq__btn-inline:hover {
  background: #C91F17;
}

.page-faq__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.page-faq__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFD86A; /* Gold color for section title */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-faq__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #F4D34D, #FFCC66);
  margin: 10px auto 0;
  border-radius: 2px;
}

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

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544;
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF5E1;
  font-weight: 600;
  font-size: 18px;
}

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

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #C91F17; /* Primary color on hover */
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFCC66; /* Glow color */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #7A0E0E; /* Deep Red for answer background */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1;
  font-size: 16px;
  line-height: 1.7;
}

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

.page-faq__answer-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-faq__game-list {
  list-style-type: disc;
  margin-left: 25px;
  padding-left: 0;
  font-size: 16px;
  color: #FFF5E1;
}

.page-faq__game-list li {
  margin-bottom: 8px;
}

.page-faq__cta-section {
  background: linear-gradient(90deg, #C91F17 0%, #E53935 100%);
  padding: 60px 20px;
  text-align: center;
  margin-top: 50px;
  box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-content {
  max-width: 800px;
  margin: 0 auto;
  color: #FFF5E1;
}

.page-faq__cta-title {
  font-size: 32px;
  font-weight: 700;
  color: #FFD86A;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    max-width: 80%;
    padding: 15px;
  }

  .page-faq__main-title {
    font-size: clamp(24px, 3.5vw, 40px);
  }

  .page-faq__hero-description {
    font-size: clamp(15px, 1.6vw, 18px);
  }

  .page-faq__section-title {
    font-size: 32px;
  }

  .page-faq__faq-qtext {
    font-size: 17px;
  }

  .page-faq__faq-toggle {
    font-size: 26px;
  }

  .page-faq__faq-answer {
    font-size: 15px;
  }

  .page-faq__cta-title {
    font-size: 28px;
  }

  .page-faq__cta-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px !important;
    margin-bottom: 30px;
  }

  .page-faq__hero-image {
    height: 400px; /* Adjust height for mobile hero */
  }

  .page-faq__hero-content {
    width: 95%;
    padding: 15px;
  }

  .page-faq__main-title {
    font-size: clamp(22px, 6vw, 36px);
  }

  .page-faq__hero-description {
    font-size: clamp(14px, 3.5vw, 16px);
    margin-bottom: 20px;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-inline {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-faq__content-area {
    padding: 15px;
  }

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

  .page-faq__faq-qtext {
    font-size: 16px;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
    font-size: 14px;
  }

  .page-faq__game-list {
    margin-left: 20px;
    font-size: 14px;
  }

  .page-faq__cta-section {
    padding: 40px 15px;
  }

  .page-faq__cta-title {
    font-size: 24px;
  }

  .page-faq__cta-description {
    font-size: 15px;
  }

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__cta-buttons {
    display: flex;
    flex-direction: column !important;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-buttons .page-faq__btn-primary,
  .page-faq__hero-buttons .page-faq__btn-secondary {
    width: 100%; /* Ensure buttons take full width in hero section */
  }
}