/* style/slot-games.css */

/* Cần thêm padding-top cho main content để không bị header cố định che mất */
.page-content.page-slot-games {
  padding-top: 120px; /* Giá trị này sẽ được điều chỉnh tùy theo chiều cao header thực tế */
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff; /* Default text color for dark background */
}

/* Mobile fixed header spacing */
@media (max-width: 768px) {
  .page-content.page-slot-games {
    padding-top: 100px; /* Adjusted for mobile header height */
  }
}

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

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

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

.page-slot-games__text-link:hover {
  color: #ffffff;
}

/* Hero Banner Section */
.page-slot-games__hero-banner {
  position: relative;
  width: 100%;
  padding: 0;
  text-align: center;
  overflow: hidden;
}

.page-slot-games__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-slot-games__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
}

.page-slot-games__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700;
}

.page-slot-games__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-slot-games__btn-primary {
  display: inline-block;
  background: #FFD700;
  color: #0A246A;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
  background: #ffffff;
  color: #0A246A;
  border-color: #FFD700;
}

.page-slot-games__btn-secondary {
  display: inline-block;
  background: none;
  color: #FFD700;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  border: 2px solid #FFD700;
  margin-left: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-slot-games__btn-secondary:hover {
  background: #FFD700;
  color: #0A246A;
}

/* General Section Styles */
.page-slot-games__introduction-section,
.page-slot-games__why-jun88-section,
.page-slot-games__guide-section,
.page-slot-games__cta-section {
  padding: 80px 0;
  color: #ffffff; /* For light-bg sections, text should be dark */
}

.page-slot-games__game-types-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
  padding: 80px 0;
  color: #ffffff;
}

/* Background colors */
.page-slot-games__dark-section {
  background-color: #0A246A;
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #1a1a1a; /* Dark gray for contrast with #0a0a0a body */
  color: #ffffff;
}

/* Text in light-bg sections */
.page-slot-games__light-bg p,
.page-slot-games__light-bg li {
  color: #ffffff;
}

.page-slot-games__light-bg .page-slot-games__section-title {
  color: #FFD700;
}

/* Paragraph styles */
.page-slot-games p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.page-slot-games__game-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-slot-games__game-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

.page-slot-games__game-card-title {
  font-size: 20px;
  font-weight: bold;
  padding: 15px;
  text-align: center;
  color: #FFD700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.page-slot-games__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-slot-games__feature-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Promotion List */
.page-slot-games__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-slot-games__promo-list li {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #f0f0f0;
}

.page-slot-games__promo-list li::before {
  content: '⚡'; /* Unicode lightning bolt */
  position: absolute;
  left: 0;
  color: #FFD700;
  font-size: 20px;
  line-height: 1;
}

.page-slot-games__promo-list li a {
  color: #FFD700;
  text-decoration: underline;
}

.page-slot-games__promo-list li a:hover {
  color: #ffffff;
}

/* Guide List */
.page-slot-games__guide-list {
  list-style: none;
  counter-reset: guide-counter;
  padding: 0;
  margin-top: 30px;
}

.page-slot-games__guide-list li {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 40px;
  position: relative;
  color: #f0f0f0;
}

.page-slot-games__guide-list li::before {
  counter-increment: guide-counter;
  content: counter(guide-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: #FFD700;
  color: #0A246A;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

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

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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: #f0f0f0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 5px 5px;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0A246A;
  border: 1px solid #FFD700;
  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: #1a3c80;
  border-color: #ffffff;
}

.page-slot-games__faq-question:active {
  background: #071a4f;
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

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

/* CTA Section */
.page-slot-games__cta-content {
  text-align: center;
}

.page-slot-games__cta-content .page-slot-games__section-title {
  margin-bottom: 20px;
}

.page-slot-games__cta-content p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 38px;
  }
  .page-slot-games__hero-description {
    font-size: 18px;
  }
  .page-slot-games__section-title {
    font-size: 30px;
  }
  .page-slot-games__game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .page-slot-games__feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .page-slot-games__game-card-image {
    height: 200px;
  }
  .page-slot-games__game-card-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-slot-games__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    margin: 0 10px 15px 10px; /* Adjust margin for stacked buttons */
  }
  .page-slot-games__btn-secondary {
    margin-left: 0;
  }
  .page-slot-games__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-slot-games p,
  .page-slot-games li {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-slot-games__introduction-section,
  .page-slot-games__game-types-section,
  .page-slot-games__why-jun88-section,
  .page-slot-games__promotions-section,
  .page-slot-games__guide-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    padding: 60px 0;
  }
  .page-slot-games__game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-slot-games__feature-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-slot-games__game-card-image {
    height: 160px;
  }
  .page-slot-games__game-card-title {
    font-size: 16px;
    padding: 10px;
  }
  .page-slot-games__feature-title {
    font-size: 20px;
  }
  .page-slot-games__promo-list li,
  .page-slot-games__guide-list li {
    font-size: 16px;
    padding-left: 25px;
  }
  .page-slot-games__promo-list li::before,
  .page-slot-games__guide-list li::before {
    font-size: 18px;
    width: 25px;
    height: 25px;
  }
  .page-slot-games__faq-question h3 {
    font-size: 16px;
  }
  .page-slot-games__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-slot-games__hero-content {
    padding: 10px;
  }
  /* Ensure all images are responsive on mobile */
  .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;
  }
  .page-slot-games__hero-banner .page-slot-games__hero-image {
    height: 400px; /* Adjust hero image height for mobile */
    object-fit: cover;
  }
  .page-slot-games__cta-content .page-slot-games__btn-primary,
  .page-slot-games__cta-content .page-slot-games__btn-secondary {
    display: block;
    width: calc(100% - 20px);
    margin: 10px auto;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 24px;
  }
  .page-slot-games__hero-description {
    font-size: 15px;
  }
  .page-slot-games__section-title {
    font-size: 22px;
  }
  .page-slot-games__game-grid {
    grid-template-columns: 1fr;
  }
  .page-slot-games__game-card-image {
    height: 180px;
  }
  .page-slot-games__game-card-title {
    font-size: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    font-size: 15px;
    padding: 10px 20px;
  }
  .page-slot-games__hero-banner .page-slot-games__hero-image {
    height: 300px;
  }
}