/* General styling for the slot-games page content */
.page-slot-games {
  font-family: Arial, sans-serif;
  color: var(--text-main, #333333);
  background-color: var(--background, #F5F7FA);
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

.page-slot-games__hero-section {
  background-color: #2d0000; /* Deep red/wine red background */
  padding-top: 10px; /* Minimal top padding as body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  color: #FFFFFF; /* White text for contrast */
}

.page-slot-games__hero-image-wrapper {
  max-width: 1200px; /* Constrain image width for desktop */
  margin: 0 auto 20px auto;
  overflow: hidden;
  border-radius: 8px;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16 / 9; /* For 1200x675 display */
  filter: none; /* Ensure no filter is applied */
}

.page-slot-games__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-slot-games__main-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem); /* Adjusted for larger desktop, still clamped */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.page-slot-games__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #E0E0E0;
}

.page-slot-games__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__cta-button--centered {
  margin-top: 20px;
}

.page-slot-games__section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--card-b-g, #FFFFFF);
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-slot-games__section:first-of-type {
  margin-top: -20px; /* Pull up to overlap with hero section for visual flow */
  position: relative;
  z-index: 1;
}

.page-slot-games__section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-main, #333333);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-slot-games__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #d6d604; /* Yellow accent */
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

.page-slot-games__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.page-slot-games__content-wrapper--with-image {
  display: flex;
  flex-direction: column; /* Default to column on mobile */
  align-items: center;
  gap: 30px;
}

.page-slot-games__content-wrapper--reverse {
  flex-direction: column-reverse; /* Reverse order for image-text layout */
}

.page-slot-games__text-content {
  flex: 1;
  text-align: left;
}

.page-slot-games__content-image {
  width: 100%;
  max-width: 600px; /* Constrain image width */
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  filter: none; /* Ensure no filter is applied */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-slot-games__feature-list,
.page-slot-games__game-types-list,
.page-slot-games__promotion-list,
.page-slot-games__step-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-slot-games__feature-item,
.page-slot-games__game-type-item,
.page-slot-games__promotion-item,
.page-slot-games__step-item {
  background-color: var(--background, #F5F7FA);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  border-left: 4px solid #FF5A4F; /* Accent color */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.page-slot-games__step-list {
  counter-reset: step-counter;
}

.page-slot-games__step-item {
  position: relative;
  padding-left: 40px;
  border-left: none;
  border-bottom: 1px dashed var(--border, #E0E0E0);
  background-color: transparent;
  box-shadow: none;
  padding-bottom: 15px;
}

.page-slot-games__step-item:last-child {
  border-bottom: none;
}

.page-slot-games__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 10px;
  width: 28px;
  height: 28px;
  background-color: #E53935; /* Main red */
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.page-slot-games__text-link {
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.page-slot-games__text-link:hover {
  color: #FF5A4F;
  text-decoration: underline;
}

.page-slot-games__faq-item {
  background-color: var(--card-b-g, #FFFFFF);
  border: 1px solid var(--border, #E0E0E0);
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-slot-games__faq-question {
  font-size: 1.2rem;
  color: var(--text-main, #333333);
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-slot-games__faq-answer {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 0;
}

/* Desktop styles */
@media (min-width: 769px) {
  .page-slot-games__hero-section {
    padding-bottom: 60px;
  }

  .page-slot-games__main-title {
    font-size: clamp(2.5rem, 3.5vw, 3.2rem); /* Adjusted H1 for desktop */
  }

  .page-slot-games__section {
    padding: 60px 40px;
    margin-top: 30px;
  }
  .page-slot-games__section:first-of-type {
    margin-top: -40px; /* Adjust overlap for desktop */
  }

  .page-slot-games__content-wrapper--with-image {
    flex-direction: row; /* Side-by-side on desktop */
    text-align: left;
  }

  .page-slot-games__content-wrapper--reverse {
    flex-direction: row-reverse; /* Reverse order for image-text layout */
  }

  .page-slot-games__text-content {
    padding-right: 30px;
  }

  .page-slot-games__content-wrapper--reverse .page-slot-games__text-content {
    padding-left: 30px;
    padding-right: 0;
  }

  .page-slot-games__content-image {
    max-width: 50%; /* Image takes half width */
    flex-shrink: 0;
  }

  .page-slot-games__cta-button--centered {
    margin-top: 30px;
  }
}

/* Mobile specific styles (<= 768px) */
@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-bottom: 30px;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem); /* Ensure H1 is not too big on small screens */
  }

  .page-slot-games__intro-text {
    font-size: 1rem;
  }

  .page-slot-games__section {
    padding: 30px 15px;
    margin-top: 15px;
  }
  .page-slot-games__section:first-of-type {
    margin-top: -15px; /* Adjust overlap for mobile */
  }

  .page-slot-games__content-image {
    max-width: 100%;
    height: auto;
  }

  .page-slot-games__feature-item,
  .page-slot-games__game-type-item,
  .page-slot-games__promotion-item {
    padding: 12px;
  }

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

  .page-slot-games__step-item::before {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

  .page-slot-games__faq-question {
    font-size: 1.1rem;
  }

  .page-slot-games__faq-answer {
    font-size: 0.95rem;
  }
}

/* Further ensure images are responsive and don't overflow */
@media (max-width: 768px) {
  .page-slot-games img {
    max-width: 100%;
    height: auto;
  }
}