/* style/slot-games.css */

/* Base styles for the page content, ensuring dark background and light text for readability */
.page-slot-games {
  background-color: var(--bg-main, #08160F); /* Fallback to a very dark green if var is not defined */
  color: var(--text-main, #F2FFF6); /* Main text color, light for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-slot-games__section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-slot-games__text-block {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--text-secondary, #A7D9B8);
}

/* Card common styles */
.page-slot-games__card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Button common styles */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games a[class*="button"],
.page-slot-games a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for primary button */
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(17, 168, 78, 0.6);
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--main-color, #11A84E);
  border: 2px solid var(--main-color, #11A84E);
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--main-color, #11A84E);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-slot-games__button-group--center {
  justify-content: center;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: var(--background, #08160F);
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

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

.page-slot-games__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-slot-games__main-title {
  font-size: clamp(36px, 5vw, 64px);
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-slot-games__description {
  font-size: 20px;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Introduction Section */
.page-slot-games__introduction-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
}

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

.page-slot-games__feature-icon {
  width: 100%; /* Max width for images */
  height: auto;
  max-width: 250px; /* Example size, adjust as needed */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-slot-games__feature-title {
  font-size: 24px;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-slot-games__feature-description {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
}

/* Game Types Section */
.page-slot-games__game-types-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
}

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

.page-slot-games__list-item {
  padding: 25px;
}

.page-slot-games__game-thumbnail {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too small */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-slot-games__game-title {
  font-size: 22px;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-slot-games__game-description {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
}

/* How to Play Section - Light background for contrast */
.page-slot-games__how-to-play-section {
  padding: 80px 0;
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text */
}

.page-slot-games__how-to-play-section .page-slot-games__section-title,
.page-slot-games__how-to-play-section .page-slot-games__text-block {
  color: #333333;
}

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

.page-slot-games__step-item {
  background-color: #f8f8f8; /* Light grey card background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  border: 1px solid #e0e0e0;
}

.page-slot-games__step-title {
  font-size: 22px;
  color: var(--deep-green, #0A4B2C); /* Deep green for titles on light background */
  margin-bottom: 15px;
  font-weight: 700;
}

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

.page-slot-games__step-description a {
  color: var(--main-color, #11A84E);
  text-decoration: underline;
}

.page-slot-games__step-description a:hover {
  color: var(--auxiliary-color, #22C768);
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
}

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

.page-slot-games__promotion-card {
  padding: 25px;
}

.page-slot-games__promotion-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too small */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-slot-games__promotion-title {
  font-size: 22px;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-slot-games__promotion-title a {
  color: inherit; /* Inherit color from parent */
  text-decoration: none;
}

.page-slot-games__promotion-title a:hover {
  text-decoration: underline;
  color: var(--glow, #57E38D);
}

.page-slot-games__promotion-description {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
}

/* Why Choose Section - Light background for contrast */
.page-slot-games__why-choose-section {
  padding: 80px 0;
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text */
}

.page-slot-games__why-choose-section .page-slot-games__section-title,
.page-slot-games__why-choose-section .page-slot-games__text-block {
  color: #333333;
}

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

.page-slot-games__benefit-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  border: 1px solid #e0e0e0;
}

.page-slot-games__benefit-title {
  font-size: 22px;
  color: var(--deep-green, #0A4B2C);
  margin-bottom: 15px;
  font-weight: 700;
}

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

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
}

.page-slot-games__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--card-bg, #11271B);
  border-bottom: 1px solid var(--divider, #1E3A2A);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-question:hover {
  background-color: #1a3325; /* Slightly lighter card background on hover */
}

.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow, #57E38D);
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'minus' effect */
}

.page-slot-games__faq-answer {
  padding: 20px 30px 30px 30px;
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
}

/* Contrast Fixes for light background sections */
.page-slot-games__light-bg.page-slot-games__contrast-fix {
  background-color: #ffffff !important;
  color: #333333 !important;
}

.page-slot-games__light-bg.page-slot-games__contrast-fix .page-slot-games__section-title,
.page-slot-games__light-bg.page-slot-games__contrast-fix .page-slot-games__text-block,
.page-slot-games__light-bg.page-slot-games__contrast-fix .page-slot-games__step-title,
.page-slot-games__light-bg.page-slot-games__contrast-fix .page-slot-games__step-description,
.page-slot-games__light-bg.page-slot-games__contrast-fix .page-slot-games__benefit-title,
.page-slot-games__light-bg.page-slot-games__contrast-fix .page-slot-games__benefit-description {
  color: #333333 !important;
}

.page-slot-games__light-bg.page-slot-games__contrast-fix .page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
}

.page-slot-games__light-bg.page-slot-games__contrast-fix .page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--main-color, #11A84E);
  border: 2px solid var(--main-color, #11A84E);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-image-wrapper {
    max-height: 500px;
  }
  .page-slot-games__main-title {
    font-size: clamp(32px, 4.5vw, 56px);
  }
  .page-slot-games__description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 15px;
  }

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

  .page-slot-games__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 30px;
  }
  
  .page-slot-games__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__main-title {
    font-size: clamp(28px, 6vw, 40px);
    margin-bottom: 15px;
  }

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

  .page-slot-games__section-title {
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 30px;
  }

  .page-slot-games__text-block {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-slot-games__feature-grid,
  .page-slot-games__game-list,
  .page-slot-games__steps-list,
  .page-slot-games__promotion-grid,
  .page-slot-games__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-slot-games__card,
  .page-slot-games__step-item,
  .page-slot-games__benefit-item {
    padding: 20px;
  }

  .page-slot-games__feature-icon,
  .page-slot-games__game-thumbnail,
  .page-slot-games__promotion-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__button-group {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__faq-question {
    padding: 15px 20px;
    font-size: 18px;
  }

  .page-slot-games__faq-answer {
    padding: 15px 20px 20px 20px;
    font-size: 15px;
  }

  /* Ensure all content containers are responsive */
  .page-slot-games__section,
  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__introduction-section,
  .page-slot-games__game-types-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__why-choose-section,
  .page-slot-games__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-slot-games__description {
    font-size: 15px;
  }
  .page-slot-games__section-title {
    font-size: clamp(22px, 6vw, 32px);
  }
  .page-slot-games__text-block {
    font-size: 15px;
  }
}

/* Image color filter restriction (already handled by global rules, explicit mention for safety) */
.page-slot-games img {
  filter: none; /* Ensure no CSS filters are applied to change image colors */
}

.page-slot-games video {
  filter: none; /* Ensure no CSS filters are applied to change video colors */
}