/* style/slot-games.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */

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

.page-slot-games {
  background-color: var(--page-slot-games-background);
  color: var(--page-slot-games-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-slot-games h1, .page-slot-games h2, .page-slot-games h3, .page-slot-games h4, .page-slot-games h5, .page-slot-games h6 {
  color: var(--page-slot-games-text-main);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-slot-games a {
  color: var(--page-slot-games-gold);
  text-decoration: none;
}

.page-slot-games a:hover {
  text-decoration: underline;
  color: var(--page-slot-games-glow);
}

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

.page-slot-games__section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--page-slot-games-background);
}

.page-slot-games__section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}

.page-slot-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-slot-games-primary-color);
  border-radius: 2px;
}

.page-slot-games__section-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--page-slot-games-text-secondary);
}

.page-slot-games__sub-title {
  font-size: 28px;
  color: var(--page-slot-games-gold);
  margin-bottom: 20px;
}

.page-slot-games__text-block p {
  margin-bottom: 15px;
  color: var(--page-slot-games-text-secondary);
}

.page-slot-games__text-block ul {
  list-style-type: disc;
  padding-left: 20px;
  text-align: left;
  color: var(--page-slot-games-text-secondary);
}

.page-slot-games__text-block ul li {
  margin-bottom: 10px;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-card {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-slot-games__btn-primary {
  background: var(--page-slot-games-button-gradient);
  color: var(--page-slot-games-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--page-slot-games-primary-color);
  border: 2px solid var(--page-slot-games-primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__btn-secondary:hover {
  background: var(--page-slot-games-primary-color);
  color: var(--page-slot-games-text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-card {
  background: var(--page-slot-games-deep-green);
  color: var(--page-slot-games-text-main);
  border: 1px solid var(--page-slot-games-border);
  font-size: 14px;
  padding: 10px 20px;
  margin-top: 15px;
}

.page-slot-games__btn-card:hover {
  background: var(--page-slot-games-primary-color);
  border-color: var(--page-slot-games-primary-color);
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-slot-games__cta-center {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  padding: 0;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

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

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

.page-slot-games__hero-title {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--page-slot-games-gold);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: 20px;
  color: var(--page-slot-games-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About Slots Section */
.page-slot-games__about-slots .page-slot-games__container {
  text-align: left;
}

.page-slot-games__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-slot-games__content-grid--reverse .page-slot-games__image-block {
  order: 2;
}

.page-slot-games__content-grid--reverse .page-slot-games__text-block {
  order: 1;
}

.page-slot-games__image-block {
  text-align: center;
}

.page-slot-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* Card Grid Section */
.page-slot-games__card-grid-section .page-slot-games__container {
  text-align: center;
}

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

.page-slot-games__card {
  background-color: var(--page-slot-games-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-slot-games-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

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

.page-slot-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-slot-games__card-title {
  font-size: 24px;
  color: var(--page-slot-games-gold);
  margin-bottom: 10px;
}

.page-slot-games__card-text {
  color: var(--page-slot-games-text-secondary);
  font-size: 16px;
  flex-grow: 1;
}

/* Benefits Section */
.page-slot-games__benefits .page-slot-games__container {
  text-align: left;
}

.page-slot-games__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-slot-games__benefits-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="%232AD16F" 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: 18px;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--page-slot-games-text-main);
  font-size: 17px;
}

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

/* How to Play Section */
.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__step-card {
  background-color: var(--page-slot-games-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--page-slot-games-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--page-slot-games-primary-color);
  color: var(--page-slot-games-text-main);
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 15px var(--page-slot-games-glow);
}

.page-slot-games__step-title {
  font-size: 22px;
  color: var(--page-slot-games-gold);
  margin-bottom: 15px;
}

.page-slot-games__step-text {
  color: var(--page-slot-games-text-secondary);
  flex-grow: 1;
}

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

.page-slot-games__promotion-card {
  background-color: var(--page-slot-games-card-bg);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--page-slot-games-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-slot-games__promotion-title {
  font-size: 22px;
  color: var(--page-slot-games-gold);
  margin-bottom: 10px;
}

.page-slot-games__promotion-text {
  color: var(--page-slot-games-text-secondary);
  flex-grow: 1;
}

/* FAQ Section */
.page-slot-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: var(--page-slot-games-text-main);
  background-color: var(--page-slot-games-deep-green);
  border-bottom: 1px solid var(--page-slot-games-divider);
  user-select: none;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  border-bottom: 1px solid var(--page-slot-games-border);
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
  color: var(--page-slot-games-gold);
}

.page-slot-games__faq-toggle {
  font-size: 28px;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  content: '−'; /* Changed by JS */
}

.page-slot-games__faq-answer {
  padding: 15px 25px 25px 25px;
  font-size: 16px;
  color: var(--page-slot-games-text-secondary);
  line-height: 1.8;
  background-color: var(--page-slot-games-card-bg);
}

.page-slot-games__faq-answer p {
  margin-bottom: 10px;
}

.page-slot-games__faq-answer a {
  color: var(--page-slot-games-gold);
  text-decoration: underline;
}

/* Conclusion Section */
.page-slot-games__conclusion .page-slot-games__text-center {
  text-align: center;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-slot-games__content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-slot-games__content-grid--reverse {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-slot-games__section {
    padding: 40px 0;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__section-title {
    font-size: 26px;
  }
  .page-slot-games__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-slot-games__hero-title {
    font-size: 32px;
  }
  .page-slot-games__hero-description {
    font-size: 16px;
  }
  .page-slot-games__cta-buttons,
  .page-slot-games__cta-center {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Responsive Images */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__image-block,
  .page-slot-games__card-image,
  .page-slot-games__promotion-image,
  .page-slot-games__container,
  .page-slot-games__grid,
  .page-slot-games__card,
  .page-slot-games__step-card,
  .page-slot-games__promotion-card,
  .page-slot-games__faq-item,
  .page-slot-games__content-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-slot-games__about-slots .page-slot-games__container,
  .page-slot-games__benefits .page-slot-games__container,
  .page-slot-games__how-to-play .page-slot-games__container,
  .page-slot-games__promotions .page-slot-games__container,
  .page-slot-games__faq .page-slot-games__container,
  .page-slot-games__conclusion .page-slot-games__container {
    padding: 0 15px !important;
  }

  .page-slot-games__hero-section {
    padding-top: 10px !important;
  }
  .page-slot-games__hero-content {
    margin-top: 20px;
    margin-bottom: 40px;
  }
  .page-slot-games__faq-list {
    padding: 0 15px;
  }
  .page-slot-games__faq-question,
  .page-slot-games__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__text-block ul {
    padding-left: 15px;
  }
}