/* General styles for the slot-games page */
.page-slot-games {
  background: #0A0A0A; /* Background color from custom colors */
  color: #FFF6D6; /* Main text color from custom colors */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom */
}

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

.page-slot-games__section {
  padding: 40px 0;
}

.page-slot-games__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F2C14E; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 20px;
}

.page-slot-games__section-description {
  font-size: 18px;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__card {
  background: #111111; /* Card background color from custom colors */
  border: 1px solid #3A2A12; /* Border color from custom colors */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6; /* Text main color for card content */
}

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

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile/general */
  align-items: center;
  gap: 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 40px;
  background-color: #0A0A0A; /* Ensure consistent background */
}

.page-slot-games__hero-image-container {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

.page-slot-games__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 16px;
}

.page-slot-games__main-title {
  font-size: clamp(30px, 4vw, 48px); /* H1 font size with clamp */
  font-weight: 800;
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-slot-games__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF6D6;
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  margin-top: 20px;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-small,
.page-slot-games__btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for button max-width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  color: #111111; /* Default dark text for buttons */
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
  color: #111111; /* Dark text for bright button background */
  border: none;
}

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

.page-slot-games__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Glow color for secondary button text */
  border: 2px solid #FFD36B; /* Border with glow color */
}

.page-slot-games__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1);
  transform: translateY(-2px);
}

.page-slot-games__btn-small {
  padding: 8px 18px;
  font-size: 14px;
}

.page-slot-games__btn-large {
  padding: 15px 30px;
  font-size: 18px;
  min-width: 250px;
}

/* About Slots Section */
.page-slot-games__about-slots p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #FFF6D6;
  text-align: justify;
}
.page-slot-games__about-slots p:last-child {
  margin-bottom: 0;
}

/* Why Choose Section */
.page-slot-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

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

.page-slot-games__feature-card h3 {
  font-size: 22px;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-slot-games__feature-card p {
  font-size: 15px;
  color: #FFF6D6;
}

/* Game Categories Section */
.page-slot-games__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-slot-games__category-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* Push button to bottom */
}

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

.page-slot-games__category-title {
  font-size: 20px;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-slot-games__category-card p {
  font-size: 15px;
  color: #FFF6D6;
  flex-grow: 1; /* Allow paragraph to take available space */
  margin-bottom: 20px;
}

/* How to Play Section */
.page-slot-games__play-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-slot-games__step-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-slot-games__step-icon {
  width: 100%; /* Ensure icon is responsive */
  max-width: 200px; /* Limit max size for steps */
  height: auto;
  border-radius: 50%; /* Make it circular if desired for icons */
  margin-bottom: 20px;
  object-fit: cover;
  border: 3px solid #FFD36B; /* Glow border for icons */
}

.page-slot-games__step-title {
  font-size: 20px;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-slot-games__step-card p {
  font-size: 15px;
  color: #FFF6D6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-slot-games__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-slot-games__promo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

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

/* Tips Section */
.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-slot-games__tips-list li {
  background: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #FFF6D6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-slot-games__tips-list li::before {
  content: "✔";
  color: #FFD36B;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.5;
  flex-shrink: 0;
}

.page-slot-games__tip-highlight {
  color: #F2C14E;
  font-weight: bold;
}

.page-slot-games__conclusion-text {
  font-size: 16px;
  text-align: center;
  color: #FFF6D6;
  margin-top: 30px;
}

/* FAQ Section */
details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12;
  overflow: hidden;
  background: #111111;
  color: #FFF6D6;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2C14E;
  font-weight: 600;
}
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: rgba(255, 211, 107, 0.05); /* Light hover effect */
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
}
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Glow color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: #0A0A0A; /* Darker background for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* Bottom CTA Section */
.page-slot-games__cta-bottom-content {
  text-align: center;
  padding: 50px 16px;
  background: #111111;
  border-radius: 15px;
  border: 1px solid #3A2A12;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}
.page-slot-games__cta-bottom-content .page-slot-games__section-title {
  color: #FFD36B;
}
.page-slot-games__cta-bottom-content .page-slot-games__section-description {
  margin-bottom: 40px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-slot-games__hero-section {
    flex-direction: row; /* Desktop: image on right, content on left */
    justify-content: center;
    align-items: center;
    padding-left: 16px;
    padding-right: 16px;
  }
  .page-slot-games__hero-content {
    text-align: left;
    padding-right: 30px;
    flex: 1;
  }
  .page-slot-games__hero-image-container {
    flex: 1;
    max-width: 60%; /* Adjust image width for desktop */
  }
  .page-slot-games__cta-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-slot-games__section-title {
    font-size: 28px;
  }
  .page-slot-games__section-description {
    font-size: 16px;
  }

  /* Image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__hero-image-container,
  .page-slot-games__category-image,
  .page-slot-games__step-icon,
  .page-slot-games__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Button responsiveness */
  .page-slot-games__cta-buttons,
  .page-slot-games__btn-container {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-small,
  .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;
  }

  /* Card layouts */
  .page-slot-games__features-grid,
  .page-slot-games__categories-grid,
  .page-slot-games__play-steps,
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr; /* Single column for grids */
    gap: 20px;
  }

  .page-slot-games__feature-card,
  .page-slot-games__category-card,
  .page-slot-games__step-card,
  .page-slot-games__promo-card {
    padding: 20px;
  }

  .page-slot-games__hero-content {
    padding: 0 16px;
  }
  .page-slot-games__main-title {
    font-size: 30px;
  }
  .page-slot-games__intro-text {
    font-size: 16px;
  }

  /* FAQ mobile */
  details.page-slot-games__faq-item summary.page-slot-games__faq-question { padding: 15px; }
  .page-slot-games__faq-qtext { font-size: 15px; }
  details.page-slot-games__faq-item .page-slot-games__faq-answer { padding: 0 15px 15px; }

  /* Ensure content containers also adapt */
  .page-slot-games__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}