/* style/slot-games.css */
:root {
  --qq88-primary-color: #11A84E;
  --qq88-secondary-color: #22C768;
  --qq88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --qq88-card-bg: #11271B;
  --qq88-background: #08160F;
  --qq88-text-main: #F2FFF6;
  --qq88-text-secondary: #A7D9B8;
  --qq88-border: #2E7A4E;
  --qq88-glow: #57E38D;
  --qq88-gold: #F2C14E;
  --qq88-divider: #1E3A2A;
  --qq88-deep-green: #0A4B2C;
}

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

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

.page-slot-games__section-title {
  font-size: 2.5em;
  color: var(--qq88-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--qq88-text-main);
}

.page-slot-games__dark-bg {
  background-color: var(--qq88-background);
  color: var(--qq88-text-main);
  padding: 60px 0;
}

.page-slot-games__card-bg {
  background-color: var(--qq88-card-bg);
  color: var(--qq88-text-main);
  padding: 60px 0;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles padding-top, this is decorative */
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  position: relative;
}

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

.page-slot-games__hero-content {
  position: relative; /* Ensure content is above image if needed, but not overlaying */
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly, but not over image visible area */
  background-color: rgba(8, 22, 15, 0.9); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: var(--qq88-gold);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-slot-games__hero-description {
  font-size: 1.2em;
  color: var(--qq88-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-slot-games__btn-primary {
  background: var(--qq88-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--qq88-glow);
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--qq88-glow);
  border: 2px solid var(--qq88-glow);
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--qq88-glow);
  color: var(--qq88-background);
  box-shadow: 0 0 15px var(--qq88-glow);
}

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

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

.page-slot-games__card:hover {
  transform: translateY(-10px);
}

.page-slot-games__feature-image,
.page-slot-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-slot-games__feature-title,
.page-slot-games__promo-title {
  font-size: 1.5em;
  color: var(--qq88-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__feature-description,
.page-slot-games__promo-description {
  font-size: 1em;
  color: var(--qq88-text-secondary);
}

/* How To Play */
.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-slot-games__step-item {
  background-color: var(--qq88-card-bg);
  border: 1px solid var(--qq88-border);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 80px;
  color: var(--qq88-text-main);
}

.page-slot-games__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 25px;
  top: 25px;
  background: var(--qq88-button-gradient);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  font-weight: bold;
}

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

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

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

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  background-color: var(--qq88-background);
  border: 1px solid var(--qq88-border);
  border-radius: 8px;
  margin-bottom: 15px;
  color: var(--qq88-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: bold;
  color: var(--qq88-gold);
  cursor: pointer;
  list-style: none;
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--qq88-glow);
  margin-left: 15px;
}

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

.page-slot-games__faq-answer p {
  margin-bottom: 0;
}

/* Responsible Gaming */
.page-slot-games__responsible-gaming .page-slot-games__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Global Image/Video/Button Responsive Styles */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-slot-games video,
.page-slot-games__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-slot-games__video-section,
.page-slot-games__video-container,
.page-slot-games__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-slot-games__cta-button,
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__cta-buttons,
.page-slot-games__button-group,
.page-slot-games__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-slot-games__hero-section {
    padding: 10px 0 30px 0;
  }

  .page-slot-games__hero-content {
    padding: 20px;
    margin-top: -50px; /* Adjust for smaller screens */
  }

  .page-slot-games__main-title {
    font-size: 2em; /* Smaller on mobile */
  }

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

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

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-slot-games__hero-section,
  .page-slot-games__introduction,
  .page-slot-games__features,
  .page-slot-games__how-to-play,
  .page-slot-games__promotions,
  .page-slot-games__responsible-gaming,
  .page-slot-games__faq,
  .page-slot-games__cta-section {
    padding: 30px 0;
  }

  .page-slot-games__feature-grid,
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

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

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

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
  }
}

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

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