.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
  font-size: 16px;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small padding, body takes --header-offset */
  background-color: #08160F;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-slot-games__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  z-index: 1; /* Place image below content visually, but ensure it's in DOM first */
}

.page-slot-games__hero-content {
  position: relative; /* Changed from absolute to relative for "上图下文" rule */
  width: 100%;
  max-width: 90%; /* Constrain width for better readability */
  text-align: center;
  padding: 40px 20px;
  background-color: rgba(17, 39, 27, 0.7); /* Card BG with transparency */
  border-radius: 10px;
  margin-top: 20px; /* Space from image */
  z-index: 2;
  box-sizing: border-box;
}

.page-slot-games__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Using clamp for responsive font size */
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.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: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2AD16F;
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Button color for text */
  border: 2px solid #2AD16F;
}

.page-slot-games__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-slot-games__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-slot-games__section--intro .page-slot-games__section-title,
.page-slot-games__section--popular-games .page-slot-games__section-title,
.page-slot-games__section--guide .page-slot-games__section-title,
.page-slot-games__section--tips .page-slot-games__section-title,
.page-slot-games__section--promotions .page-slot-games__section-title,
.page-slot-games__section--responsible-gaming .page-slot-games__section-title,
.page-slot-games__section--faq .page-slot-games__section-title {
  color: #F2C14E; /* Consistent Gold for main section titles */
}

.page-slot-games__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  text-align: center;
}

.page-slot-games__content-wrapper p {
  color: #F2FFF6; /* Text Main */
  max-width: 900px;
}

.page-slot-games__image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Feature Grid */
.page-slot-games__feature-grid,
.page-slot-games__game-grid,
.page-slot-games__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__feature-icon,
.page-slot-games__game-thumbnail,
.page-slot-games__promo-thumbnail {
  width: 100%;
  max-width: 100%; /* Ensure images are responsive */
  height: auto;
  max-height: 250px; /* Limit height for consistency in cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__card-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__card p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

/* Guide & Tips Lists */
.page-slot-games__guide-list,
.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: left;
  max-width: 900px;
  width: 100%;
}

.page-slot-games__guide-list li,
.page-slot-games__tips-list li {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-slot-games__list-title {
  font-size: 1.3em;
  color: #57E38D; /* Glow */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-slot-games__guide-list p,
.page-slot-games__tips-list p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
}

/* CTA Block */
.page-slot-games__cta-block {
  text-align: center;
  padding: 40px 20px;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  margin-top: 50px;
  border: 2px solid #2AD16F;
  box-shadow: 0 0 20px rgba(87, 227, 141, 0.3); /* Glow effect */
}

.page-slot-games__cta-block .page-slot-games__section-title {
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-slot-games__cta-text {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-slot-games__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 40px auto 0;
}

.page-slot-games__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-slot-games__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B; /* Card BG */
  border-bottom: 1px solid transparent; /* Placeholder for active state */
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-item summary::-webkit-details-marker {
  display: none; /* Hide marker for Webkit browsers */
}

.page-slot-games__faq-item summary:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-slot-games__faq-item[open] summary {
  border-bottom-color: #2E7A4E; /* Divider */
  background-color: #0A4B2C; /* Deep Green */
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

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

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: #F2C14E; /* Gold */
}

.page-slot-games__faq-answer {
  padding: 20px 25px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-slot-games {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-slot-games__hero-section {
    padding: 20px 15px;
    padding-top: 10px !important;
  }

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

  .page-slot-games__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

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

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

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

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

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

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

  .page-slot-games__content-wrapper {
    gap: 20px;
  }

  .page-slot-games__image,
  .page-slot-games__feature-icon,
  .page-slot-games__game-thumbnail,
  .page-slot-games__promo-thumbnail {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important; /* Ensure padding/border is included in width */
  }

  .page-slot-games__feature-grid,
  .page-slot-games__game-grid,
  .page-slot-games__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-slot-games__card {
    padding: 20px;
  }

  .page-slot-games__card-title {
    font-size: 1.2em;
  }

  .page-slot-games__list-title {
    font-size: 1.1em;
  }

  .page-slot-games__guide-list li,
  .page-slot-games__tips-list li {
    padding: 20px;
  }

  .page-slot-games__cta-block {
    padding: 30px 15px;
    margin-top: 40px;
  }

  .page-slot-games__cta-text {
    font-size: 1.1em;
  }

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

  .page-slot-games__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-slot-games__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  /* Ensure all sections and containers handle overflow */
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__content-wrapper,
  .page-slot-games__cta-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
}