/* style/slot-games.css */
/* Body background is #08160F (dark), so default text color should be light (#F2FFF6) */

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

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

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

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-slot-games-gold-color);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
  line-height: 1.2;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--page-slot-games-text-main);
}

.page-slot-games__text-center {
  text-align: center;
}

.page-slot-games__mt-40 {
  margin-top: 40px;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px;
  min-height: 600px;
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  max-height: 700px; /* Limit height for aesthetic */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  background: rgba(8, 22, 15, 0.7); /* Semi-transparent background for readability */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-top: 200px; /* Push content down below the top part of the image */
}

.page-slot-games__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 900;
  color: var(--page-slot-games-gold-color);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.8);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 1.2em;
  color: var(--page-slot-games-text-main);
  margin-bottom: 30px;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  display: inline-block;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: var(--page-slot-games-btn-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-slot-games__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  background: var(--page-slot-games-primary-color);
  color: #ffffff;
}

/* Introduction Section */
.page-slot-games__introduction-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-deep-green);
}

/* Benefits Section */
.page-slot-games__benefits-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-bg-color);
}

.page-slot-games__card-grid {
  padding: 60px 0;
}

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

.page-slot-games__benefit-card {
  background-color: var(--page-slot-games-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-slot-games-divider-color);
}

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

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

.page-slot-games__card-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--page-slot-games-gold-color);
  margin-bottom: 15px;
}

.page-slot-games__card-description {
  font-size: 1em;
  color: var(--page-slot-games-text-secondary);
}

/* Game Types Section */
.page-slot-games__game-types-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-deep-green);
}

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

.page-slot-games__game-item {
  background-color: var(--page-slot-games-card-bg);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--page-slot-games-divider-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-slot-games__game-item-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--page-slot-games-gold-color);
  margin-bottom: 10px;
}

.page-slot-games__game-item-description {
  color: var(--page-slot-games-text-secondary);
}

/* Guide Section */
.page-slot-games__guide-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-text-main); /* Light background for contrast */
  color: var(--page-slot-games-dark-text-color);
}

.page-slot-games__dark-text {
  color: var(--page-slot-games-dark-text-color);
}

.page-slot-games__guide-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  margin-top: 40px;
}

.page-slot-games__step-item {
  background-color: #ffffff;
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 70px; /* Space for step number */
  border: 1px solid #e0e0e0;
}

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

.page-slot-games__step-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--page-slot-games-primary-color);
  margin-bottom: 10px;
}

.page-slot-games__step-item p {
  color: var(--page-slot-games-dark-text-color);
  margin-bottom: 15px;
}

/* Strategy Section */
.page-slot-games__strategy-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-bg-color);
}

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

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

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-deep-green);
}

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

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

.page-slot-games__promo-card .page-slot-games__card-image {
  height: 220px; /* Adjust height for promo cards */
}

.page-slot-games__promo-card .page-slot-games__card-title {
  margin-top: 15px;
}

.page-slot-games__promo-card .page-slot-games__card-description {
  flex-grow: 1;
  margin-bottom: 20px;
}

/* App Download Section */
.page-slot-games__app-download-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-bg-color);
}

.page-slot-games__app-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.page-slot-games__app-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-slot-games__app-image {
  display: block;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-text-main); /* Light background */
  color: var(--page-slot-games-dark-text-color);
}

.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  color: var(--page-slot-games-dark-text-color);
  border-bottom: 1px solid #eee;
  list-style: none; /* For details/summary */
}

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

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--page-slot-games-primary-color);
  margin-left: 15px;
}

.page-slot-games__faq-answer {
  padding: 20px;
  border-top: 1px solid #eee;
  font-size: 1.05em;
  color: var(--page-slot-games-dark-text-color);
}

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

/* Conclusion Section */
.page-slot-games__conclusion-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-deep-green);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    margin-top: 150px;
    padding: 25px;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }

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

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

  .page-slot-games__hero-section {
    padding: 10px 15px 40px;
    min-height: 500px;
  }

  .page-slot-games__hero-image {
    max-height: 500px;
  }

  .page-slot-games__hero-content {
    margin-top: 100px;
    padding: 20px;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.5em, 6vw, 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: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-slot-games__benefits-section,
  .page-slot-games__game-types-section,
  .page-slot-games__guide-section,
  .page-slot-games__strategy-section,
  .page-slot-games__promotions-section,
  .page-slot-games__app-download-section,
  .page-slot-games__faq-section,
  .page-slot-games__conclusion-section {
    padding: 50px 0;
  }

  .page-slot-games__card-image {
    height: 180px;
  }

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

  .page-slot-games__step-item {
    padding-left: 55px;
  }

  .page-slot-games__step-item::before {
    width: 35px;
    height: 35px;
    font-size: 0.8em;
    left: 10px;
    top: 20px;
  }

  .page-slot-games__step-title {
    font-size: 1.2em;
  }

  .page-slot-games__app-content {
    margin-bottom: 30px;
  }

  .page-slot-games__app-image {
    max-width: 250px;
  }

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

  .page-slot-games__faq-answer {
    font-size: 0.95em;
    padding: 15px;
  }

  /* Image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Container responsiveness */
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__grid-wrapper,
  .page-slot-games__promo-grid,
  .page-slot-games__strategy-grid,
  .page-slot-games__game-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  
  /* Specific overrides for sections that might not have direct padding */
  .page-slot-games__introduction-section .page-slot-games__container,
  .page-slot-games__benefits-section .page-slot-games__container,
  .page-slot-games__game-types-section .page-slot-games__container,
  .page-slot-games__guide-section .page-slot-games__container,
  .page-slot-games__strategy-section .page-slot-games__container,
  .page-slot-games__promotions-section .page-slot-games__container,
  .page-slot-games__app-download-section .page-slot-games__container,
  .page-slot-games__faq-section .page-slot-games__container,
  .page-slot-games__conclusion-section .page-slot-games__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-slot-games__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-content {
    margin-top: 50px;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.3em, 7vw, 1.8em);
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    font-size: 0.95em;
    padding: 10px 15px;
  }
}