/* General styles for the slot-games page */
.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: 0 20px;
  box-sizing: border-box;
}

.page-slot-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-slot-games__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-slot-games__section-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #26A9E0;
  font-weight: bold;
}

.page-slot-games__section-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #cccccc;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0; /* Assumes shared.css handles body padding */
  padding-bottom: 80px;
  background-color: #0a0a0a;
}

.page-slot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
}

.page-slot-games__hero-title {
  font-size: 4.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: 1.5em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  line-height: 1.5;
}

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

/* 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: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-slot-games__btn-primary:hover {
  background-color: #1e87b3;
  border-color: #1e87b3;
  transform: translateY(-3px);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-3px);
}

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

.page-slot-games__btn-login:hover {
  background-color: #c76706;
  border-color: #c76706;
  transform: translateY(-3px);
}

.page-slot-games__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-slot-games__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-slot-games__btn-full-width {
  width: 100%;
  max-width: 300px;
  margin: 20px auto 0 auto;
}

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

/* Introduction Section */
.page-slot-games__introduction-section .page-slot-games__text-block {
  text-align: left;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* Games Showcase Section */
.page-slot-games__games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__game-card {
  background-color: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  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 12px 25px rgba(0, 0, 0, 0.6);
}

.page-slot-games__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__game-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin: 20px 0 10px 0;
}

.page-slot-games__game-description {
  font-size: 1em;
  color: #cccccc;
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-slot-games__view-all-games-btn-container {
  margin-top: 50px;
}

/* Benefits Section */
.page-slot-games__benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__benefit-item {
  background-color: #0a0a0a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.page-slot-games__benefit-icon {
  width: 100%;
  height: 200px; /* Ensure minimum size */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-slot-games__benefit-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-slot-games__benefit-text {
  font-size: 1em;
  color: #cccccc;
}

/* How to Play Section */
.page-slot-games__how-to-play-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__how-to-play-image {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__how-to-play-steps {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-slot-games__step-item {
  background-color: #1a1a1a;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-slot-games__step-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-slot-games__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Promotions Section */
.page-slot-games__promotions-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-slot-games__promotion-item {
  background-color: #0a0a0a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.page-slot-games__promotion-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-slot-games__promotion-text {
  font-size: 1em;
  color: #cccccc;
}

.page-slot-games__promotions-button-container {
  margin-top: 50px;
}

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

.page-slot-games__faq-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

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

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

.page-slot-games__faq-title {
  margin: 0;
  color: #ffffff;
}

.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: #f0f0f0;
  background-color: #0a0a0a;
}

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

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

/* CTA Section */
.page-slot-games__cta-section {
  background-color: #1a1a1a;
  padding: 80px 0;
}

.page-slot-games__cta-content {
  max-width: 900px;
}

.page-slot-games__cta-buttons {
  margin-top: 40px;
}

/* Copyright Section */
.page-slot-games__copyright-section {
  padding: 30px 0;
  background-color: #000000;
  color: #999999;
  font-size: 0.9em;
}

.page-slot-games__copyright-text {
  margin: 0;
}

/* Image global styles */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-slot-games__section-title {
    font-size: 2.5em;
  }
  .page-slot-games__hero-title {
    font-size: 3.5em;
  }
  .page-slot-games__hero-description {
    font-size: 1.3em;
  }
  .page-slot-games__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-slot-games__benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-slot-games__how-to-play-content {
    flex-direction: column;
    text-align: center;
  }
  .page-slot-games__how-to-play-image {
    max-width: 80%;
  }
  .page-slot-games__promotions-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* HERO主图区域 */
  .page-slot-games__hero-section {
    padding-top: 0 !important; /* Assumes shared.css handles body padding */
    padding-bottom: 60px;
    min-height: 450px;
  }
  .page-slot-games__hero-title {
    font-size: 2.5em;
    margin-bottom: 15px;
  }
  .page-slot-games__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-slot-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

  /* 产品展示图区域 */
  .page-slot-games__games-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-slot-games__games-grid .page-slot-games__game-card:nth-child(1), 
  .page-slot-games__games-grid .page-slot-games__game-card:nth-child(2), 
  .page-slot-games__games-grid .page-slot-games__game-card:nth-child(3), 
  .page-slot-games__games-grid .page-slot-games__game-card:nth-child(4) {
    grid-column: auto;
  }
  .page-slot-games__game-image {
    height: auto;
    min-height: 200px; /* Ensure minimum size */
  }

  /* 通用图片与容器 */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container {
    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__button-group,
  .page-slot-games__hero-buttons,
  .page-slot-games__cta-buttons,
  .page-slot-games__promotions-button-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;
  }

  /* 其他内容模块 */
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__section-description {
    font-size: 1em;
  }
  .page-slot-games__how-to-play-image {
    max-width: 100%;
  }
  .page-slot-games__benefits-grid,
  .page-slot-games__promotions-list {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-slot-games__benefit-icon {
    height: 150px; /* Adjust for smaller screens */
    min-height: 150px;
  }
  .page-slot-games__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-slot-games__faq-answer {
    padding: 15px !important;
  }
  .page-slot-games__faq-answer p {
    font-size: 0.9em;
  }
  .page-slot-games__copyright-section {
    padding: 20px 15px;
  }
}