.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background: var(--background, #FFFFFF); /* Inherit from shared.css, default to white */
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-slot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 0; /* Assuming shared.css sets body padding-top */
}

.page-slot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-slot-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 3;
  color: #FFFFFF;
  max-width: 900px;
  padding: 20px;
}

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

.page-slot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

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

.page-slot-games__btn-secondary {
  background: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-slot-games__btn-secondary:hover {
  background: #005a2e;
  border-color: #005a2e;
}

/* About Section */
.page-slot-games__about-section {
  padding: 80px 0;
}

.page-slot-games__about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-slot-games__about-text h3 {
  color: #017439;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-slot-games__about-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-slot-games__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-slot-games__feature-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23017439" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.05em;
}

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

.page-slot-games__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: block;
}

/* Games Section */
.page-slot-games__games-section {
  padding: 80px 0;
  background: #017439; /* Dark background for this section */
  color: #FFFFFF; /* Light text for dark background */
}

.page-slot-games__games-section .page-slot-games__section-title {
  color: #FFFFFF;
}

.page-slot-games__games-section .page-slot-games__section-description {
  color: #f0f0f0;
}

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

.page-slot-games__game-card {
  background: #FFFFFF;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-slot-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  margin-bottom: 15px;
}

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

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

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

.page-slot-games__game-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-slot-games__game-card .page-slot-games__btn-primary {
  margin-top: auto;
  align-self: center;
  background: #017439;
  color: #FFFFFF;
  border-color: #017439;
}

.page-slot-games__game-card .page-slot-games__btn-primary:hover {
  background: #005a2e;
  border-color: #005a2e;
}

/* Guide Section */
.page-slot-games__guide-section {
  padding: 80px 0;
}

.page-slot-games__guide-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-slot-games__guide-text h3 {
  color: #017439;
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-slot-games__guide-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

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

.page-slot-games__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: block;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 80px 0;
  background: #017439;
  color: #FFFFFF;
}

.page-slot-games__promotions-section .page-slot-games__section-title {
  color: #FFFFFF;
}

.page-slot-games__promotions-section .page-slot-games__section-description {
  color: #f0f0f0;
}

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

.page-slot-games__promo-card {
  background: #FFFFFF;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-slot-games__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
}

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

.page-slot-games__promo-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-slot-games__promo-card .page-slot-games__btn-secondary {
  margin-top: auto;
  align-self: center;
  background: transparent;
  color: #017439;
  border-color: #017439;
}

.page-slot-games__promo-card .page-slot-games__btn-secondary:hover {
  background: #017439;
  color: #FFFFFF;
}

/* CTA Section */
.page-slot-games__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-slot-games__btn-register {
  background: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

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

.page-slot-games__btn-download {
  background: #017439;
  color: #FFFFFF;
  border-color: #017439;
}

.page-slot-games__btn-download:hover {
  background: #005a2e;
  border-color: #005a2e;
}

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

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

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: #555555;
}

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

.page-slot-games__faq-answer p {
  margin-bottom: 10px;
}

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

/* Dark/Light background classes for contrast */
.page-slot-games__dark-section {
  color: #ffffff; /* Deep text for dark background */
}

.page-slot-games__light-bg {
  color: #333333; /* Dark text for light background */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }

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

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

  .page-slot-games__about-grid,
  .page-slot-games__guide-content {
    grid-template-columns: 1fr;
  }

  .page-slot-games__about-image-wrapper,
  .page-slot-games__guide-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }

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

@media (max-width: 768px) {
  /* Hero Section */
  .page-slot-games__hero-section {
    height: 500px;
    padding-top: 0; /* Ensure no double padding if shared.css handles body */
  }

  .page-slot-games__hero-content {
    padding: 15px;
  }

  .page-slot-games__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

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

  /* Buttons and Button Containers */
  .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__hero-buttons,
  .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;
  }

  /* General Section Styling */
  .page-slot-games__container {
    padding: 0 15px;
  }

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

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

  /* About Section */
  .page-slot-games__about-section {
    padding: 40px 0;
  }

  .page-slot-games__about-image-wrapper {
    margin-bottom: 20px;
  }

  .page-slot-games__about-text p,
  .page-slot-games__feature-list li {
    font-size: 1em;
  }

  /* Games Section */
  .page-slot-games__games-section {
    padding: 40px 0;
  }

  .page-slot-games__games-grid {
    grid-template-columns: 1fr; /* Single column for games */
  }

  .page-slot-games__game-card {
    margin-bottom: 20px;
  }

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

  /* Guide Section */
  .page-slot-games__guide-section {
    padding: 40px 0;
  }

  .page-slot-games__guide-text h3 {
    font-size: 1.5em;
    margin-top: 20px;
  }

  .page-slot-games__guide-text p {
    font-size: 1em;
  }

  .page-slot-games__guide-image-wrapper {
    margin-bottom: 20px;
  }

  /* Promotions Section */
  .page-slot-games__promotions-section {
    padding: 40px 0;
  }

  .page-slot-games__promo-grid {
    grid-template-columns: 1fr; /* Single column for promotions */
  }

  .page-slot-games__promo-card {
    margin-bottom: 20px;
  }

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

  /* CTA Section */
  .page-slot-games__cta-section {
    padding: 40px 0;
  }

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

  .page-slot-games__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

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

  /* Universal Image Adaption */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .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;
  }
}