/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for assumed light body background */
  background-color: transparent; /* Rely on shared.css for body background */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f8f8f8; /* Light background for the section */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px; /* Space between image and text */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #017439; /* Brand color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

/* CTA Buttons in Hero */
.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

/* Shared button styles */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-small,
.page-faq__btn-register,
.page-faq__btn-game {
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: #017439; /* Main brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-faq__btn-primary:hover {
  background: #005f2c;
  border-color: #005f2c;
}

.page-faq__btn-secondary {
  background: #ffffff;
  color: #017439; /* Main brand color */
  border: 2px solid #017439;
}

.page-faq__btn-secondary:hover {
  background: #f0f0f0;
  color: #005f2c;
  border-color: #005f2c;
}

/* Specific button colors */
.page-faq__btn-register {
  background: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}

.page-faq__btn-register:hover {
  background: #a30606;
  border-color: #a30606;
}

.page-faq__btn-small {
  font-size: 0.9em;
  padding: 8px 15px;
}

.page-faq__btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

.page-faq__btn-game {
    background: #f0f0f0;
    color: #017439;
    border: 1px solid #e0e0e0;
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-faq__btn-game:hover {
    background: #e0e0e0;
    color: #005f2c;
}

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* White background for content area */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 15px;
  position: relative;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #333333; /* Ensure dark text on light background */
}

.page-faq__faq-item[open] {
  background-color: #ffffff;
  border-color: #017439;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #017439;
  color: #ffffff;
}

.page-faq__faq-question:hover {
  background-color: #e0e0e0;
}

.page-faq__faq-item[open] .page-faq__faq-question:hover {
  background-color: #005f2c;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  color: #ffffff;
}

.page-faq__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  color: #555555;
}

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

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

.page-faq__faq-answer a {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
}

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

.page-faq__image-block {
    width: 100%;
    max-width: 800px; /* Adjust max-width as needed */
    margin: 40px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__content-image {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Section at bottom */
.page-faq__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: #017439; /* Dark brand color background */
  color: #ffffff; /* White text for contrast */
  border-radius: 8px;
  margin: 30px auto;
  max-width: 1200px;
}

.page-faq__cta-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 40px 15px;
  }
  .page-faq__hero-content {
    max-width: 700px;
  }
  .page-faq__content-area {
    padding: 30px 15px;
  }
  .page-faq__cta-section {
    padding: 60px 15px;
  }
}

@media (max-width: 768px) {
  /* Mobile specific overrides with !important */
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding: 10px 15px; /* Small top padding for mobile */
  }

  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    margin-bottom: 20px;
  }

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

  .page-faq__description {
    font-size: 1em;
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  .page-faq__cta-buttons a { /* Apply to all buttons within this container */
    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; /* Add padding to buttons themselves */
  }

  .page-faq__content-area,
  .page-faq__cta-section,
  .page-faq__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-faq__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-faq__faq-answer {
    padding: 10px 20px 20px;
    font-size: 0.95em;
  }

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

  .page-faq__cta-title {
    font-size: 1.6em;
  }

  .page-faq__cta-description {
    font-size: 1em;
  }

  .page-faq__game-links {
    flex-direction: column; /* Stack game links vertically */
    align-items: flex-start;
  }

  .page-faq__btn-game {
    width: 100%;
    max-width: 100%;
  }
}