/* style/slot-games.css */

/* Custom Colors */
:root {
  --page-slot-games-bg: #08160F;
  --page-slot-games-card-bg: #11271B;
  --page-slot-games-text-main: #F2FFF6;
  --page-slot-games-text-secondary: #A7D9B8;
  --page-slot-games-border: #2E7A4E;
  --page-slot-games-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --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-bg);
  color: var(--page-slot-games-text-main);
  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;
  color: var(--page-slot-games-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-slot-games__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--page-slot-games-text-secondary);
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 1200px; /* Constrain image width */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 40px;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 size */
  color: var(--page-slot-games-gold);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

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

.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;
  font-size: 1.1em;
  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: var(--page-slot-games-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

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

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

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

/* Features Section */
.page-slot-games__features-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-deep-green); /* Darker background for contrast */
  color: var(--page-slot-games-text-main);
}

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

.page-slot-games__feature-card {
  background-color: var(--page-slot-games-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-slot-games-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%; /* Ensure cards have equal height */
  box-sizing: border-box;
  color: var(--page-slot-games-text-main);
}

.page-slot-games__feature-icon {
  width: 100%; /* Ensure card image takes full width */
  height: auto;
  max-height: 250px; /* Limit height to maintain aspect ratio */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

.page-slot-games__cta-center {
  text-align: center;
  margin-top: 60px;
}

/* How-To-Play Section */
.page-slot-games__how-to-play-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-bg);
}

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

.page-slot-games__step-card {
  background-color: var(--page-slot-games-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-slot-games-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  color: var(--page-slot-games-text-main);
}

.page-slot-games__step-number {
  font-size: 2.5em;
  color: var(--page-slot-games-gold);
  font-weight: bold;
  margin-bottom: 15px;
  background-color: var(--page-slot-games-deep-green);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--page-slot-games-glow);
}

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

.page-slot-games__step-description {
  font-size: 1em;
  color: var(--page-slot-games-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games__btn-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--page-slot-games-btn-gradient);
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-link:hover {
  opacity: 0.9;
}

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

.page-slot-games__strategy-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-slot-games__strategy-item {
  background-color: var(--page-slot-games-card-bg);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--page-slot-games-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.1em;
  color: var(--page-slot-games-text-main);
}

.page-slot-games__strategy-item strong {
  color: var(--page-slot-games-gold);
}

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

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

.page-slot-games__promo-card {
  background-color: var(--page-slot-games-card-bg);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-slot-games-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  color: var(--page-slot-games-text-main);
}

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

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

.page-slot-games__promo-description {
  font-size: 1em;
  color: var(--page-slot-games-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-slot-games-gold);
  cursor: pointer;
  user-select: none;
  list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  color: var(--page-slot-games-glow);
  margin-left: 15px;
  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: 0 25px 20px 25px;
  font-size: 1.05em;
  color: var(--page-slot-games-text-secondary);
  line-height: 1.7;
}

.page-slot-games__faq-answer p {
  margin: 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-image {
    max-width: 100%;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__hero-section,
  .page-slot-games__intro-section,
  .page-slot-games__features-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__strategy-section,
  .page-slot-games__promotions-section,
  .page-slot-games__faq-section,
  .page-slot-games__conclusion-section {
    padding: 40px 0;
  }

  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-slot-games__text-block {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-slot-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain buttons for mobile */
    margin: 0 auto;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__intro-section,
  .page-slot-games__features-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__strategy-section,
  .page-slot-games__promotions-section,
  .page-slot-games__faq-section,
  .page-slot-games__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__hero-section {
    padding-top: 10px !important;
  }
  .page-slot-games__video-section {
    padding-top: 10px !important; /* body đã đảm nhiệm --header-offset, chỗ này cấm var(--header-offset) */
  }
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-slot-games__features-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-slot-games__feature-card,
  .page-slot-games__step-card,
  .page-slot-games__promo-card {
    margin-bottom: 20px;
  }
  .page-slot-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px 15px 20px;
  }
}