/* style/faq.css */

/* --- Base Styles --- */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Light text on dark body background */
  background-color: var(--background-color); /* Inherited from shared.css */
}

/* --- Hero Section --- */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 1920px; /* Constrain max width for very large screens */
  margin-bottom: 30px; /* Space between image and content */
}

.page-faq__hero-content-wrapper {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-faq__hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: bold;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 15px;
  max-width: 900px;
}

.page-faq__intro-text {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
}

/* --- Video Section --- */
.page-faq__video-section {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--card-bg); /* Use card background for this section */
  margin-bottom: 40px;
  box-sizing: border-box;
}

.page-faq__video-container {
  width: 100%;
  max-width: 900px; /* Max width for the video player */
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
}

.page-faq__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1; /* Ensure link is clickable over video */
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-faq__video-caption {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* --- Main FAQ Section --- */
.page-faq__main-faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__section-description {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  background-color: var(--deep-green); /* Slightly darker when open */
  border-color: var(--primary-color);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: transparent;
  list-style: none; /* Remove default summary marker */
  outline: none;
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-faq__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

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

.page-faq__faq-answer img.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-top: 15px;
  margin-bottom: 15px;
  display: block; /* Ensure image behaves as block for margin */
}

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

.page-faq__game-link {
    display: inline-block;
    background-color: var(--deep-green);
    color: var(--text-main);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-faq__game-link:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}


/* --- CTA Section at Bottom --- */
.page-faq__cta-section {
  padding: 60px 20px;
  text-align: center;
  margin-top: 40px;
}

.page-faq__dark-section {
  background-color: var(--deep-green); /* Dark background for strong contrast */
  color: #ffffff; /* White text for strong contrast */
}

.page-faq__dark-section .page-faq__section-title {
  color: #ffffff;
}

.page-faq__dark-section .page-faq__section-description {
  color: var(--text-secondary); /* Use secondary light text for description */
}

/* --- Buttons --- */
.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-faq__cta-buttons--inline {
    margin-top: 20px;
    justify-content: flex-start; /* Align left in FAQ answer */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 150px;
  text-align: center;
  box-sizing: border-box; /* Include padding in width calculation */
}

.page-faq__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--primary-color); /* Primary color text */
  border: 2px solid var(--border-color); /* Border color */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-faq__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-faq__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-faq__intro-text {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  }
  .page-faq__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }
  .page-faq__faq-question {
    font-size: 1.05rem;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 0 30px 0;
  }
  .page-faq__hero-image {
    margin-bottom: 20px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-faq__intro-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    padding: 0 15px; /* Add padding to container */
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    white-space: normal !important; /* Allow text wrap */
    word-wrap: break-word !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsive on mobile */
  .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__hero-content-wrapper,
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper,
  .page-faq__main-faq-section,
  .page-faq__cta-section,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-faq__video-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }

  /* Video responsive on mobile */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }

  .page-faq__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  .page-faq__faq-question {
    font-size: 1rem;
    padding: 12px 18px;
  }
  .page-faq__faq-answer {
    padding: 0 18px 12px;
  }
  .page-faq__game-types {
      justify-content: center;
  }
  .page-faq__cta-buttons--inline {
      flex-direction: column;
      align-items: flex-start; /* Align left in FAQ answers */
      gap: 10px;
      padding: 0;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-faq__intro-text {
    font-size: 0.85rem;
  }
  .page-faq__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  .page-faq__faq-question {
    font-size: 0.95rem;
    padding: 10px 15px;
  }
  .page-faq__faq-answer {
    font-size: 0.9rem;
    padding: 0 15px 10px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}


/* --- Custom Color Variables (from prompt) --- */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F; /* Body background from shared.css */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Applying custom colors to relevant elements */
.page-faq {
    background-color: var(--background-color);
    color: var(--text-main); /* Default text color for the page */
}

.page-faq__section-title,
.page-faq__main-title {
    color: var(--text-main);
}

.page-faq__intro-text,
.page-faq__section-description,
.page-faq__video-caption,
.page-faq__faq-answer p {
    color: var(--text-secondary);
}

.page-faq__faq-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.page-faq__faq-item[open] {
    background-color: var(--deep-green); /* Darker green when open */
    border-color: var(--primary-color);
}

.page-faq__faq-question {
    color: var(--text-main);
}

.page-faq__faq-toggle {
    color: var(--gold-color); /* Use gold for the toggle icon */
}

.page-faq__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text on green gradient */
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Slightly altered gradient on hover */
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--primary-color); /* Primary green text */
    border-color: var(--border-color);
}

.page-faq__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.page-faq__dark-section {
    background-color: var(--deep-green);
    color: var(--text-main);
}

.page-faq__dark-section .page-faq__section-title {
    color: var(--text-main);
}

.page-faq__dark-section .page-faq__section-description {
    color: var(--text-secondary);
}

.page-faq__game-link {
    background-color: var(--deep-green);
    color: var(--text-main);
}

.page-faq__game-link:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Ensure contrast for specific elements if needed */
/* For example, if a specific background is used, ensure text color contrasts */
.page-faq strong {
    color: var(--gold-color); /* Highlight important keywords with gold */
}