.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #000; /* Assuming body background is black from shared.css */
}

.page-slot-games__section {
  padding: 60px 20px;
  width: 100%;
  box-sizing: border-box;
}

.page-slot-games__dark-bg {
  background-color: #1a1a1a; /* Darker background for contrast with #000 body */
  color: #ffffff;
}

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

.page-slot-games__heading {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #ffc107; /* Gold/yellow for headings */
}

.page-slot-games__sub-heading {
  font-size: 20px;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-slot-games__description,
.page-slot-games__content-paragraph {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #e0e0e0;
}

.page-slot-games__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  height: 100%; /* Ensure cards in grid have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-slot-games__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 15px;
  color: #ffc107; /* Gold/yellow for card titles */
}

.page-slot-games__card p {
  font-size: 16px;
  line-height: 1.5;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background-color: #ffc107; /* Gold/yellow */
  color: #1a1a1a; /* Dark text for gold background */
  border: 2px solid #ffc107;
}

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

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #ffc107; /* Gold/yellow text */
  border: 2px solid #ffc107;
}

.page-slot-games__btn-secondary:hover {
  background-color: #ffc107;
  color: #1a1a1a;
}

.page-slot-games__grid-2-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

/* HERO Section */
.page-slot-games__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* shared 已给 body 留白时用 0 */
  margin-top: 0;
  background-color: #000;
}

.page-slot-games__hero-container {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  margin: 0;
}

.page-slot-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* LOGO Carousel Section */
.page-slot-games__logo-carousel-section {
  width: 100%;
  padding: 30px 20px;
  background: #000; /* Match body background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__logo-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page-slot-games__logo-carousel {
  display: flex;
  gap: 15px;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.page-slot-games__logo-carousel::-webkit-scrollbar {
  display: none;
}

.page-slot-games__logo-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

.page-slot-games__logo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.page-slot-games__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  pointer-events: auto;
}

.page-slot-games__logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Games Section */
.page-slot-games__games-section {
  padding: 60px 20px;
  background: #000; /* Match body background */
}

.page-slot-games__games-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-slot-games__games-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.page-slot-games__featured-game-area {
  width: 100%;
}

.page-slot-games__featured-game-title {
  font-size: 28px; /* Slightly larger for prominence */
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #ffd700; /* Yellow for Jackpot */
  text-align: left;
}

.page-slot-games__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.page-slot-games__featured-game-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-slot-games__featured-game-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.page-slot-games__featured-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-slot-games__games-grid-area {
  width: 100%;
}

.page-slot-games__games-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: flex-start; /* Align tabs to start */
}

.page-slot-games__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #888888; /* Slightly lighter gray for inactive */
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
  padding-bottom: 5px; /* Space for underline */
}

.page-slot-games__games-tab:hover {
  color: #ffc107;
}

.page-slot-games__games-tab.active {
  color: #ffc107; /* Gold/yellow for active tab */
}

.page-slot-games__games-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #ffc107;
  border-radius: 2px;
}

.page-slot-games__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none;
}

.page-slot-games__games-grid.active {
  display: grid;
}

.page-slot-games__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-slot-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-slot-games__game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-slot-games__game-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-slot-games__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-slot-games__game-card-title {
  font-size: 15px;
  font-weight: 500;
  margin: 10px 0 10px 0;
  padding: 0 5px;
  color: #ffffff; /* White text for game titles */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* Core Games Section */
.page-slot-games__core-games-section {
  padding: 80px 20px;
}

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

.page-slot-games__game-category {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-slot-games__game-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__category-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffc107;
  margin-bottom: 10px;
}

.page-slot-games__category-description {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.5;
  text-align: left;
  flex-grow: 1;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 80px 20px;
  background-color: #000;
}

.page-slot-games__promo-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-slot-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Security & Support Section */
.page-slot-games__security-support-section {
  padding: 80px 20px;
}

.page-slot-games__security-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 20px;
  background-color: #000;
}

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

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.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 20px;
  opacity: 0;
  color: #e0e0e0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important;
  padding: 20px 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-slot-games__faq-item.active .page-slot-games__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-slot-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffc107;
}

.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffc107;
  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: 30px;
  height: 30px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(180deg);
  color: #ffffff;
}

/* Blog Section */
.page-slot-games__blog-section {
  padding: 80px 20px;
}

.page-slot-games__blog-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-slot-games__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-slot-games__blog-card .page-slot-games__card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 15px 20px 10px 20px;
  text-align: left;
  color: #ffc107;
}

.page-slot-games__blog-link {
  color: inherit;
  text-decoration: none;
}

.page-slot-games__blog-link:hover {
  text-decoration: underline;
}

.page-slot-games__blog-excerpt {
  font-size: 16px;
  color: #e0e0e0;
  margin: 0 20px 15px 20px;
  flex-grow: 1;
  text-align: left;
}

.page-slot-games__blog-date {
  font-size: 14px;
  color: #888888;
  margin: 0 20px 20px 20px;
  display: block;
}

.page-slot-games__blog-cta {
  margin-top: 60px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__heading {
    font-size: 32px;
  }
  .page-slot-games__description, .page-slot-games__content-paragraph {
    font-size: 17px;
  }
  .page-slot-games__grid-2-columns {
    grid-template-columns: 1fr;
  }
  .page-slot-games__grid-3-columns {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-slot-games__games-layout {
    grid-template-columns: 1fr;
  }
  .page-slot-games__featured-game-image {
    height: 400px;
  }
  .page-slot-games__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-slot-games__games-tab {
    font-size: 18px;
  }
  .page-slot-games__game-card-image {
    height: 180px;
  }
  .page-slot-games__game-card-title {
    font-size: 14px;
  }
  .page-slot-games__game-category {
    padding: 20px;
  }
  .page-slot-games__category-image {
    height: 180px;
  }
  .page-slot-games__category-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__section {
    padding: 40px 15px;
  }
  .page-slot-games__heading {
    font-size: 28px;
    margin-bottom: 25px;
  }
  .page-slot-games__sub-heading {
    font-size: 18px;
    margin-bottom: 30px;
  }
  .page-slot-games__description, .page-slot-games__content-paragraph {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-slot-games__card {
    padding: 20px;
  }
  .page-slot-games__card-title {
    font-size: 20px;
  }
  .page-slot-games__card p {
    font-size: 15px;
  }
  .page-slot-games__button-group {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* HERO Section Mobile */
  .page-slot-games__hero-section {
    padding-top: 0 !important;
  }

  /* LOGO Carousel Section Mobile */
  .page-slot-games__logo-carousel-section {
    padding: 20px 15px;
  }
  .page-slot-games__logo-carousel {
    gap: 12px;
  }
  .page-slot-games__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
  }
  .page-slot-games__logo-item a {
    padding: 8px;
  }

  /* Games Section Mobile */
  .page-slot-games__games-section {
    padding: 40px 15px;
  }
  .page-slot-games__games-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__featured-game-title {
    font-size: 24px;
  }
  .page-slot-games__featured-game-image {
    height: 300px;
  }
  .page-slot-games__games-tabs {
    gap: 15px;
  }
  .page-slot-games__games-tab {
    font-size: 16px;
    padding-bottom: 3px;
  }
  .page-slot-games__games-tab.active::after {
    height: 2px;
  }
  .page-slot-games__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-slot-games__game-card-image {
    height: 150px;
  }
  .page-slot-games__game-card-title {
    font-size: 13px;
    margin: 8px 0 8px 0;
    padding: 0 3px;
  }

  /* Core Games Section Mobile */
  .page-slot-games__games-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__game-category {
    padding: 20px;
  }
  .page-slot-games__category-image {
    height: 150px;
  }
  .page-slot-games__category-title {
    font-size: 20px;
  }
  .page-slot-games__category-description {
    font-size: 15px;
  }

  /* Promotions Section Mobile */
  .page-slot-games__promo-image {
    height: 150px;
  }

  /* Security & Support Section Mobile */
  .page-slot-games__security-icon {
    width: 80px;
    height: 80px;
  }

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

  /* Blog Section Mobile */
  .page-slot-games__blog-image {
    height: 150px;
  }
  .page-slot-games__blog-card .page-slot-games__card-title {
    font-size: 18px;
    margin: 15px 15px 10px 15px;
  }
  .page-slot-games__blog-excerpt {
    font-size: 15px;
    margin: 0 15px 15px 15px;
  }
  .page-slot-games__blog-date {
    margin: 0 15px 15px 15px;
  }

  /* General image and container rules for mobile */
  .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,
  .page-slot-games__games-grid-area,
  .page-slot-games__featured-game-area,
  .page-slot-games__game-category,
  .page-slot-games__promo-card,
  .page-slot-games__security-card,
  .page-slot-games__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Exclude logo-item from general image rules */
  .page-slot-games__logo-item img {
    max-width: 100%; /* Reset to default if any !important overrides */
    width: 100%;
    height: 100%;
  }
}