/* style/faq.css */
.page-faq {
  font-family: Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 40px; /* Space for content below image */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  display: block;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 100px; /* Push content down over image, not overlay */
}

.page-faq__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
  max-width: 800px;
}

.page-faq__hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-faq__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-faq__content-area {
  background-color: var(--bg-color);
  color: var(--text-main);
}

.page-faq__section-title {
  font-size: 2.5rem;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary);
}

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

.page-faq__faq-category-title {
  font-size: 1.8rem;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 5px solid var(--primary-color);
}

.page-faq__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.page-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15rem;
  color: var(--text-main);
  list-style: none;
  background-color: #1a3a2b; /* Slightly darker for summary */
  border-bottom: 1px solid var(--divider-color);
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: '−';
}

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

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

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

.page-faq__image {
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-faq__image-finance, .page-faq__image-games, .page-faq__image-security {
  max-width: 800px;
}

.page-faq__cta-bottom-section {
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%);
  padding: 80px 20px;
  text-align: center;
  color: var(--text-main);
}

.page-faq__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-faq__cta-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--glow);
}

.page-faq__cta-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

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

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-faq__cta-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-faq__cta-button--secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.page-faq__inline-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: bold;
  transition: opacity 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__inline-button:hover {
  opacity: 0.9;
}

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

  .page-faq__hero-content {
    margin-top: 50px;
    padding: 15px;
  }

  .page-faq__hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-faq__section {
    padding: 40px 15px;
  }

  .page-faq__section-title {
    font-size: 2rem;
  }

  .page-faq__section-intro {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-faq__faq-category-title {
    font-size: 1.5rem;
  }

  .page-faq__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }

  .page-faq__faq-answer {
    padding: 15px;
    font-size: 0.95rem;
  }

  .page-faq__cta-bottom-section {
    padding: 60px 15px;
  }

  .page-faq__cta-title {
    font-size: 1.8rem;
  }

  .page-faq__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__cta-button {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-faq__inline-button {
    width: 100% !important;
    text-align: center;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__hero-section,
  .page-faq__section,
  .page-faq__content-area,
  .page-faq__faq-list,
  .page-faq__faq-item,
  .page-faq__cta-bottom-section,
  .page-faq__cta-content,
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-faq__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-faq__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

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

  .page-faq__image {
    min-width: unset;
    min-height: unset;
  }
}