/* Base styles for FAQ page */
.page-faq {
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy); /* Body background from shared.css */
  padding-top: 10px; /* Small top padding, body handles header offset */
  min-height: 100vh; /* Ensure content stretches to full height */
}

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 900px;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-faq__main-title {
  font-size: 3em;
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  max-width: 800px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-faq__intro-text {
  font-size: 1.1em;
  line-height: 1.6;
  color: #AFC4E8; /* Text Secondary */
  max-width: 800px;
  margin-bottom: 40px;
}

.page-faq__section {
  max-width: 1000px;
  margin: 0 auto 50px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: 2.2em;
  font-weight: 600;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 35px;
  padding-bottom: 15px;
  border-bottom: 2px solid #1B3357; /* Divider */
}

/* FAQ item styles (details/summary based) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card BG */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

details.page-faq__faq-item[open] {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F3F8FF; /* Text Main */
  font-weight: 600;
  font-size: 1.1em;
}

details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #1B3357; /* Slightly darker for hover */
}

.page-faq__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #08162B; /* Deep Navy - slightly lighter than card for contrast */
  border-radius: 0 0 10px 10px;
  color: #AFC4E8; /* Text Secondary */
  line-height: 1.7;
  font-size: 1em;
}

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

.page-faq__faq-answer p:first-child {
  margin-top: 0;
}

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-faq__category-link {
  background: #1D5FD1; /* Auxiliary Color */
  color: #F3F8FF; /* Text Main */
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.page-faq__category-link:hover {
  background: #2B73F6;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF; /* Text Main */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px #4FA8FF; /* Glow */
}

.page-faq__btn-secondary {
  background: #1B3357; /* Divider - dark background for contrast */
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary:hover {
  background: #244D84; /* Border */
  color: #F3F8FF; /* Text Main */
  border-color: #F3F8FF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px #F2C14E;
}

.page-faq__cta-section {
  text-align: center;
  margin-bottom: 80px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: #AFC4E8;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.5em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
  }
}

@media (max-width: 768px) {
  .page-faq {
    padding-top: 10px; /* Ensure small top padding */
  }
  .page-faq__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-faq__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-faq__section {
    margin-bottom: 40px;
    padding: 0 10px;
  }
  .page-faq__section-title {
    font-size: 1.6em;
    margin-bottom: 25px;
  }
  
  /* Images responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Containers responsive */
  .page-faq__hero-section,
  .page-faq__section,
  .page-faq__faq-list,
  .page-faq__cta-section,
  .page-faq__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Buttons responsive */
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    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-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
    flex-direction: column;
    gap: 15px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 12px 15px;
    font-size: 0.95em;
  }
  .page-faq__faq-toggle {
    font-size: 22px;
    margin-left: 10px;
    width: 22px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.9em;
  }
  .page-faq__game-categories {
    justify-content: center;
  }
  .page-faq__category-link {
    padding: 7px 12px;
    font-size: 0.9em;
  }
}

/* Ensure no filter on images */
.page-faq img {
  filter: none !important;
}