.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Dark background, so light text */
  background-color: #000000; /* Body background is dark */
}

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

.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px; /* Adjusted for header offset */
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Brand colors for hero background */
  overflow: hidden;
}

.page-slot-games__hero-content {
  z-index: 1;
  max-width: 800px;
}

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

.page-slot-games__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-slot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background */
  filter: brightness(0.7); /* Darken to ensure text contrast */
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.page-slot-games__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Dark Red for contrast */
  border: 2px solid #FFD700;
}

.page-slot-games__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: #FFD700;
  color: #8B0000; /* Dark Red */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-slot-games__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.page-slot-games__about-section,
.page-slot-games__popular-games-section,
.page-slot-games__how-to-play-section,
.page-slot-games__promotions-section,
.page-slot-games__tips-section,
.page-slot-games__faq-section,
.page-slot-games__cta-final-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

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

.page-slot-games__feature-card,
.page-slot-games__game-card,
.page-slot-games__promo-card,
.page-slot-games__step-card {
  background-color: #1a1a1a;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-slot-games__feature-card:hover,
.page-slot-games__game-card:hover,
.page-slot-games__promo-card:hover,
.page-slot-games__step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-slot-games__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px; /* Ensure images are not too tall */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 10px;
}

.page-slot-games__feature-title,
.page-slot-games__game-title,
.page-slot-games__promo-title,
.page-slot-games__step-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-slot-games__game-title a,
.page-slot-games__promo-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-slot-games__game-title a:hover,
.page-slot-games__promo-title a:hover {
  text-decoration: underline;
}

.page-slot-games__feature-text,
.page-slot-games__game-description,
.page-slot-games__promo-text,
.page-slot-games__step-text {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
}

.page-slot-games__game-thumbnail,
.page-slot-games__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-slot-games__btn-play,
.page-slot-games__btn-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: all 0.3s ease;
  background-color: #8B0000; /* Dark Red */
  color: #FFD700; /* Gold */
  border: 2px solid #8B0000;
}

.page-slot-games__btn-play:hover,
.page-slot-games__btn-link:hover {
  background-color: #FFD700;
  color: #8B0000;
  border-color: #FFD700;
}

.page-slot-games__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background-color: #FFD700;
  color: #8B0000;
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-slot-games__cta-bottom,
.page-slot-games__cta-promotions {
  text-align: center;
  margin-top: 60px;
}

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

.page-slot-games__tip-item {
  background-color: #1a1a1a;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-left: 5px solid #FFD700;
}

.page-slot-games__tip-heading {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-slot-games__tip-text {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
}

.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  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-out, padding 0.3s ease-out;
  color: #cccccc;
  line-height: 1.6;
}

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

.page-slot-games__cta-final-section {
  background-color: #8B0000; /* Dark Red for strong CTA */
  text-align: center;
  padding: 80px 0;
}

.page-slot-games__cta-final-section .page-slot-games__section-title {
  color: #FFD700;
}

.page-slot-games__cta-final-section .page-slot-games__section-description {
  color: #ffffff;
}

.page-slot-games__cta-final-section .page-slot-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

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

@media (max-width: 768px) {
  .page-slot-games__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100%;
    max-width: 300px; /* Constrain width for better mobile display */
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-slot-games__section-title {
    font-size: 2em;
  }

  .page-slot-games__section-description {
    font-size: 0.95em;
  }

  .page-slot-games__features-grid,
  .page-slot-games__game-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__feature-card,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__step-card {
    padding: 25px;
  }

  .page-slot-games__feature-title,
  .page-slot-games__game-title,
  .page-slot-games__promo-title,
  .page-slot-games__step-title {
    font-size: 1.4em;
  }

  .page-slot-games__tip-heading {
    font-size: 1.5em;
  }

  .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: 10px 20px;
  }

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

  /* Mobile image responsiveness */
  .page-slot-games img {
    max-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__about-section,
  .page-slot-games__popular-games-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__tips-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Ensure padding for sections on mobile */
  .page-slot-games__about-section,
  .page-slot-games__popular-games-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__tips-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .page-slot-games__cta-button,
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .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-buttons,
  .page-slot-games__cta-bottom,
  .page-slot-games__cta-promotions,
  .page-slot-games__cta-final-section .page-slot-games__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }

  .page-slot-games__hero-image {
    filter: brightness(0.4) !important; /* Further darken image for text contrast on small screens */
  }

  /* Content area image CSS size lower bound */
  .page-slot-games__game-thumbnail,
  .page-slot-games__promo-image {
    width: 100% !important;
    height: auto !important; /* Allow height to adjust */
    min-height: 200px !important; /* Enforce minimum height */
    object-fit: cover !important;
  }

  .page-slot-games__feature-icon {
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
    object-fit: contain !important;
  }
}

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

  .page-slot-games__section-title {
    font-size: 1.8em;
  }
}