/* style/slot-games.css */

/* Biến màu sắc */
:root {
  --page-slot-games-primary-color: #017439;
  --page-slot-games-secondary-color: #FFFFFF;
  --page-slot-games-text-dark: #333333;
  --page-slot-games-text-light: #FFFFFF;
  --page-slot-games-btn-register-bg: #C30808;
  --page-slot-games-btn-login-bg: #C30808;
  --page-slot-games-btn-text-color: #FFFF00;
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-slot-games-text-dark);
  background-color: var(--page-slot-games-secondary-color); /* Default white background */
}

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

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

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

.page-slot-games__section-title {
  font-size: 2.5em;
  color: inherit; /* Inherit from parent section */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-slot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: inherit;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-slot-games__hero-section .page-slot-games__container {
  position: relative;
  z-index: 2;
}

.page-slot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
  z-index: 1;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  color: var(--page-slot-games-text-light);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  color: var(--page-slot-games-text-light);
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-slot-games__btn-register,
.page-slot-games__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-register {
  background-color: var(--page-slot-games-btn-register-bg);
  color: var(--page-slot-games-btn-text-color);
  border: 2px solid var(--page-slot-games-btn-register-bg);
}

.page-slot-games__btn-register:hover {
  background-color: darken(var(--page-slot-games-btn-register-bg), 10%);
  transform: translateY(-3px);
}

.page-slot-games__btn-login {
  background-color: var(--page-slot-games-btn-login-bg);
  color: var(--page-slot-games-btn-text-color);
  border: 2px solid var(--page-slot-games-btn-login-bg);
}

.page-slot-games__btn-login:hover {
  background-color: darken(var(--page-slot-games-btn-login-bg), 10%);
  transform: translateY(-3px);
}

/* Video Section */
.page-slot-games__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 0 auto;
  aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.page-slot-games__video {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.page-slot-games__video-caption {
  margin-top: 20px;
  font-style: italic;
  color: var(--page-slot-games-text-dark);
}

/* Intro Section */
.page-slot-games__intro-section {
  padding: 80px 0;
}

.page-slot-games__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-slot-games__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-slot-games__image-block {
  text-align: center;
}

.page-slot-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: block; /* Important for responsive images */
}

.page-slot-games__image--center {
  margin: 40px auto 0 auto; /* Center images below text */
}

/* Why Choose Section */
.page-slot-games__why-choose-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 {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

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

.page-slot-games__feature-item p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* Hot Games Section */
.page-slot-games__hot-games-section {
  padding: 80px 0;
}

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

.page-slot-games__game-card {
  background-color: var(--page-slot-games-secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

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

.page-slot-games__game-card-title {
  font-size: 1.4em;
  margin: 20px 15px 10px 15px;
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__game-card-title a {
  text-decoration: none;
  color: inherit;
}

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

.page-slot-games__game-card-description {
  font-size: 0.95em;
  color: var(--page-slot-games-text-dark);
  padding: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-slot-games__btn-play {
  display: inline-block;
  background-color: var(--page-slot-games-primary-color);
  color: var(--page-slot-games-text-light);
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: calc(100% - 30px);
  white-space: normal;
  word-wrap: break-word;
}

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

/* How to Play Section */
.page-slot-games__how-to-play-section {
  padding: 80px 0;
}

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

.page-slot-games__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-slot-games__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--page-slot-games-text-light);
  margin-bottom: 15px;
  background-color: var(--page-slot-games-primary-color);
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  margin: 0 auto 15px auto;
}

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

.page-slot-games__step-item p {
  color: rgba(255, 255, 255, 0.8);
}

/* Tips Section */
.page-slot-games__tips-section {
  padding: 80px 0;
}

.page-slot-games__tips-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  list-style: none;
  padding-left: 0;
}

.page-slot-games__tips-list li {
  background-color: var(--page-slot-games-secondary-color);
  border: 1px solid #e0e0e0;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--page-slot-games-text-dark);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-slot-games__tips-list li strong {
  color: var(--page-slot-games-primary-color);
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 80px 0;
}

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

.page-slot-games__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  color: var(--page-slot-games-text-light);
}

.page-slot-games__promo-title {
  font-size: 1.5em;
  color: var(--page-slot-games-text-light);
  margin-bottom: 15px;
}

.page-slot-games__promo-card p {
  color: rgba(255, 255, 255, 0.8);
}

.page-slot-games__btn-primary {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  background-color: var(--page-slot-games-primary-color);
  color: var(--page-slot-games-text-light);
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
  background-color: darken(var(--page-slot-games-primary-color), 10%);
  transform: translateY(-3px);
}

/* Responsible Gaming Section */
.page-slot-games__responsible-gaming-section {
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__responsible-links {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-slot-games__link {
  color: var(--page-slot-games-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-slot-games__link:hover {
  color: darken(var(--page-slot-games-primary-color), 10%);
  text-decoration: underline;
}

.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  background-color: var(--page-slot-games-secondary-color);
  color: var(--page-slot-games-primary-color);
  border: 2px solid var(--page-slot-games-primary-color);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

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

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
}

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

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-slot-games-text-light);
  cursor: pointer;
  background-color: var(--page-slot-games-primary-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-slot-games__faq-question:hover {
  background-color: darken(var(--page-slot-games-primary-color), 5%);
}

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-slot-games__faq-answer p {
  margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__hero-description {
    font-size: 1.1em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__content-grid {
    grid-template-columns: 1fr;
  }
  .page-slot-games__image-block {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding: 80px 0;
    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-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-register,
  .page-slot-games__btn-login,
  .page-slot-games__btn-play,
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    max-width: 100% !important;
    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__container {
    padding: 0 15px;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-slot-games__section-description {
    font-size: 0.95em;
  }
  .page-slot-games__intro-section,
  .page-slot-games__why-choose-section,
  .page-slot-games__hot-games-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__tips-section,
  .page-slot-games__promotions-section,
  .page-slot-games__responsible-gaming-section,
  .page-slot-games__faq-section {
    padding: 60px 0;
  }

  /* Image and Video responsive */
  .page-slot-games img,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__video-wrapper,
  .page-slot-games__content-grid,
  .page-slot-games__features-grid,
  .page-slot-games__game-cards-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__promo-cards-grid,
  .page-slot-games__responsible-links,
  .page-slot-games__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-slot-games__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-slot-games__responsible-links {
    flex-direction: column;
    gap: 15px;
  }
}