/* Base styles for the slot-games page */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: var(--Text-Main, #F3F8FF); /* Default text color for dark body background */
  background-color: var(--card-bg); /* Inherit from shared, likely dark */
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding-bottom: 50px;
  text-align: center;
  overflow: hidden; /* Ensure no overflow */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-slot-games__hero-image {
  width: 100%;
  max-width: 1920px; /* Max width for the image container */
  margin-bottom: 30px;
  overflow: hidden;
}

.page-slot-games__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default cover for desktop */
  max-height: 600px; /* Limit height for hero image */
  border-radius: 10px;
}

.page-slot-games__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-slot-games__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Use clamp for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--Text-Main, #F3F8FF);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--Text-Secondary, #AFC4E8);
}

.page-slot-games__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 500px; /* Limit max width for button group */
  margin: 0 auto;
}

/* General Section Styling */
.page-slot-games__section {
  padding: 60px 0;
  margin-bottom: 20px;
  background-color: var(--Card-BG, #10233F); /* Default section background */
  border-radius: 10px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  box-sizing: border-box;
}

.page-slot-games__dark-section {
  background-color: var(--Deep-Navy, #08162B);
  color: #ffffff; /* Forced white text for dark background */
}

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

.page-slot-games__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--Gold, #F2C14E); /* Use gold for section titles */
  position: relative;
  padding-bottom: 15px;
}

.page-slot-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--Divider, #1B3357);
  border-radius: 2px;
}

.page-slot-games__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--Text-Secondary, #AFC4E8);
  margin-bottom: 20px;
}

.page-slot-games__text-block strong {
  color: var(--Text-Main, #F3F8FF);
}

.page-slot-games__keyword {
  color: var(--Gold, #F2C14E);
  font-weight: bold;
}

.page-slot-games__text-center {
  text-align: center;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff; /* White text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--Text-Main, #F3F8FF);
  border: 2px solid var(--Border, #244D84);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__btn-secondary:hover {
  background: var(--Border, #244D84);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Card Styles */
.page-slot-games__features-grid,
.page-slot-games__promotions-grid,
.page-slot-games__game-types-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-slot-games__card {
  background: var(--Card-BG, #10233F);
  border: 1px solid var(--Border, #244D84);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-slot-games__card-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum image height */
}

.page-slot-games__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--Gold, #F2C14E);
}

.page-slot-games__card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--Text-Secondary, #AFC4E8);
  flex-grow: 1; /* Allow description to grow and push CTA down */
}

/* Ordered and Unordered Lists */
.page-slot-games__ordered-list,
.page-slot-games__unordered-list {
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
}

.page-slot-games__ordered-list li,
.page-slot-games__unordered-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: var(--Text-Secondary, #AFC4E8);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-slot-games__ordered-list li strong,
.page-slot-games__unordered-list li strong {
  color: var(--Text-Main, #F3F8FF);
}

.page-slot-games__ordered-list li::before {
  content: counter(list-item) ".";
  counter-increment: list-item;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: var(--Gold, #F2C14E);
  font-size: 1.1rem;
}

.page-slot-games__unordered-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: var(--Gold, #F2C14E);
  font-size: 1.5rem;
  line-height: 1;
}

/* FAQ Section - Details/Summary based */
details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--Border, #244D84);
  overflow: hidden;
  background: var(--Card-BG, #10233F);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--Text-Main, #F3F8FF);
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: var(--Deep-Navy, #08162B);
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--Text-Main, #F3F8FF);
}
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--Gold, #F2C14E);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: var(--Deep-Navy, #08162B);
  border-radius: 0 0 5px 5px;
}
.page-slot-games__faq-answer p {
  color: var(--Text-Secondary, #AFC4E8);
  font-size: 1rem;
  line-height: 1.6;
}
.page-slot-games__faq-answer strong {
  color: var(--Text-Main, #F3F8FF);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
  .page-slot-games__hero-description {
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  }
  .page-slot-games__section-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  }
  .page-slot-games__text-block,
  .page-slot-games__ordered-list li,
  .page-slot-games__unordered-list li,
  .page-slot-games__faq-qtext,
  .page-slot-games__faq-answer p {
    font-size: 0.95rem;
  }
  .page-slot-games__card-title {
    font-size: 1.25rem;
  }
  .page-slot-games__card-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 849px) {
  /* HERO 主图区域: 移动 object-fit:contain !important; aspect-ratio:unset; 禁止 cover 裁切两侧 */
  .page-slot-games__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: 400px; /* Adjust max height for smaller screens */
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-slot-games__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 30px;
  }
  .page-slot-games__hero-image {
    margin-bottom: 20px;
  }
  .page-slot-games__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust H1 for mobile */
    margin-bottom: 15px;
  }
  .page-slot-games__hero-description {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem); /* Adjust description for mobile */
    margin-bottom: 25px;
  }
  .page-slot-games__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button group */
  }

  /* 通用 Section 和 Container */
  .page-slot-games__section {
    padding: 40px 0;
    margin-bottom: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0; /* Remove border-radius for full width on mobile */
  }
  .page-slot-games__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-slot-games__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }
  .page-slot-games__section-title::after {
    width: 60px;
  }
  .page-slot-games__text-block,
  .page-slot-games__ordered-list li,
  .page-slot-games__unordered-list li,
  .page-slot-games__faq-answer p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Cards and Grids */
  .page-slot-games__features-grid,
  .page-slot-games__promotions-grid,
  .page-slot-games__game-types-list {
    grid-template-columns: 1fr; /* Single column layout for cards */
    gap: 20px;
    margin-top: 20px;
  }
  .page-slot-games__card {
    padding: 20px;
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-slot-games__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* Ensure min size for images */
  }
  .page-slot-games__card-title {
    font-size: 1.2rem;
  }
  .page-slot-games__card-description {
    font-size: 0.9rem;
  }

  /* 通用图片与容器 */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-slot-games__hero-cta-buttons,
  .page-slot-games__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  /* FAQ Section */
  details.page-slot-games__faq-item summary.page-slot-games__faq-question {
    padding: 15px;
  }
  .page-slot-games__faq-qtext {
    font-size: 1rem;
  }
  .page-slot-games__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-slot-games__faq-item .page-slot-games__faq-answer {
    padding: 0 15px 15px;
  }
}