.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Assuming shared.css sets body to white or light */
}

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

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

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-slot-games__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

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

.page-slot-games__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-slot-games__hero-text-container {
  padding: 0 20px;
  text-align: center;
}

.page-slot-games__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff; /* White text for dark hero section */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from section for contrast */
  padding-top: 40px;
}

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

.page-slot-games__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: inherit;
}

.page-slot-games__text-block p {
  margin-bottom: 15px;
  color: inherit;
}

.page-slot-games__text-block--center {
  text-align: center;
}

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

.page-slot-games__cta-buttons--center {
  margin-top: 50px;
  margin-bottom: 50px;
}

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

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

.page-slot-games__btn--primary:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
}

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

.page-slot-games__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

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

.page-slot-games__btn--deposit,
.page-slot-games__btn--play,
.page-slot-games__btn--spin,
.page-slot-games__btn--withdraw {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-slot-games__btn--deposit:hover,
.page-slot-games__btn--play:hover,
.page-slot-games__btn--spin:hover,
.page-slot-games__btn--withdraw:hover {
  background-color: #005a2d;
}

.page-slot-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
  padding-bottom: 50px;
}

.page-slot-games__game-tile {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-slot-games__game-tile:hover {
  transform: translateY(-5px);
}

.page-slot-games__game-tile img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  aspect-ratio: 1/1;
}

.page-slot-games__game-title {
  font-size: 1.4em;
  margin: 15px 10px 10px;
  height: 3.2em; /* Ensure consistent height for titles */
  overflow: hidden;
  color: #333333;
}

.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;
  color: #666666;
  padding: 0 15px 20px;
  height: 4.5em; /* Consistent height for descriptions */
  overflow: hidden;
}

.page-slot-games__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  padding-bottom: 50px;
}

.page-slot-games__benefit-item {
  text-align: center;
  padding: 30px;
}

.page-slot-games__benefit-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  padding-bottom: 50px;
}

.page-slot-games__guide-step {
  padding: 30px;
  position: relative;
  text-align: center;
}

.page-slot-games__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #C30808;
  color: #FFFF00;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 4px solid #017439;
}

.page-slot-games__guide-step .page-slot-games__sub-title {
  margin-top: 20px;
}

.page-slot-games__promotion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  padding-bottom: 50px;
}

.page-slot-games__promotion-card {
  padding: 20px;
  text-align: left;
}

.page-slot-games__promotion-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

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

.page-slot-games__promotion-card .page-slot-games__sub-title a:hover {
  text-decoration: underline;
}

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

.page-slot-games__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-slot-games__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  color: #017439;
}

.page-slot-games__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  margin-left: 10px;
  color: #C30808;
}

.page-slot-games__faq-answer {
  padding: 10px 20px 20px;
  font-size: 1em;
  color: #666666;
  border-top: 1px solid #eee;
}

.page-slot-games__copyright-section {
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
  color: #f0f0f0;
  background-color: #017439;
}

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

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

  .page-slot-games__game-grid,
  .page-slot-games__benefits-grid,
  .page-slot-games__guide-steps,
  .page-slot-games__promotion-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-slot-games__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-slot-games__hero-content-wrapper {
    flex-direction: column;
  }
  .page-slot-games__hero-image {
    object-fit: contain !important; /* Contain for mobile hero image */
    max-height: none !important;
    aspect-ratio: unset !important;
    margin-bottom: 20px;
  }
  .page-slot-games__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    padding: 0 15px;
  }

  /* Section Titles */
  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 30px;
  }
  .page-slot-games__section-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-slot-games__sub-title {
    font-size: 1.5em;
  }

  /* Game Grid */
  .page-slot-games__game-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
    padding-bottom: 30px;
    overflow-x: hidden !important;
  }
  .page-slot-games__game-tile {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }
  .page-slot-games__game-tile img {
    height: auto !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover;
  }
  .page-slot-games__game-title {
    font-size: 1.2em;
    height: auto;
  }
  .page-slot-games__game-description {
    font-size: 0.9em;
    height: auto;
  }

  /* General Images and Containers */
  .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;
  }

  /* Buttons and Button Containers */
  .page-slot-games__btn,
  .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: 12px 15px;
    font-size: 1em;
  }
  .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 !important;
  }

  /* Benefits, Guide, Promotions Grids */
  .page-slot-games__benefits-grid,
  .page-slot-games__guide-steps,
  .page-slot-games__promotion-cards {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding-bottom: 30px;
  }
  .page-slot-games__benefit-item,
  .page-slot-games__guide-step,
  .page-slot-games__promotion-card {
    padding: 20px;
  }
  .page-slot-games__step-number {
    top: -15px;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }

  /* FAQ */
  .page-slot-games__faq-list {
    margin-top: 30px;
    padding-bottom: 30px;
  }
  .page-slot-games__faq-item summary {
    padding: 15px;
    font-size: 1em;
  }
  .page-slot-games__faq-answer {
    padding: 10px 15px 15px;
  }
  .page-slot-games__faq-toggle {
    font-size: 1.2em;
  }

  /* Copyright */
  .page-slot-games__copyright-section {
    padding: 15px;
  }
}