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

.page-slot-games {
  font-family: Arial, sans-serif;
  color: #333333; /* Mặc định cho nền sáng */
  line-height: 1.6;
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-slot-games__text-block {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Chỉ một khoảng cách nhỏ, body đã xử lý header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Giới hạn chiều cao của hình ảnh hero */
  overflow: hidden;
  position: relative;
}

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

.page-slot-games__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  color: #FFFFFF;
  max-width: 80%;
  padding: 20px;
  box-sizing: border-box;
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 4em); /* Sử dụng clamp để kiểm soát kích thước H1 */
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-slot-games__description {
  font-size: clamp(1.1em, 2vw, 1.5em);
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.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: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

.page-slot-games__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-slot-games__btn-secondary:hover {
  background-color: #e0e0e0;
}

/* Intro Section */
.page-slot-games__intro-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-slot-games__intro-section p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-slot-games__btn-center {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 300px;
}

/* Benefits Section */
.page-slot-games__benefits-section {
  padding: 60px 0;
  color: #FFFFFF;
  background-color: #26A9E0; /* Sử dụng màu thương hiệu làm nền tối */
}

.page-slot-games__benefits-section .page-slot-games__section-title {
  color: #FFFFFF;
}

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

.page-slot-games__benefit-card {
  background-color: 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;
}

.page-slot-games__benefit-card:hover {
  transform: translateY(-5px);
}

.page-slot-games__benefit-card .page-slot-games__card-image {
  width: 100%;
  height: 200px; /* Chiều cao cố định cho hình ảnh thẻ */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__benefit-card .page-slot-games__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-slot-games__benefit-card p {
  font-size: 1em;
  color: #f0f0f0;
}

/* Video Section */
.page-slot-games__video-section {
  padding: 60px 0;
  background-color: #ffffff;
  text-align: center;
}

.page-slot-games__video-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-slot-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-slot-games__video-caption {
  font-style: italic;
  color: #555;
  font-size: 0.95em;
}

/* Game Types Section */
.page-slot-games__game-types-section {
  padding: 60px 0;
  background-color: #f0f7fa;
}

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

.page-slot-games__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.page-slot-games__game-card .page-slot-games__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-slot-games__game-card .page-slot-games__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  padding: 15px 20px 10px 20px;
  font-weight: bold;
}

.page-slot-games__game-card p {
  padding: 0 20px 20px 20px;
  font-size: 0.95em;
  color: #555;
}

/* How To Play Section */
.page-slot-games__how-to-play-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-slot-games__step-card {
  background-color: #f0f7fa;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-slot-games__step-card:hover {
  transform: translateY(-3px);
}

.page-slot-games__step-card .page-slot-games__card-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__step-card p {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 20px;
}

.page-slot-games__btn-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #26A9E0;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-slot-games__btn-link:hover {
  color: #1a7fb8;
  border-color: #1a7fb8;
}

/* Strategies Section */
.page-slot-games__strategies-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-slot-games__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__strategy-list li {
  background-color: #FFFFFF;
  border-left: 5px solid #26A9E0;
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.page-slot-games__strategy-list li h3 {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-slot-games__strategy-list li p {
  color: #555;
  font-size: 1em;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-slot-games__promotions-section .page-slot-games__section-title {
  color: #FFFFFF;
}

.page-slot-games__promotions-section p {
  color: #f0f0f0;
}

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

.page-slot-games__promo-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-slot-games__promo-card:hover {
  transform: translateY(-5px);
}

.page-slot-games__promo-card .page-slot-games__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-slot-games__promo-card .page-slot-games__card-title {
  font-size: 1.4em;
  color: #FFFFFF;
  padding: 15px 20px 10px 20px;
  font-weight: bold;
}

.page-slot-games__promo-card p {
  padding: 0 20px 20px 20px;
  font-size: 0.95em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-slot-games__faq-list {
  margin-top: 40px;
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #e6f2f7;
  border-bottom: 1px solid #d0e8f0;
  list-style: none; /* for details/summary */
}

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

.page-slot-games__faq-question:hover {
  background-color: #d0e8f0;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-games__faq-answer {
  padding: 20px 25px;
  color: #555;
  font-size: 1em;
  background-color: #f0f7fa;
  border-top: 1px solid #e0e0e0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: clamp(2em, 4.5vw, 3.5em);
  }

  .page-slot-games__description {
    font-size: clamp(1em, 1.8vw, 1.3em);
  }

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

  .page-slot-games__hero-content {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 0 15px;
  }

  .page-slot-games__hero-section {
    padding-bottom: 40px;
  }

  .page-slot-games__hero-content {
    max-width: 95%;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-slot-games__description {
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    margin-bottom: 20px;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-slot-games__benefits-section,
  .page-slot-games__intro-section,
  .page-slot-games__video-section,
  .page-slot-games__game-types-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__strategies-section,
  .page-slot-games__promotions-section,
  .page-slot-games__faq-section {
    padding: 40px 0;
  }

  /* Hình ảnh và video responsive */
  .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-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__video-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset, không dùng lại */
  }

  .page-slot-games__benefits-grid,
  .page-slot-games__game-types-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }

  .page-slot-games__description {
    font-size: clamp(0.85em, 3.5vw, 1em);
  }

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

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