/* style/slot-games.css */

/* General Page Styles */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #f8f8f8; /* Light background for the main content area */
  line-height: 1.6;
}

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

.page-slot-games__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-slot-games p {
  margin-bottom: 1em;
  font-size: 1.1em;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient background */
}

.page-slot-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-slot-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-slot-games__main-title {
  font-size: 3em;
  color: #000000; /* Darker color for main title for contrast */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-slot-games__intro-text {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  min-width: 180px; /* Ensure buttons are not too small */
}

.page-slot-games__btn-primary {
  background: #26A9E0; /* Primary brand color */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #26A9E0;
}

.page-slot-games__btn-primary:hover {
  background: #1f8ac9;
  border-color: #1f8ac9;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-secondary {
  background: #ffffff;
  color: #26A9E0; /* Primary brand color for text */
  border: 2px solid #26A9E0;
}

.page-slot-games__btn-secondary:hover {
  background: #f0f8ff;
  color: #1f8ac9;
  border-color: #1f8ac9;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__btn-full-width {
  width: 100%;
  max-width: 400px; /* Limit max width for full-width buttons */
  margin: 30px auto 0 auto;
  display: block;
  text-align: center;
}

/* Image Styles */
.page-slot-games__image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
  object-fit: cover;
}

/* Dark Section Styling */
.page-slot-games__dark-section {
  background-color: #26A9E0; /* Primary brand color as background */
  color: #ffffff; /* White text for contrast */
}

.page-slot-games__dark-section .page-slot-games__section-title {
  color: #ffffff; /* White title for contrast */
}

.page-slot-games__dark-section p,
.page-slot-games__dark-section li {
  color: #ffffff;
}

/* Grid Layout for Cards */
.page-slot-games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text for light card background */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-slot-games__card-title {
  font-size: 1.5em;
  color: #26A9E0; /* Primary color for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__card p {
  font-size: 1em;
  line-height: 1.5;
  flex-grow: 1;
}

.page-slot-games__card .page-slot-games__btn-primary {
  margin-top: 20px;
  align-self: flex-start;
  padding: 10px 25px;
  font-size: 0.95em;
}

/* Lists */
.page-slot-games__list,
.page-slot-games__ordered-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-slot-games__list li,
.page-slot-games__ordered-list li {
  background: #ffffff;
  padding: 15px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  font-size: 1.1em;
  color: #333333;
}

.page-slot-games__list li strong,
.page-slot-games__ordered-list li strong {
  color: #26A9E0; /* Primary color for strong text in lists */
  margin-right: 8px;
}

.page-slot-games__ordered-list li {
  counter-increment: list-counter;
}

.page-slot-games__ordered-list li::before {
  content: "Bước " counter(list-counter) ":";
  font-weight: bold;
  color: #26A9E0;
  margin-right: 10px;
  flex-shrink: 0;
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid #e0e0e0;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: #333333;
}

.page-slot-games__faq-question:hover {
  background: #f0f8ff;
  color: #26A9E0;
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click */
  color: inherit; /* Inherit color from parent for hover effect */
}

.page-slot-games__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0; /* Primary color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect, or just change text content */
  color: #EA7C07; /* Login color for active toggle */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__main-title {
    font-size: 2.5em;
  }
}

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

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

  .page-slot-games__section {
    padding: 40px 0;
  }

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

  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    padding-bottom: 30px;
  }

  .page-slot-games__hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .page-slot-games__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__hero-content {
    padding: 0 10px;
  }

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

  .page-slot-games__intro-text {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-full-width,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__image {
    margin: 20px auto;
    border-radius: 6px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-slot-games__card {
    padding: 20px;
    border-radius: 8px;
  }

  .page-slot-games__card-title {
    font-size: 1.3em;
    margin-bottom: 10px;
  }

  .page-slot-games__list li,
  .page-slot-games__ordered-list li {
    padding: 12px 18px;
    margin-bottom: 10px;
    font-size: 1em;
  }

  .page-slot-games__ordered-list li::before {
    font-size: 0.95em;
  }

  .page-slot-games__faq-item {
    border-radius: 8px;
  }

  .page-slot-games__faq-question {
    padding: 15px 20px;
  }

  .page-slot-games__faq-question h3 {
    font-size: 1.1em;
  }

  .page-slot-games__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }

  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px 20px !important;
  }
}

/* Ensure all content sections respect max-width and padding on mobile */
.page-slot-games__introduction,
.page-slot-games__game-types,
.page-slot-games__advantages,
.page-slot-games__how-to-play,
.page-slot-games__promotions,
.page-slot-games__tips,
.page-slot-games__faq,
.page-slot-games__conclusion {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Contrast Fix (if needed) */
.page-slot-games__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-slot-games__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}