/* -------------------------------------------------------------------------- */
/*                            Base & Typography                             */
/* -------------------------------------------------------------------------- */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Custom background color */
  line-height: 1.6;
}

.page-slot-games__dark-section {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  color: #ffffff;
}

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

.page-slot-games__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-slot-games__dark-section .page-slot-games__section-title {
  color: #ffffff;
}

.page-slot-games__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

.page-slot-games__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-slot-games__card {
  background: #FFFFFF;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* -------------------------------------------------------------------------- */
/*                                   Buttons                                  */
/* -------------------------------------------------------------------------- */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-slot-games__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-slot-games__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-slot-games__center-cta {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* -------------------------------------------------------------------------- */
/*                                 Hero Section                               */
/* -------------------------------------------------------------------------- */
.page-slot-games__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 15px;
}

/* -------------------------------------------------------------------------- */
/*                               About Slots Section                          */
/* -------------------------------------------------------------------------- */
.page-slot-games__about-slots-section {
  padding: 60px 0;
}

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

.page-slot-games__feature-item {
  text-align: center;
}

.page-slot-games__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
}

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

.page-slot-games__feature-description {
  font-size: 16px;
  color: #555555;
}

/* -------------------------------------------------------------------------- */
/*                             Game Categories Section                        */
/* -------------------------------------------------------------------------- */
.page-slot-games__game-categories-section {
  padding: 60px 0;
}

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

.page-slot-games__category-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333333;
  overflow: hidden;
}

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

.page-slot-games__category-title {
  font-size: 22px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
  text-align: center;
}

.page-slot-games__category-description {
  font-size: 15px;
  color: #555555;
  flex-grow: 1;
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/*                             How To Play Section                            */
/* -------------------------------------------------------------------------- */
.page-slot-games__how-to-play-section {
  padding: 60px 0;
}

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

.page-slot-games__step-item {
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-slot-games__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: #E53935;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-slot-games__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
}

.page-slot-games__step-description {
  font-size: 15px;
  color: #555555;
}

/* -------------------------------------------------------------------------- */
/*                            Promotions Section                              */
/* -------------------------------------------------------------------------- */
.page-slot-games__promotions-section {
  padding: 60px 0;
}

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

.page-slot-games__promo-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333333;
  overflow: hidden;
}

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

.page-slot-games__promo-content {
  padding: 0 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-slot-games__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
}

.page-slot-games__promo-description {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* -------------------------------------------------------------------------- */
/*                                 FAQ Section                                */
/* -------------------------------------------------------------------------- */
.page-slot-games__faq-section {
  padding: 60px 0;
}

.page-slot-games__faq-list {
  margin-top: 40px;
}

details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #E0E0E0;
  overflow: hidden;
  background: #FFFFFF;
}

details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: #f5f5f5;
}

.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #E53935;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  color: #555555;
}

/* -------------------------------------------------------------------------- */
/*                                 Responsive Design                          */
/* -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .page-slot-games__hero-content {
    padding: 60px 15px;
  }
  .page-slot-games__main-title {
    font-size: 40px;
  }
  .page-slot-games__section-title {
    font-size: 30px;
  }
}

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

  .page-slot-games__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-slot-games__hero-content {
    padding: 40px 15px;
  }

  .page-slot-games__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-slot-games__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

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

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

  .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: 12px 20px;
    font-size: 16px;
  }

  .page-slot-games__about-slots-section,
  .page-slot-games__game-categories-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__faq-section {
    padding: 40px 0;
  }

  .page-slot-games__features-grid,
  .page-slot-games__categories-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__feature-item,
  .page-slot-games__category-card,
  .page-slot-games__step-item,
  .page-slot-games__promo-card {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__feature-title,
  .page-slot-games__category-title,
  .page-slot-games__step-title,
  .page-slot-games__promo-title {
    font-size: 20px;
  }

  .page-slot-games__feature-description,
  .page-slot-games__category-description,
  .page-slot-games__step-description,
  .page-slot-games__promo-description {
    font-size: 14px;
  }

  .page-slot-games__category-image,
  .page-slot-games__promo-image {
    height: 180px;
  }

  .page-slot-games__step-item {
    padding-top: 50px;
  }

  .page-slot-games__step-number {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

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

  .page-slot-games__faq-qtext {
    font-size: 16px;
  }

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

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

  /* Image responsive */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__hero-image {
    filter: brightness(0.5) !important; /* Make it darker on mobile */
  }

  .page-slot-games__hero-image-wrapper,
  .page-slot-games__features-grid,
  .page-slot-games__categories-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__promotions-grid,
  .page-slot-games__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}

/* Ensure images within cards/sections are responsive */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General container padding for mobile to prevent overflow */
.page-slot-games__section,
.page-slot-games__card,
.page-slot-games__container {
  box-sizing: border-box;
}

/* Body background color handling from shared.css: var(--background-color) */
/* Assuming --background-color is light, default text is dark. */
/* If it were dark, .page-slot-games would need color: #ffffff; */
/* All specific sections (like dark-section) handle their own text color. */