.page-slot-games {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;

  font-family: Arial, sans-serif;
  color: var(--text-main-color); /* Default text color for dark body background */
  line-height: 1.6;
}

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

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

.page-slot-games__light-text-color {
  color: #000000; /* Ensure high contrast on light backgrounds */
}

.page-slot-games__text-block {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-secondary-color);
}

.page-slot-games__text-block strong {
  color: var(--text-main-color);
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--background-color);
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 800;
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary-color);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main-color);
  border: none;
}

.page-slot-games__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--glow-color), 0.4);
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-slot-games__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-main-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--primary-color), 0.4);
}

/* About Section */
.page-slot-games__about-section {
  padding: 60px 20px;
  background-color: var(--background-color);
}

/* Features Section */
.page-slot-games__features-section {
  padding: 60px 20px;
  background-color: var(--text-main-color); /* Light background for contrast */
  color: #000000; /* Dark text for light background */
}

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

.page-slot-games__feature-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

.page-slot-games__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(var(--glow-color), 0.3);
}

.page-slot-games__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-slot-games__card-description {
  font-size: 0.95em;
  color: var(--text-secondary-color);
}

/* Games List Section */
.page-slot-games__games-list-section {
  padding: 60px 20px;
  background-color: var(--deep-green-color); /* Dark section background */
}

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

.page-slot-games__game-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

.page-slot-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(var(--glow-color), 0.3);
}

.page-slot-games__game-card .page-slot-games__card-image {
  height: 180px;
}

.page-slot-games__game-card .page-slot-games__card-title a {
  color: var(--gold-color);
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
}

.page-slot-games__game-card .page-slot-games__card-title a:hover {
  text-decoration: underline;
}

/* How To Play Section */
.page-slot-games__how-to-play-section {
  padding: 60px 20px;
  background-color: var(--text-main-color); /* Light background for contrast */
  color: #000000; /* Dark text for light background */
}

.page-slot-games__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__step-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-slot-games__step-item:last-child {
  margin-bottom: 0;
}

.page-slot-games__step-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-slot-games__step-item p {
  color: #333333;
}

.page-slot-games__step-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-slot-games__step-item a:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 60px 20px;
  background-color: var(--background-color);
}

.page-slot-games__image-full-width {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 40px;
  display: block;
}

.page-slot-games__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-slot-games__promotion-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-slot-games__promotion-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-slot-games__promotion-title a {
  color: var(--gold-color);
  text-decoration: none;
}

.page-slot-games__promotion-title a:hover {
  text-decoration: underline;
}

.page-slot-games__promotion-item p {
  color: var(--text-secondary-color);
}

/* Security Section */
.page-slot-games__security-section {
  padding: 60px 20px;
  background-color: var(--text-main-color); /* Light background for contrast */
  color: #000000; /* Dark text for light background */
}

.page-slot-games__image-center {
  display: block;
  margin: 0 auto 40px auto;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
}

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

.page-slot-games__security-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-slot-games__security-item h3 {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-slot-games__security-item p {
  color: #333333;
}

/* Responsible Gaming Section */
.page-slot-games__responsible-gaming-section {
  padding: 60px 20px;
  background-color: var(--deep-green-color); /* Dark section background */
}

.page-slot-games__responsible-list {
  list-style: disc;
  padding-left: 40px;
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary-color);
}

.page-slot-games__responsible-list li {
  margin-bottom: 10px;
}

.page-slot-games__responsible-list strong {
  color: var(--text-main-color);
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 60px 20px;
  background-color: var(--text-main-color); /* Light background for contrast */
  color: #000000; /* Dark text for light background */
}

.page-slot-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-slot-games__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-slot-games__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  list-style: none; /* Hide default marker */
}

.page-slot-games__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

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

.page-slot-games__faq-answer {
  padding: 0 25px 20px;
  color: #555555;
  font-size: 0.95em;
}

.page-slot-games__faq-answer p {
  margin-bottom: 10px;
  color: #333333;
}

.page-slot-games__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

/* Final CTA Section */
.page-slot-games__cta-final-section {
  padding: 80px 20px;
  background-color: var(--background-color);
  text-align: center;
}

.page-slot-games__cta-final-content {
  max-width: 800px;
}

.page-slot-games__cta-final-section .page-slot-games__section-title {
  margin-bottom: 20px;
}

.page-slot-games__cta-final-section .page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 0 15px !important;
  }

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

  .page-slot-games__main-title {
    font-size: 2em; /* Smaller on mobile */
  }

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

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__features-grid,
  .page-slot-games__game-cards-grid,
  .page-slot-games__promotion-list,
  .page-slot-games__security-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__hero-section,
  .page-slot-games__about-section,
  .page-slot-games__features-section,
  .page-slot-games__games-list-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__security-section,
  .page-slot-games__responsible-gaming-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final-section {
    padding: 40px 15px !important;
  }

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

  .page-slot-games__hero-image-wrapper,
  .page-slot-games__hero-content,
  .page-slot-games__container,
  .page-slot-games__feature-card,
  .page-slot-games__game-card,
  .page-slot-games__promotion-item,
  .page-slot-games__security-item,
  .page-slot-games__step-item,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-slot-games__hero-image-wrapper {
    margin-bottom: 30px;
  }
}

@media (min-width: 769px) {
  .page-slot-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  .page-slot-games__hero-image {
    height: 100%;
    width: 100%;
  }
  .page-slot-games__hero-section {
    min-height: 600px; /* Ensure hero section has a decent height on desktop */
    padding-top: 60px; /* Adjust padding for desktop view */
    padding-bottom: 60px;
  }
}