/* style/slot-games.css */

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

.page-slot-games {
  font-family: Arial, sans-serif;
  color: var(--keonhacai3-text-main); /* Default text color for the page */
  background-color: var(--keonhacai3-background); /* Overall page background */
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Stack image and content vertically */
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
}

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

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

.page-slot-games__hero-content {
  max-width: 900px;
  margin: 40px auto 0 auto; /* Margin above content, after image */
  padding: 0 20px;
  box-sizing: border-box;
}

.page-slot-games__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--keonhacai3-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.4); /* Glow effect */
}

.page-slot-games__hero-description {
  font-size: 1.25rem;
  color: var(--keonhacai3-text-secondary);
  margin-bottom: 40px;
}

/* CTA Buttons */
.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  max-width: 100%;
  box-sizing: border-box;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure minimum width for buttons */
  max-width: 100%; /* Important for responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-slot-games__btn-primary {
  background: var(--keonhacai3-button-gradient);
  color: var(--keonhacai3-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

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

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--keonhacai3-primary);
  border: 2px solid var(--keonhacai3-primary);
  box-shadow: 0 2px 8px rgba(17, 168, 78, 0.2);
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--keonhacai3-primary);
  color: var(--keonhacai3-text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 168, 78, 0.4);
}

.page-slot-games__btn-small {
  padding: 10px 20px;
  font-size: 1rem;
  min-width: unset;
}

.page-slot-games__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
  min-width: 220px;
}

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

.page-slot-games__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--keonhacai3-gold);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-slot-games__paragraph {
  font-size: 1.1rem;
  color: var(--keonhacai3-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-slot-games__paragraph a {
  color: var(--keonhacai3-gold);
  text-decoration: underline;
}

.page-slot-games__introduction-section {
  padding: 60px 0;
  background-color: var(--keonhacai3-card-bg); /* Darker background for contrast */
}

/* Game Grid Section */
.page-slot-games__popular-games-section {
  padding: 60px 0;
}

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

.page-slot-games__game-card {
  background-color: var(--keonhacai3-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--keonhacai3-border);
}

.page-slot-games__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid var(--keonhacai3-primary);
}

.page-slot-games__game-card-title {
  font-size: 1.5rem;
  color: var(--keonhacai3-gold);
  margin-bottom: 10px;
}

.page-slot-games__game-card-description {
  font-size: 1rem;
  color: var(--keonhacai3-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-slot-games__game-trial-frame {
  width: 100%;
  height: 300px; /* Specific height for game trial iframe */
  border: 2px solid var(--keonhacai3-primary);
  border-radius: 8px;
  margin-top: 20px;
  background-color: #000; /* Dark background for loading */
}

/* Features Section */
.page-slot-games__features-section {
  padding: 60px 0;
  background-color: var(--keonhacai3-deep-green); /* Another darker background for variation */
}

.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(--keonhacai3-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--keonhacai3-border);
}

.page-slot-games__feature-icon {
  width: 100px; /* Consistent icon size */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px var(--keonhacai3-glow)); /* Subtle glow for icons */
}

.page-slot-games__feature-title {
  font-size: 1.4rem;
  color: var(--keonhacai3-text-main);
  margin-bottom: 15px;
}

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

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

.page-slot-games__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-slot-games__step-item {
  background-color: var(--keonhacai3-card-bg);
  border-radius: 12px;
  padding: 25px 30px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  border: 1px solid var(--keonhacai3-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__step-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  top: -15px;
  left: 30px;
  background-color: var(--keonhacai3-gold);
  color: var(--keonhacai3-background);
  padding: 5px 15px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.page-slot-games__step-title {
  font-size: 1.3rem;
  color: var(--keonhacai3-text-main);
  margin-top: 15px; /* Space for the step number badge */
}

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

.page-slot-games__step-description a {
  color: var(--keonhacai3-gold);
  text-decoration: underline;
}

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

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 60px 0;
  background-color: var(--keonhacai3-card-bg);
}

.page-slot-games__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-slot-games__faq-question {
  display: block;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--keonhacai3-text-main);
  cursor: pointer;
  position: relative;
  user-select: none;
  background-color: var(--keonhacai3-deep-green);
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  background-color: var(--keonhacai3-primary);
}

.page-slot-games__faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--keonhacai3-gold);
}

.page-slot-games__faq-item[open] > .page-slot-games__faq-question::after {
  content: '−';
  transform: translateY(-50%) rotate(0deg); /* No rotation for minus */
}

.page-slot-games__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1rem;
  color: var(--keonhacai3-text-secondary);
  background-color: var(--keonhacai3-background);
  border-top: 1px solid var(--keonhacai3-divider);
}

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

.page-slot-games__faq-answer a {
  color: var(--keonhacai3-gold);
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-slot-games__hero-description {
    font-size: 1.1rem;
  }
  .page-slot-games__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

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

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

  .page-slot-games__hero-content {
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-slot-games__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

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

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

  .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-left: 15px; /* Ensure padding inside button */
    padding-right: 15px; /* Ensure padding inside button */
  }

  .page-slot-games__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-slot-games__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 30px;
    padding-top: 40px;
  }

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

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

  .page-slot-games__game-card-image {
    height: 180px;
  }

  .page-slot-games__game-card-title {
    font-size: 1.3rem;
  }

  .page-slot-games__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-slot-games__feature-title {
    font-size: 1.2rem;
  }

  .page-slot-games__step-item::before {
    left: 20px;
  }

  .page-slot-games__step-title {
    font-size: 1.2rem;
  }

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

  .page-slot-games__faq-question::after {
    right: 20px;
  }

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

  /* Image responsive */
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive (if any, though none explicitly added for this page) */
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper,
  .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;
    overflow: hidden !important;
  }
  
  .page-slot-games__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Color contrast enforcement */
/* Ensure text on dark backgrounds is light */
.page-slot-games__introduction-section,
.page-slot-games__game-card,
.page-slot-games__features-section,
.page-slot-games__feature-item,
.page-slot-games__how-to-play-section .page-slot-games__step-item,
.page-slot-games__faq-section,
.page-slot-games__faq-item,
.page-slot-games__faq-question {
  color: var(--keonhacai3-text-main);
}

/* Ensure text on light background (if any) is dark */
/* Not much light background on this page, but good to have */
.page-slot-games__step-item::before { /* The step number badge has gold background */
  color: var(--keonhacai3-background); /* Dark text on gold */
}

/* Links within paragraphs should be distinguishable */
.page-slot-games__paragraph a,
.page-slot-games__step-description a,
.page-slot-games__faq-answer a {
  color: var(--keonhacai3-gold);
  text-decoration: underline;
}

/* No CSS filter on images */
.page-slot-games img {
  filter: none;
}
.page-slot-games__feature-icon {
  /* This is allowed as it's a drop-shadow, not color filter */
  filter: drop-shadow(0 0 8px var(--keonhacai3-glow));
}