/* style/slot-games.css */
/* body đã padding-top: var(--header-offset)；tránh trùng lặp padding */

:root {
  --j88-primary-color: #11A84E;
  --j88-secondary-color: #22C768;
  --j88-bg-dark: #08160F;
  --j88-bg-card: #11271B;
  --j88-text-main: #F2FFF6;
  --j88-text-secondary: #A7D9B8;
  --j88-border-color: #2E7A4E;
  --j88-glow-color: #57E38D;
  --j88-gold-color: #F2C14E;
  --j88-divider-color: #1E3A2A;
  --j88-deep-green: #0A4B2C;
  --j88-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--j88-text-main); /* Mặc định chữ sáng trên nền tối */
  background-color: var(--j88-bg-dark);
}

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

/* Sections */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: 10px; /* Nhỏ để trang trí, body đã có padding-top */
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px;
  border-radius: 15px;
  background: rgba(17, 39, 27, 0.85); /* Card BG với độ trong suốt */
  max-width: 800px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin-top: 50px;
}

.page-slot-games__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: var(--j88-gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-slot-games__description {
  font-size: 1.1em;
  color: var(--j88-text-main);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-slot-games__btn-primary {
  background: var(--j88-btn-gradient);
  color: var(--j88-text-main);
  border: 2px solid var(--j88-glow-color);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-slot-games__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

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

.page-slot-games__btn-secondary:hover {
  background: var(--j88-glow-color);
  color: var(--j88-bg-dark);
  transform: translateY(-2px);
}

.page-slot-games__about-section,
.page-slot-games__popular-games,
.page-slot-games__how-to-play,
.page-slot-games__cta-section {
  background-color: var(--j88-text-main);
  color: #333333; /* Chữ tối trên nền sáng */
  padding: 80px 0;
}

.page-slot-games__features-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
  background-color: var(--j88-bg-dark);
  color: var(--j88-text-main);
  padding: 80px 0;
}

.page-slot-games__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  text-align: center;
  margin-bottom: 40px;
  color: var(--j88-gold-color);
  font-weight: bold;
}

.page-slot-games__about-section .page-slot-games__section-title,
.page-slot-games__popular-games .page-slot-games__section-title,
.page-slot-games__how-to-play .page-slot-games__section-title,
.page-slot-games__cta-section .page-slot-games__section-title {
  color: var(--j88-deep-green);
}

.page-slot-games__section-description {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--j88-text-secondary);
}

.page-slot-games__about-section .page-slot-games__section-description,
.page-slot-games__popular-games .page-slot-games__section-description,
.page-slot-games__how-to-play .page-slot-games__section-description,
.page-slot-games__cta-section .page-slot-games__section-description {
  color: #555555;
}

.page-slot-games__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-slot-games__text-block {
  flex: 1;
}

.page-slot-games__text-block p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #333333;
}

.page-slot-games__about-section .page-slot-games__text-block p {
  color: #333333;
}

.page-slot-games__image-block {
  flex: 1;
  min-width: 300px;
}

.page-slot-games__image-content {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.page-slot-games__feature-card {
  background-color: var(--j88-bg-card);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--j88-border-color);
}

.page-slot-games__card-title {
  font-size: 1.4em;
  color: var(--j88-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__feature-card p {
  color: var(--j88-text-secondary);
}

.page-slot-games__features-image {
  margin-top: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__game-card {
  background-color: var(--j88-bg-card);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid var(--j88-border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-slot-games__game-card .page-slot-games__card-title {
  color: var(--j88-gold-color);
  font-size: 1.3em;
}

.page-slot-games__game-card p {
  color: var(--j88-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games__card-button {
  width: fit-content;
  margin: 0 auto;
  padding: 10px 20px;
}

.page-slot-games__promotion-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-slot-games__promotion-image {
  flex: 1;
  min-width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__promotion-text-block {
  flex: 1.5;
  min-width: 300px;
}

.page-slot-games__promotion-text-block p {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: var(--j88-text-main);
}

.page-slot-games__promotion-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-slot-games__promotion-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2357E38D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--j88-text-main);
  font-size: 1.05em;
}

.page-slot-games__promotion-list li strong {
  color: var(--j88-gold-color);
}

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

.page-slot-games__steps-list li {
  background-color: var(--j88-bg-card);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--j88-border-color);
  color: var(--j88-text-main);
}

.page-slot-games__steps-list li h3 {
  font-size: 1.3em;
  color: var(--j88-gold-color);
  margin-bottom: 15px;
}

.page-slot-games__steps-list li p {
  color: var(--j88-text-secondary);
  margin-bottom: 20px;
}

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

.page-slot-games__faq-item {
  background-color: var(--j88-bg-card);
  border: 1px solid var(--j88-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--j88-gold-color);
  cursor: pointer;
  background-color: var(--j88-deep-green);
  border-bottom: 1px solid var(--j88-border-color);
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-slot-games__faq-question:hover {
  background-color: var(--j88-primary-color);
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--j88-glow-color);
  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: 20px 25px;
  font-size: 1em;
  color: var(--j88-text-secondary);
}

.page-slot-games__faq-answer p {
  margin-bottom: 15px;
  color: var(--j88-text-secondary);
}

.page-slot-games__faq-answer .page-slot-games__btn-primary {
  margin-top: 10px;
  padding: 8px 18px;
  font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-slot-games__hero-content {
    padding: 30px;
    margin-top: 30px;
  }

  .page-slot-games__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-slot-games__image-block {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }

  .page-slot-games__promotion-content {
    flex-direction: column;
  }

  .page-slot-games__promotion-image {
    order: -1;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    min-height: 500px;
    padding-top: 10px !important;
  }

  .page-slot-games__hero-content {
    max-width: 95%;
    padding: 20px;
  }

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

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

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__about-section,
  .page-slot-games__features-section,
  .page-slot-games__popular-games,
  .page-slot-games__promotions-section,
  .page-slot-games__how-to-play,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    padding: 40px 0;
  }

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

  .page-slot-games__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-slot-games__content-wrapper,
  .page-slot-games__promotion-content {
    gap: 20px;
  }

  .page-slot-games__text-block p {
    font-size: 0.95em;
  }

  .page-slot-games__image-content,
  .page-slot-games__promotion-image,
  .page-slot-games__features-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__container,
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__content-wrapper,
  .page-slot-games__image-block,
  .page-slot-games__text-block,
  .page-slot-games__features-grid,
  .page-slot-games__games-grid,
  .page-slot-games__game-card,
  .page-slot-games__promotion-content,
  .page-slot-games__promotion-text-block,
  .page-slot-games__steps-list,
  .page-slot-games__steps-list li,
  .page-slot-games__faq-list,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

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

  .page-slot-games__section-title {
    font-size: 1.6em;
  }
}