:root {
  --page-slot-games-primary-color: #017439;
  --page-slot-games-secondary-color: #FFFFFF;
  --page-slot-games-text-dark: #333333;
  --page-slot-games-text-light: #ffffff;
  --page-slot-games-register-btn-bg: #C30808;
  --page-slot-games-register-btn-text: #FFFF00;
  --page-slot-games-login-btn-bg: #C30808;
  --page-slot-games-login-btn-text: #FFFF00;
  --page-slot-games-background-light: #f9f9f9;
  --page-slot-games-border-color: #e0e0e0;
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-slot-games-text-dark);
  background: var(--page-slot-games-secondary-color);
}

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

.page-slot-games__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--page-slot-games-primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-slot-games__section-title--white {
  color: var(--page-slot-games-text-light);
}

.page-slot-games__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  color: var(--page-slot-games-text-light);
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  margin-bottom: 60px;
  background-color: var(--page-slot-games-primary-color);
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  height: 600px;
  overflow: hidden;
}

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

.page-slot-games__hero-content {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(1, 116, 57, 0.8) 0%, rgba(1, 116, 57, 1) 100%);
  color: var(--page-slot-games-text-light);
}

.page-slot-games__main-title {
  font-size: clamp(30px, 4vw + 1rem, 50px);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--page-slot-games-register-btn-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

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

/* --- Buttons --- */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: var(--page-slot-games-register-btn-bg);
  color: var(--page-slot-games-register-btn-text);
  border: 2px solid var(--page-slot-games-register-btn-bg);
}

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

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--page-slot-games-text-light);
  border: 2px solid var(--page-slot-games-text-light);
}

.page-slot-games__btn-secondary:hover {
  background: var(--page-slot-games-text-light);
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__btn-secondary--white-border {
  border-color: var(--page-slot-games-text-light);
  color: var(--page-slot-games-text-light);
}

.page-slot-games__btn-secondary--white-border:hover {
  background: var(--page-slot-games-text-light);
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

.page-slot-games__btn-small {
  padding: 12px 25px;
  font-size: 16px;
}

/* --- General Section Styles --- */
.page-slot-games__introduction,
.page-slot-games__how-to-play,
.page-slot-games__promotions,
.page-slot-games__faq-section {
  padding: 80px 0;
  margin-bottom: 0;
}

.page-slot-games__popular-games,
.page-slot-games__features,
.page-slot-games__cta-section {
  padding: 80px 0;
  margin-bottom: 0;
  background-color: var(--page-slot-games-primary-color);
  color: var(--page-slot-games-text-light);
}

.page-slot-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-slot-games__content-wrapper--reverse {
  flex-direction: row-reverse;
}

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

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

.page-slot-games__image-item {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__text-block p {
  margin-bottom: 20px;
  font-size: 17px;
}

.page-slot-games__text-block a {
  color: var(--page-slot-games-primary-color);
  text-decoration: underline;
}

/* --- Popular Games Grid --- */
.page-slot-games__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-slot-games__game-card {
  background: var(--page-slot-games-secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-slot-games-text-dark);
}

.page-slot-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-slot-games__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-slot-games__game-card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--page-slot-games-primary-color);
  padding: 0 15px;
}

.page-slot-games__game-card-description {
  font-size: 16px;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-slot-games__btn-play {
  display: inline-block;
  background: var(--page-slot-games-primary-color);
  color: var(--page-slot-games-text-light);
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-play:hover {
  background: #005a2e;
}

.page-slot-games__view-all-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* --- How to Play List --- */
.page-slot-games__numbered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-slot-games__numbered-list li {
  margin-bottom: 10px;
  font-size: 17px;
}

.page-slot-games__numbered-list li strong {
  color: var(--page-slot-games-primary-color);
}

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

.page-slot-games__feature-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--page-slot-games-text-light);
}

.page-slot-games__feature-card-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--page-slot-games-register-btn-text);
}

.page-slot-games__feature-card-description {
  font-size: 16px;
  line-height: 1.7;
}

/* --- Promotions List --- */
.page-slot-games__promo-list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 25px;
}

.page-slot-games__promo-list li {
  margin-bottom: 10px;
  font-size: 17px;
}

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

details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--page-slot-games-border-color);
  overflow: hidden;
  background: var(--page-slot-games-secondary-color);
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: var(--page-slot-games-background-light);
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-slot-games-primary-color);
}
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: var(--page-slot-games-background-light);
  border-radius: 0 0 5px 5px;
  color: var(--page-slot-games-text-dark);
}
.page-slot-games__faq-answer p {
  margin-bottom: 0;
}

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

.page-slot-games__cta-description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--page-slot-games-text-light);
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Ensure content area images are at least 200x200px */
.page-slot-games__image-item, .page-slot-games__game-card-image {
  min-width: 200px;
  min-height: 200px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-slot-games__hero-image-wrapper {
    height: 500px;
  }
  .page-slot-games__main-title {
    font-size: clamp(28px, 3.5vw + 1rem, 45px);
  }
  .page-slot-games__section-title {
    font-size: 32px;
  }
  .page-slot-games__introduction,
  .page-slot-games__how-to-play,
  .page-slot-games__promotions,
  .page-slot-games__faq-section,
  .page-slot-games__popular-games,
  .page-slot-games__features,
  .page-slot-games__cta-section {
    padding: 60px 0;
  }
  .page-slot-games__content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-slot-games__content-wrapper--reverse {
    flex-direction: column-reverse;
  }
  .page-slot-games__text-block,
  .page-slot-games__image-block {
    flex: none;
    width: 100%;
  }
  .page-slot-games__games-grid,
  .page-slot-games__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .page-slot-games__game-card-image {
    height: 180px;
  }
  .page-slot-games__numbered-list {
    text-align: left;
  }
  .page-slot-games__cta-buttons {
    gap: 15px;
  }
  .page-slot-games__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  /* Banner __hero-section */
  .page-slot-games__hero-section {
    padding-top: 10px;
    margin-bottom: 40px;
  }
  .page-slot-games__hero-image-wrapper {
    height: 300px;
  }
  .page-slot-games__hero-image {
    object-fit: contain !important; /* Force contain for mobile banner */
  }
  .page-slot-games__hero-content {
    padding: 30px 15px;
  }
  .page-slot-games__main-title {
    font-size: clamp(26px, 8vw, 36px);
    margin-bottom: 15px;
  }
  .page-slot-games__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-slot-games__hero-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  /* General sections and titles */
  .page-slot-games__introduction,
  .page-slot-games__how-to-play,
  .page-slot-games__promotions,
  .page-slot-games__faq-section,
  .page-slot-games__popular-games,
  .page-slot-games__features,
  .page-slot-games__cta-section {
    padding: 40px 0;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-slot-games__section-description {
    font-size: 16px;
  }

  /* All images */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  /* All image containers */
  .page-slot-games__image-block,
  .page-slot-games__game-card-image,
  .page-slot-games__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* All buttons */
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-play,
  .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;
  }
  /* All button containers */
  .page-slot-games__hero-buttons,
  .page-slot-games__cta-buttons,
  .page-slot-games__view-all-button-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
  }

  /* Game Grid */
  .page-slot-games__games-grid,
  .page-slot-games__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__game-card-image {
    height: 160px;
  }
  .page-slot-games__game-card-title {
    font-size: 20px;
  }

  /* FAQ */
  details.page-slot-games__faq-item summary.page-slot-games__faq-question { padding: 15px; }
  .page-slot-games__faq-qtext { font-size: 16px; }
  .page-slot-games__faq-toggle { font-size: 20px; width: 24px; }
  details.page-slot-games__faq-item .page-slot-games__faq-answer { padding: 0 15px 15px; }
}