:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000;
  --bg-light-card: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  --border-light: rgba(255, 255, 255, 0.15);
}

/* Base styles for the page content, considering body background #000 */
.page-slot-games {
  color: var(--text-light); /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-dark); /* Ensure consistency if body background is overridden */
}

/* Global link styles within the page-slot-games scope */
.page-slot-games a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games a:hover {
  color: #e0b000; /* Darker gold on hover */
}

/* Sections padding to clear fixed header */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px; /* Desktop padding-top to clear fixed header */
  background: linear-gradient(135deg, var(--secondary-color), #000);
  text-align: center;
  overflow: hidden; /* Prevent image overflow */
}

.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%; /* Ensure container fills width */
  box-sizing: border-box;
}

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

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

.page-slot-games__hero-description {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 30px;
}

.page-slot-games__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box; /* Ensure padding/border are included in width */
}

.page-slot-games__cta-button--primary {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-slot-games__cta-button--primary:hover {
  background: #e0b000; /* Darker gold */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__cta-button--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-slot-games__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__hero-image {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  overflow: hidden;
}

.page-slot-games__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* General section styling */
.page-slot-games__intro-section,
.page-slot-games__game-types,
.page-slot-games__how-to-play,
.page-slot-games__features-section,
.page-slot-games__tips-section,
.page-slot-games__conclusion-section {
  padding: 80px 0;
}

.page-slot-games__dark-bg {
  background-color: var(--secondary-color);
}

.page-slot-games__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.page-slot-games__text-block {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 1.1em;
  color: var(--text-light);
}

.page-slot-games__text-block p {
  margin-bottom: 20px;
}

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

.page-slot-games__game-card {
  background: var(--bg-light-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-light);
}

.page-slot-games__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block; /* Ensure image takes full width */
}

.page-slot-games__card-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-slot-games__game-card p {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 25px;
  padding: 0 20px;
  flex-grow: 1;
}

.page-slot-games__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  max-width: calc(100% - 40px); /* Adjust for padding */
  box-sizing: border-box;
  margin: 0 20px; /* Center button with padding */
}

.page-slot-games__card-button:hover {
  background: #e0b000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* How to play section */
.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-slot-games__steps-list li {
  background: var(--bg-light-card);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
}

.page-slot-games__steps-list li h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-slot-games__steps-list li p {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-slot-games__step-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
}

.page-slot-games__step-button:hover {
  background: #e0b000;
  transform: translateY(-2px);
}

/* Features section */
.page-slot-games__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__feature-item {
  background: var(--bg-light-card);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
}

.page-slot-games__feature-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block; /* Ensure image takes full width in its container */
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__feature-item p {
  font-size: 1em;
  color: var(--text-light);
}

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

.page-slot-games__tips-list li {
  background: var(--bg-light-card);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
}

.page-slot-games__tips-list li h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-slot-games__tips-list li p {
  font-size: 1.1em;
  color: var(--text-light);
}

/* Conclusion section */
.page-slot-games__final-cta {
  text-align: center;
  margin-top: 50px;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 3em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__hero-section {
    padding-top: 100px; /* Adjust for tablet fixed header */
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding: 80px 15px 40px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-slot-games__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-slot-games__hero-cta {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-slot-games__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-slot-games__hero-image {
    margin-top: 30px;
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-slot-games__hero-image img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    object-fit: contain;
  }

  .page-slot-games__intro-section,
  .page-slot-games__game-types,
  .page-slot-games__how-to-play,
  .page-slot-games__features-section,
  .page-slot-games__tips-section,
  .page-slot-games__conclusion-section {
    padding: 50px 0;
  }

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

  .page-slot-games__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-slot-games__game-grid,
  .page-slot-games__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-slot-games__game-card,
  .page-slot-games__feature-item {
    border-radius: 8px;
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-slot-games__game-card img {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    object-fit: contain;
  }
  
  .page-slot-games__feature-item img {
    width: 80px;
    height: 80px;
    max-width: 100% !important;
    width: 100% !important;
    object-fit: contain;
  }

  .page-slot-games__card-title {
    font-size: 1.5em;
  }
  
  .page-slot-games__card-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0;
  }

  .page-slot-games__steps-list,
  .page-slot-games__tips-list {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__steps-list li,
  .page-slot-games__tips-list li {
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__steps-list li h3,
  .page-slot-games__tips-list li h3 {
    font-size: 1.5em;
  }

  .page-slot-games__steps-list li p,
  .page-slot-games__tips-list li p {
    font-size: 1em;
  }
  
  .page-slot-games__step-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__final-cta {
    margin-top: 30px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* All images must be responsive */
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All video containers must be responsive */
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: 1.8em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__hero-section {
    padding-top: 70px; /* Further adjust for smaller mobile fixed header */
  }
  .page-slot-games__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-slot-games__game-card img {
    height: 150px;
  }
  .page-slot-games__feature-item img {
    width: 70px;
    height: 70px;
  }
  .page-slot-games__steps-list li h3,
  .page-slot-games__tips-list li h3 {
    font-size: 1.3em;
  }
}