:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main: #333333;
  --card-bg: #FFFFFF;
  --background-page: #F5F7FA;
  --border-color: #E0E0E0;
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background-page);
}

.page-slot-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 10px; /* Adhering to fixed header rule */
  padding-bottom: 40px;
  background-color: var(--primary-color);
  color: #ffffff;
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  order: 1; /* Image first */
}

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

.page-slot-games__hero-content {
  order: 2; /* Content after image */
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: 20px;
}

.page-slot-games__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-slot-games__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-slot-games__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-slot-games__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn--primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  border: none;
}

.page-slot-games__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-slot-games__section {
  padding: 60px 20px;
  margin-bottom: 20px;
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-slot-games__section-description {
  font-size: 1.1em;
  color: var(--text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-slot-games__features-grid,
.page-slot-games__type-cards,
.page-slot-games__promo-grid,
.page-slot-games__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__feature-item,
.page-slot-games__type-card,
.page-slot-games__promo-card,
.page-slot-games__security-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-slot-games__feature-item:hover,
.page-slot-games__type-card:hover,
.page-slot-games__promo-card:hover,
.page-slot-games__security-item:hover {
  transform: translateY(-8px);
}

.page-slot-games__feature-title,
.page-slot-games__type-title,
.page-slot-games__promo-title,
.page-slot-games__security-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-slot-games__feature-text,
.page-slot-games__type-text,
.page-slot-games__promo-text,
.page-slot-games__security-text {
  font-size: 1em;
  color: var(--text-main);
}

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

.page-slot-games__image-inline {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__how-to-play .page-slot-games__section-title,
.page-slot-games__how-to-play .page-slot-games__section-description {
  color: var(--text-main);
}

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

.page-slot-games__step-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--primary-color);
  color: var(--text-main);
}

.page-slot-games__step-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-slot-games__step-text {
  font-size: 1em;
  color: var(--text-main);
}

.page-slot-games__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-slot-games__faq-section {
  background-color: var(--background-page);
}

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

.page-slot-games__faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none; /* For <details> summary */
}

.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-slot-games__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-main);
}

.page-slot-games__final-cta {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 80px 20px;
}

.page-slot-games__final-cta .page-slot-games__section-title {
  color: #ffffff;
}

.page-slot-games__final-cta .page-slot-games__section-description {
  color: #f0f0f0;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO Section - Mobile */
  .page-slot-games__hero-section {
    padding-top: 10px !important;
    flex-direction: column;
    text-align: center;
  }

  .page-slot-games__hero-image-wrapper {
    order: 1;
    width: 100% !important;
  }

  .page-slot-games__hero-content {
    order: 2;
    padding: 20px 15px;
  }

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

  .page-slot-games__hero-description {
    font-size: 1em;
  }

  .page-slot-games__hero-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* General Images and Containers - Mobile */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-slot-games__container,
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__feature-item,
  .page-slot-games__type-card,
  .page-slot-games__promo-card,
  .page-slot-games__security-item,
  .page-slot-games__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Product/Game Display Area - Mobile */
  .page-slot-games__features-grid,
  .page-slot-games__type-cards,
  .page-slot-games__promo-grid,
  .page-slot-games__security-grid,
  .page-slot-games__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Buttons and Button Containers - Mobile */
  .page-slot-games__btn,
  .page-slot-games__btn--primary,
  .page-slot-games__btn--secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-slot-games__cta-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* Other Content Modules - Mobile */
  .page-slot-games__section-title {
    font-size: 2em;
  }

  .page-slot-games__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-slot-games__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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

  .page-slot-games__final-cta {
    padding: 60px 15px;
  }
}