/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  background-color: #121212; /* Dark background from body */
  color: #ffffff; /* Light text for contrast */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(0, 0, 0, 0.9));
  overflow: hidden;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-faq__main-title {
  font-size: 3.2em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-faq__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(50%);
}

/* General Section Styling */
.page-faq__section {
  padding: 60px 0;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

/* FAQ List and Items */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark for contrast */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question:hover {
  background-color: rgba(255, 215, 0, 0.2);
}

.page-faq__faq-heading {
  font-size: 1.3em;
  color: #FFD700;
  margin: 0;
  flex-grow: 1;
}

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

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px 25px;
}

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

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

.page-faq__game-list,
.page-faq__contact-list {
  list-style-type: disc;
  margin-left: 25px;
  padding-left: 0;
  margin-top: 15px;
  margin-bottom: 15px;
  color: #f0f0f0;
}

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

.page-faq__game-list strong {
  color: #FFD700;
}

/* Image blocks within FAQ answers */
.page-faq__image-block {
  margin: 20px 0;
  text-align: center;
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Call to Action Section */
.page-faq__cta-final {
  background: linear-gradient(45deg, #1A1A1A, #000000);
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-faq__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 25px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 700px;
  margin-bottom: 40px;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #FFD700;
  color: #1A1A1A; /* Dark text for contrast on gold */
  border: 2px solid #FFD700;
}

.page-faq__btn-primary:hover {
  background-color: #e6c200;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 215, 0, 0.3);
}

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

.page-faq__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 215, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }

  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 2.2em;
  }

  .page-faq__hero-description,
  .page-faq__cta-description {
    font-size: 1.05em;
  }

  .page-faq__faq-heading {
    font-size: 1.2em;
  }
}

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

  .page-faq__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

  .page-faq__hero-content {
    padding: 0 15px; /* Add horizontal padding for content */
  }

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

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

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

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

  .page-faq__faq-answer {
    padding: 0 20px;
  }

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add horizontal padding for button group */
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image responsive rules for content area */
  .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__image-block,
  .page-faq__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 2em;
  }

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

  .page-faq__hero-description,
  .page-faq__cta-description {
    font-size: 0.95em;
  }

  .page-faq__faq-heading {
    font-size: 1em;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    font-size: 0.95em;
  }
}