.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  padding-top: 10px; /* Small top padding for content, body handles header offset */
}

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

.page-faq__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile */
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
  padding-bottom: 50px;
  padding-top: var(--header-offset, 120px); /* Desktop padding-top */
  position: relative;
  overflow: hidden;
}

.page-faq__hero-content {
  max-width: 900px;
  margin-bottom: 30px;
  z-index: 1;
  color: #000000; /* Dark text for light background */
}

.page-faq__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #000000; /* Dark text for light background */
}

.page-faq__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #333333; /* Dark text for light background */
}

.page-faq__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #ffffff; /* White text for button */
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 1200px; /* Display width */
  height: 675px; /* Display height */
}

.page-faq__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Main color */
  padding-top: 50px;
}

.page-faq__general-questions-section,
.page-faq__account-management-section,
.page-faq__deposits-withdrawals-section,
.page-faq__games-betting-section,
.page-faq__bonuses-promotions-section,
.page-faq__support-section,
.page-faq__responsible-gaming-section {
  padding: 60px 0;
  border-bottom: 1px solid #3A2A12; /* Border color */
}

.page-faq__general-questions-section .page-faq__container,
.page-faq__account-management-section .page-faq__container,
.page-faq__deposits-withdrawals-section .page-faq__container,
.page-faq__games-betting-section .page-faq__container,
.page-faq__bonuses-promotions-section .page-faq__container,
.page-faq__support-section .page-faq__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.page-faq__responsible-gaming-section {
  text-align: center;
  padding-bottom: 80px;
  border-bottom: none;
}

.page-faq__text-block {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6; /* Text Main */
}

.page-faq__responsible-gaming-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #ffffff; /* White text for button */
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__responsible-gaming-button:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.page-faq__faq-list {
  width: 100%;
  max-width: 900px;
}

.page-faq__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #2a2a2a;
}

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #F2C14E; /* Main color */
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #FFD36B; /* Glow color */
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
}

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

.page-faq__section-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

/* Align image left/right for alternating sections */
.page-faq__deposits-withdrawals-section .page-faq__container {
  flex-direction: column-reverse; /* Image below text on mobile */
}

.page-faq__games-betting-section .page-faq__container {
  flex-direction: column; /* Image above text on mobile */
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-faq__hero-section {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    padding: var(--header-offset, 120px) 15px 80px;
  }

  .page-faq__hero-content {
    margin-bottom: 0;
    margin-right: 50px;
    flex: 1;
  }

  .page-faq__hero-image-wrapper {
    flex: 1;
    justify-content: flex-end;
  }

  .page-faq__general-questions-section .page-faq__container,
  .page-faq__account-management-section .page-faq__container,
  .page-faq__bonuses-promotions-section .page-faq__container,
  .page-faq__support-section .page-faq__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .page-faq__deposits-withdrawals-section .page-faq__container {
    flex-direction: row-reverse; /* Image on right, text on left */
    justify-content: space-between;
    align-items: flex-start;
  }

  .page-faq__games-betting-section .page-faq__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .page-faq__faq-list {
    flex: 2;
  }

  .page-faq__section-image {
    flex: 1;
    margin: 0;
    max-width: 45%;
  }

  .page-faq__section-image--right {
    order: 2;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-faq__section-title {
    font-size: 2rem;
    padding-top: 30px;
  }

  .page-faq__faq-question h3 {
    font-size: 1.1rem;
  }

  .page-faq p,
  .page-faq li {
    font-size: 15px;
    line-height: 1.5;
  }

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

  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-button,
  .page-faq__responsible-gaming-button,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    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,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-faq__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}