/* style/slot-games.css */

/* Base Styles & Typography */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Default light text for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

.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;
}

.page-slot-games__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-slot-games__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff; /* Default for dark sections */
  font-weight: bold;
}

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

.page-slot-games__sub-section-title {
  font-size: 2em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-slot-games__dark-section .page-slot-games__text-block {
  color: #f0f0f0;
}

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

.page-slot-games__btn-primary {
  background-color: #C30808; /* Đăng ký/Đăng nhập color */
  color: #FFFF00; /* Đăng ký/Đăng nhập font color */
  border: 2px solid #C30808;
}

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

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

.page-slot-games__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-slot-games__btn-link {
  background-color: transparent;
  color: #FFFF00;
  border: 1px solid #FFFF00;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-slot-games__btn-link:hover {
  background-color: #FFFF00;
  color: #017439;
}

.page-slot-games__cta-buttons {
  margin-top: 30px;
  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;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  background-color: #017439;
  color: #ffffff;
  padding: 60px 20px;
  text-align: left;
}

.page-slot-games__hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
  padding-right: 30px;
}

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

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

.page-slot-games__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 50%;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px;
}

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

.page-slot-games__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-slot-games__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffffff;
}

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

/* How To Play */
.page-slot-games__how-to-play {
  background-color: #ffffff;
  color: #333333;
}

.page-slot-games__how-to-play .page-slot-games__section-title,
.page-slot-games__how-to-play .page-slot-games__text-block {
  color: #333333;
}

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

.page-slot-games__step-item {
  background-color: #f9f9f9;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-slot-games__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-slot-games__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439;
}

.page-slot-games__step-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

/* Strategy Tips */
.page-slot-games__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__strategy-list li {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-slot-games__strategy-list .page-slot-games__list-title {
  font-size: 1.5em;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-slot-games__strategy-list .page-slot-games__list-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Promotions */
.page-slot-games__promotions {
  background-color: #ffffff;
  color: #333333;
}

.page-slot-games__promotions .page-slot-games__section-title,
.page-slot-games__promotions .page-slot-games__text-block {
  color: #333333;
}

.page-slot-games__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__promo-list li {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  color: #333333;
}

.page-slot-games__promo-list .page-slot-games__list-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-slot-games__promo-list .page-slot-games__list-description {
  font-size: 1em;
  color: #555555;
}

/* Mobile App */
.page-slot-games__app-promo {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__app-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-slot-games__app-details {
  flex: 1;
}

/* Why W88 */
.page-slot-games__why-w88 {
  background-color: #f5f5f5;
  color: #333333;
}

.page-slot-games__why-w88 .page-slot-games__section-title,
.page-slot-games__why-w88 .page-slot-games__text-block {
  color: #333333;
}

.page-slot-games__advantages-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__advantages-list li {
  background-color: #ffffff;
  border-left: 5px solid #017439;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-slot-games__advantages-list li strong {
  color: #017439;
}

/* FAQ Section */
.page-slot-games__faq {
  background-color: #ffffff;
  color: #333333;
}

.page-slot-games__faq .page-slot-games__section-title {
  color: #333333;
}

.page-slot-games__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  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;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00;
}

.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;
  text-align: left;
  background-color: #ffffff;
  color: #333333;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Ensure it expands fully */
  padding: 20px 25px;
}

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

/* Conclusion */
.page-slot-games__conclusion .page-slot-games__section-title {
  color: #ffffff;
}

.page-slot-games__conclusion .page-slot-games__text-block {
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 3em;
  }
  .page-slot-games__hero-description {
    font-size: 1.1em;
  }
  .page-slot-games__hero-image-wrapper {
    max-width: 45%;
  }
  .page-slot-games__section-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-slot-games__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
  .page-slot-games__hero-content {
    padding-right: 0;
    margin-bottom: 30px;
    max-width: 100%;
  }
  .page-slot-games__hero-image-wrapper {
    max-width: 100%;
    width: 100%;
  }
  .page-slot-games__main-title {
    font-size: 2.2em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__sub-section-title {
    font-size: 1.5em;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__card {
    padding: 20px;
  }
  .page-slot-games__app-promo {
    flex-direction: column;
    gap: 20px;
  }
  .page-slot-games__app-image {
    max-width: 100%;
    width: 100%;
    height: auto;
  }
  /* Mobile image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__app-promo,
  .page-slot-games__app-details,
  .page-slot-games__step-by-step,
  .page-slot-games__strategy-list,
  .page-slot-games__promo-list,
  .page-slot-games__advantages-list,
  .page-slot-games__faq-list,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-slot-games__faq-question,
  .page-slot-games__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: 1.8em;
  }
  .page-slot-games__hero-description {
    font-size: 0.9em;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__card-title {
    font-size: 1.3em;
  }
  .page-slot-games__step-number {
    font-size: 2em;
  }
  .page-slot-games__step-title {
    font-size: 1.2em;
  }
  .page-slot-games__faq-question h3 {
    font-size: 1.1em;
  }
}