.page-slots {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6); /* Default text color for the page, derived from custom colors */
  background-color: var(--background, #0A0A0A); /* Default background color for the page */
}

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

.page-slots__section {
  padding: 60px 0;
  text-align: center;
}

.page-slots__dark-bg {
  background-color: var(--background, #0A0A0A);
  color: var(--text-main, #FFF6D6);
}

.page-slots__section-title {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--text-main, #FFF6D6);
  line-height: 1.2;
}

.page-slots__section-title--light {
  color: var(--text-main, #FFF6D6);
}

.page-slots__section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: rgba(255, 246, 214, 0.8);
}

.page-slots__card {
  background-color: var(--card-bg, #111111);
  border: 1px solid var(--border, #3A2A12);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main, #FFF6D6);
  height: 100%;
  box-sizing: border-box;
}

.page-slots__text-link {
  color: var(--primary-color, #F2C14E);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-slots__text-link:hover {
  color: var(--glow, #FFD36B);
}

/* Hero Section */
.page-slots__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Desktop default */
  padding-bottom: 60px;
  min-height: 500px;
}

.page-slots__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.page-slots__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
}

.page-slots__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px;
  text-align: center;
}

.page-slots__main-title {
  font-size: clamp(2.8rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-slots__hero-description {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255, 246, 214, 0.9);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-slots__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Ensure dark text on bright button */
  border: 2px solid transparent;
}

.page-slots__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-slots__btn-secondary {
  background: transparent;
  color: var(--primary-color, #F2C14E);
  border: 2px solid var(--primary-color, #F2C14E);
}

.page-slots__btn-secondary:hover {
  background: var(--primary-color, #F2C14E);
  color: #111111; /* Ensure dark text on bright button */
  transform: translateY(-3px);
}

/* Why Play Section */
.page-slots__why-play-section {
  background-color: var(--background, #0A0A0A);
  color: var(--text-main, #FFF6D6);
}

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

.page-slots__feature-title {
  font-size: 1.6rem;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 15px;
}

.page-slots__feature-description {
  font-size: 1rem;
  color: rgba(255, 246, 214, 0.7);
  margin-bottom: 20px;
}

/* Categories Section */
.page-slots__categories-section {
  background-color: var(--card-bg, #111111);
}

.page-slots__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-slots__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  border-radius: 8px;
  background-color: var(--background, #0A0A0A);
  border: 1px solid var(--border, #3A2A12);
  text-decoration: none;
  color: var(--text-main, #FFF6D6);
  transition: all 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.page-slots__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(242, 193, 78, 0.2);
  border-color: var(--primary-color, #F2C14E);
}

.page-slots__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(242, 193, 78, 0.5));
}

.page-slots__category-title {
  font-size: 1.4rem;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 10px;
}

.page-slots__category-description {
  font-size: 0.95rem;
  color: rgba(255, 246, 214, 0.7);
}

/* Popular Games Section */
.page-slots__popular-games-section {
  background-color: var(--background, #0A0A0A);
}

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

.page-slots__game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-slots__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: block;
}

.page-slots__game-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.page-slots__game-title {
  font-size: 1.5rem;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 10px;
}

.page-slots__game-description {
  font-size: 1rem;
  color: rgba(255, 246, 214, 0.7);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slots__btn-play-now {
  width: 100%;
  padding: 12px 20px;
  font-size: 1rem;
  text-align: center;
}

/* How to Play Section */
.page-slots__how-to-play-section {
  background-color: var(--card-bg, #111111);
}

.page-slots__numbered-list {
  list-style: none;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 40px auto 0 auto;
  padding: 0;
  text-align: left;
}

.page-slots__list-item {
  counter-increment: step-counter;
  margin-bottom: 25px;
  padding-left: 60px;
  position: relative;
  color: var(--text-main, #FFF6D6);
}

.page-slots__list-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text on bright background */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.page-slots__list-title {
  font-size: 1.5rem;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 5px;
}

.page-slots__list-description {
  font-size: 1rem;
  color: rgba(255, 246, 214, 0.7);
}

.page-slots__centered-cta {
  margin-top: 40px;
}

/* Responsible Gaming Section */
.page-slots__responsible-gaming-section {
  background-color: var(--background, #0A0A0A);
}

/* FAQ Section */
.page-slots__faq-section {
  background-color: var(--card-bg, #111111);
}

.page-slots__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-slots__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border, #3A2A12);
  border-radius: 8px;
  overflow: hidden;
}

.page-slots__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: var(--background, #0A0A0A);
  cursor: pointer;
  color: var(--text-main, #FFF6D6);
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.page-slots__faq-question:hover {
  background-color: #1a1a1a;
}

.page-slots__faq-heading {
  font-size: 1.1rem;
  color: var(--text-main, #FFF6D6);
  margin: 0;
}

.page-slots__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color, #F2C14E);
}

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

.page-slots__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--card-bg, #111111);
  color: rgba(255, 246, 214, 0.7);
}

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

.page-slots__faq-text {
  margin: 0;
  font-size: 0.95rem;
}

.page-slots__faq-text a {
  color: var(--primary-color, #F2C14E);
  text-decoration: none;
}

.page-slots__faq-text a:hover {
  color: var(--glow, #FFD36B);
}

/* Final CTA Section */
.page-slots__cta-final-section {
  background: linear-gradient(135deg, var(--primary-color, #F2C14E), var(--secondary-color, #FFD36B));
  padding: 80px 0;
  color: #111111; /* Dark text on bright background */
}

.page-slots__cta-final-section .page-slots__section-title {
  color: #111111;
}

.page-slots__cta-final-section .page-slots__section-description {
  color: rgba(17, 17, 17, 0.8);
}

.page-slots__cta-final-section .page-slots__btn-primary {
  background: #111111;
  color: var(--primary-color, #F2C14E);
  border: 2px solid #111111;
}

.page-slots__cta-final-section .page-slots__btn-primary:hover {
  background: #333333;
  color: var(--glow, #FFD36B);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slots__cta-final-section .page-slots__btn-secondary {
  background: transparent;
  color: #111111;
  border: 2px solid #111111;
}

.page-slots__cta-final-section .page-slots__btn-secondary:hover {
  background: #111111;
  color: var(--primary-color, #F2C14E);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slots__hero-section {
    min-height: 450px;
  }
}

@media (max-width: 768px) {
  .page-slots__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media query for --header-offset */
    padding-bottom: 40px;
    min-height: 400px;
  }

  .page-slots__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-slots__hero-description {
    font-size: 1rem;
  }

  .page-slots__section {
    padding: 40px 0;
  }

  .page-slots__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .page-slots__features-grid,
  .page-slots__category-grid,
  .page-slots__game-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-slots__btn-primary,
  .page-slots__btn-secondary,
  .page-slots a[class*="button"],
  .page-slots 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-slots__cta-buttons,
  .page-slots__button-group,
  .page-slots__btn-container {
    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-slots img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-slots__section,
  .page-slots__card,
  .page-slots__container,
  .page-slots__game-card,
  .page-slots__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slots__game-image {
    height: 180px;
  }

  .page-slots__list-item {
    padding-left: 50px;
  }

  .page-slots__list-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  .page-slots__list-title {
    font-size: 1.3rem;
  }

  .page-slots__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-slots__faq-heading {
    font-size: 1rem;
  }

  .page-slots__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-slots__hero-section {
    min-height: 350px;
    padding-bottom: 30px;
  }

  .page-slots__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }

  .page-slots__hero-description {
    font-size: 0.9rem;
  }

  .page-slots__section {
    padding: 30px 0;
  }

  .page-slots__section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .page-slots__btn-primary,
  .page-slots__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
}