.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* Light background for the main content area */
}

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

.page-slot-games__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-slot-games__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0; /* Assumes shared.css handles body padding-top */
  background-color: #017439;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  min-height: 550px;
}

.page-slot-games__hero-content {
  flex: 1;
  padding: 60px;
  max-width: 50%;
  z-index: 1;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-slot-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-slot-games__hero-buttons {
  display: flex;
  gap: 20px;
}

.page-slot-games__hero-image-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  max-width: 50%;
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherits from parent, e.g., white on dark section */
}

.page-slot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: inherit;
}

.page-slot-games__about-section,
.page-slot-games__how-to-play-section,
.page-slot-games__promotions-section {
  padding: 80px 0;
}

.page-slot-games__games-section,
.page-slot-games__features-section,
.page-slot-games__responsible-gaming-section,
.page-slot-games__faq-section,
.page-slot-games__cta-final-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-slot-games__game-card,
.page-slot-games__feature-card,
.page-slot-games__promo-card {
  background: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__game-card:hover,
.page-slot-games__feature-card:hover,
.page-slot-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-slot-games__game-image,
.page-slot-games__feature-image,
.page-slot-games__promo-image {
  width: 100%;
  height: 220px; /* Consistent height for card images */
  object-fit: cover;
  margin-bottom: 15px;
  display: block; /* Ensure it respects width/height */
}

.page-slot-games__game-title,
.page-slot-games__feature-title,
.page-slot-games__promo-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-slot-games__game-link {
  color: #017439;
  text-decoration: none;
}

.page-slot-games__game-link:hover {
  text-decoration: underline;
}

.page-slot-games__game-description,
.page-slot-games__feature-description,
.page-slot-games__promo-description {
  font-size: 1em;
  color: #555555;
  padding: 0 15px;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background-color: #C30808; /* Login/Register button color */
  color: #FFFF00; /* Login/Register font color */
  border: 2px solid #C30808;
}

.page-slot-games__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Login/Register font color for secondary */
  border: 2px solid #FFFF00;
}

.page-slot-games__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

.page-slot-games__btn-tertiary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  margin-top: 20px;
}

.page-slot-games__btn-tertiary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

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

.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-slot-games__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__step-title {
  font-size: 1.3em;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-slot-games__step-item p {
  color: #f0f0f0;
}

.page-slot-games__step-item a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-slot-games__responsible-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-slot-games__responsible-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.page-slot-games__responsible-list {
  flex: 1;
  list-style: disc;
  padding-left: 20px;
  color: #555555;
}

.page-slot-games__responsible-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-slot-games__responsible-item a {
  color: #017439;
  text-decoration: underline;
}

.page-slot-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-slot-games__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00;
  transition: transform 0.3s ease;
}

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

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 25px;
}

.page-slot-games__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

.page-slot-games__faq-answer a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-slot-games__cta-final-section {
  text-align: center;
  padding: 100px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-slot-games__cta-final-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-slot-games__cta-final-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-slot-games__cta-final-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
}

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

/* Mobile Styles */
@media (max-width: 768px) {
  .page-slot-games {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-slot-games__container {
    padding: 15px;
    width: 100% !important; /* Ensure container is 100% on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* HERO Section */
  .page-slot-games__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
    min-height: auto;
  }

  .page-slot-games__hero-content {
    max-width: 100%;
    padding: 30px 15px;
  }

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

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

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

  .page-slot-games__hero-image-container {
    max-width: 100%;
  }

  /* General Image and Container Responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  .page-slot-games__section, .page-slot-games__card, .page-slot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Product/Gameshow Grid */
  .page-slot-games__games-grid,
  .page-slot-games__features-grid,
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .page-slot-games__game-image,
  .page-slot-games__feature-image,
  .page-slot-games__promo-image {
    height: 180px; /* Adjust height for mobile cards */
  }

  /* Buttons and Button Containers */
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-tertiary,
  .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__hero-buttons,
  .page-slot-games__cta-container,
  .page-slot-games__cta-final-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Force vertical stacking */
    gap: 10px;
  }

  /* Other Content Modules */
  .page-slot-games__about-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__games-section,
  .page-slot-games__features-section,
  .page-slot-games__responsible-gaming-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final-section {
    padding: 40px 0;
  }

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

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

  .page-slot-games__responsible-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-slot-games__responsible-image {
    max-width: 100%;
  }

  .page-slot-games__responsible-list {
    padding-left: 0;
    list-style-position: inside;
  }

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

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

  .page-slot-games__faq-answer {
    padding: 0 20px;
  }

  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 10px 20px;
  }

  .page-slot-games__cta-final-section {
    padding: 60px 0;
  }

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

  .page-slot-games__cta-final-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
}