/* style/slot-games.css */

/* Biến màu sắc */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-login: #EA7C07;
  --background-white: #FFFFFF;
  --background-black: #000000;
}

/* Base styles for page-slot-games, assuming body background is dark from shared.css */
.page-slot-games {
  color: var(--text-light); /* Light text on dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-slot-games__section {
  padding: 60px 0;
  text-align: center;
}

.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(2em, 2.5vw, 3em); /* H2 size */
  color: var(--secondary-color);
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* 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; /* body handles header offset, small top padding for visual */
  overflow: hidden;
  background: var(--background-black); /* Fallback background if image fails */
}

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

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
  margin-top: -150px; /* Pull content up slightly over the image for better flow */
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* H1 size, clamped for responsiveness */
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__description {
  font-size: 1.2em;
  color: var(--secondary-color);
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-slot-games__btn-primary:hover {
  background: #1e87c0;
  transform: translateY(-2px);
}

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

.page-slot-games__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.page-slot-games__btn-tertiary {
  background: var(--background-white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-slot-games__btn-tertiary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-1px);
}

/* Intro Section */
.page-slot-games__intro-section {
  background: var(--background-black);
}

/* Features Section */
.page-slot-games__features-section {
  background: var(--background-white);
  color: var(--text-dark);
}

.page-slot-games__features-section .page-slot-games__section-title {
  color: var(--primary-color);
}

.page-slot-games__features-section .page-slot-games__text-block {
  color: var(--text-dark);
}

.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: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text-dark);
}

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

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

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

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

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

.page-slot-games__step-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 280px; /* Ensure cards have similar height */
}

.page-slot-games__step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

.page-slot-games__step-text {
  color: #ccc;
  margin-bottom: 20px;
}

/* Tips Section */
.page-slot-games__tips-section {
  background: var(--primary-color);
}

.page-slot-games__tips-section .page-slot-games__section-title {
  color: var(--secondary-color);
}

.page-slot-games__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-slot-games__text-content {
  color: var(--text-light);
}

.page-slot-games__sub-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-slot-games__text-content p {
  margin-bottom: 15px;
}

.page-slot-games__image-wrapper {
  text-align: center;
}

.page-slot-games__image-right {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-slot-games__faq-section {
  background: var(--background-white);
  color: var(--text-dark);
}

.page-slot-games__faq-section .page-slot-games__section-title {
  color: var(--primary-color);
}

.page-slot-games__faq-list {
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-slot-games__faq-item {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-dark);
  cursor: pointer;
  background: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  background: #e5e5e5;
}

.page-slot-games__faq-item[open] > .page-slot-games__faq-question {
  background: #e5e5e5;
}

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

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

.page-slot-games__faq-item summary {
  list-style: none;
}

.page-slot-games__faq-answer {
  padding: 15px 25px;
  font-size: 0.95em;
  color: var(--text-dark);
  border-top: 1px solid #eee;
}

.page-slot-games__faq-answer p {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-slot-games__cta-faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.page-slot-games__faq-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
}

/* Conclusion Section */
.page-slot-games__conclusion-section {
  background: var(--background-black);
}

.page-slot-games__conclusion-section .page-slot-games__section-title,
.page-slot-games__conclusion-section .page-slot-games__text-block {
  color: var(--secondary-color);
}

/* Dark background sections */
.page-slot-games__dark-section {
  background: var(--background-black);
  color: var(--text-light);
}

.page-slot-games__dark-section .page-slot-games__section-title {
  color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-slot-games__grid-two-cols {
    grid-template-columns: 1fr;
  }
  .page-slot-games__image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-slot-games__hero-content {
    margin-top: -100px;
  }
}

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

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

  .page-slot-games__section {
    padding: 40px 0;
  }

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

  .page-slot-games__main-title {
    font-size: 2.2em;
  }

  .page-slot-games__description {
    font-size: 1em;
  }

  .page-slot-games__hero-content {
    margin-top: -80px;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-slot-games__image-right,
  .page-slot-games__faq-image,
  .page-slot-games__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__hero-image-wrapper,
  .page-slot-games__image-wrapper,
  .page-slot-games__cta-faq {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__video-section {
    padding-top: 10px !important; /* body handles header offset, small top padding for visual */
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: 1.8em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__hero-content {
    margin-top: -60px;
  }
  .page-slot-games__text-block {
    font-size: 0.95em;
  }
}