/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
}

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

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2FFF6;
  line-height: 1.2;
}

.page-faq__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: #A7D9B8;
}

/* Section Titles */
.page-faq__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #11A84E; /* Brand color for section titles */
}

/* General Section Styling */
.page-faq__intro-section, 
.page-faq__transaction-section, 
.page-faq__promotions-section, 
.page-faq__conclusion-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for these sections */
  color: #333333;
}

.page-faq__account-section, 
.page-faq__games-section, 
.page-faq__support-section, 
.page-faq__security-section, 
.page-faq__responsible-gambling-section {
  padding: 60px 0;
  background-color: #08160F; /* Dark background for these sections */
  color: #F2FFF6;
}

.page-faq__account-section .page-faq__section-title,
.page-faq__games-section .page-faq__section-title,
.page-faq__support-section .page-faq__section-title,
.page-faq__security-section .page-faq__section-title,
.page-faq__responsible-gambling-section .page-faq__section-title {
  color: #F2FFF6; /* Light color for titles on dark background */
}

/* FAQ List Styling */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: #11271B; /* Card BG color */
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  color: #F2FFF6; /* Text Main color */
  border: 1px solid #2E7A4E; /* Border color */
}

.page-faq__faq-item[open] {
  background-color: #0A4B2C; /* Deep Green for open item */
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-faq__light-bg .page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-faq__light-bg .page-faq__faq-item[open] {
  background-color: #e6ffe6;
  color: #000000;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1rem;
  color: inherit;
  list-style: none; /* Remove default marker for details/summary */
}

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

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow color for toggle */
}

.page-faq__light-bg .page-faq__faq-toggle {
  color: #11A84E; /* Main color for toggle on light background */
}

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

.page-faq__light-bg .page-faq__faq-answer {
  color: #555555;
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 10px;
}

.page-faq__faq-answer li {
  margin-bottom: 5px;
}

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

.page-faq__light-bg .page-faq__faq-answer a {
  color: #13994A;
}

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

/* CTA Buttons */
.page-faq__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 20px;
  text-align: center;
  cursor: pointer;
  border: none;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text on button */
}

.page-faq__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-faq__cta-button--secondary {
  background: transparent;
  border: 2px solid #11A84E;
  color: #11A84E;
}

.page-faq__cta-button--secondary:hover {
  background: #11A84E;
  color: #ffffff;
}

.page-faq__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Image Styling */
.page-faq__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.page-faq__image--center {
  margin-left: auto;
  margin-right: auto;
}

/* Text blocks */
.page-faq__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__hero-section {
    padding-bottom: 20px;
  }

  .page-faq__main-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }

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

  .page-faq__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-faq__intro-section, 
  .page-faq__transaction-section, 
  .page-faq__promotions-section, 
  .page-faq__conclusion-section,
  .page-faq__account-section, 
  .page-faq__games-section, 
  .page-faq__support-section, 
  .page-faq__security-section, 
  .page-faq__responsible-gambling-section {
    padding: 40px 0;
  }

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

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

  .page-faq__cta-button {
    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__button-group {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-faq__hero-image-wrapper,
  .page-faq__image,
  .page-faq__container,
  .page-faq__section,
  .page-faq__card,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-faq__faq-item {
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-faq__hero-section {
    padding-top: 10px !important;
  }

  .page-faq__video-section {
    padding-top: 10px !important;
  }
}