/* style/slot-games.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* #FFF3E6 */
  background-color: var(--bg-color); /* #0D0E12 */
}

/* Custom Color Variables from prompt */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --card-bg: #17191F;
  --bg-color: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

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

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

.page-slot-games__section-title--white {
  color: var(--text-main);
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-slot-games__text-block--white {
  color: var(--text-main);
}

.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  background-color: var(--bg-color);
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  height: auto;
  margin-bottom: 40px;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
  border-radius: 10px;
}

.page-slot-games__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
  color: var(--text-main);
}

.page-slot-games__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--glow-color);
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.6);
}

.page-slot-games__description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-main);
}

.page-slot-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-slot-games__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-slot-games__btn-secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-slot-games__btn-primary--large,
.page-slot-games__btn-secondary--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Intro Section */
.page-slot-games__intro-section,
.page-slot-games__how-to-play-section,
.page-slot-games__promotions-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.page-slot-games__light-bg {
  background-color: var(--card-bg); /* Lighter dark background for contrast */
  color: var(--text-main);
}

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

.page-slot-games__image-text-block {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 40px;
}

.page-slot-games__image-text-block img {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

.page-slot-games__image-text-block .page-slot-games__text-block {
  flex: 1;
  max-width: 50%;
}

/* Features Section */
.page-slot-games__features-section {
  padding: 80px 0;
  background-color: var(--deep-orange);
  color: #ffffff;
}

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

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

.page-slot-games__feature-card {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-slot-games__feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(0, 0, 0, 0.5);
}

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

.page-slot-games__card-text {
  font-size: 1em;
  color: var(--text-main);
}

/* How to Play Section */
.page-slot-games__content-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-slot-games__content-wrapper .page-slot-games__text-block {
  flex: 1;
}

.page-slot-games__ordered-list {
  list-style: none;
  padding: 0;
}

.page-slot-games__ordered-list li {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__ordered-list li:last-child {
  margin-bottom: 0;
}

.page-slot-games__list-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.page-slot-games__video-wrapper {
  flex: 1;
  width: 100%; /* Ensure width is 100% for desktop flex */
  max-width: 50%; /* Limit width when flexed */
  box-sizing: border-box;
  position: relative;
  padding-bottom: 28.125%; /* 16:9 aspect ratio relative to its max-width (50% of 56.25%) */
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 10px;
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: block;
}

.page-slot-games__video-caption {
  text-align: center;
  font-style: italic;
  font-size: 0.9em;
  color: var(--text-main);
  margin-top: 10px;
}

/* Strategy Section */
.page-slot-games__strategy-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

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

.page-slot-games__strategy-card {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-slot-games__strategy-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

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

/* Promotions Section */
.page-slot-games__promotion-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-slot-games__promotion-list li {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.page-slot-games__promotion-list .page-slot-games__list-title {
  color: var(--secondary-color);
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

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

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

.page-slot-games__faq-item summary {
  list-style: none;
}

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

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

.page-slot-games__faq-question:hover {
  background-color: rgba(255, 140, 26, 0.1);
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--glow-color);
}

.page-slot-games__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  color: var(--text-main);
}

/* CTA Section */
.page-slot-games__cta-section {
  padding: 100px 0;
  text-align: center;
  background-color: var(--deep-orange);
  color: #ffffff;
}

.page-slot-games__cta-content {
  max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 0 15px !important;
  }

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

  .page-slot-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    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__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-slot-games__image-text-block {
    flex-direction: column;
    gap: 20px;
  }

  .page-slot-games__image-text-block img,
  .page-slot-games__image-text-block .page-slot-games__text-block {
    max-width: 100%;
    width: 100%;
  }

  .page-slot-games__feature-grid,
  .page-slot-games__strategy-grid,
  .page-slot-games__promotion-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .page-slot-games__content-wrapper .page-slot-games__text-block {
    max-width: 100%;
  }

  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding-bottom: 56.25% !important; /* 16:9 aspect ratio for full width video */
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

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

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

  .page-slot-games__cta-section {
    padding: 60px 0;
  }

  /* Global image responsive styles for mobile */
  .page-slot-games img {
    max-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: hidden !important;
  }
}