.page-slot-games {
  color: #FFFFFF;
  background-color: #100224; /* Adjusted for dark theme */
  font-family: 'Roboto', sans-serif;
}

.page-slot-games__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile-first, then row for desktop */
  align-items: center;
  padding: 10px 0 40px;
  text-align: center;
  background-color: #017439;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/5;
  object-fit: cover;
}

.page-slot-games__hero-content {
  padding: 20px 20px 0;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.page-slot-games__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 30px;
  line-height: 1.6;
  color: #E0E0E0;
}

.page-slot-games__cta-button,
.page-slot-games__register-button,
.page-slot-games__promo-button,
.page-slot-games__start-playing-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(90deg, #ff9500, #ff5e3a);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 94, 58, 0.4);
  border: none;
  cursor: pointer;
}

.page-slot-games__cta-button:hover,
.page-slot-games__register-button:hover,
.page-slot-games__promo-button:hover,
.page-slot-games__start-playing-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 94, 58, 0.6);
}

.page-slot-games__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #FFFFFF;
  padding: 40px 20px 0;
  background: linear-gradient(90deg, #ff9500, #ff5e3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.page-slot-games__introduction-section,
.page-slot-games__featured-games,
.page-slot-games__promotions-section,
.page-slot-games__how-to-play-section,
.page-slot-games__responsible-gaming-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-slot-games__text-content {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #E0E0E0;
}

.page-slot-games__advantage-list {
  list-style: none;
  padding: 0;
  margin: 20px auto 0;
  max-width: 800px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-slot-games__advantage-item {
  background-color: #017439;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__game-tile {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__game-tile:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__game-tile img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 200px; /* Ensure images are not too small */
  object-fit: cover;
}

.page-slot-games__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-slot-games__view-all-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #83a1f2; /* Blue pill button color */
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-slot-games__view-all-button:hover {
  background-color: #688cec;
  transform: translateY(-2px);
}

.page-slot-games__how-to-play-section {
  text-align: center;
}

.page-slot-games__steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
  text-align: left;
}

.page-slot-games__step-card {
  background-color: #017439;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #FFFFFF;
}

.page-slot-games__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD700; /* Gold-like color for step titles */
}

.page-slot-games__step-description {
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-slot-games__step-description a {
  color: #FFFF00; /* Yellow for links in steps */
  text-decoration: underline;
}

.page-slot-games__step-description a:hover {
  color: #FFD700;
}

.page-slot-games__responsible-gaming-section {
  background-color: #1a0530; /* Slightly different dark background */
  padding-bottom: 60px;
}

.page-slot-games__responsible-gaming-section a {
  color: #FFFF00; /* Yellow for responsible gaming link */
  text-decoration: underline;
}

.page-slot-games__responsible-gaming-section a:hover {
  color: #FFD700;
}

/* Specific color overrides based on rules */
.page-slot-games__register-button { /* Already uses linear-gradient from general CTA */
  background: #C30808; /* Override if a single color is preferred */
}

/* Media Queries for Responsiveness */
@media (min-width: 850px) {
  .page-slot-games__hero-section {
    flex-direction: row; /* Desktop: image and content side-by-side */
    text-align: left;
    padding: 0;
  }

  .page-slot-games__hero-image-wrapper {
    flex: 1;
  }

  .page-slot-games__hero-image {
    aspect-ratio: 16/9;
  }

  .page-slot-games__hero-content {
    flex: 1;
    padding: 60px;
  }

  .page-slot-games__hero-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .page-slot-games__main-title {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    flex-direction: column;
    padding-top: 10px; /* Small top padding, body handles header offset */
  }

  .page-slot-games__hero-image {
    max-width: 100%;
    height: auto;
  }

  .page-slot-games__game-grid,
  .page-slot-games__steps-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .page-slot-games__game-tile img {
    max-width: 100%;
    height: auto;
  }

  .page-slot-games__text-content {
    text-align: left;
  }
}

@media (max-width: 550px) {
  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-slot-games__hero-description {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  }

  .page-slot-games__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-slot-games__game-grid,
  .page-slot-games__steps-container {
    grid-template-columns: 1fr;
  }

  .page-slot-games__cta-button,
  .page-slot-games__view-all-button,
  .page-slot-games__register-button,
  .page-slot-games__promo-button,
  .page-slot-games__start-playing-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-slot-games__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-games__advantage-item {
    width: 100%;
    text-align: center;
  }
}

/* Ensure content images are not smaller than 200px */
.page-slot-games img:not(.page-slot-games__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

.page-slot-games__step-card a {
  color: #FFFF00;
}

.page-slot-games__responsible-gaming-section a {
  color: #FFFF00;
}