:root {
  --color-primary: #113B7A;
  --color-secondary: #1D5FD1;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --card-bg: #10233F;
  --border-color: #244D84;
  --color-glow: #4FA8FF;
  --color-gold: #F2C14E;
  --color-divider: #1B3357;
  --color-deep-navy: #08162B;
  --color-deep-navy-rgb: 8, 22, 43;
  --header-offset: 122px;
}

/* General page styles */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--color-deep-navy);
  padding-bottom: 30px;
}

/* Sections */
.page-faq__section {
  max-width: 960px;
  margin: 0 auto 30px;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-faq__section-title {
  font-size: 28px;
  color: var(--color-gold);
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
  text-shadow: 0 0 8px var(--color-glow);
}

/* Hero Section */
.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-deep-navy) 100%);
  color: var(--text-main);
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 0 0 15px 15px;
  border-bottom: 1px solid var(--border-color);
}

.page-faq__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--color-gold);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.8);
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-faq__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

.page-faq__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: block;
}

/* FAQ Accordion Styles */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--color-deep-navy);
}
details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  background-color: var(--card-bg);
  color: var(--text-main);
}
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: rgba(var(--color-deep-navy-rgb), 0.8);
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: var(--color-deep-navy);
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary);
}
.page-faq__faq-answer p {
  margin-bottom: 10px;
}
.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

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

.page-faq__image--bottom {
  margin-bottom: 0;
  margin-top: 30px;
}

/* Link Buttons within FAQ answers */
.page-faq__link-button {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--text-main);
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-top: 15px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-faq__link-button:hover {
  filter: brightness(1.1);
}

/* Call to Action Section at the bottom */
.page-faq__cta-section {
  max-width: 960px;
  margin: 30px auto 0;
  padding: 40px 20px;
  background: var(--card-bg);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-faq__cta-title {
  font-size: 32px;
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 0 8px var(--color-glow);
}

.page-faq__cta-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  border: none;
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.page-faq__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: rgba(242, 193, 78, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-faq {
    font-size: 15px;
    padding-bottom: 20px;
  }

  .page-faq__hero-section {
    padding: 40px 15px 30px;
    margin-bottom: 20px;
  }

  .page-faq__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-faq__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-faq__cta-button {
    font-size: 16px;
    padding: 12px 25px;
  }

  .page-faq__section {
    margin-bottom: 20px;
    padding: 15px;
  }

  .page-faq__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-qtext {
    font-size: 15px;
  }
  .page-faq__faq-toggle {
    font-size: 20px;
    margin-left: 10px;
    width: 24px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }

  .page-faq__content-image {
    margin: 15px auto;
  }

  .page-faq__cta-section {
    padding: 30px 15px;
    margin-top: 20px;
  }

  .page-faq__cta-title {
    font-size: 28px;
  }

  .page-faq__cta-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .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: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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__section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__faq-list,
  .page-faq__section--general > p,
  .page-faq__section--deposit-withdraw > p,
  .page-faq__section--games > p,
  .page-faq__section--promotions > p,
  .page-faq__section--support > p {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__faq-list {
    padding-left: 0;
    padding-right: 0;
  }
}

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