.page-slot-games {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure body background is respected */
}

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

.page-slot-games__section {
  padding: 80px 0;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Color Contrast Handling */
.page-slot-games__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff; /* Light text on dark background */
}

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text on light background */
}

.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__card-title,
.page-slot-games__light-bg .page-slot-games__list-title {
  color: #017439; /* Brand green for titles on light background */
}

.page-slot-games__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
  text-align: center;
}

.page-slot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-slot-games__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-register {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}

.page-slot-games__btn-primary {
  background-color: #017439;
  color: #000000; /* Adjusted for contrast on #017439 background (WCAG AA: 9.3) */
  border: 2px solid #017439;
}

.page-slot-games__btn-primary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
  color: #ffffff;
}

.page-slot-games__btn-secondary {
  background-color: #ffffff;
  color: #333333; /* Adjusted for contrast on #FFFFFF background (WCAG AA: 15.8) */
  border: 2px solid #017439;
}

.page-slot-games__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #000000;
  border-color: #000000;
}

/* Custom button colors for Register/Login */
.page-slot-games__btn-register {
  background-color: #C30808; /* Register button background */
  color: #000000; /* Adjusted for contrast on #C30808 background (WCAG AA: 5.66) */
  border: 2px solid #C30808;
}

.page-slot-games__btn-register:hover {
  background-color: #a30606;
  border-color: #a30606;
  color: #ffffff;
}

.page-slot-games__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-slot-games__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-slot-games__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
}

.page-slot-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-slot-games__card-description {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-slot-games__steps-list,
.page-slot-games__tips-list,
.page-slot-games__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__list-item {
  background-color: rgba(255, 255, 255, 0.05); /* For dark sections */
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #ffffff;
}

.page-slot-games__light-bg .page-slot-games__list-item {
  background-color: #f9f9f9;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__list-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: bold;
  color: #017439;
}

.page-slot-games__list-item p {
  font-size: 1em;
}

.page-slot-games__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 40px auto;
  display: block;
  object-fit: cover;
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #ffffff;
  color: #333333;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f5f5f5;
  color: #017439;
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  background-color: #e0e0e0;
}

.page-slot-games__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
  color: #333333;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

.page-slot-games__faq-answer p {
  margin: 0;
}

.page-slot-games__cta-final {
  text-align: center;
  background-color: #017439;
  color: #000000; /* Text on brand green */
}

.page-slot-games__cta-final .page-slot-games__section-title,
.page-slot-games__cta-final .page-slot-games__text-block {
  color: #000000; /* Text on brand green, adjusted for contrast */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__hero-description {
    font-size: 1.2em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-slot-games__hero-content {
    padding: 15px;
  }

  .page-slot-games__hero-title {
    font-size: 2.2em;
  }

  .page-slot-games__hero-description {
    font-size: 1em;
  }

  .page-slot-games__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-register,
  .page-slot-games a[class*="button"],
  .page-slot-games 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: 12px 20px;
  }

  .page-slot-games__section {
    padding: 50px 0;
  }

  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-slot-games__container {
    padding: 0 15px;
  }

  .page-slot-games__card-grid {
    grid-template-columns: 1fr;
  }

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__promo-cards,
  .page-slot-games__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure content images are not too small */
  .page-slot-games__content-image {
    min-width: 200px;
    min-height: 200px;
  }

  .page-slot-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-slot-games__faq-answer {
    padding: 0 20px;
  }

  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 1.8em;
  }
  .page-slot-games__hero-description {
    font-size: 0.9em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
}