:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #F0F2F5; /* Body background from shared.css */
  --card-background-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark); /* Default text color for light body background */
  line-height: 1.6;
}

/* HERO Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, var(--primary-color), #0D1017); /* Dark gradient for hero section */
  color: var(--text-color-light);
}

.page-slot-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-slot-games__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-slot-games__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-slot-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px; /* Minimum width for buttons */
  text-align: center;
  box-sizing: border-box;
}

.page-slot-games__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-slot-games__cta-button--primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-slot-games__cta-button--secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-slot-games__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-slot-games__section {
  padding: 80px 20px;
  text-align: center;
}

.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.page-slot-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 60px auto;
  color: var(--text-color-dark);
}

/* Dark Background Section */
.page-slot-games__dark-bg {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-slot-games__dark-bg .page-slot-games__section-title {
  color: var(--secondary-color);
}

.page-slot-games__dark-bg .page-slot-games__text-block {
  color: #e0e0e0;
}

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

.page-slot-games__feature-card {
  background: var(--card-background-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  color: var(--text-color-dark);
  border: 1px solid var(--border-color);
}

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

.page-slot-games__feature-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
  min-width: 200px;
  min-height: 200px;
}

.page-slot-games__card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-slot-games__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-slot-games__card-title a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* Game Providers Section */
.page-slot-games__providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__provider-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-color-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-slot-games__provider-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-slot-games__provider-item img {
  
  height: auto;
  object-fit: contain;
  margin-bottom: 15px;
  filter: grayscale(10%); /* Subtle filter, not color changing */
  transition: filter 0.3s ease;
  min- /* Adjusted min-width to be >= 200px for general images, but 120 for logos is allowed if not content-display */
  min-
}

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

.page-slot-games__provider-name {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-slot-games__provider-item p {
  font-size: 0.9em;
  color: #e0e0e0;
}

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

.page-slot-games__promotion-card {
  background: var(--card-background-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  color: var(--text-color-dark);
  border: 1px solid var(--border-color);
}

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

.page-slot-games__promotion-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* How to Play Section */
.page-slot-games__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  position: relative;
  padding-left: 80px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__step-number {
  position: absolute;
  left: 20px;
  top: 30px;
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-slot-games__step-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-slot-games__step-item p {
  color: #e0e0e0;
}

.page-slot-games__step-item a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-slot-games__step-item a:hover {
  color: #e6c200;
}

/* FAQ Section */
.page-slot-games__faq-section {
  background: var(--background-light);
  padding: 80px 20px;
}

.page-slot-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

/* FAQ容器样式 */
.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark);
}

/* 问题样式 */
.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-background-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-slot-games__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-slot-games__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--primary-color);
}

/* 切换图标 */
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Change to minus sign */
}

/* Contact Section */
.page-slot-games__contact-section {
  padding-bottom: 100px;
}

.page-slot-games__contact-methods {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 2.8em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-slot-games__hero-image img {
    border-radius: 4px;
  }
  
  .page-slot-games__main-title {
    font-size: 2.2em;
  }
  
  .page-slot-games__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-slot-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__section {
    padding: 50px 0;
  }

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

  .page-slot-games__text-block {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-slot-games__features-grid,
  .page-slot-games__promotions-grid,
  .page-slot-games__providers-grid,
  .page-slot-games__step-by-step {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-slot-games__feature-card,
  .page-slot-games__promotion-card,
  .page-slot-games__provider-item,
  .page-slot-games__step-item {
    padding: 25px;
  }
  
  .page-slot-games__feature-card img,
  .page-slot-games__promotion-card img {
    
  }

  .page-slot-games__step-item {
    padding-left: 70px;
  }

  .page-slot-games__step-number {
    left: 15px;
    top: 25px;
    width: 35px;
    height: 35px;
    font-size: 1.3em;
  }

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

  /* FAQ Mobile */
  .page-slot-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-slot-games__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-slot-games__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-slot-games__faq-answer {
    padding: 0 15px;
  }
  
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px !important;
  }

  .page-slot-games__contact-methods {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-slot-games__contact-methods .page-slot-games__cta-button {
    width: 100%;
  }

  /* Ensure all images are responsive and do not cause overflow */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-slot-games__container,
  .page-slot-games__hero-container,
  .page-slot-games__features-grid,
  .page-slot-games__promotions-grid,
  .page-slot-games__providers-grid,
  .page-slot-games__step-by-step,
  .page-slot-games__faq-list,
  .page-slot-games__contact-methods {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}