/* style/slot-games.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */

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

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-slot-games-text-main); /* Default text color for dark backgrounds */
  background-color: var(--page-slot-games-background); /* Default page background */
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--page-slot-games-text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-slot-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-slot-games-gold);
  border-radius: 2px;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-slot-games-text-secondary);
}

.page-slot-games__highlight {
  color: var(--page-slot-games-gold);
  font-weight: 600;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--page-slot-games-background);
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-slot-games__main-title {
  font-weight: 800;
  color: var(--page-slot-games-gold);
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
}

.page-slot-games__subtitle {
  font-size: 1.3em;
  color: var(--page-slot-games-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  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-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  min-width: 180px;
  text-align: center;
}

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

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-slot-games__btn-secondary {
  background: var(--page-slot-games-card-bg);
  color: var(--page-slot-games-gold);
  border: 2px solid var(--page-slot-games-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background-color: var(--page-slot-games-deep-green);
  color: var(--page-slot-games-text-main);
}

/* General Section Styles */
.page-slot-games__introduction-section,
.page-slot-games__popular-games-section,
.page-slot-games__promotions-section,
.page-slot-games__cta-final-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-background);
  color: var(--page-slot-games-text-main);
}

.page-slot-games__advantages-section,
.page-slot-games__how-to-play-section,
.page-slot-games__tips-section,
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-slot-games__text-contrast-fix {
  color: #333333; /* For titles on light backgrounds */
}

/* Grid for Advantages */
.page-slot-games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__card {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-slot-games-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__card.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
  border-color: #e0e0e0;
}

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

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

.page-slot-games__card-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--page-slot-games-gold);
  margin-bottom: 10px;
}

.page-slot-games__card.page-slot-games__light-bg .page-slot-games__card-title {
  color: var(--page-slot-games-primary-color);
}

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

.page-slot-games__card.page-slot-games__light-bg .page-slot-games__card-description {
  color: #555555;
}

/* Lists */
.page-slot-games__game-list,
.page-slot-games__promo-list,
.page-slot-games__tips-list,
.page-slot-games__step-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 900px;
  text-align: left;
}

.page-slot-games__game-list li,
.page-slot-games__promo-list li,
.page-slot-games__tips-list li,
.page-slot-games__step-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-size: 1.1em;
  color: var(--page-slot-games-text-secondary);
}

.page-slot-games__step-list li strong {
  color: var(--page-slot-games-gold);
}

.page-slot-games__game-list li::before,
.page-slot-games__promo-list li::before,
.page-slot-games__tips-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--page-slot-games-gold);
  font-size: 1.2em;
  line-height: 1;
}

.page-slot-games__step-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--page-slot-games-primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  font-weight: 700;
}

.page-slot-games__game-link {
  color: var(--page-slot-games-gold);
  text-decoration: none;
  font-weight: 600;
}

.page-slot-games__game-link:hover {
  text-decoration: underline;
  color: var(--page-slot-games-glow);
}

/* Video Section */
.page-slot-games__video-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-deep-green);
  text-align: center;
  color: var(--page-slot-games-text-main);
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-slot-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  width: 100%; /* Ensure desktop width is 100% */
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-slot-games__video-description {
  margin-top: 20px;
  font-size: 1.1em;
  color: var(--page-slot-games-text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-slot-games__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-slot-games__faq-item {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-slot-games-text-main);
}

.page-slot-games__faq-item.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
  border-color: #e0e0e0;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: var(--page-slot-games-gold);
}

.page-slot-games__faq-item.page-slot-games__light-bg .page-slot-games__faq-question {
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__faq-question:hover {
  background-color: var(--page-slot-games-deep-green);
}

.page-slot-games__faq-item.page-slot-games__light-bg .page-slot-games__faq-question:hover {
  background-color: #f5f5f5;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

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

.page-slot-games__faq-item.page-slot-games__light-bg .page-slot-games__faq-answer {
  color: #555555;
}

/* Details tag specific CSS for FAQ */
details.page-slot-games__faq-item > summary {
  list-style: none;
}
details.page-slot-games__faq-item > summary::-webkit-details-marker {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-slot-games__subtitle {
    font-size: 1.1em;
  }
  .page-slot-games__hero-section, 
  .page-slot-games__introduction-section,
  .page-slot-games__advantages-section,
  .page-slot-games__popular-games-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__tips-section,
  .page-slot-games__video-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final-section {
    padding: 60px 0;
  }
  .page-slot-games__card {
    padding: 25px;
  }
  .page-slot-games__faq-question {
    padding: 18px 20px;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px 18px;
  }
}

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

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

  .page-slot-games__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-slot-games__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    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;
  }

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__hero-image-wrapper,
  .page-slot-games__card,
  .page-slot-games__video-wrapper,
  .page-slot-games__faq-item,
  .page-slot-games__introduction-section,
  .page-slot-games__advantages-section,
  .page-slot-games__popular-games-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__tips-section,
  .page-slot-games__video-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  .page-slot-games__hero-section,
  .page-slot-games__video-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-slot-games__video-wrapper {
    margin: 20px auto !important;
  }

  .page-slot-games__game-list li,
  .page-slot-games__promo-list li,
  .page-slot-games__tips-list li,
  .page-slot-games__step-list li {
    font-size: 1em;
    padding-left: 25px;
  }

  .page-slot-games__game-list li::before,
  .page-slot-games__promo-list li::before,
  .page-slot-games__tips-list li::before,
  .page-slot-games__step-list li::before {
    font-size: 1em;
    left: 0;
  }
}

@media (max-width: 480px) {
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-slot-games__text-block {
    font-size: 0.95em;
  }
  .page-slot-games__card-title {
    font-size: 1.3em;
  }
  .page-slot-games__faq-question {
    font-size: 1.1em;
  }
  .page-slot-games__faq-answer {
    font-size: 0.9em;
  }
}