/* style/slot-games.css */

/* Base Styles for Page Slot Games */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-slot-games__section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for sections */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__dark-section {
  background-color: rgba(0, 0, 0, 0.4); /* Darker background for contrast */
  color: #ffffff;
}

.page-slot-games__main-title,
.page-slot-games__section-title {
  color: #ffc107; /* Golden accent for titles */
  text-align: center;
  margin-bottom: 40px;
  font-size: 3em;
  font-weight: 700;
  line-height: 1.2;
}

.page-slot-games__main-title {
  font-size: 3.5em;
}

.page-slot-games__description,
.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__description strong,
.page-slot-games__text-block strong {
  color: #ffc107;
}

/* Intro Section specific */
.page-slot-games__intro-section {
  padding-top: 120px; /* To account for fixed header */
  padding-bottom: 80px;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.7), rgba(255, 193, 7, 0.3)), url('[GALLERY:bg:slot_games,abstract_pattern,dark]') no-repeat center center/cover;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-slot-games__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-slot-games__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-slot-games__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.page-slot-games__btn--primary {
  background-color: #ffc107;
  color: #000000; /* Dark text on golden background */
  border-color: #ffc107;
}

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

.page-slot-games__btn--secondary {
  background-color: transparent;
  color: #ffc107; /* Golden text on dark background */
  border-color: #ffc107;
}

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

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

.page-slot-games__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.page-slot-games__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__feature-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__feature-heading {
  color: #ffc107;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-slot-games__feature-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Ordered List */
.page-slot-games__ordered-list {
  list-style-type: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 800px;
}

.page-slot-games__ordered-list li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  position: relative;
  padding-left: 60px;
  border-left: 5px solid #0056b3;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-slot-games__ordered-list li:before {
  content: counter(list-item);
  counter-increment: list-item;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffc107;
  color: #000000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-slot-games__list-heading {
  color: #ffc107;
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-slot-games__ordered-list li p {
  margin: 0;
  color: #e0e0e0;
}

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

.page-slot-games__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 86, 179, 0.3);
}

.page-slot-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__game-title {
  color: #ffc107;
  font-size: 1.4em;
  padding: 15px 20px 5px;
  margin: 0;
}

.page-slot-games__game-description {
  font-size: 0.9em;
  color: #e0e0e0;
  padding: 0 20px 20px;
  margin: 0;
}

/* Unordered List */
.page-slot-games__unordered-list {
  list-style-type: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 800px;
}

.page-slot-games__unordered-list li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  position: relative;
  padding-left: 60px;
  border-left: 5px solid #ffc107;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-slot-games__unordered-list li:before {
  content: '✓';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0056b3;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-slot-games__unordered-list li p {
  margin: 0;
  color: #e0e0e0;
}

/* Promo Grid */
.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-color: rgba(0, 86, 179, 0.3); /* Blueish background for promo cards */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 193, 7, 0.5);
}

.page-slot-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__promo-image {
  width: 100%;
  max-width: 280px;
  height: 180px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__promo-title {
  color: #ffc107;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-slot-games__promo-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

.page-slot-games__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 86, 179, 0.5);
}

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

.page-slot-games__security-heading {
  color: #ffc107;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-slot-games__security-text {
  font-size: 0.9em;
  color: #e0e0e0;
}

/* Guide Flex */
.page-slot-games__guide-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.page-slot-games__guide-block {
  flex: 1;
  min-width: 300px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.page-slot-games__guide-heading {
  color: #ffc107;
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
}

.page-slot-games__numbered-list,
.page-slot-games__benefit-list {
  list-style-type: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-slot-games__numbered-list li,
.page-slot-games__benefit-list li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  color: #e0e0e0;
}

.page-slot-games__numbered-list li:before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #0056b3;
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  font-weight: bold;
}

.page-slot-games__benefit-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #ffc107;
  font-weight: bold;
}

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

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

/* FAQ容器样式 */
.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* 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 20px;
  opacity: 0;
  color: #e0e0e0;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height */
.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 nội dung */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
}

/* Vấn đề (Câu hỏi) style */
.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0056b3; /* Dark blue background for questions */
  border: 1px solid #004085;
  border-radius: 8px;
  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: #004085;
  border-color: #002d61;
}

.page-slot-games__faq-question:active {
  background: #002d61;
}

/* Tiêu đề câu hỏi style */
.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* White text on dark blue background */
  pointer-events: none; /* Ngăn chặn h3 chặn sự kiện click */
}

/* Biểu tượng chuyển đổi */
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #ffc107; /* Golden color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: #ffffff;
  background-color: #ffc107;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 3em;
  }
  .page-slot-games__section-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-slot-games__intro-section {
    padding-top: 100px; /* Adjust for mobile fixed header */
    padding-bottom: 60px;
  }
  .page-slot-games__main-title {
    font-size: 2.5em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-slot-games__description,
  .page-slot-games__text-block {
    font-size: 1em;
    padding: 0 10px;
  }
  .page-slot-games__section {
    padding: 40px 0;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn {
    padding: 10px 20px;
    width: 100%;
    text-align: center;
  }
  .page-slot-games__feature-card,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__security-item,
  .page-slot-games__guide-block {
    padding: 20px;
  }
  .page-slot-games__ordered-list li,
  .page-slot-games__unordered-list li {
    padding: 15px 15px 15px 50px;
  }
  .page-slot-games__ordered-list li:before,
  .page-slot-games__unordered-list li:before {
    left: 10px;
    width: 26px;
    height: 26px;
    font-size: 1em;
  }
  .page-slot-games__list-heading {
    font-size: 1.2em;
  }
  .page-slot-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-slot-games__faq-question h3 {
    font-size: 1em;
    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;
  }
  /* 强制所有图片适配移动端屏幕 */
  .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,
  .page-slot-games__feature-card,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__security-item,
  .page-slot-games__guide-block,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__intro-section {
    padding-left: 0;
    padding-right: 0;
  }
}

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