/* style/slot-games.css */

/* Căn chỉnh khoảng cách cho nội dung chính do header cố định */
.page-content.page-slot-games {
  padding-top: 100px; /* Giá trị mặc định cho mobile, sẽ được ghi đè cho desktop */
  background-color: var(--dark-bg-1);
  color: #f0f0f0; /* Màu chữ sáng trên nền tối */
}

@media (min-width: 769px) {
  .page-content.page-slot-games {
    padding-top: 120px; /* Khoảng cách cho desktop */
  }
}

/* Các phần chung của trang */
.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-slot-games__section {
  padding: 60px 0;
}

.page-slot-games__section-title {
  font-size: 36px;
  color: #FFD700; /* Màu vàng thương hiệu */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-slot-games__paragraph {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #e0e0e0;
  text-align: justify;
}

.page-slot-games__link-text {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-slot-games__link-text:hover {
  color: #ffd700cc;
}

.page-slot-games__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  margin: 10px;
}

.page-slot-games__btn--primary {
  background-color: #FFD700;
  color: #1A202C;
}

.page-slot-games__btn--primary:hover {
  background-color: #ffc107;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-slot-games__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-slot-games__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-slot-games__actions-bottom, .page-slot-games__actions-final {
  text-align: center;
  margin-top: 40px;
}

/* HERO Banner Section */
.page-slot-games__hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #1A202C, #000000);
  padding: 0;
}

.page-slot-games__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-slot-games__hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
  opacity: 0.8;
}

.page-slot-games__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #ffffff;
  max-width: 80%;
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 10px;
}

.page-slot-games__main-heading {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.page-slot-games__description {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-slot-games__hero-actions .page-slot-games__btn {
  margin: 0 15px;
}

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

.page-slot-games__game-card {
  background: var(--dark-bg-2); /* Nền tối hơn */
  border: 1px solid #FFD700;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
}

.page-slot-games__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.page-slot-games__game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #FFD700;
}

.page-slot-games__card-title {
  font-size: 24px;
  color: #FFD700;
  padding: 15px 20px 10px;
  margin: 0;
  font-weight: 600;
}

.page-slot-games__card-description {
  font-size: 16px;
  line-height: 1.6;
  padding: 0 20px 20px;
  color: #cccccc;
}

/* Step List Guide */
.page-slot-games__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-slot-games__list-item {
  background: var(--dark-bg-2);
  border: 1px solid #333;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 25px 30px 25px 70px; /* Thêm padding cho số thứ tự */
  position: relative;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__list-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #FFD700;
  color: #1A202C;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
}

.page-slot-games__list-title {
  font-size: 24px;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-slot-games__list-description {
  font-size: 17px;
  line-height: 1.7;
  color: #e0e0e0;
}

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

.page-slot-games__promo-card {
  background: var(--dark-bg-2);
  border: 1px solid #FFD700;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
}

.page-slot-games__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.page-slot-games__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #FFD700;
}

/* Why Us / Features Section */
.page-slot-games__feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__feature-item {
  background: var(--dark-bg-2);
  border: 1px solid #FFD700;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.page-slot-games__feature-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  display: inline-block;
}

.page-slot-games__feature-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-slot-games__feature-description {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
}

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

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--dark-bg-2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A202C;
  border: 1px solid #333;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #f0f0f0;
}

.page-slot-games__faq-question:hover {
  background: #2a3447;
  border-color: #555;
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: var(--dark-bg-3);
  color: #cccccc;
}

.page-slot-games__faq-item.active .page-slot-games__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: #FFD700;
  transform: rotate(180deg);
}

.page-slot-games__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #cccccc;
}

/* CTA Section */
.page-slot-games__section--cta {
  background-color: #1A202C;
  text-align: center;
  padding: 80px 0;
}

.page-slot-games__section--cta .page-slot-games__section-title {
  color: #FFD700;
  font-size: 40px;
}

.page-slot-games__section--cta .page-slot-games__paragraph {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__main-heading {
    font-size: 40px;
  }

  .page-slot-games__description {
    font-size: 18px;
  }

  .page-slot-games__section-title {
    font-size: 32px;
  }

  .page-slot-games__paragraph {
    font-size: 17px;
  }

  .page-slot-games__game-grid, .page-slot-games__promo-grid, .page-slot-games__feature-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-content.page-slot-games {
    padding-top: 80px !important; /* Khoảng cách cho mobile */
  }

  .page-slot-games__hero-content {
    position: static;
    transform: none;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 100%;
    margin-top: -5px; /* Kéo lên che một phần ảnh */
    border-radius: 0;
  }

  .page-slot-games__hero-banner img {
    max-height: 300px;
  }

  .page-slot-games__main-heading {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-slot-games__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-slot-games__hero-actions .page-slot-games__btn {
    display: block;
    margin: 10px auto;
    width: calc(100% - 20px);
  }

  .page-slot-games__section {
    padding: 40px 0;
  }

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

  .page-slot-games__paragraph {
    font-size: 16px;
  }

  .page-slot-games__btn {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-slot-games__game-grid, .page-slot-games__promo-grid, .page-slot-games__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-slot-games__list-item::before {
    width: 35px;
    height: 35px;
    font-size: 20px;
    left: 15px;
  }

  .page-slot-games__list-title {
    font-size: 20px;
  }

  .page-slot-games__list-description {
    font-size: 15px;
  }

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

  .page-slot-games__faq-question h3 {
    font-size: 16px;
  }

  .page-slot-games__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

  .page-slot-games__faq-answer p {
    font-size: 15px;
  }

  .page-slot-games__section--cta .page-slot-games__section-title {
    font-size: 32px;
  }

  .page-slot-games__section--cta .page-slot-games__paragraph {
    font-size: 17px;
  }
  
  /* Mobile image adaptation */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-slot-games__section, 
  .page-slot-games__game-card, 
  .page-slot-games__promo-card, 
  .page-slot-games__feature-item, 
  .page-slot-games__faq-item, 
  .page-slot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-heading {
    font-size: 28px;
  }

  .page-slot-games__description {
    font-size: 15px;
  }

  .page-slot-games__section-title {
    font-size: 24px;
  }

  .page-slot-games__hero-actions .page-slot-games__btn {
    font-size: 15px;
    padding: 10px 20px;
  }

  .page-slot-games__list-title {
    font-size: 18px;
  }

  .page-slot-games__feature-title {
    font-size: 20px;
  }
}