.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity */
}

.page-slot-games__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 20px;
}

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

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

.page-slot-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  padding-bottom: 40px;
}

.page-slot-games__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-slot-games__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00;
}

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

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 1000px; /* Max width for hero image */
}

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

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

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  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;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.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: #a00606;
  border-color: #a00606;
}

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

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

.page-slot-games__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-slot-games__dark-section .page-slot-games__section-title {
  color: #FFFF00;
}

.page-slot-games__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-slot-games__text-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-slot-games__dark-section .page-slot-games__text-link {
  color: #FFFF00;
}

.page-slot-games__text-link:hover {
  color: #005f2e;
}

.page-slot-games__dark-section .page-slot-games__text-link:hover {
  color: #f0f0f0;
}

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

.page-slot-games__feature-item,
.page-slot-games__game-card,
.page-slot-games__promo-card,
.page-slot-games__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  color: #333333;
}

.page-slot-games__dark-section .page-slot-games__feature-item,
.page-slot-games__dark-section .page-slot-games__game-card,
.page-slot-games__dark-section .page-slot-games__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-slot-games__feature-icon,
.page-slot-games__game-image,
.page-slot-games__promo-image {
  width: 100%;
  max-width: 400px; /* Recommended image size for cards */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.page-slot-games__feature-title,
.page-slot-games__game-title,
.page-slot-games__promo-title,
.page-slot-games__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439;
}

.page-slot-games__dark-section .page-slot-games__feature-title,
.page-slot-games__dark-section .page-slot-games__game-title,
.page-slot-games__dark-section .page-slot-games__promo-title {
  color: #FFFF00;
}

.page-slot-games__feature-description,
.page-slot-games__game-description,
.page-slot-games__promo-description,
.page-slot-games__step-description {
  font-size: 1em;
  text-align: justify;
  flex-grow: 1;
}

.page-slot-games__step-number {
  font-size: 2em;
  font-weight: bold;
  color: #C30808;
  background-color: #FFFF00;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-slot-games__tips-description {
  font-size: 1em;
  color: #555555;
}

.page-slot-games__faq-list {
  margin-top: 30px;
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-slot-games__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #FFFF00;
}

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

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #ffffff;
  text-align: justify;
}

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

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

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

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

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    flex-direction: column;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing below fixed header */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__hero-content {
    margin-bottom: 20px;
  }

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

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

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-slot-games__cta-center {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-slot-games__paragraph {
    font-size: 0.95em;
  }

  .page-slot-games__feature-item,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__step-item {
    padding: 20px;
  }

  /* Mobile image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__intro-section,
  .page-slot-games__game-types-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__tips-section,
  .page-slot-games__faq-section,
  .page-slot-games__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  
  .page-slot-games__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__tips-item {
    padding: 15px;
  }

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

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

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