.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-slot-games__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

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

.page-slot-games__section-title {
  font-size: 2.8em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-slot-games__light-bg .page-slot-games__section-title {
  color: #017439;
}

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

.page-slot-games__light-bg .page-slot-games__section-description {
  color: #555555;
}

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
}

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

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

.page-slot-games__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-slot-games__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 0;
  padding-right: 20px;
}

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

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

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

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

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

/* Providers Section */
.page-slot-games__providers-section {
  padding: 60px 0;
}

.page-slot-games__logo-carousel-wrapper {
  overflow: hidden;
  padding: 20px 0;
}

.page-slot-games__logo-carousel {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-slot-games__logo-item {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-slot-games__logo-item:hover {
  transform: translateY(-5px);
}

.page-slot-games__logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%); /* Example: make logos grayscale */
  opacity: 0.7;
  transition: all 0.3s ease;
}

.page-slot-games__logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Why Choose Section */
.page-slot-games__why-choose-section {
  padding: 60px 0;
}

.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);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
  padding: 60px 0;
}

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

.page-slot-games__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-slot-games__game-info {
  padding: 20px;
  color: #333333;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-slot-games__game-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

.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: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games__game-card .page-slot-games__btn-secondary {
  width: 100%;
  padding: 10px 15px;
  font-size: 1em;
}

/* How To Play Section */
.page-slot-games__how-to-play-section {
  padding: 60px 0;
}

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

.page-slot-games__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games__step-icon {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFF00; /* Register/Login font color */
  background-color: #C30808; /* Register/Login color */
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__step-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-slot-games__step-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-slot-games__step-card .page-slot-games__btn-secondary {
  width: 100%;
  padding: 10px 15px;
  font-size: 1em;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-slot-games__faq-wrapper {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.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 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #017439; /* Brand primary color */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important;
  padding: 20px;
}

.page-slot-games__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

.page-slot-games__faq-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

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

/* Global image and container responsive styles for mobile */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

.page-slot-games__section,
.page-slot-games__card,
.page-slot-games__container,
.page-slot-games__logo-carousel-wrapper,
.page-slot-games__games-grid,
.page-slot-games__steps-grid,
.page-slot-games__features-grid,
.page-slot-games__faq-wrapper {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Media Queries for Responsive Design */
/* Tablet styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    min-height: auto;
  }

  .page-slot-games__hero-content {
    max-width: 100%;
    padding: 0;
    margin-bottom: 30px;
  }

  .page-slot-games__hero-title {
    font-size: 3em;
  }

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

  .page-slot-games__hero-image-wrapper {
    padding-right: 0;
  }

  .page-slot-games__hero-image {
    width: 80%;
  }

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

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

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

  .page-slot-games__logo-carousel {
    gap: 20px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-slot-games__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
    min-height: auto;
    padding-top: 0; /* Ensures no double padding if shared.css adds to body */
  }

  .page-slot-games__hero-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
  }

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

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

  .page-slot-games__hero-image-wrapper {
    padding-right: 0 !important;
    width: 100% !important;
  }

  .page-slot-games__hero-image {
    width: 100% !important;
    height: auto !important;
  }

  /* LOGO 轮播区域 */
  .page-slot-games__providers-section,
  .page-slot-games__logo-carousel-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__logo-carousel {
    justify-content: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
  }

  .page-slot-games__logo-item {
    width: 80px !important; /* Fixed 80px, NOT 100% */
    height: 80px !important; /* Fixed 80px */
    max-width: 80px !important;
    box-sizing: border-box;
    padding: 5px !important;
  }

  /* 游戏展示区域 */
  .page-slot-games__games-section,
  .page-slot-games__popular-games-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-slot-games__games-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-slot-games__game-card {
    width: 100% !important;
    max-width: 100% !important;
  }

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

  .page-slot-games__game-info {
    padding: 15px !important;
  }

  .page-slot-games__game-title {
    font-size: 1.3em !important;
  }

  .page-slot-games__game-description {
    font-size: 0.9em !important;
  }

  /* 其他内容模块 (Why Choose, How To Play, Promotions, FAQ) */
  .page-slot-games__container {
    padding: 30px 15px !important;
  }

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

  .page-slot-games__section-description {
    font-size: 0.9em !important;
    margin-bottom: 25px !important;
  }

  .page-slot-games__features-grid,
  .page-slot-games__steps-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-slot-games__feature-card,
  .page-slot-games__step-card {
    padding: 25px !important;
  }

  .page-slot-games__feature-title,
  .page-slot-games__step-title {
    font-size: 1.4em !important;
  }

  .page-slot-games__faq-question {
    padding: 15px !important;
    font-size: 1em !important;
  }

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

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

  .page-slot-games__faq-image-wrapper {
    margin-top: 30px !important;
  }

  /* 通用图片与容器 */
  .page-slot-games img:not(.page-slot-games__logo-item img) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__logo-carousel-wrapper,
  .page-slot-games__games-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__features-grid,
  .page-slot-games__faq-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* 按钮与按钮容器 */
  .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: 12px 15px !important;
    font-size: 1em !important;
  }

  .page-slot-games__hero-content .page-slot-games__btn-primary {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }

  .page-slot-games__step-card .page-slot-games__btn-secondary {
    width: auto !important; /* Allow button to size to content if needed, but still respect max-width */
    max-width: 100% !important;
    margin: 0 auto;
  }

  .page-slot-games__game-card .page-slot-games__btn-secondary {
    width: 100% !important;
  }

  .page-slot-games__promotions-section .page-slot-games__btn-primary {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
}