/* style/slot-games.css */

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

/* Thiết lập chung cho trang slot-games */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--pk14-text-dark); /* Mặc định chữ tối trên nền sáng */
}

/* Các tiêu đề */
.page-slot-games h1,
.page-slot-games h2,
.page-slot-games h3 {
  color: var(--pk14-black);
  margin-bottom: 1em;
  line-height: 1.2;
}

.page-slot-games h1.page-slot-games__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 900px; /* Không dùng font-size cố định quá lớn */
  color: var(--pk14-text-light);
}

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5em;
}

/* Phần Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Body đã có padding-top: var(--header-offset) */
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

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

.page-slot-games__hero-content {
  max-width: 800px;
  color: var(--pk14-text-light);
  z-index: 1; /* Đảm bảo nội dung chữ nằm trên */
}

.page-slot-games__description {
  font-size: 1.2em;
  margin-bottom: 2em;
  color: var(--pk14-text-light);
}

.page-slot-games .text-highlight {
  font-weight: bold;
  color: var(--pk14-secondary-color);
}

/* Các nút CTA */
.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-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-slot-games__btn-primary {
  background: var(--pk14-login-color); /* Màu đăng nhập */
  color: var(--pk14-text-light);
  border: 2px solid var(--pk14-login-color);
}

.page-slot-games__btn-primary:hover {
  background: #d46f06;
  border-color: #d46f06;
}

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

.page-slot-games__btn-secondary:hover {
  background: var(--pk14-secondary-color);
  color: var(--pk14-primary-color);
}

/* Các phần nội dung */
.page-slot-games__section {
  padding: 80px 20px;
}

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

.page-slot-games__dark-bg {
  background: #1f8bc2; /* Nền xanh đậm hơn cho các section */
  color: var(--pk14-text-light);
}

.page-slot-games__dark-bg .page-slot-games__section-title,
.page-slot-games__dark-bg .page-slot-games__card-title {
  color: var(--pk14-text-light);
}

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

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 1.5em;
  text-align: justify;
}

.page-slot-games__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-slot-games__feature-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: var(--pk14-text-light);
}

.page-slot-games__feature-card:hover {
  transform: translateY(-10px);
}

.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: 600;
  margin-bottom: 1em;
  color: var(--pk14-text-light);
}

.page-slot-games__card-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* Danh sách */
.page-slot-games__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 1.5em;
}

.page-slot-games__list-item {
  margin-bottom: 0.8em;
  font-size: 1.1em;
}

.page-slot-games__numbered-list {
  list-style: none;
  counter-reset: section;
  padding: 0;
}

.page-slot-games__numbered-list .page-slot-games__list-item {
  counter-increment: section;
  margin-bottom: 2em;
  padding-left: 50px;
  position: relative;
  text-align: justify;
}

.page-slot-games__numbered-list .page-slot-games__list-item::before {
  content: counter(section);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--pk14-primary-color);
  color: var(--pk14-text-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-slot-games__numbered-list .page-slot-games__list-item h3 {
  color: var(--pk14-primary-color);
  margin-top: 0;
  margin-bottom: 0.5em;
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  background: var(--pk14-secondary-color);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-slot-games__faq-item[open] {
  background: #f8f8f8;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--pk14-text-dark);
  list-style: none; /* Ẩn marker mặc định của summary */
}

.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: var(--pk14-primary-color);
}

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

.page-slot-games__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
  text-align: justify;
}

/* Final CTA */
.page-slot-games__final-cta {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    max-width: 600px;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
}

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

  .page-slot-games__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-slot-games h1.page-slot-games__main-title {
    font-size: 2em;
  }

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

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    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__section {
    padding: 40px 15px;
  }

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

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

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

  .page-slot-games__numbered-list .page-slot-games__list-item {
    padding-left: 45px;
  }

  .page-slot-games__numbered-list .page-slot-games__list-item::before {
    width: 35px;
    height: 35px;
    font-size: 1em;
  }

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

  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__feature-card,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Đảm bảo không tràn */
  }

  .page-slot-games__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Đảm bảo các nút xếp dọc trên mobile */
  }

  .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-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;
  }
}

@media (max-width: 480px) {
  .page-slot-games h1.page-slot-games__main-title {
    font-size: 1.8em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    font-size: 0.9em;
    padding: 12px 20px;
  }
}