/* style/slot-games.css */
:root {
  --primary-color: #1A2E47;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-light: #f8f8f8;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --card-bg-light: #ffffff;
  --border-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games {
  color: var(--text-light); /* Body background is dark (#121212), so use light text */
  background-color: var(--bg-dark); /* Ensure consistency with body background */
}

.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  /* Fixed header padding */
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
}

.page-slot-games__section {
  margin-bottom: 60px;
  padding: 40px;
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-slot-games__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: none;
}

.page-slot-games__hero-section {
  text-align: center;
  padding: 60px 40px;
  margin-bottom: 60px;
}

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

.page-slot-games__description {
  font-size: 1.15em;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--secondary-color);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-slot-games__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: #1a3a5e;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-slot-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.page-slot-games__content-wrapper:nth-child(even) {
  flex-direction: row-reverse;
}

.page-slot-games__image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-slot-games__text-content {
  flex: 2;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-light);
}

.page-slot-games__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-slot-games__benefits .page-slot-games__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-slot-games__card {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-slot-games__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-light);
}

.page-slot-games__type-item {
  margin-bottom: 40px;
}

.page-slot-games__type-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--secondary-color);
  text-align: center;
}

.page-slot-games__how-to-play .page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  counter-reset: step-counter;
}

.page-slot-games__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  background-color: var(--card-bg-dark);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-left: 70px; /* Space for step number */
}

.page-slot-games__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 25px;
  top: 25px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-size: 1.5em;
  font-weight: bold;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__step-item p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
}

.page-slot-games__how-to-play-image {
  max-width: 800px;
  margin: 40px auto 0 auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.page-slot-games__promo-list,
.page-slot-games__safety-list,
.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-slot-games__promo-item,
.page-slot-games__safety-item,
.page-slot-games__tip-item {
  background-color: var(--card-bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.6;
  color: var(--text-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-slot-games__promo-item strong,
.page-slot-games__safety-item strong,
.page-slot-games__tip-item strong,
.page-slot-games__tip-title {
  color: var(--secondary-color);
}

/* FAQ styles */
.page-slot-games__faq-section {
  padding: 40px;
}

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

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-bg-dark);
  border: 1px solid var(--border-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

.page-slot-games__faq-question:hover {
  background: #1a3a5e;
  color: #fff;
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: inherit; /* Inherit color from parent */
}

.page-slot-games__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-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: 30px;
  height: 30px;
}

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

.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);
  background-color: var(--card-bg-dark);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color);
}

.page-slot-games__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-light);
}

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

  .page-slot-games__section-title {
    font-size: 2em;
  }

  .page-slot-games__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-slot-games__content-wrapper:nth-child(even) {
    flex-direction: column;
  }

  .page-slot-games__image-wrapper {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 20px 15px;
    padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
  }

  .page-slot-games__section {
    padding: 25px;
    margin-bottom: 40px;
  }

  .page-slot-games__hero-section {
    padding: 40px 20px;
  }

  .page-slot-games__main-title {
    font-size: 2.2em;
    line-height: 1.3;
  }

  .page-slot-games__description {
    font-size: 1em;
    line-height: 1.6;
  }

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

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

  .page-slot-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__cards-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-slot-games__image,
  .page-slot-games__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0;
    margin-right: 0;
  }

  .page-slot-games__how-to-play-image {
    padding: 0;
  }

  .page-slot-games__step-item {
    padding: 20px 20px 20px 60px;
  }

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

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

  .page-slot-games__faq-question {
    padding: 15px 20px;
  }

  .page-slot-games__faq-question h3 {
    font-size: 1em;
  }

  .page-slot-games__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }

  .page-slot-games__faq-answer {
    padding: 0 20px;
  }

  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px 20px !important;
  }

  .page-slot-games__promo-item,
  .page-slot-games__safety-item,
  .page-slot-games__tip-item {
    padding: 15px;
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: 1.8em;
  }

  .page-slot-games__section-title {
    font-size: 1.5em;
  }

  .page-slot-games__description,
  .page-slot-games__text-block,
  .page-slot-games__text-content p,
  .page-slot-games__card-text,
  .page-slot-games__step-item p,
  .page-slot-games__faq-answer p {
    font-size: 0.95em;
  }
}