/* style/slot-games.css */
.page-slot-games {
  background-color: #08160F; /* Nền tối */
  color: #F2FFF6; /* Chữ sáng */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Nhỏ để tránh che header, body đã có padding-top */
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Giới hạn chiều cao hình ảnh hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin-top: -100px; /* Điều chỉnh để nội dung không bị dính vào ảnh quá sát */
  background: rgba(17, 39, 27, 0.85); /* Card BG với độ trong suốt nhẹ */
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  border: 1px solid #2E7A4E;
}

.page-slot-games__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Sử dụng clamp cho H1 */
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-slot-games__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.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 {
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word; /* Ngắt từ */
  box-sizing: border-box;
  max-width: 100%;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
  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: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-slot-games__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  transform: translateY(-3px);
}

.page-slot-games__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-slot-games__section-description {
  font-size: 1.1em;
  color: #A7D9B8;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__subsection-title {
  font-size: 1.8em;
  color: #57E38D; /* Glow */
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: left;
}

.page-slot-games__introduction-section,
.page-slot-games__how-to-play-section,
.page-slot-games__safety-section,
.page-slot-games__conclusion-section {
  padding: 60px 0;
  text-align: left;
}

.page-slot-games__dark-section {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6;
}

.page-slot-games__dark-section p,
.page-slot-games__dark-section li {
  color: #A7D9B8;
}

.page-slot-games__feature-list,
.page-slot-games__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-slot-games__feature-list li,
.page-slot-games__terms-list li {
  background: rgba(17, 39, 27, 0.7); /* Card BG with transparency */
  border-left: 5px solid #2AD16F;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1.05em;
  color: #F2FFF6;
}

.page-slot-games__feature-list li strong,
.page-slot-games__terms-list li strong {
  color: #F2C14E;
}

.page-slot-games__video-section {
  padding: 60px 0;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
}

.page-slot-games__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Kích thước video lớn hơn */
  margin: 0 auto 30px auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: 2px solid #2AD16F;
  box-sizing: border-box; /* Quan trọng cho responsive */
}

.page-slot-games__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-slot-games__video-cta {
  margin-top: 30px;
}

.page-slot-games__games-type-section {
  padding: 60px 0;
  background-color: #08160F;
}

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

.page-slot-games__game-card {
  background: #11271B; /* Card BG */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__game-card-image {
  width: 100%;
  height: 200px; /* Chiều cao cố định cho ảnh thẻ */
  object-fit: cover;
  display: block;
}

.page-slot-games__game-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-slot-games__game-card-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-slot-games__game-card p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  align-self: flex-start; /* Nút nằm ở đầu */
}

.page-slot-games__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  background: #0A4B2C; /* Deep Green */
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #2E7A4E;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__step-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #2AD16F;
}

.page-slot-games__step-item p {
  color: #A7D9B8;
  font-size: 1.05em;
  text-align: center;
  margin-bottom: 25px;
}

.page-slot-games__faq-section {
  padding: 60px 0;
  background-color: #08160F;
}

.page-slot-games__faq-item {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-slot-games__faq-item[open] {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2C14E; /* Gold */
  cursor: pointer;
  background: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #1E3A2A; /* Divider */
  list-style: none;
}

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

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

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

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  content: '−';
}

.page-slot-games__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

.page-slot-games__conclusion-section {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    margin-top: -80px;
    padding: 30px;
  }

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

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

  .page-slot-games__subsection-title {
    font-size: 1.5em;
  }
}

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

  .page-slot-games__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body đã có padding-top, không dùng var(--header-offset) */
  }

  .page-slot-games__hero-content {
    margin-top: -60px;
    padding: 20px;
    max-width: calc(100% - 30px); /* Đảm bảo padding */
    box-sizing: border-box !important;
  }

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

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

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

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

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

  .page-slot-games__subsection-title {
    font-size: 1.3em;
    text-align: center;
  }

  .page-slot-games__introduction-section,
  .page-slot-games__games-type-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__safety-section,
  .page-slot-games__faq-section,
  .page-slot-games__conclusion-section,
  .page-slot-games__video-section {
    padding: 40px 0;
  }

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

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

  .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-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__game-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-slot-games__game-card-image {
    height: auto; /* Cho phép ảnh tự điều chỉnh chiều cao */
    min-height: 200px; /* Đảm bảo kích thước tối thiểu */
  }

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

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

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

@media (max-width: 480px) {
  .page-slot-games__hero-content {
    margin-top: -40px;
  }

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

  .page-slot-games__hero-description {
    font-size: 0.9em;
  }

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

  .page-slot-games__subsection-title {
    font-size: 1.2em;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9em;
  }
}