.page-slot-games {
  color: #ffffff;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--dark-bg-1); /* Assume body background is dark from shared.css */
}

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

.page-slot-games__dark-section {
  background-color: var(--dark-bg-1);
  color: #ffffff;
}

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

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0; /* Assumes shared.css handles body padding-top */
  padding-bottom: 60px;
  text-align: left;
  gap: 40px;
}

.page-slot-games__hero-content {
  flex: 1;
  max-width: 600px;
}

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

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

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

.page-slot-games__hero-image-wrapper {
  flex: 1;
  text-align: right;
}

.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 Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.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__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-slot-games__btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* Section Titles and Descriptions */
.page-slot-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-slot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

/* Logo Carousel Section */
.page-slot-games__logo-carousel-section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.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-sizing: border-box;
  transition: transform 0.3s ease;
}

.page-slot-games__logo-item img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  display: block;
}

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

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

.page-slot-games__game-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

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

.page-slot-games__game-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

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

.page-slot-games__game-card-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

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

.page-slot-games__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.page-slot-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-slot-games__feature-description {
  color: #555555;
  font-size: 0.95em;
}

/* Guide Section */
.page-slot-games__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-slot-games__guide-step {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__step-icon {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border: 3px solid #017439;
  border-radius: 50%;
  background-color: #ffffff;
}

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

.page-slot-games__step-description {
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-slot-games__guide-cta {
  text-align: center;
}

/* FAQ Section */
.page-slot-games__faq-list {
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 900px;
  margin: 0 auto;
}

.page-slot-games__faq-item {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.page-slot-games__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  padding: 10px 0;
  transition: color 0.3s ease;
}

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

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

.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 15px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #555555;
}

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

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

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

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

/* Global image styles for content area */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }

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

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

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

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-slot-games__hero-section {
    flex-direction: column;
    text-align: center;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-slot-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-games__hero-image-wrapper {
    text-align: center;
  }

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

  /* LOGO 轮播区域 */
  .page-slot-games__logo-carousel-section {
    padding: 30px 0;
  }

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

  .page-slot-games__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    flex-shrink: 0;
  }

  /* 游戏展示区域 */
  .page-slot-games__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

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

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

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

  /* 其他内容模块 (Features, Guide) */
  .page-slot-games__features-grid,
  .page-slot-games__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-slot-games__feature-card,
  .page-slot-games__guide-step {
    padding: 20px;
  }

  .page-slot-games__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }

  .page-slot-games__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  /* FAQ Section */
  .page-slot-games__faq-list {
    padding: 20px;
    margin: 0 15px;
  }

  .page-slot-games__faq-question {
    font-size: 1em;
  }

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

  /* 通用图片与容器 */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__container,
  .page-slot-games__section,
  .page-slot-games__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .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__hero-cta-buttons,
  .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; /* Ensure buttons stack vertically */
  }

  .page-slot-games__cta-section {
    padding: 40px 15px;
  }
}