/* style/faq.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with shared body background */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}

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

.page-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

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

.page-faq__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

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

.page-faq__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
}

.page-faq__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for sub-titles */
}

.page-faq__sub-sub-title {
  font-size: 1.4em;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #ffffff; /* Light text for dark background */
}

.page-faq__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-faq__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-faq__list li {
  margin-bottom: 10px;
}

/* Color schemes for sections */
.page-faq__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-faq__light-bg {
  background-color: #f5f5f5;
  color: #333333; /* Dark text for light background */
}

.page-faq__light-bg .page-faq__section-title,
.page-faq__light-bg .page-faq__sub-title {
  color: #26A9E0;
}
.page-faq__light-bg .page-faq__sub-sub-title {
  color: #333333;
}


/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding/border in width */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
  text-align: center;
}

.page-faq__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-faq__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

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

.page-faq__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-faq__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Flex container for image and text */
.page-faq__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-faq__flex-container--reverse {
  flex-direction: row-reverse;
}

.page-faq__text-content {
  flex: 1;
}

.page-faq__image-wrapper {
  flex: 1;
  text-align: center;
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block; /* Ensures max-width works correctly */
}

/* Game Grid */
.page-faq__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-faq__game-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #ffffff; /* Light text */
}
.page-faq__light-bg .page-faq__game-card {
  background-color: #ffffff; /* White background for light section */
  color: #333333; /* Dark text */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__game-card:hover {
  transform: translateY(-5px);
}

.page-faq__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-faq__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for card titles */
}

.page-faq__light-bg .page-faq__card-title {
  color: #26A9E0;
}

.page-faq__card-description {
  font-size: 1em;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-faq__faq-items {
  margin-top: 40px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* Light text */
}
.page-faq__light-bg .page-faq__faq-item {
  background-color: #ffffff; /* White background for light section */
  color: #333333; /* Dark text */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly darker for question header */
}
.page-faq__light-bg .page-faq__faq-question {
  background-color: #e0e0e0;
}

.page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
}
.page-faq__light-bg .page-faq__faq-question:hover {
  background-color: #d0d0d0;
}

.page-faq__faq-title {
  margin: 0;
  color: #ffffff;
}
.page-faq__light-bg .page-faq__faq-title {
  color: #333333;
}


.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0; /* Brand color for toggle icon */
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Initial padding 0 */
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1.1em;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Use !important as mandated */
  padding: 15px 25px; /* Padding when active */
}

.page-faq__faq-text {
  margin-bottom: 15px;
  color: #f0f0f0;
}
.page-faq__light-bg .page-faq__faq-text {
  color: #333333;
}


/* Responsive Design */
@media (max-width: 992px) {
  .page-faq__main-title {
    font-size: 2.5em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__sub-title {
    font-size: 1.5em;
  }
  .page-faq__flex-container {
    flex-direction: column;
    text-align: center;
  }
  .page-faq__flex-container--reverse {
    flex-direction: column;
  }
  .page-faq__image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-faq {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    height: 450px;
  }
  .page-faq__main-title {
    font-size: 2em;
  }
  .page-faq__intro-description {
    font-size: 1em;
  }
  .page-faq__section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__sub-title {
    font-size: 1.3em;
  }
  .page-faq__sub-sub-title {
    font-size: 1.1em;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-faq__card-image {
    height: auto !important; /* Allow card images to scale */
  }

  /* Mobile container responsiveness */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__flex-container,
  .page-faq__game-card,
  .page-faq__image-wrapper,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Remove specific padding for .page-faq__container to avoid double padding */
  .page-faq__container {
    padding-left: 0;
    padding-right: 0;
  }

  /* Mobile button responsiveness */
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-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: 12px 15px; /* Adjust padding for smaller screens */
  }

  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-faq__cta-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
  }
  .page-faq__cta-center .page-faq__btn-primary {
    margin-bottom: 10px;
  }

  .page-faq__game-grid {
    grid-template-columns: 1fr; /* Stack cards vertically on mobile */
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px;
  }
}

/* Specific color adjustments for contrast as per instructions */
.page-faq__dark-bg .page-faq__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
}
.page-faq__dark-bg .page-faq__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-faq__light-bg .page-faq__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
}
.page-faq__light-bg .page-faq__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border-color: #26A9E0;
}