/* style/slot-games.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Midnight Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212; /* From shared.css body background */
  --bg-light: #f8f8f8;
  --border-color: rgba(255, 255, 255, 0.1);
}

/* Base styles for the page content wrapper */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure main content background matches body */
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

/* Container for content width */
.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section spacing and general styles */
.page-slot-games__hero-section,
.page-slot-games__introduction-section,
.page-slot-games__highlights-section,
.page-slot-games__guide-section,
.page-slot-games__game-types-section,
.page-slot-games__tips-section,
.page-slot-games__promo-section,
.page-slot-games__why-choose-section,
.page-slot-games__faq-section,
.page-slot-games__final-cta-section {
  padding: 60px 0;
  position: relative;
}

/* Background colors for sections based on body background */
.page-slot-games__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-slot-games__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Headings */
.page-slot-games__main-title {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__description {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

.page-slot-games__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-slot-games__light-bg .page-slot-games__text-block {
  color: var(--text-dark);
}

.page-slot-games__light-bg .page-slot-games__description {
  color: var(--text-dark);
}

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

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-link {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-slot-games__btn-primary:hover {
  background-color: #e6c200; /* Darken primary color */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.page-slot-games__btn-link {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  font-size: 16px;
  margin-top: 15px;
}

.page-slot-games__btn-link:hover {
  background-color: #000066; /* Darken secondary color */
  color: var(--primary-color);
}

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

/* Card styles */
.page-slot-games__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark bg */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-light);
}

.page-slot-games__light-bg .page-slot-games__card {
  background-color: #ffffff;
  color: var(--text-dark);
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-slot-games__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-slot-games__light-bg .page-slot-games__card-title {
  color: var(--secondary-color);
}

.page-slot-games__card-text {
  font-size: 16px;
  line-height: 1.7;
}

/* Steps list for guide section */
.page-slot-games__steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__step-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  color: var(--text-dark);
}

.page-slot-games__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-slot-games__step-text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Game list and promo list */
.page-slot-games__game-list,
.page-slot-games__promo-list,
.page-slot-games__tips-list,
.page-slot-games__advantages-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.page-slot-games__game-list .page-slot-games__list-item,
.page-slot-games__promo-list .page-slot-games__list-item,
.page-slot-games__tips-list .page-slot-games__list-item,
.page-slot-games__advantages-list .page-slot-games__list-item {
  display: flex;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-light);
}

.page-slot-games__light-bg .page-slot-games__game-list .page-slot-games__list-item,
.page-slot-games__light-bg .page-slot-games__promo-list .page-slot-games__list-item,
.page-slot-games__light-bg .page-slot-games__tips-list .page-slot-games__list-item,
.page-slot-games__light-bg .page-slot-games__advantages-list .page-slot-games__list-item {
  background-color: #ffffff;
  color: var(--text-dark);
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__list-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 25px;
  flex-shrink: 0;
}

.page-slot-games__list-content {
  flex-grow: 1;
}

.page-slot-games__list-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-slot-games__light-bg .page-slot-games__list-title {
  color: var(--secondary-color);
}

.page-slot-games__list-text {
  font-size: 15px;
  line-height: 1.6;
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: var(--text-light);
}

.page-slot-games__faq-item.active .page-slot-games__faq-question {
  border-radius: 8px 8px 0 0;
}

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

.page-slot-games__light-bg .page-slot-games__faq-question {
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid #e0e0e0;
}

.page-slot-games__light-bg .page-slot-games__faq-question:hover {
  background: #f5f5f5;
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-slot-games__light-bg .page-slot-games__faq-question h3 {
  color: var(--secondary-color);
}

.page-slot-games__faq-toggle {
  font-size: 28px;
  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; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-slot-games__light-bg .page-slot-games__faq-toggle {
  color: var(--secondary-color);
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate for active state */
  color: var(--primary-color);
}

.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 25px;
  opacity: 0;
  color: var(--text-light);
}