/* style/slot-games.css */
/* body đã padding-top: var(--header-offset)；trang không được viết lại biến này */

/* Kiểu cơ bản cho nội dung trang */
.page-slot-games {
  background-color: #08160F; /* Nền xanh đậm */
  color: #F2FFF6; /* Màu văn bản chính */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Đảm bảo tất cả các phần tử văn bản sử dụng màu sáng trên nền tối */
.page-slot-games h1,
.page-slot-games h2,
.page-slot-games h3,
.page-slot-games h4,
.page-slot-games h5,
.page-slot-games h6 {
  color: #F2FFF6; /* Màu văn bản chính cho tiêu đề */
  margin-bottom: 15px;
}

.page-slot-games p {
  color: #A7D9B8; /* Màu văn bản phụ cho đoạn văn */
  margin-bottom: 15px;
}

.page-slot-games a {
  color: #2AD16F; /* Màu liên kết, sử dụng màu xanh sáng hơn để dễ nhìn */
  text-decoration: none;
}

.page-slot-games a:hover {
  text-decoration: underline;
}

/* Phần Hero */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Đệm trên nhỏ, đệm dưới lớn hơn */
  text-align: center;
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Làm tối hình ảnh một chút để dễ đọc văn bản */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Màu nền thẻ với độ trong suốt */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-top: 50px; /* Đẩy nội dung xuống một chút từ trên cùng */
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Kích thước font chữ phản hồi */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-slot-games__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #A7D9B8;
}

.page-slot-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên màn hình nhỏ hơn */
}

/* Kiểu phần chung */
.page-slot-games__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-slot-games__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-slot-games__section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #A7D9B8;
}

/* Lưới tính năng */
.page-slot-games__feature-grid,
.page-slot-games__game-type-grid,
.page-slot-games__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__feature-card,
.page-slot-games__game-type-card,
.page-slot-games__promotion-card {
  background-color: #11271B; /* Màu nền thẻ */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Màu viền */
}

.page-slot-games__feature-card:hover,
.page-slot-games__game-type-card:hover,
.page-slot-games__promotion-card:hover {
  transform: translateY(-5px);
}

.page-slot-games__feature-image,
.page-slot-games__game-type-image,
.page-slot-games__promotion-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__feature-title,
.page-slot-games__game-type-title,
.page-slot-games__promotion-title {
  font-size: 1.5rem;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-slot-games__feature-text,
.page-slot-games__game-type-text,
.page-slot-games__promotion-text {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
}

/* Phần Hướng dẫn chơi */
.page-slot-games__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
}

.page-slot-games__step-item {
  background-color: #11271B; /* Màu nền thẻ */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Màu viền */
}

.page-slot-games__step-title {
  font-size: 1.6rem;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-slot-games__step-text {
  font-size: 1.05rem;
  color: #A7D9B8;
  margin-bottom: 20px;
}

/* Phần Chiến lược */
.page-slot-games__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-slot-games__tip-item {
  background-color: #11271B; /* Màu nền thẻ */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Màu viền */
}

.page-slot-games__tip-title {
  font-size: 1.5rem;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-slot-games__tip-text {
  font-size: 1rem;
  color: #A7D9B8;
}

/* CTA khuyến mãi */
.page-slot-games__cta-center {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* Nút */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  white-space: normal; /* Cho phép văn bản xuống dòng */
  word-wrap: break-word; /* Ngắt từ dài */
  max-width: 100%; /* Đảm bảo nút không tràn */
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Gradient nút */
  color: #F2FFF6;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Màu xanh lá chính */
  border: 2px solid #2AD16F;
}

.page-slot-games__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-2px);
}

.page-slot-games__btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.page-slot-games__cta-bottom-section .page-slot-games__cta-buttons--center {
  margin-top: 30px;
}


/* Phần FAQ */
.page-slot-games__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__faq-item {
  background-color: #11271B; /* Màu nền thẻ */
  border: 1px solid #2E7A4E; /* Màu viền */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #F2FFF6;
  cursor: pointer;
  background-color: #11271B; /* Màu nền thẻ */
  position: relative;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

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

.page-slot-games__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #2AD16F;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  transform: rotate(45deg); /* Xoay để tạo hiệu ứng 'x' */
}

.page-slot-games__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8;
  line-height: 1.8;
}

/* Điều chỉnh phản hồi */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-bottom: 40px;
  }

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

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

  .page-slot-games__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

  .page-slot-games__feature-grid,
  .page-slot-games__game-type-grid,
  .page-slot-games__promotion-grid,
  .page-slot-games__tip-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__feature-card,
  .page-slot-games__game-type-card,
  .page-slot-games__promotion-card,
  .page-slot-games__step-item,
  .page-slot-games__tip-item,
  .page-slot-games__faq-item {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__feature-image,
  .page-slot-games__game-type-image,
  .page-slot-games__promotion-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-slot-games__video-section {
    padding-top: 10px !important; /* body đã chịu trách nhiệm cho --header-offset, cấm sử dụng var(--header-offset) ở đây */
  }

  .page-slot-games__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}