.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #121212; /* Matches shared.css body background */
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-slot-games__section-subtitle {
  font-size: 1.2em;
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 40px;
}

.page-slot-games__text-block {
  font-size: 1em;
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  overflow: hidden;
  color: #ffffff;
}

.page-slot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.4; /* Slightly dim image for text readability */
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 1.5em;
  margin-bottom: 30px;
  max-width: 800px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

.page-slot-games__btn-primary {
  background-color: #FFD700;
  color: #4A148C; /* Dark text for gold background */
  border: 2px solid #FFD700;
}

.page-slot-games__btn-primary:hover {
  background-color: #e6c200;
  color: #3a1070;
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-slot-games__btn-secondary:hover {
  background-color: #FFD700;
  color: #4A148C;
}

.page-slot-games__btn-tertiary {
  background-color: #4A148C;
  color: #FFD700;
  border: 2px solid #4A148C;
}

.page-slot-games__btn-tertiary:hover {
  background-color: #3a1070;
  color: #e6c200;
}

.page-slot-games__btn-dark {
  color: #ffffff !important;
  background-color: #4A148C !important;
  border-color: #4A148C !important;
}

.page-slot-games__btn-dark-border {
  color: #4A148C !important;
  background-color: transparent !important;
  border-color: #4A148C !important;
}

.page-slot-games__btn-dark:hover {
  background-color: #3a1070 !important;
  color: #FFD700 !important;
}

.page-slot-games__btn-dark-border:hover {
  background-color: #4A148C !important;
  color: #ffffff !important;
}

/* General Section Styling */
.page-slot-games__introduction-section,
.page-slot-games__features-section,
.page-slot-games__promotions-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #f0f0f0;
}

.page-slot-games__dark-bg {
  background-color: #4A148C;
}

.page-slot-games__gold-bg {
  background-color: #FFD700;
}

.page-slot-games__light-text {
  color: #ffffff;
}

.page-slot-games__dark-text {
  color: #4A148C;
}

.page-slot-games__gold-text {
  color: #FFD700;
}

/* Grid Layouts */
.page-slot-games__grid,
.page-slot-games__features-grid,
.page-slot-games__promotions-grid,
.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Cards */
.page-slot-games__card,
.page-slot-games__feature-item,
.page-slot-games__promo-card,
.page-slot-games__step-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__card:hover,
.page-slot-games__feature-item:hover,
.page-slot-games__promo-card:hover,
.page-slot-games__step-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__card-image,
.page-slot-games__feature-icon,
.page-slot-games__promo-image,
.page-slot-games__how-to-play-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

.page-slot-games__card-title,
.page-slot-games__feature-title,
.page-slot-games__promo-title,
.page-slot-games__step-title {
  font-size: 1.4em;
  color: #FFD700; /* Gold for card titles */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-slot-games__card-description,
.page-slot-games__feature-description,
.page-slot-games__promo-description,
.page-slot-games__step-description {
  font-size: 0.95em;
  color: #e0e0e0;
  flex-grow: 1;
}

/* How-to-Play Section */
.page-slot-games__how-to-play-section {
  padding: 80px 0;
  background-color: #4A148C;
  color: #ffffff;
}

.page-slot-games__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-slot-games__how-to-play-image {
  margin-top: 50px;
  border: 5px solid #FFD700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.page-slot-games__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #FFD700;
  color: #4A148C;
}

.page-slot-games__cta-section .page-slot-games__section-title {
  color: #4A148C;
}

.page-slot-games__cta-section .page-slot-games__section-subtitle {
  color: #3a1070;
}

.page-slot-games__cta-section .page-slot-games__cta-group {
  margin-top: 40px;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

.page-slot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  background-color: #4A148C;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-slot-games__faq-title {
  margin: 0;
  color: #ffffff;
}

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

.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;
  color: #e0e0e0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px;
}

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

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

@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 15px;
  }
  .page-slot-games__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-slot-games__hero-title {
    font-size: 2.2em;
  }
  .page-slot-games__hero-description {
    font-size: 1.1em;
  }
  .page-slot-games__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-tertiary,
  .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-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__hero-cta-group,
  .page-slot-games__cta-group {
    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-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__section-subtitle {
    font-size: 1em;
  }
  .page-slot-games__grid,
  .page-slot-games__features-grid,
  .page-slot-games__promotions-grid,
  .page-slot-games__steps-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__hero-section,
  .page-slot-games__introduction-section,
  .page-slot-games__categories-section,
  .page-slot-games__features-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-slot-games__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}