/* style/slot-games.css */
.page-slot-games {
  color: #ffffff; /* Light text for dark body background */
  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__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-slot-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

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

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

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

.page-slot-games__btn-primary:hover {
  background-color: #1e87b8;
  border-color: #1e87b8;
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-slot-games__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

.page-slot-games__btn-tertiary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-slot-games__btn-tertiary:hover {
  background-color: #bb6205;
  border-color: #bb6205;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #26A9E0;
}

.page-slot-games__intro-section,
.page-slot-games__game-types-section,
.page-slot-games__how-to-play-section,
.page-slot-games__tips-section,
.page-slot-games__faq-section,
.page-slot-games__conclusion-section {
  padding: 60px 0;
}

.page-slot-games__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: justify;
}

.page-slot-games__image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.page-slot-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

.page-slot-games__game-types-section .page-slot-games__section-title {
  color: #26A9E0;
}

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

.page-slot-games__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
}

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

.page-slot-games__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-slot-games__card-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-slot-games__dark-section {
  background-color: #1a1a2e; /* Ensure dark background for this section */
  color: #FFFFFF;
}

.page-slot-games__dark-section .page-slot-games__section-title {
  color: #26A9E0;
}

.page-slot-games__dark-section .page-slot-games__paragraph,
.page-slot-games__dark-section .page-slot-games__list-item {
  color: #f0f0f0;
}

.page-slot-games__features-list,
.page-slot-games__steps-list,
.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-slot-games__list-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  color: #f0f0f0;
}

.page-slot-games__list-item h3 {
  color: #26A9E0;
  margin-top: 0;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-slot-games__how-to-play-section .page-slot-games__section-title {
  color: #26A9E0;
}

.page-slot-games__steps-list .page-slot-games__list-item {
  counter-increment: step-counter;
  position: relative;
  padding-left: 60px;
  background: rgba(255, 255, 255, 0.08);
  border-left: none;
  border-radius: 10px;
}

.page-slot-games__steps-list .page-slot-games__list-item::before {
  content: "Bước " counter(step-counter);
  position: absolute;
  left: 15px;
  top: 20px;
  background-color: #26A9E0;
  color: #FFFFFF;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.page-slot-games__steps-list .page-slot-games__list-item h3 {
  color: #FFFFFF;
}

.page-slot-games__tips-section {
  background-color: #1a1a2e;
  color: #FFFFFF;
}

.page-slot-games__tips-section .page-slot-games__section-title {
  color: #26A9E0;
}

.page-slot-games__tips-list .page-slot-games__list-item {
  background: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #EA7C07;
}

.page-slot-games__tips-list .page-slot-games__list-item h3 {
  color: #FFFFFF;
}

.page-slot-games__faq-section .page-slot-games__section-title {
  color: #26A9E0;
}

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

.page-slot-games__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  color: #FFFFFF;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.2); /* Lighter blue for question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #FFFFFF;
}

.page-slot-games__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFFFFF;
  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: #f0f0f0;
}

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

.page-slot-games__conclusion-section {
  background-color: #1a1a2e;
  color: #FFFFFF;
  text-align: center;
}

.page-slot-games__conclusion-section .page-slot-games__section-title {
  color: #26A9E0;
}

.page-slot-games__conclusion-section .page-slot-games__paragraph {
  max-width: 900px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

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

/* Responsive adjustments */
@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__section-title {
    font-size: 2em;
  }
  .page-slot-games__paragraph {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-slot-games__hero-title {
    font-size: 2.2em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__paragraph {
    font-size: 0.95em;
  }
  .page-slot-games__grid {
    grid-template-columns: 1fr;
  }
  .page-slot-games__image,
  .page-slot-games__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__image-wrapper,
  .page-slot-games__cta-buttons,
  .page-slot-games__grid,
  .page-slot-games__faq-list,
  .page-slot-games__features-list,
  .page-slot-games__steps-list,
  .page-slot-games__tips-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-slot-games__list-item,
  .page-slot-games__faq-item {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__steps-list .page-slot-games__list-item::before {
    left: 10px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 1.8em;
  }
  .page-slot-games__hero-description {
    font-size: 0.9em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__faq-question h3 {
    font-size: 1em;
  }
  .page-slot-games__faq-toggle {
    font-size: 1.5em;
  }
}