.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Ensure body background is respected */
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70vh;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF;
  padding-bottom: 60px;
}

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

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFFF00; /* Register/Login font color for emphasis */
}

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

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

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

.page-slot-games__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-slot-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: #017439; /* Brand primary color */
}

.page-slot-games__light-bg {
  background-color: #FFFFFF;
  color: #333333;
  padding: 80px 0;
}

.page-slot-games__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
  padding: 80px 0;
}

.page-slot-games__dark-bg .page-slot-games__section-title {
  color: #FFFF00; /* Yellow for titles on dark background */
}

/* Introduction Section */
.page-slot-games__introduction-section .page-slot-games__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-slot-games__introduction-section .page-slot-games__text-block {
  flex: 1;
}

.page-slot-games__introduction-section .page-slot-games__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-slot-games__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-slot-games__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #FFFFFF;
}

.page-slot-games__feature-card:hover {
  transform: translateY(-10px);
}

.page-slot-games__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00;
}

/* How to Play Section */
.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-slot-games__step-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-slot-games__step-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439;
}

/* Popular Games Section */
.page-slot-games__section-intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 50px;
  color: #FFFFFF;
}

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

.page-slot-games__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #FFFFFF;
}

.page-slot-games__game-card:hover {
  transform: translateY(-10px);
}

.page-slot-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-slot-games__game-title {
  font-size: 1.4em;
  margin: 20px 0 10px;
  color: #FFFF00;
  padding: 0 20px;
}

.page-slot-games__game-card p {
  padding: 0 20px 20px;
  font-size: 0.95em;
}

/* Promotions Section */
.page-slot-games__promo-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-slot-games__promo-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-slot-games__promo-cta {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Download Section */
.page-slot-games__download-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-slot-games__download-text {
  flex: 1;
  padding-right: 40px;
}

.page-slot-games__download-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-slot-games__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-slot-games__download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

.page-slot-games__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.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;
  background-color: #fefefe;
}

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

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

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

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

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-register,
.page-slot-games__btn-login,
.page-slot-games__btn-learn-more {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-slot-games__dark-bg .page-slot-games__btn-secondary {
  color: #FFFF00;
  border-color: #FFFF00;
}

.page-slot-games__dark-bg .page-slot-games__btn-secondary:hover {
  background-color: #FFFF00;
  color: #017439;
}

.page-slot-games__btn-register,
.page-slot-games__btn-login {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

.page-slot-games__btn-learn-more {
  background-color: #f0f0f0;
  color: #017439;
  border: 2px solid #f0f0f0;
}

.page-slot-games__btn-learn-more:hover {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
}

/* 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__hero-content,
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__introduction-section .page-slot-games__text-block,
  .page-slot-games__introduction-section .page-slot-games__image-block,
  .page-slot-games__download-content {
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }
  .page-slot-games__hero-section,
  .page-slot-games__introduction-section .page-slot-games__content-grid,
  .page-slot-games__download-content {
    flex-direction: column;
    text-align: center;
  }
  .page-slot-games__hero-image-wrapper {
    margin-top: 40px;
  }
  .page-slot-games__download-image-wrapper {
    margin-top: 40px;
    order: -1; /* Image above text on mobile */
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-slot-games__hero-section {
    min-height: auto;
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-slot-games__hero-title {
    font-size: 2em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__light-bg,
  .page-slot-games__dark-bg {
    padding: 60px 0;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  /* Mobile responsive images */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Mobile responsive video */
  .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;
  }
  .page-slot-games__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Mobile responsive buttons */
  .page-slot-games__cta-button,
  .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__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container,
  .page-slot-games__download-buttons,
  .page-slot-games__hero-cta-buttons,
  .page-slot-games__promo-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column;
    gap: 10px;
  }
  .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 20px;
  }
  .page-slot-games__game-image {
    height: 180px;
  }
  .page-slot-games__game-title {
    font-size: 1.2em;
  }
}