/* style/slots.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --card-bg-color: #D32F2F;
  --background-color: #B71C1C;
  --text-main-color: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --button-text-color: #333333; /* Đảm bảo tương phản cao trên nền vàng */
}

.page-slots {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Màu chữ chính cho nền tối */
  background-color: var(--background-color);
}

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

.page-slots__light-bg {
  background-color: #ffffff; /* Nền trắng cho các phần nội dung sáng */
  color: #333333;
}

.page-slots a {
  color: var(--gold-color);
  text-decoration: none;
}

.page-slots a:hover {
  text-decoration: underline;
  color: var(--glow-color);
}

.page-slots__highlight {
  color: var(--gold-color);
  font-weight: bold;
}

/* Hero Section */
.page-slots__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ gọn để không bị đè bởi header, body đã có padding-top */
  text-align: center;
  overflow: hidden;
}

.page-slots__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-slots__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-slots__hero-content {
  max-width: 900px;
  margin-top: 40px;
  z-index: 1;
}

.page-slots__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slots__hero-description {
  font-size: 1.1em;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slots__btn-primary,
.page-slots__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Đảm bảo nút không tràn */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slots__btn-primary {
  background: var(--button-gradient);
  color: var(--button-text-color); /* Đảm bảo tương phản cao */
  border: 2px solid var(--gold-color);
}

.page-slots__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-slots__btn-secondary {
  background: var(--deep-red-color);
  color: var(--text-main-color);
  border: 2px solid var(--gold-color);
}

.page-slots__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* General Section Styling */
.page-slots__section {
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

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

.page-slots__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: bold;
}

.page-slots__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

/* Why Choose Section */
.page-slots__why-choose .page-slots__section-title,
.page-slots__how-to-play .page-slots__section-title,
.page-slots__tips-winning .page-slots__section-title {
  color: var(--primary-color);
}

.page-slots__why-choose .page-slots__section-description,
.page-slots__how-to-play .page-slots__section-description,
.page-slots__tips-winning .page-slots__section-description {
  color: #555555;
}

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

.page-slots__feature-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
}

.page-slots__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-slots__feature-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-slots__feature-text {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
}

/* Popular Games Section */
.page-slots__popular-games .page-slots__section-title {
  color: var(--gold-color);
}

.page-slots__popular-games .page-slots__section-description {
  color: var(--text-main-color);
}

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

.page-slots__card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

.page-slots__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-slots__card-image {
  width: 100%;
  height: 200px; /* Kích thước cố định cho hình ảnh thẻ */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-slots__card-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin: 20px 20px 10px 20px;
  font-weight: bold;
  line-height: 1.4;
}

.page-slots__card-title a {
  color: var(--gold-color);
  text-decoration: none;
}

.page-slots__card-title a:hover {
  text-decoration: underline;
  color: var(--glow-color);
}

.page-slots__card-text {
  font-size: 0.95em;
  color: var(--text-main-color);
  padding: 0 20px 20px 20px;
  line-height: 1.6;
  flex-grow: 1;
}

/* How To Play Section */
.page-slots__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slots__step-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-slots__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  background-color: #ffe0e0;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-slots__step-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-slots__step-text {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
}

.page-slots__btn-text-link {
  color: var(--primary-color);
  font-weight: bold;
  margin-top: 15px;
  align-self: flex-start;
}

.page-slots__btn-text-link:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-slots__promotions .page-slots__section-title {
  color: var(--gold-color);
}

.page-slots__promotions .page-slots__section-description {
  color: var(--text-main-color);
}

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

.page-slots__promo-cards-grid .page-slots__card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
}

.page-slots__promo-cards-grid .page-slots__card-image {
  height: 250px; /* Kích thước hình ảnh lớn hơn cho khuyến mãi */
}

.page-slots__cta-buttons--center {
  margin-top: 40px;
}

/* Tips for Winning Section */
.page-slots__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-slots__tips-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

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

.page-slots__tip-text {
  font-size: 1em;
  line-height: 1.7;
}

/* FAQ Section */
.page-slots__faq-section .page-slots__section-title {
  color: var(--gold-color);
}

.page-slots__faq-section .page-slots__section-description {
  color: var(--text-main-color);
}

.page-slots__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-slots__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color);
}

.page-slots__faq-item summary {
  list-style: none; /* Ẩn marker mặc định */
}

.page-slots__faq-item summary::-webkit-details-marker {
  display: none; /* Ẩn marker trên Webkit */
}

.page-slots__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--gold-color);
  background-color: var(--deep-red-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.page-slots__faq-question:hover {
  background-color: #5a0b0b;
}

.page-slots__faq-qtext {
  flex-grow: 1;
}

.page-slots__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-slots__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-main-color);
}

/* Conclusion Section */
.page-slots__conclusion {
  padding-bottom: 80px;
}

.page-slots__cta-content {
  max-width: 800px;
}

.page-slots__conclusion .page-slots__section-title {
  color: var(--gold-color);
}

.page-slots__conclusion .page-slots__section-description {
  color: var(--text-main-color);
  margin-bottom: 40px;
}

.page-slots__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive Styling */
@media (max-width: 1024px) {
  .page-slots__hero-content {
    margin-top: 30px;
  }

  .page-slots__section {
    padding: 60px 20px;
  }
}

@media (max-width: 768px) {
  .page-slots__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

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

  .page-slots__btn-primary,
  .page-slots__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slots__section {
    padding: 40px 15px;
  }

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

  .page-slots__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Responsive Images */
  .page-slots img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Responsive Containers for images/videos/buttons */
  .page-slots__container,
  .page-slots__hero-image-wrapper,
  .page-slots__features-grid,
  .page-slots__feature-item,
  .page-slots__game-cards-grid,
  .page-slots__card,
  .page-slots__steps-grid,
  .page-slots__step-item,
  .page-slots__promo-cards-grid,
  .page-slots__tips-list,
  .page-slots__tips-item,
  .page-slots__faq-list,
  .page-slots__faq-item,
  .page-slots__cta-buttons,
  .page-slots__button-group,
  .page-slots__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure content doesn't overflow */
  }

  .page-slots__card-image {
    height: 180px; /* Điều chỉnh chiều cao hình ảnh thẻ trên mobile */
  }

  .page-slots__promo-cards-grid .page-slots__card-image {
    height: 200px; /* Điều chỉnh chiều cao hình ảnh khuyến mãi trên mobile */
  }

  .page-slots__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-slots__faq-answer {
    padding: 15px 20px;
  }

  .page-slots__btn-primary--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}

@media (max-width: 480px) {
  .page-slots__main-title {
    font-size: 1.8em;
  }

  .page-slots__section-title {
    font-size: 1.6em;
  }

  .page-slots__feature-title,
  .page-slots__card-title,
  .page-slots__step-title,
  .page-slots__tip-title {
    font-size: 1.2em;
  }

  .page-slots__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }

  .page-slots__section {
    padding: 30px 10px;
  }

  .page-slots__container,
  .page-slots__features-grid,
  .page-slots__game-cards-grid,
  .page-slots__steps-grid,
  .page-slots__promo-cards-grid,
  .page-slots__tips-list,
  .page-slots__faq-list {
    padding-left: 10px;
    padding-right: 10px;
  }
}