:root {
  --primary-color: #1A2E40; /* Dark tech blue/purple */
  --secondary-color: #FFD700; /* Gold/bright yellow */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-dark-secondary: #0d1e2e;
  --bg-light: #f9f9f9;
  --border-color: #e0e0e0;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--bg-dark); /* Ensure this is set for consistency, though shared.css might set body */
  line-height: 1.6;
  padding-bottom: 60px; /* General padding for bottom of page */
}

/* Fixed header padding */
.page-slot-games__hero-section {
  padding-top: 100px; /* Adjust based on shared header height for desktop */
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--bg-dark-secondary));
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
}

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

.page-slot-games__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--secondary-color); /* Highlight with secondary color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-slot-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

/* CTA Buttons */
.page-slot-games__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  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 wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

/* General Section Styles */
.page-slot-games__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.page-slot-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-slot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: rgba(255, 255, 255, 0.8);
}

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

/* Dark Section Background */
.page-slot-games__dark-section {
  background-color: var(--bg-dark-secondary); /* Slightly lighter than body for contrast */
  color: var(--text-light);
}

/* About Section Specifics */
.page-slot-games__about-section .page-slot-games__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-slot-games__about-section .page-slot-games__text-block p {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.page-slot-games__image-wrapper {
  text-align: center;
}

.page-slot-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min size for image */
  min-height: 200px; /* Min size for image */
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto; /* Center image */
}

.page-slot-games__cta-image {
  margin-top: 30px;
  margin-bottom: 40px; /* Space between image and buttons */
}

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

.page-slot-games__feature-card {
  background: var(--primary-color); /* Dark background for cards */
  color: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-slot-games__feature-card p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* Gameplay Guide Section */
.page-slot-games__content-block {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.85);
}

.page-slot-games__content-block p {
  margin-bottom: 15px;
}

.page-slot-games__numbered-list,
.page-slot-games__bullet-list {
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
}

.page-slot-games__numbered-list li,
.page-slot-games__bullet-list li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  font-size: 1.05em;
  color: rgba(255, 255, 255, 0.9);
}

.page-slot-games__numbered-list li strong {
  color: var(--secondary-color);
}

.page-slot-games__numbered-list li::before {
  content: counter(list-item) ".";
  counter-increment: list-item;
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2em;
}

.page-slot-games__bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 2.8em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__about-section .page-slot-games__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-slot-games__image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  /* Ensure padding-top for fixed header on mobile */
  .page-slot-games__hero-section {
    padding-top: 80px !important; /* Adjust for mobile header height */
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent buttons from touching edges */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-slot-games__cta-button {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

  .page-slot-games__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

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

  .page-slot-games__about-section .page-slot-games__grid-layout {
    grid-template-columns: 1fr;
  }

  .page-slot-games__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-slot-games__content-block {
    font-size: 1em;
  }

  .page-slot-games__numbered-list li,
  .page-slot-games__bullet-list li {
    font-size: 1em;
    padding-left: 25px;
  }

  .page-slot-games__numbered-list li::before,
  .page-slot-games__bullet-list li::before {
    font-size: 1.1em;
  }
}

/* Ensure all images are responsive and do not have filters */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* Explicitly disable filters */
}

/* Ensure all image containers are responsive */
.page-slot-games__image-wrapper,
.page-slot-games__grid-layout,
.page-slot-games__features-grid,
.page-slot-games__content-block {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__image-wrapper,
  .page-slot-games__grid-layout,
  .page-slot-games__features-grid,
  .page-slot-games__content-block,
  .page-slot-games__hero-container,
  .page-slot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent content from touching edges */
    padding-right: 15px; /* Add padding to prevent content from touching edges */
  }
}

/* Color Contrast Safeguards */
.page-slot-games p,
.page-slot-games li {
  color: rgba(255, 255, 255, 0.85); /* Default text color for dark background */
}

/* Ensure specific sections maintain contrast */
.page-slot-games__hero-section,
.page-slot-games__dark-section {
  color: var(--text-light);
}

.page-slot-games__feature-card {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-slot-games__feature-card h3 {
  color: var(--secondary-color);
}

/* Buttons already have specific colors */