/* style/faq.css */

/* Base styles for the page-faq scope */
.page-faq {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure space above footer */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #08160F; /* Ensure dark background for hero */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 1920px; /* Ensure it doesn't stretch too wide */
}

.page-faq__hero-content {
  max-width: 800px;
  margin-top: 40px;
  color: #F2FFF6; /* Text Main */
  z-index: 1;
}

.page-faq__main-title {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
}

.page-faq__hero-description {
  font-size: 1.125rem; /* 18px */
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Section Titles & Descriptions */
.page-faq__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
}

/* Intro Section */
.page-faq__intro-section {
  padding: 60px 0;
  background-color: #08160F;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green for contrast */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page-faq__faq-list-section .page-faq__container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

.page-faq__image-block {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq__support-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-faq__faq-items {
  flex: 2;
  min-width: 400px;
  max-width: 700px;
}

.page-faq__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25rem; /* 20px */
  font-weight: bold;
  cursor: pointer;
  background-color: #11271B;
  color: #F2FFF6;
  user-select: none; /* Prevent text selection on click */
}

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

.page-faq__faq-question::marker {
  display: none;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 30px;
  text-align: center;
  color: #57E38D; /* Glow */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-faq__faq-answer a {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #F2C14E; /* Gold */
}

.page-faq__download-button, 
.page-faq__promo-button, 
.page-faq__contact-button, 
.page-faq__responsible-gaming-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 15px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.page-faq__download-button:hover, 
.page-faq__promo-button:hover, 
.page-faq__contact-button:hover, 
.page-faq__responsible-gaming-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* CTA Bottom Section */
.page-faq__cta-bottom-section {
  padding: 80px 0;
  background-color: #08160F;
}

.page-faq__cta-bottom-section .page-faq__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-faq__cta-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-faq__cta-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-faq__cta-buttons-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-faq__btn-primary, .page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
}

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

.page-faq__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
}

.page-faq__btn-secondary:hover {
  background: #57E38D;
  color: #08160F; /* Background */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq__cta-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Image Responsive Styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
    padding-bottom: 40px;
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-top: 20px;
  }

  .page-faq__hero-description {
    font-size: 1rem;
  }

  .page-faq__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-faq__faq-list-section .page-faq__container {
    flex-direction: column;
    align-items: center;
  }

  .page-faq__image-block, .page-faq__faq-items, .page-faq__cta-content, .page-faq__cta-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-faq__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-faq__faq-answer {
    padding: 0 20px 15px;
  }

  .page-faq__download-button, 
  .page-faq__promo-button, 
  .page-faq__contact-button, 
  .page-faq__responsible-gaming-button,
  .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-wrapper {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__hero-image-wrapper,
  .page-faq__image-block,
  .page-faq__cta-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-faq__faq-list-section {
    padding: 40px 0;
  }
  .page-faq__cta-bottom-section {
    padding: 60px 0;
  }
}