.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #FFF6D6); /* Default to light text for dark background */
  background-color: var(--background-color, #0A0A0A); /* Inherit from shared or default dark */
}

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

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

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop */
}

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

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

.page-slot-games__description {
  font-size: 1.2em;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-slot-games__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  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: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: none;
}

.page-slot-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background: #111111; /* Card BG */
  color: var(--glow, #FFD36B);
  border: 2px solid var(--glow, #FFD36B);
}

.page-slot-games__btn-secondary:hover {
  background: var(--glow, #FFD36B);
  color: #111111;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text-main, #FFF6D6);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-slot-games__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFD86A, #DDA11D);
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.page-slot-games__section-subtitle {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--text-main, #FFF6D6);
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-slot-games__dark-section {
  background-color: var(--background-color, #0A0A0A);
  color: var(--text-main, #FFF6D6);
}

.page-slot-games__light-bg {
  background-color: #111111; /* Card BG */
  color: var(--text-main, #FFF6D6);
}

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

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

.page-slot-games__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-slot-games__feature-title {
  font-size: 1.5em;
  color: var(--glow, #FFD36B);
  margin-bottom: 10px;
}

.page-slot-games__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6);
}

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

.page-slot-games__game-tile {
  background-color: var(--card-bg, #111111);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border, #3A2A12);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px; /* Space for button */
}

.page-slot-games__game-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent grid */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-slot-games__game-title {
  font-size: 1.4em;
  color: var(--glow, #FFD36B);
  margin-bottom: 5px;
  padding: 0 15px;
}

.page-slot-games__game-provider {
  font-size: 0.9em;
  color: #a0a0a0;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-slot-games__btn-play {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-slot-games__btn-play:hover {
  opacity: 0.9;
}

/* Categories Section */
.page-slot-games__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__category-item {
  background-color: var(--card-bg, #111111);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border, #3A2A12);
}

.page-slot-games__category-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-slot-games__category-title {
  font-size: 1.4em;
  color: var(--glow, #FFD36B);
  margin-bottom: 10px;
}

.page-slot-games__category-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--text-main, #FFF6D6);
}

/* Promotions Section */
.page-slot-games__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__promo-card {
  background-color: var(--card-bg, #111111);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #3A2A12);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-slot-games__promo-card:hover {
  transform: translateY(-5px);
}

.page-slot-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-slot-games__promo-title {
  font-size: 1.5em;
  color: var(--glow, #FFD36B);
  margin: 20px 20px 10px 20px;
}

.page-slot-games__promo-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6);
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-slot-games__btn-detail {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: opacity 0.3s ease;
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

.page-slot-games__btn-detail:hover {
  opacity: 0.9;
}

.page-slot-games__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Guide Section */
.page-slot-games__guide-list {
  list-style: none;
  counter-reset: guide-step;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 900px;
}

.page-slot-games__guide-list li {
  background-color: var(--card-bg, #111111);
  margin-bottom: 20px;
  padding: 25px 30px;
  border-radius: 12px;
  position: relative;
  border: 1px solid var(--border, #3A2A12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__guide-list li::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-slot-games__guide-step-title {
  font-size: 1.3em;
  color: var(--glow, #FFD36B);
  margin-bottom: 10px;
  padding-left: 20px;
}

.page-slot-games__guide-list p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6);
  margin: 0;
  padding-left: 20px;
  text-align: left;
}

.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-slot-games__tips-list li {
  background-color: var(--card-bg, #111111);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-left: 5px solid var(--glow, #FFD36B);
  border-radius: 8px;
  font-size: 1em;
  color: var(--text-main, #FFF6D6);
  line-height: 1.6;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.page-slot-games__tips-list li strong {
  color: var(--glow, #FFD36B);
}

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

.page-slot-games__faq-item {
  background-color: var(--card-bg, #111111);
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border, #3A2A12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--glow, #FFD36B);
  cursor: pointer;
  list-style: none;
  outline: none;
}

.page-slot-games__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-slot-games__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent click on text from interfering with details toggle */
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #FFD36B);
  pointer-events: none; /* Prevent click on toggle from interfering with details toggle */
}

.page-slot-games__faq-answer {
  padding: 15px 25px 25px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6);
  border-top: 1px solid var(--border, #3A2A12);
}

.page-slot-games__faq-answer p {
  margin: 0;
  text-align: left;
}

/* Final CTA Section */
.page-slot-games__cta-final {
  padding: 60px 20px;
  text-align: center;
}

/* --- Responsive Styles --- */

/* General responsive for images */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General responsive for content containers */
.page-slot-games__section,
.page-slot-games__card,
.page-slot-games__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .page-slot-games__container {
    padding: 30px 15px;
  }

  .page-slot-games__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }

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

  .page-slot-games__description,
  .page-slot-games__text-block {
    font-size: 1em;
  }

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

  .page-slot-games__game-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-slot-games__hero-section {
    padding-top: 10px !important;
  }
  .page-slot-games__hero-image-wrapper {
    max-height: 400px;
  }
  .page-slot-games__hero-image {
    object-fit: contain; /* Mobile hero image: contain, not cover */
    aspect-ratio: unset; /* Remove fixed aspect ratio for mobile */
    max-height: none; /* Allow height to adjust */
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-slot-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }

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

  /* General content and text */
  .page-slot-games__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

  .page-slot-games__text-block,
  .page-slot-games p,
  .page-slot-games li {
    font-size: 1em;
    line-height: 1.5;
    text-align: left; /* Align text left for better readability on mobile */
  }

  /* Feature Grid */
  .page-slot-games__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__feature-item {
    padding: 25px;
  }

  /* Game Grid */
  .page-slot-games__game-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 15px;
  }

  .page-slot-games__game-tile {
    padding-bottom: 15px;
  }

  .page-slot-games__game-image {
    height: auto; /* Allow height to adjust */
    aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
    object-fit: cover;
  }

  .page-slot-games__game-title {
    font-size: 1.2em;
  }

  .page-slot-games__btn-play {
    padding: 8px 15px;
    font-size: 0.9em;
  }

  /* Categories Grid */
  .page-slot-games__category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Promotions Grid */
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__promo-image {
    height: 180px;
  }

  .page-slot-games__promo-title {
    font-size: 1.3em;
  }

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

  .page-slot-games__btn-large {
    padding: 15px 25px;
    font-size: 1.1em;
  }

  /* Guide Section */
  .page-slot-games__guide-list {
    margin-left: 0;
    margin-right: 0;
  }

  .page-slot-games__guide-list li {
    padding: 20px;
  }

  .page-slot-games__guide-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
  }

  .page-slot-games__guide-step-title {
    font-size: 1.2em;
    padding-left: 15px;
  }

  .page-slot-games__guide-list p {
    padding-left: 15px;
  }

  .page-slot-games__tips-list li {
    font-size: 0.95em;
  }

  /* FAQ Section */
  .page-slot-games__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-slot-games__faq-toggle {
    font-size: 1.3em;
  }

  .page-slot-games__faq-answer {
    font-size: 0.95em;
    padding: 10px 20px 20px 20px;
  }

  /* Ensure all images are responsive on mobile */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all content containers are responsive on mobile */
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-content,
  .page-slot-games__promo-card,
  .page-slot-games__game-tile,
  .page-slot-games__feature-item,
  .page-slot-games__category-item,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button specific styles */
  .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__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__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;
    flex-direction: column; /* Force vertical stack for button groups */
  }

  /* No winner list in this page type, so no specific mobile rule for it */
  /* No blog or news sections, so no specific mobile rule for them */
}