:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-light: #f8f8f8;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
}

/* Base styles for the page content area to ensure contrast with body background */
.page-slot-games {
  color: var(--text-light); /* Default light text for dark body background */
  background-color: var(--bg-dark); /* Ensure this section has a defined background */
  padding-top: 120px; /* Desktop: Ensure content is not hidden by fixed header */
}

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--primary-color);
}

.page-slot-games__hero-container {
  max-width: 900px;
  z-index: 1;
}

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

.page-slot-games__hero-description {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
}

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

/* Video Showcase Section */
.page-slot-games__video-showcase {
  padding: 60px 20px;
  text-align: center;
}

.page-slot-games__video-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__video-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-slot-games__video-description {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 40px;
  opacity: 0.8;
}

.page-slot-games__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
}

.page-slot-games__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevents video controls from blocking click event on parent <a> */
}

.page-slot-games__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-slot-games__video-link:hover .page-slot-games__video-overlay {
  opacity: 1;
}

.page-slot-games__video-click-hint {
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  background: rgba(255, 215, 0, 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

.page-slot-games__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-slot-games__play-now-button:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* About Slots Section */
.page-slot-games__about-slots-section {
  padding: 60px 20px;
  text-align: center;
}

.page-slot-games__about-slots-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-slot-games__about-slots-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 25px;
}

.page-slot-games__about-slots-text {
  font-size: 1.1em;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-slot-games__image-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.page-slot-games__about-slots-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Game Types Section */
.page-slot-games__game-types-section {
  padding: 60px 20px;
  text-align: center;
}

.page-slot-games__game-types-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-slot-games__game-types-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-slot-games__game-types-description {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 40px;
  opacity: 0.8;
}

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

.page-slot-games__game-type-card {
  background: var(--card-bg-dark);
  border-radius: 10px;
  padding: 25px;
  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;
  align-items: center;
  color: var(--text-light);
}

.page-slot-games__game-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__game-type-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__game-type-card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-slot-games__game-type-card-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.8;
  flex-grow: 1;
}

/* Why Choose U888 Section */
.page-slot-games__why-choose-u888 {
  padding: 60px 20px;
  text-align: center;
}

.page-slot-games__why-choose-u888-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-slot-games__why-choose-u888-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 40px;
}

.page-slot-games__why-choose-u888-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-slot-games__feature-card {
  background: var(--card-bg-light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__feature-icon {
  width: 100%;
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
}

.page-slot-games__feature-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-slot-games__feature-text {
  font-size: 1em;
  line-height: 1.6;
  opacity: 0.9;
  flex-grow: 1;
}

/* Guide Section */
.page-slot-games__guide-section {
  padding: 60px 20px;
  text-align: center;
}

.page-slot-games__guide-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-slot-games__guide-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-slot-games__guide-description {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 40px;
  opacity: 0.8;
}

.page-slot-games__guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-slot-games__guide-item {
  background: var(--card-bg-dark);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--primary-color);
}

.page-slot-games__guide-item-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-slot-games__guide-item-text {
  font-size: 1em;
  color: var(--text-light);
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 15px;
}

.page-slot-games__btn-inline {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-slot-games__btn-inline:hover {
  background: darken(var(--secondary-color), 10%);
}

/* Promo Section */
.page-slot-games__promo-section {
  padding: 60px 20px;
  text-align: center;
}

.page-slot-games__promo-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-slot-games__promo-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-slot-games__promo-description {
  font-size: 1.1em;
  color: var(--text-dark);
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-slot-games__promo-card {
  background: var(--card-bg-light);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dark);
}

.page-slot-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__promo-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__promo-card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-slot-games__promo-card-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.8;
  flex-grow: 1;
}

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

/* Tips Section */
.page-slot-games__tips-section {
  padding: 60px 20px;
  text-align: center;
}

.page-slot-games__tips-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-slot-games__tips-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-slot-games__tips-description {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 40px;
  opacity: 0.8;
}

.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-slot-games__tips-item {
  background: var(--card-bg-dark);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--secondary-color);
}

.page-slot-games__tips-item-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-slot-games__tips-item-text {
  font-size: 1em;
  color: var(--text-light);
  line-height: 1.6;
  opacity: 0.8;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 60px 20px;
}

.page-slot-games__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-slot-games__faq-main-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Ensure content expands */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--bg-light);
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-slot-games__faq-question:hover {
  background: #f0f0f0;
  border-color: #d0d0d0;
}

.page-slot-games__faq-question:active {
  background: #eeeeee;
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--secondary-color);
}

.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Final CTA Section */
.page-slot-games__cta-final-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(45deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-top: 5px solid var(--primary-color);
}

.page-slot-games__cta-final-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-slot-games__cta-final-title {
  font-size: 2.8em;
  color: var(--text-light);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__cta-final-description {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 40px;
  opacity: 0.9;
}

/* General Buttons */
.page-slot-games__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-slot-games__btn-primary:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-slot-games__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-tertiary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-tertiary:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 2.8em;
  }
  .page-slot-games__video-title, .page-slot-games__about-slots-title, .page-slot-games__game-types-title, .page-slot-games__why-choose-u888-title, .page-slot-games__guide-title, .page-slot-games__promo-title, .page-slot-games__tips-title, .page-slot-games__faq-main-title, .page-slot-games__cta-final-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    padding-top: 100px !important; /* Mobile: Ensure content is not hidden by fixed header */
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__hero-section, .page-slot-games__video-showcase, .page-slot-games__about-slots-section, .page-slot-games__game-types-section, .page-slot-games__why-choose-u888, .page-slot-games__guide-section, .page-slot-games__promo-section, .page-slot-games__tips-section, .page-slot-games__faq-section, .page-slot-games__cta-final-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-slot-games__btn-primary, .page-slot-games__btn-secondary, .page-slot-games__play-now-button, .page-slot-games__btn-tertiary, .page-slot-games__btn-inline {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__video-container, .page-slot-games__about-slots-container, .page-slot-games__game-types-container, .page-slot-games__why-choose-u888-container, .page-slot-games__guide-container, .page-slot-games__promo-container, .page-slot-games__tips-container, .page-slot-games__faq-container, .page-slot-games__cta-final-container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__video-title, .page-slot-games__about-slots-title, .page-slot-games__game-types-title, .page-slot-games__why-choose-u888-title, .page-slot-games__guide-title, .page-slot-games__promo-title, .page-slot-games__tips-title, .page-slot-games__faq-main-title, .page-slot-games__cta-final-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-slot-games__video-description, .page-slot-games__about-slots-text, .page-slot-games__game-types-description, .page-slot-games__feature-text, .page-slot-games__guide-description, .page-slot-games__guide-item-text, .page-slot-games__promo-description, .page-slot-games__promo-card-text, .page-slot-games__tips-description, .page-slot-games__tips-item-text, .page-slot-games__cta-final-description {
    font-size: 0.95em;
    line-height: 1.5;
  }

  .page-slot-games__game-types-grid, .page-slot-games__why-choose-u888-grid, .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__game-type-card, .page-slot-games__feature-card, .page-slot-games__promo-card, .page-slot-games__guide-item, .page-slot-games__tips-item {
    padding: 20px;
    border-radius: 8px;
  }

  .page-slot-games__game-type-image, .page-slot-games__feature-icon, .page-slot-games__promo-image, .page-slot-games__about-slots-image, .page-slot-games video, .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__faq-question {
    padding: 15px;
  }

  .page-slot-games__faq-question h3 {
    font-size: 1em;
  }

  .page-slot-games__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 1.8em;
  }
  .page-slot-games__video-title, .page-slot-games__about-slots-title, .page-slot-games__game-types-title, .page-slot-games__why-choose-u888-title, .page-slot-games__guide-title, .page-slot-games__promo-title, .page-slot-games__tips-title, .page-slot-games__faq-main-title, .page-slot-games__cta-final-title {
    font-size: 1.5em;
  }
  .page-slot-games__hero-section, .page-slot-games__video-showcase, .page-slot-games__about-slots-section, .page-slot-games__game-types-section, .page-slot-games__why-choose-u888, .page-slot-games__guide-section, .page-slot-games__promo-section, .page-slot-games__tips-section, .page-slot-games__faq-section, .page-slot-games__cta-final-section {
    padding: 30px 10px;
  }
  .page-slot-games__hero-cta-buttons {
    gap: 10px;
  }
}