/* style/slot-games.css */

:root {
  --page-primary-color: #017439;
  --page-secondary-color: #FFFFFF;
  --page-text-color-dark: #333333;
  --page-text-color-light: #ffffff;
  --page-button-register-bg: #C30808;
  --page-button-login-bg: #C30808;
  --page-button-register-login-text: #FFFF00;
  --page-body-bg: #1a1a1a; /* From shared.css, used for contrast calculation */
}

.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-text-color-light); /* Default text color for dark body background */
  background-color: var(--page-body-bg);
}

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

.page-slot-games__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-slot-games__dark-bg {
  background-color: var(--page-primary-color);
  color: var(--page-text-color-light);
}

.page-slot-games__light-bg {
  background-color: var(--page-secondary-color);
  color: var(--page-text-color-dark);
}

/* Hero Section */
.page-slot-games__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-slot-games__hero-section .page-slot-games__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-slot-games__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-slot-games__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--page-text-color-light);
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

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

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

.page-slot-games__btn-primary {
  background-color: var(--page-button-register-bg);
  color: var(--page-button-register-login-text);
  border: 2px solid var(--page-button-register-bg);
}

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

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--page-button-register-login-text);
  border: 2px solid var(--page-button-register-login-text);
}

.page-slot-games__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-slot-games__hero-image-wrapper {
  margin-top: 40px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

/* Section Titles */
.page-slot-games__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: inherit; /* Inherit from section for contrast */
}

.page-slot-games__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

/* About Section */
.page-slot-games__about-nổ-hũ .page-slot-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-slot-games__about-nổ-hũ .page-slot-games__text-block {
  flex: 1;
}

.page-slot-games__about-nổ-hũ .page-slot-games__image-block {
  flex: 0 0 500px;
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__about-nổ-hũ .page-slot-games__content-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-slot-games__about-nổ-hũ p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.85);
}

/* Features Section */
.page-slot-games__features .page-slot-games__section-title {
  color: var(--page-text-color-dark);
}

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

.page-slot-games__feature-card {
  background-color: var(--page-secondary-color);
  color: var(--page-text-color-dark);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__feature-card .page-slot-games__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-slot-games__feature-card .page-slot-games__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--page-primary-color);
}

.page-slot-games__feature-card p {
  font-size: 1em;
  line-height: 1.5;
}

/* Guide Section */
.page-slot-games__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-slot-games__guide-steps .page-slot-games__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-slot-games__guide-steps .page-slot-games__step-title {
  font-size: 1.4em;
  color: var(--page-text-color-light);
  margin-top: 0;
  margin-bottom: 0;
}

.page-slot-games__guide-steps p {
  color: rgba(255, 255, 255, 0.8);
}

.page-slot-games__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: auto; /* Push button to bottom */
}

/* Promotions Section */
.page-slot-games__promotions .page-slot-games__section-title {
  color: var(--page-text-color-light);
}

.page-slot-games__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
  margin-bottom: 40px;
}

.page-slot-games__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--page-text-color-light);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__promo-card .page-slot-games__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-slot-games__promo-card .page-slot-games__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--page-button-register-login-text);
}

.page-slot-games__promo-card p {
  font-size: 1em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.page-slot-games__cta-center {
  margin-top: 30px;
}

/* Tips Section */
.page-slot-games__tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-slot-games__tip-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__tip-item .page-slot-games__tip-title {
  font-size: 1.4em;
  color: var(--page-button-register-login-text);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-slot-games__tip-item p {
  color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.page-slot-games__faq .page-slot-games__section-title {
  color: var(--page-text-color-dark);
}

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

.page-slot-games__faq-item {
  background-color: var(--page-secondary-color);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: var(--page-primary-color);
  color: var(--page-text-color-light);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  background-color: #005a2d;
}

.page-slot-games__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: var(--page-text-color-light);
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--page-text-color-dark);
  background-color: var(--page-secondary-color);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 15px 25px;
}

.page-slot-games__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  color: var(--page-text-color-dark);
}

.page-slot-games__faq-answer a {
  color: var(--page-primary-color);
  text-decoration: none;
}

.page-slot-games__faq-answer a:hover {
  text-decoration: underline;
}

/* Call to Action Section */
.page-slot-games__call-to-action .page-slot-games__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

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

  .page-slot-games__hero-description {
    font-size: 1.1em;
  }

  .page-slot-games__about-nổ-hũ .page-slot-games__content-wrapper {
    flex-direction: column;
  }

  .page-slot-games__about-nổ-hũ .page-slot-games__image-block {
    flex: none;
    max-width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__section {
    padding: 40px 0;
  }

  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

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

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

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

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

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

  .page-slot-games__sub-title {
    font-size: 1.5em;
  }

  .page-slot-games__about-nổ-hũ p,
  .page-slot-games__feature-card p,
  .page-slot-games__guide-steps p,
  .page-slot-games__promo-card p,
  .page-slot-games__tip-item p,
  .page-slot-games__cta-description {
    font-size: 0.95em;
  }

  /* Image responsiveness for mobile */
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__hero-image-wrapper,
  .page-slot-games__about-nổ-hũ .page-slot-games__image-block,
  .page-slot-games__feature-card,
  .page-slot-games__guide-steps .page-slot-games__step-item,
  .page-slot-games__promo-card,
  .page-slot-games__tip-item,
  .page-slot-games__faq-list,
  .page-slot-games__container {
    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 {
    padding: 15px 20px;
  }

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

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

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

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

  .page-slot-games__sub-title {
    font-size: 1.3em;
  }

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