/* style/slot-games.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #FFFFFF;
  --background-dark: #26A9E0;
  --black-color: #000000;
}

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

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

.page-slot-games__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

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

.page-slot-games__dark-bg .page-slot-games__section-title,
.page-slot-games__dark-bg .page-slot-games__text-block,
.page-slot-games__dark-bg .page-slot-games__feature-title,
.page-slot-games__dark-bg .page-slot-games__feature-description,
.page-slot-games__dark-bg .page-slot-games__step-title,
.page-slot-games__dark-bg .page-slot-games__step-description {
  color: var(--text-light);
}

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

.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 20px;
  box-sizing: border-box;
}

.page-slot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.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;
  color: var(--text-light);
  max-width: 900px;
}

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

.page-slot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

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

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

.page-slot-games__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

.page-slot-games__dark-bg .page-slot-games__btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-slot-games__about-nổhũ,
.page-slot-games__features,
.page-slot-games__game-showcase,
.page-slot-games__how-to-play,
.page-slot-games__promotions,
.page-slot-games__mobile-experience,
.page-slot-games__faq-section,
.page-slot-games__cta-section {
  padding: 80px 0;
}

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

.page-slot-games__feature-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
}

.page-slot-games__dark-bg .page-slot-games__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-slot-games__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__feature-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__feature-description {
  font-size: 1em;
  line-height: 1.6;
}

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

.page-slot-games__game-card,
.page-slot-games__promo-card {
  background-color: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-slot-games__game-card:hover,
.page-slot-games__promo-card:hover {
  transform: translateY(-5px);
}

.page-slot-games__game-image,
.page-slot-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-slot-games__game-title,
.page-slot-games__promo-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-slot-games__game-title a,
.page-slot-games__promo-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-slot-games__game-title a:hover,
.page-slot-games__promo-title a:hover {
  text-decoration: underline;
}

.page-slot-games__game-description,
.page-slot-games__promo-description {
  font-size: 0.95em;
  padding: 0 15px 20px;
  color: var(--text-dark);
}

.page-slot-games__promo-card .page-slot-games__btn-secondary {
  margin-bottom: 20px;
}

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

.page-slot-games__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
}

.page-slot-games__dark-bg .page-slot-games__step-item {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-slot-games__step-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--text-light);
}

.page-slot-games__step-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-light);
}

.page-slot-games__mobile-content {
  flex: 1;
  text-align: left;
}

.page-slot-games__mobile-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-slot-games__mobile-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

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

.page-slot-games__faq-item {
  background-color: var(--background-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #f9f9f9;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  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(--text-dark);
}

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

.page-slot-games__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
}

.page-slot-games__cta-section {
  text-align: center;
  padding: 80px 0;
}

/* General image responsiveness */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__hero-description {
    font-size: 1.1em;
  }
  .page-slot-games__container--flex {
    flex-direction: column;
    text-align: center;
  }
  .page-slot-games__mobile-content {
    text-align: center;
    margin-bottom: 40px;
  }
  .page-slot-games__mobile-buttons {
    justify-content: center;
  }
  .page-slot-games__text-block {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games__hero-section {
    min-height: 450px;
    padding: 60px 15px;
  }

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

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

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

  .page-slot-games__about-nổhũ,
  .page-slot-games__features,
  .page-slot-games__game-showcase,
  .page-slot-games__how-to-play,
  .page-slot-games__promotions,
  .page-slot-games__mobile-experience,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    padding: 60px 0;
  }

  .page-slot-games__container {
    padding: 0 15px;
  }

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

  .page-slot-games__hero-buttons,
  .page-slot-games__cta-buttons,
  .page-slot-games__mobile-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  
  .page-slot-games__cta-buttons--center {
    padding: 0;
  }

  /* Force images to be responsive on mobile */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__feature-icon {
    max-width: 150px;
  }

  .page-slot-games__game-image,
  .page-slot-games__promo-image {
    height: auto;
  }

  .page-slot-games__game-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__features-grid,
  .page-slot-games__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

/* Ensure content areas respect mobile overflow rules */
.page-slot-games__about-nổhũ,
.page-slot-games__features,
.page-slot-games__game-showcase,
.page-slot-games__how-to-play,
.page-slot-games__promotions,
.page-slot-games__mobile-experience,
.page-slot-games__faq-section,
.page-slot-games__cta-section {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.page-slot-games__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.page-slot-games__hero-section {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-slot-games__mobile-image-wrapper {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Global image size constraint for content area */
.page-slot-games__content-area img,
.page-slot-games__card img,
.page-slot-games__feature-item img,
.page-slot-games__game-card img,
.page-slot-games__promo-card img,
.page-slot-games__mobile-image {
  min-width: 200px;
  min-height: 200px;
}

/* Override min-width for very small mobile screens if needed for specific elements, but generally avoid */
@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__btn-primary,
  .page-slot-games__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}