/* style/support-faq.css */

/* Base styles for the page-support-faq */
.page-support-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, but explicitly set for safety */
}

/* Hero Section */
.page-support-faq__hero-section {
  position: relative;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #1a1a1a; /* Slightly lighter dark background for hero */
  overflow: hidden; /* Ensure image doesn't overflow */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-support-faq__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-support-faq__main-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold color for main title */
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-support-faq__intro-text {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-support-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15; /* Subtly blend background image */
  filter: grayscale(10%); /* Apply slight grayscale for better text contrast */
}

/* CTA Buttons in Hero */
.page-support-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-support-faq__btn-primary,
.page-support-faq__btn-secondary,
.page-support-faq__btn-category,
.page-support-faq__btn-text {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding doesn't affect total width */
  text-align: center;
}

.page-support-faq__btn-primary {
  background-color: #FFD700; /* Gold primary button */
  color: #121212; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

.page-support-faq__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: #121212;
  transform: translateY(-2px);
}

.page-support-faq__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text for secondary button */
  border: 2px solid #FFD700;
}

.page-support-faq__btn-secondary:hover {
  background-color: #FFD700;
  color: #121212;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-support-faq__faq-section {
  padding: 60px 20px;
  background-color: #121212; /* Dark background */
  color: #ffffff; /* Light text */
}

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

.page-support-faq__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-support-faq__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-support-faq__faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support-faq__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 1.2em;
  color: #ffffff;
  transition: color 0.3s ease;
}

.page-support-faq__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: normal;
  color: #ffffff; /* Ensure question text is light */
}

.page-support-faq__faq-question:hover h3 {
  color: #FFD700; /* Gold on hover */
}

.page-support-faq__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-support-faq__faq-item.active .page-support-faq__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to a cross */
}

.page-support-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px; /* Initial padding for smooth transition */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc; /* Slightly lighter text for answers */
}

.page-support-faq__faq-item.active .page-support-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px !important; /* Padding when active */
}

.page-support-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
  color: #cccccc;
}

.page-support-faq__btn-text {
  color: #FFD700;
  text-decoration: underline;
  margin-right: 15px;
  font-weight: normal;
  padding: 5px 0;
}

.page-support-faq__btn-text:hover {
  color: #e6c200;
}

.page-support-faq__game-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.page-support-faq__btn-category {
  background-color: #8B0000; /* Auxiliary red for categories */
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.9em;
  text-decoration: none;
}

.page-support-faq__btn-category:hover {
  background-color: #a00000;
  transform: translateY(-1px);
}

/* CTA Section at the bottom */
.page-support-faq__cta-section {
  padding: 60px 20px;
  background-color: #1a1a1a;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.page-support-faq__cta-section .page-support-faq__container {
  z-index: 1;
  position: relative;
}

.page-support-faq__cta-title {
  font-size: 2.2em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support-faq__cta-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-support-faq__cta-section .page-support-faq__cta-buttons {
  margin-top: 20px;
}

.page-support-faq__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  filter: blur(2px) grayscale(20%);
  z-index: 0;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-support-faq__main-title {
    font-size: 2.8em;
  }
  .page-support-faq__section-title {
    font-size: 2.2em;
  }
  .page-support-faq__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-support-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset is applied */
  }

  .page-support-faq__main-title {
    font-size: 2.2em;
    line-height: 1.2;
  }

  .page-support-faq__intro-text {
    font-size: 1em;
  }

  .page-support-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-support-faq__btn-primary,
  .page-support-faq__btn-secondary,
  .page-support-faq__btn-category,
  .page-support-faq__btn-text,
  .page-support-faq a[class*="button"],
  .page-support-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-support-faq__section-description {
    font-size: 0.95em;
  }

  .page-support-faq__faq-question {
    font-size: 1.1em;
  }

  .page-support-faq__faq-question h3 {
    font-size: 1.1em;
  }

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

  .page-support-faq__game-categories {
    flex-direction: column; /* Stack game categories vertically */
  }

  .page-support-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-support-faq__section,
  .page-support-faq__card,
  .page-support-faq__container,
  .page-support-faq__hero-section,
  .page-support-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-support-faq__faq-answer {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-support-faq__main-title {
    font-size: 1.8em;
  }
  .page-support-faq__section-title {
    font-size: 1.6em;
  }
  .page-support-faq__cta-title {
    font-size: 1.5em;
  }
  .page-support-faq__faq-question h3 {
    font-size: 1em;
  }
}