/* style/slot-games.css */

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

.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--j188-text-main); /* Default text color for the page */
  background-color: var(--j188-background); /* Default background for the main content area if not overridden by sections */
}

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

.page-slot-games__dark-bg {
  background-color: var(--j188-background);
  color: var(--j188-text-main);
}

.page-slot-games__card-bg {
  background-color: var(--j188-card-bg);
  color: var(--j188-text-main);
}

.page-slot-games__text-main {
  color: var(--j188-text-main);
}

.page-slot-games__text-secondary {
  color: var(--j188-text-secondary);
}

.page-slot-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: var(--j188-text-main);
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding for first section */
  padding-bottom: 60px;
  overflow: hidden;
  text-align: center;
}

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

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

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

.page-slot-games__main-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--j188-gold);
  text-shadow: 0 0 15px var(--j188-glow);
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-slot-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--j188-text-secondary);
}

.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;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: var(--j188-button-gradient);
  color: var(--j188-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--j188-glow);
  border: 2px solid var(--j188-glow);
  box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

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

.page-slot-games__btn-large {
  padding: 18px 40px;
  font-size: 1.1em;
}

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

/* Introduction Section */
.page-slot-games__introduction-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
  padding: 60px 0;
  background-color: var(--j188-background);
}

/* Highlights Section */
.page-slot-games__highlights-section,
.page-slot-games__how-to-play-section,
.page-slot-games__platform-features-section,
.page-slot-games__conclusion-section {
  padding: 60px 0;
}

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

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

.page-slot-games__feature-item:hover {
  transform: translateY(-5px);
}

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

.page-slot-games__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--j188-gold);
}

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

/* Game Types Section */
.page-slot-games__game-types-section {
  padding: 60px 0;
  background-color: var(--j188-background);
}

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

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

.page-slot-games__type-card:hover {
  transform: translateY(-5px);
}

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

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

.page-slot-games__type-description {
  font-size: 0.95em;
  color: var(--j188-text-secondary);
}

/* How To Play Section */
.page-slot-games__how-to-play-section {
  background-color: var(--j188-deep-green);
}

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

.page-slot-games__step-item {
  background-color: var(--j188-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--j188-border);
  position: relative;
  padding-top: 60px;
}

.page-slot-games__step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--j188-button-gradient);
  color: var(--j188-text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-slot-games__promo-item {
  background-color: var(--j188-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--j188-border);
}

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

.page-slot-games__promo-description {
  font-size: 0.95em;
  color: var(--j188-text-secondary);
}

/* Platform Features Section */
.page-slot-games__platform-features-section {
  background-color: var(--j188-deep-green);
}

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

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

.page-slot-games__feature-card:hover {
  transform: translateY(-5px);
}

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

.page-slot-games__faq-item {
  background-color: var(--j188-card-bg);
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--j188-border);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--j188-text-main);
  background-color: var(--j188-card-bg);
  user-select: none;
}

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

.page-slot-games__faq-qtext {
  flex-grow: 1;
  color: var(--j188-gold);
}

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

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

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  border-bottom: 1px solid var(--j188-divider);
}

/* Conclusion Section */
.page-slot-games__conclusion-section {
  background-color: var(--j188-deep-green);
  text-align: center;
  padding-bottom: 80px;
}

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

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

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

  .page-slot-games__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-slot-games__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 15px;
  }

  .page-slot-games__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .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;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-slot-games__features-grid,
  .page-slot-games__types-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__promo-list,
  .page-slot-games__features-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-slot-games__feature-image,
  .page-slot-games__type-image {
    max-height: 180px;
  }

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

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

  /* Ensure all images are responsive in mobile */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers with images are responsive in mobile */
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__feature-item,
  .page-slot-games__type-card,
  .page-slot-games__feature-card,
  .page-slot-games__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}