/* style/slot-games.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--background-color);
}

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

.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body đã có padding-top, chỉ cần 10px trang trí */
  color: var(--text-main);
  overflow: hidden;
  background: var(--background-color);
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Giới hạn chiều cao hình ảnh để không chiếm quá nhiều không gian */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: brightness(0.7); /* Làm tối ảnh nền để chữ dễ đọc hơn */
}

.page-slot-games__hero-content {
  position: relative; /* Đảm bảo nội dung nằm trên ảnh, không bị chồng lên */
  z-index: 10;
  max-width: 900px;
  padding: 30px 20px;
  background: linear-gradient(rgba(8, 22, 15, 0.7), rgba(8, 22, 15, 0.9)); /* Nền tối nhẹ để chữ nổi bật */
  border-radius: 10px;
  margin-top: -80px; /* Kéo lên một chút để tạo sự liền mạch với hình ảnh */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__main-title {
  font-weight: bold;
  color: var(--gold);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-slot-games__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--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,
.page-slot-games__btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word; /* Cho phép từ xuống dòng */
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background: var(--button-color);
  color: var(--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: var(--card-bg);
  color: var(--glow);
  border: 2px solid var(--glow);
}

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

.page-slot-games__btn-tertiary {
  background: var(--deep-green);
  color: var(--text-main);
  border: none;
  padding: 10px 20px;
  font-size: 0.9em;
}

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

.page-slot-games__about-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
  padding: 60px 0;
  background: var(--light-bg);
  color: var(--dark-text);
}

.page-slot-games__game-showcase,
.page-slot-games__guide-section {
  padding: 60px 0;
  background: var(--dark-bg);
  color: var(--text-main);
}

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

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

.page-slot-games__section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 20px;
  color: var(--gold);
  font-weight: bold;
}

.page-slot-games__section-description {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary);
}

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

.page-slot-games__feature-item,
.page-slot-games__game-card,
.page-slot-games__promo-card {
  background: var(--deep-green);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__feature-item:hover,
.page-slot-games__game-card:hover,
.page-slot-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__feature-icon,
.page-slot-games__game-image,
.page-slot-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
}

.page-slot-games__feature-title,
.page-slot-games__game-title,
.page-slot-games__promo-title {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__feature-text,
.page-slot-games__game-text,
.page-slot-games__promo-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-slot-games__guide-step {
  background: var(--deep-green);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-slot-games__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glow);
  color: var(--background-color);
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(87, 227, 141, 0.6);
}

.page-slot-games__step-title {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-slot-games__faq-item {
  background: var(--deep-green);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background: var(--card-bg);
  transition: background 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

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

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

.page-slot-games__faq-qtext {
  flex-grow: 1;
}

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

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

/* ----- Responsive Design ----- */

/* Tất cả hình ảnh phải thích ứng với thiết bị di động */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tất cả video phải thích ứng với thiết bị di động */
.page-slot-games video,
.page-slot-games__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Container của video phải thích ứng */
.page-slot-games__video-section,
.page-slot-games__video-container,
.page-slot-games__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Nút bấm cũng phải thích ứng */
.page-slot-games__cta-button,
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary,
.page-slot-games a[class*="button"],
.page-slot-games a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__cta-buttons,
.page-slot-games__button-group,
.page-slot-games__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-slot-games__hero-content {
    margin-top: -40px; /* Điều chỉnh vị trí trên di động */
    padding: 20px 15px;
  }

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

  .page-slot-games__intro-text {
    font-size: 1rem;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-slot-games__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-slot-games__section-description {
    font-size: 0.95rem;
    padding: 0 15px;
  }

  .page-slot-games__feature-grid,
  .page-slot-games__game-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__feature-item,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__guide-step {
    padding: 20px;
  }

  .page-slot-games__feature-icon,
  .page-slot-games__game-image,
  .page-slot-games__promo-image {
    height: 180px;
  }

  .page-slot-games__feature-title,
  .page-slot-games__game-title,
  .page-slot-games__promo-title {
    font-size: 1.3rem;
  }

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

  .page-slot-games__faq-answer {
    font-size: 0.95rem;
    padding: 0 15px 15px 15px;
  }

  /* Hình ảnh, video và container của chúng */
  .page-slot-games img,
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__about-section,
  .page-slot-games__game-showcase,
  .page-slot-games__promotions-section,
  .page-slot-games__guide-section,
  .page-slot-games__faq-section,
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-slot-games__hero-section { /* Vô hiệu hóa padding-left/right nếu đã có trong container cha */
      padding-left: 0 !important;
      padding-right: 0 !important;
  }

  .page-slot-games__hero-image-wrapper {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }

  .page-slot-games__hero-content {
      padding-left: 15px !important;
      padding-right: 15px !important;
  }

  .page-slot-games__video-section {
    padding-top: 10px !important; /* Chỉ 10px top padding cho video section */
  }
}

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

/* Smart Contrast based on body background-color: #08160F (dark) */
.page-slot-games {
  color: var(--text-main); /* Deep green background, so light text */
}

.page-slot-games__card {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

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

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

.page-slot-games__btn-primary {
  background: var(--button-color);
  color: var(--text-main);
}

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

.page-slot-games__btn-tertiary {
  background: var(--deep-green);
  color: var(--text-main);
}

/* Ensure images don't use filter */
.page-slot-games img {
  filter: none; /* No filter for color change */
}

/* Content area images minimum size enforcement */
.page-slot-games__feature-icon,
.page-slot-games__game-image,
.page-slot-games__promo-image {
  min-width: 200px;
  min-height: 200px;
}