/* style/slot-games.css */

/* Biến màu sắc */
:root {
  --page-slot-games-primary-color: #11A84E;
  --page-slot-games-secondary-color: #22C768;
  --page-slot-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-slot-games-card-bg: #11271B;
  --page-slot-games-background: #08160F;
  --page-slot-games-text-main: #F2FFF6;
  --page-slot-games-text-secondary: #A7D9B8;
  --page-slot-games-border-color: #2E7A4E;
  --page-slot-games-glow-color: #57E38D;
  --page-slot-games-gold-color: #F2C14E;
  --page-slot-games-divider-color: #1E3A2A;
  --page-slot-games-deep-green: #0A4B2C;
}

/* Reset cơ bản và font cho trang */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-slot-games-text-main); /* Mặc định chữ sáng trên nền tối của body */
  background-color: var(--page-slot-games-background); /* Nền tối cho main content */
}

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--page-slot-games-gold-color);
  line-height: 1.2;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit; /* Kế thừa từ container */
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Nhỏ gọn vì body đã có padding-top */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Giới hạn chiều cao hình ảnh */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 400px; /* Đảm bảo kích thước tối thiểu */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 30px 20px;
  margin-top: -100px; /* Kéo nội dung lên trên hình ảnh một chút */
  background-color: rgba(0, 0, 0, 0.5); /* Nền tối để chữ nổi bật */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

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

.page-slot-games__description {
  font-size: 1.2em;
  color: var(--page-slot-games-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  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;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.page-slot-games__btn-primary {
  background: var(--page-slot-games-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  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-color: transparent;
  color: var(--page-slot-games-gold-color);
  border: 2px solid var(--page-slot-games-gold-color);
}

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

/* About Slots Section */
.page-slot-games__about-slots .page-slot-games__text-block {
  color: #333333;
}

.page-slot-games__image-wrapper {
  text-align: center;
  margin-top: 30px;
}

.page-slot-games__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  min-width: 200px; /* Đảm bảo kích thước tối thiểu */
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

/* Advantages Section */
.page-slot-games__advantages .page-slot-games__section-title {
  color: var(--page-slot-games-text-main);
}

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

.page-slot-games__card {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-slot-games-text-main);
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

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

.page-slot-games__card-text {
  font-size: 1em;
  color: var(--page-slot-games-text-secondary);
  text-align: justify;
}

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

/* How To Play Section */
.page-slot-games__how-to-play .page-slot-games__text-block,
.page-slot-games__how-to-play .page-slot-games__step-text {
  color: #333333;
}

.page-slot-games__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__step-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.page-slot-games__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  font-size: 1.8em;
  font-weight: bold;
  color: var(--page-slot-games-primary-color);
  min-width: 40px;
  text-align: center;
  line-height: 1;
  padding-top: 5px;
}

.page-slot-games__step-title {
  font-size: 1.3em;
  color: var(--page-slot-games-deep-green);
  margin-bottom: 10px;
}

/* Mobile Experience Section */
.page-slot-games__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-slot-games__mobile-content,
.page-slot-games__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-slot-games__mobile-content .page-slot-games__section-title,
.page-slot-games__mobile-content .page-slot-games__text-block {
  text-align: left;
  color: var(--page-slot-games-text-main);
}

.page-slot-games__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-slot-games__feature-item {
  font-size: 1.1em;
  color: var(--page-slot-games-text-secondary);
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-slot-games__feature-item::before {
  content: '✔';
  color: var(--page-slot-games-gold-color);
  position: absolute;
  left: 0;
  top: 0;
}

/* Promotions Section */
.page-slot-games__promotions .page-slot-games__text-block {
  color: #333333;
}

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

.page-slot-games__promo-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  color: #333333;
}

.page-slot-games__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-slot-games__promo-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-slot-games__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Responsible Gambling Section */
.page-slot-games__responsible-gambling .page-slot-games__section-title,
.page-slot-games__responsible-gambling .page-slot-games__text-block {
  color: var(--page-slot-games-text-main);
}

/* FAQ Section */
.page-slot-games__faq-section .page-slot-games__text-block {
  color: #333333;
}

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

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-slot-games-deep-green);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  background-color: #f0f0f0;
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: 15px 25px 20px;
  font-size: 1.05em;
  color: #555555;
  border-top: 1px solid #eee;
}

/* Call to Action Section */
.page-slot-games__call-to-action .page-slot-games__section-title,
.page-slot-games__call-to-action .page-slot-games__text-block {
  color: var(--page-slot-games-text-main);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    margin-top: -50px;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
}

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

  .page-slot-games__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__hero-section {
    padding-bottom: 40px;
  }

  .page-slot-games__hero-image-wrapper {
    max-height: 300px;
  }

  .page-slot-games__hero-image {
    min-height: 200px;
  }

  .page-slot-games__hero-content {
    margin-top: -30px; /* Adjust overlap for smaller screens */
    padding: 20px;
  }

  .page-slot-games__main-title {
    font-size: 2em; /* Ensure it doesn't take too much space */
  }

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

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

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

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

  .page-slot-games__text-block {
    font-size: 1em;
  }

  .page-slot-games__grid {
    grid-template-columns: 1fr;
  }

  .page-slot-games__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 20px;
  }

  .page-slot-games__step-item::before {
    margin-bottom: 10px;
  }

  .page-slot-games__step-title {
    font-size: 1.2em;
  }

  .page-slot-games__container--flex {
    flex-direction: column !important;
    gap: 30px;
  }

  .page-slot-games__mobile-content,
  .page-slot-games__mobile-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-slot-games__mobile-content .page-slot-games__section-title,
  .page-slot-games__mobile-content .page-slot-games__text-block {
    text-align: center;
  }

  .page-slot-games__feature-list {
    text-align: center;
  }

  .page-slot-games__feature-item {
    padding-left: 0;
  }

  .page-slot-games__feature-item::before {
    position: static;
    display: inline-block;
    margin-right: 5px;
  }

  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-slot-games__promo-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

  .page-slot-games__faq-answer {
    font-size: 0.95em;
    padding: 10px 20px 15px;
  }

  /* Image and Video responsive rules */
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games video {
    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__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper,
  .page-slot-games__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-slot-games__video-section {
    padding-top: 10px !important;
  }
}