/* style/slot-games.css */
/* body đã có padding-top: var(--header-offset) từ shared.css, không thêm lại tại đây */

:root {
  --n88-primary-color: #26A9E0;
  --n88-secondary-color: #FFFFFF;
  --n88-login-color: #EA7C07;
  --n88-background-color: #FFFFFF;
  --n88-text-dark: #333333;
  --n88-text-light: #ffffff;
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--n88-text-dark); /* Mặc định cho nền sáng */
  background-color: var(--n88-background-color);
}

.page-slot-games__dark-section {
  background-color: var(--n88-primary-color);
  color: var(--n88-text-light);
}

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

.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body đã xử lý padding-top, chỉ cần 10px cho khoảng cách nhỏ */
  overflow: hidden;
  text-align: center;
}

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

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

.page-slot-games__hero-content {
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 0 20px;
}

.page-slot-games__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--n88-text-light);
}

.page-slot-games__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--n88-text-light);
}

.page-slot-games__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background-color: var(--n88-login-color); /* Màu login cho nút chính */
  color: var(--n88-text-light);
  border: 2px solid var(--n88-login-color);
}

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

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

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

.page-slot-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-slot-games__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.page-slot-games__introduction-section .page-slot-games__section-title,
.page-slot-games__popular-games-section .page-slot-games__section-title,
.page-slot-games__faq-section .page-slot-games__section-title {
  color: var(--n88-primary-color);
}

.page-slot-games__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-slot-games__highlight {
  color: var(--n88-login-color);
  font-weight: 700;
}

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

.page-slot-games__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--n88-text-light);
}

.page-slot-games__feature-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-slot-games__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--n88-text-light);
}

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

.page-slot-games__game-card {
  background-color: var(--n88-secondary-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--n88-text-dark);
  transition: transform 0.3s ease;
}

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

.page-slot-games__game-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-slot-games__game-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--n88-primary-color);
}

.page-slot-games__game-description {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games__btn-small {
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 6px;
}

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

.page-slot-games__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--n88-text-light);
}

.page-slot-games__step-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--n88-text-light);
}

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

.page-slot-games__faq-item {
  background-color: var(--n88-secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--n88-text-dark);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  color: var(--n88-primary-color);
  list-style: none; /* For details tag */
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5rem;
  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: 15px 25px 20px 25px;
  font-size: 1rem;
  color: var(--n88-text-dark);
}

.page-slot-games__faq-answer p {
  margin-bottom: 0;
}

.page-slot-games__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-slot-games__cta-section .page-slot-games__section-title {
  color: var(--n88-text-light);
}

.page-slot-games__cta-section .page-slot-games__description {
  color: var(--n88-text-light);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    max-width: 768px;
  }
}

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

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

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

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

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

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

  .page-slot-games__content-area {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }

  .page-slot-games__text-block,
  .page-slot-games__game-description,
  .page-slot-games__faq-answer p {
    font-size: 0.95rem;
  }

  .page-slot-games__feature-card,
  .page-slot-games__game-card,
  .page-slot-games__step-card {
    padding: 25px;
  }

  .page-slot-games__card-title,
  .page-slot-games__step-title {
    font-size: 1.3rem;
  }

  .page-slot-games__game-title {
    font-size: 1.15rem;
  }

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

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

  /* Mobile image and video responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__feature-icon,
  .page-slot-games__game-thumbnail {
    width: 100%; /* Make sure these images fill their card width */
    height: auto;
  }

  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__introduction-section,
  .page-slot-games__features-section,
  .page-slot-games__popular-games-section,
  .page-slot-games__guide-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}