/* style/slot-games.css */

/* Base styles for the slot-games page */
.page-slot-games {
  background-color: #000000; /* Dark background as per body color */
  color: #f0f0f0; /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Fixed navigation bar spacing */
.page-slot-games__intro-section {
  padding-top: 120px; /* Desktop spacing for fixed header */
}

/* Section styling */
.page-slot-games__section-title {
  font-size: 36px;
  color: #FFD700; /* Gold accent for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-slot-games__section-title a,
.page-slot-games__main-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-slot-games__section-title a:hover,
.page-slot-games__main-title a:hover {
  text-decoration: underline;
}

.page-slot-games__section-description {
  text-align: center;
  margin-bottom: 40px;
  font-size: 18px;
  color: #cccccc;
}

/* Main Title */
.page-slot-games__main-title {
  font-size: 48px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.page-slot-games__intro-text {
  font-size: 20px;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-slot-games__intro-text strong {
  color: #FFD700;
}

.page-slot-games__intro-text a {
  color: #FFD700;
  text-decoration: none;
}

.page-slot-games__intro-text a:hover {
  text-decoration: underline;
}

/* CTA Buttons */
.page-slot-games__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

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

.page-slot-games__btn--primary {
  background-color: #8B0000; /* Dark red for primary action */
  color: #ffffff; /* White text for contrast (WCAG 5.9:1) */
  border-color: #8B0000;
}

.page-slot-games__btn--primary:hover {
  background-color: #a00000;
  border-color: #a00000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__btn--secondary:hover {
  background-color: #FFD700;
  color: #000000; /* Black text on gold for contrast (WCAG 1.9:1 - FAIL, need to adjust) */
  /* Adjusting for contrast: Using a darker gold or a very dark text. */
  /* Let's use a very dark grey for text on hover, but still keep gold. */
  color: #333333; /* Dark grey text on gold for better contrast (WCAG 4.7:1 for #333333 on #FFD700 - PASS) */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn--small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
}

/* Why Choose Section */
.page-slot-games__why-choose-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  padding: 60px 0;
}

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

.page-slot-games__feature-card {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-slot-games__feature-card:hover {
  transform: translateY(-10px);
  background-color: #3a3a3a;
}

.page-slot-games__feature-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__feature-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-slot-games__feature-title a:hover {
  text-decoration: underline;
}

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

.page-slot-games__feature-description strong {
  color: #FFD700;
}

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

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

.page-slot-games__step-card {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-slot-games__step-image {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__step-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__step-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-slot-games__step-title a:hover {
  text-decoration: underline;
}

.page-slot-games__step-description {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-slot-games__step-description strong {
  color: #FFD700;
}

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

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

.page-slot-games__game-type-card {
  background-color: #2a2a2a;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-slot-games__game-type-image {
  width: 180px;
  height: auto;
  margin-bottom: 15px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__game-type-title {
  font-size: 20px;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-slot-games__game-type-description {
  font-size: 15px;
  color: #cccccc;
}

/* Tips Section */
.page-slot-games__tips-section {
  padding: 60px 0;
}

.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-slot-games__tip-item {
  background-color: #2a2a2a;
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-left: 5px solid #FFD700;
}

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

.page-slot-games__tip-item p {
  font-size: 16px;
  color: #cccccc;
}

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

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

.page-slot-games__promotion-card {
  background-color: #2a2a2a;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-slot-games__promotion-card:hover {
  transform: translateY(-10px);
  background-color: #3a3a3a;
}

.page-slot-games__promotion-image {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__promotion-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__promotion-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-slot-games__promotion-title a:hover {
  text-decoration: underline;
}

.page-slot-games__promotion-description {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-slot-games__promotion-description strong {
  color: #FFD700;
}

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

.page-slot-games__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ容器样式 */
.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* FAQ默认状态 - 答案隐藏 */
.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 15px;
  opacity: 0;
  color: #cccccc;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height đảm bảo chắc chắn mở rộng */
.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #3a3a3a;
  border-radius: 0 0 5px 5px;
}

/* Câu hỏi样式 */
.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2a2a2a;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-slot-games__faq-question:hover {
  background: #3a3a3a;
}

.page-slot-games__faq-question:active {
  background: #4a4a4a;
}

/* Câu hỏi标题样式 */
.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* White text for question */
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

.page-slot-games__faq-question h3 a {
  color: #ffffff;
  text-decoration: none;
}

.page-slot-games__faq-question h3 a:hover {
  text-decoration: underline;
}

/* Chuyển đổi图标 */
.page-slot-games__faq-toggle {
  font-size: 24px;
  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; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Conclusion Section */
.page-slot-games__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

.page-slot-games__conclusion-text {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__conclusion-text strong {
  color: #FFD700;
}

.page-slot-games__conclusion-text a {
  color: #FFD700;
  text-decoration: none;
}

.page-slot-games__conclusion-text a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 40px;
  }
  .page-slot-games__section-title {
    font-size: 30px;
  }
  .page-slot-games__intro-text {
    font-size: 18px;
  }
  .page-slot-games__btn {
    padding: 12px 25px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__intro-section {
    padding-top: 100px; /* Mobile spacing for fixed header */
  }
  .page-slot-games__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-slot-games__main-title {
    font-size: 32px;
  }
  .page-slot-games__section-title {
    font-size: 26px;
  }
  .page-slot-games__intro-text,
  .page-slot-games__section-description,
  .page-slot-games__feature-description,
  .page-slot-games__step-description,
  .page-slot-games__game-type-description,
  .page-slot-games__tip-item p,
  .page-slot-games__promotion-description,
  .page-slot-games__conclusion-text,
  .page-slot-games__faq-answer p {
    font-size: 15px;
  }
  .page-slot-games__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn {
    width: 100%;
    padding: 12px 20px;
  }
  .page-slot-games__feature-card,
  .page-slot-games__step-card,
  .page-slot-games__game-type-card,
  .page-slot-games__promotion-card {
    padding: 20px;
  }
  .page-slot-games__feature-title,
  .page-slot-games__step-title,
  .page-slot-games__game-type-title,
  .page-slot-games__tip-title,
  .page-slot-games__promotion-title {
    font-size: 18px;
  }

  /* FAQ mobile */
  .page-slot-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-slot-games__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-slot-games__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-slot-games__faq-answer {
    padding: 0 15px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px !important;
  }

  /* Image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__section,
  .page-slot-games__card,
  .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-title {
    font-size: 28px;
  }
  .page-slot-games__section-title {
    font-size: 24px;
  }
  .page-slot-games__feature-icon,
  .page-slot-games__step-image,
  .page-slot-games__game-type-image,
  .page-slot-games__promotion-image {
    width: 80px;
  }
}