/* Base styles for the slot-games page */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background: var(--secondary-color, #ffffff);
}

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

.page-slot-games__section-title {
  font-size: 32px;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-slot-games__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-slot-games__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  background: linear-gradient(135deg, #26A9E0, #1a7bb7);
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  box-sizing: border-box;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px 40px;
}

.page-slot-games__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-slot-games__intro-text {
  font-size: clamp(1em, 2vw, 1.2em);
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* CTA Buttons */
.page-slot-games__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-slot-games__btn-primary:hover {
  background: #d46f00;
  border-color: #d46f00;
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-slot-games__btn-secondary:hover {
  background: #e0f2f7;
  border-color: #1a7bb7;
  transform: translateY(-2px);
}

.page-slot-games__btn-link {
  background: none;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 16px;
}

.page-slot-games__btn-link:hover {
  background: #26A9E0;
  color: #ffffff;
}

/* Game Categories */
.page-slot-games__game-categories {
  background: #f9f9f9;
}

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

.page-slot-games__category-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-slot-games__category-title {
  font-size: 22px;
  color: #26A9E0;
  margin: 20px 15px 10px;
}

.page-slot-games__category-text {
  font-size: 15px;
  color: #555555;
  padding: 0 15px 20px;
}

/* Benefits Section */
.page-slot-games__dark-section {
  background: #26A9E0;
  color: #ffffff;
}

.page-slot-games__dark-section .page-slot-games__section-title,
.page-slot-games__dark-section .page-slot-games__section-description {
  color: #ffffff;
}

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

.page-slot-games__benefit-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.page-slot-games__benefit-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-slot-games__benefit-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__benefit-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-slot-games__benefit-text {
  font-size: 15px;
  color: #f0f0f0;
}

/* How To Play */
.page-slot-games__play-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 0 auto;
}

.page-slot-games__step-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 70px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__step-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  left: 20px;
  top: 25px;
  background: #26A9E0;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.page-slot-games__step-title {
  font-size: 20px;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-slot-games__step-text {
  font-size: 15px;
  color: #555555;
}

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

.page-slot-games__promo-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-slot-games__promo-title {
  font-size: 22px;
  color: #26A9E0;
  margin: 20px 15px 10px;
}

.page-slot-games__promo-text {
  font-size: 15px;
  color: #555555;
  padding: 0 15px 20px;
}

/* Why Choose AA88 */
.page-slot-games__feature-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 17px;
  color: #f0f0f0;
  text-align: left;
}

.page-slot-games__feature-item {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.page-slot-games__feature-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2326A9E0"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat center center;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2326A9E0"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat center center;
  background-size: contain;
}

/* FAQ Section */
details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: #f5f5f5;
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Final CTA */
.page-slot-games__final-cta {
  background: #f0f0f0;
  padding-bottom: 60px;
}

/* Verbatim CSS from requirements - Homepage trial layout (will not apply on this inner page without corresponding HTML classes) */
@media (max-width: 1023px) {
  .page-slot-games__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-slot-games__hero-brand,
  .page-slot-games__hero-jackpot {
    display: none !important;
  }
  .page-slot-games__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial-topbar,
  .page-slot-games__game-trial-bottombar {
    display: none !important;
  }
  .page-slot-games__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-slot-games__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-slot-games__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-slot-games__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-slot-games__hero-brand,
  .page-slot-games__hero-jackpot,
  .page-slot-games__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-slot-games__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-slot-games__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-slot-games__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-slot-games__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-slot-games__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-slot-games__hero-content {
    padding: 0 15px 30px;
  }

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

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

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-link {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__categories-grid,
  .page-slot-games__benefits-grid,
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__category-title,
  .page-slot-games__promo-title {
    font-size: 20px;
  }

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

  .page-slot-games__step-item {
    padding: 20px 15px 20px 60px;
  }
  .page-slot-games__step-item::before {
    left: 15px;
    top: 20px;
    width: 35px;
    height: 35px;
    font-size: 13px;
  }
  .page-slot-games__step-title {
    font-size: 18px;
  }

  details.page-slot-games__faq-item summary.page-slot-games__faq-question { padding: 15px; }
  .page-slot-games__faq-qtext { font-size: 15px; }
  details.page-slot-games__faq-item .page-slot-games__faq-answer { padding: 0 15px 15px; }

  /* General image and container 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,
  .page-slot-games__promo-card,
  .page-slot-games__category-card,
  .page-slot-games__benefit-item,
  .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__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
  }
}

/* Ensure images don't have color filters */
.page-slot-games img {
  filter: none !important;
}

/* Overlay for potential game trial (not used on this inner page, but defined for robustness) */
.page-slot-games__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-slot-games__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-slot-games__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-slot-games__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
}
.page-slot-games__reward-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-slot-games__reward-modal:not([hidden]){
  opacity: 1;
  visibility: visible;
}
.page-slot-games__reward-modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.page-slot-games__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}