/* style/slot-games.css */

:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A202C; /* Dark Blue/Gray */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000000; /* Body background from shared.css */
  --background-card-dark: rgba(255, 255, 255, 0.08);
  --background-light: #f8f9fa;
  --border-color: rgba(255, 255, 255, 0.15);
}

/* Base styles for the entire page content, assuming dark body background */
.page-slot-games {
  color: var(--text-light);
  background-color: var(--background-dark); /* Ensure consistency with body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 0; /* Handled by specific sections */
}

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

/* Section spacing */
.page-slot-games section {
  padding: 60px 20px;
  margin-bottom: 0;
  box-sizing: border-box;
}

/* Dark background sections */
.page-slot-games__dark-section {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

/* Card styles for contrast on dark backgrounds */
.page-slot-games__card {
  background: var(--background-card-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

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

/* Headings */
.page-slot-games h1,
.page-slot-games h2,
.page-slot-games h3,
.page-slot-games h4 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-slot-games h1 {
  font-size: 3.2em;
  font-weight: bold;
  text-align: center;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-slot-games h3 {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--text-light);
}

/* Paragraphs and links */
.page-slot-games p {
  margin-bottom: 15px;
  color: var(--text-light);
}

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

.page-slot-games a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Buttons */
.page-slot-games__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-slot-games__cta-buttons--center {
  justify-content: center;
}

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__cta-button--primary {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-slot-games__cta-button--primary:hover {
  background: darken(var(--primary-color), 10%);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Image styles */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Video Section */
.page-slot-games__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust for fixed header */
  box-sizing: border-box;
}

.page-slot-games__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.page-slot-games__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-slot-games__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event on parent <a> */
}

.page-slot-games__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-slot-games__video-link:hover .page-slot-games__video-overlay {
  opacity: 1;
}

.page-slot-games__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(255, 215, 0, 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

.page-slot-games__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  box-sizing: border-box;
}

.page-slot-games__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__play-now-button:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-slot-games__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-slot-games__hero-section {
  padding: 120px 20px 80px; /* Adjust for fixed header */
  background-color: var(--secondary-color);
  text-align: center;
  box-sizing: border-box;
}

.page-slot-games__hero-container {
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-slot-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #e0e0e0;
}

/* Content Section (General) */
.page-slot-games__content-section {
  padding: 80px 20px;
  box-sizing: border-box;
}

.page-slot-games__content-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.page-slot-games__content-title {
  color: var(--primary-color);
  margin-bottom: 30px;
}

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

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

.page-slot-games__feature-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-slot-games__feature-title {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-bottom: 10px;
}

/* Guide Section */
.page-slot-games__guide-section {
  background-color: var(--background-dark);
  padding: 80px 20px;
  box-sizing: border-box;
}

.page-slot-games__guide-container {
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-slot-games__guide-title {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-slot-games__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
}

.page-slot-games__guide-list li {
  background: var(--background-card-dark);
  margin-bottom: 25px;
  padding: 30px;
  border-radius: 8px;
  position: relative;
  counter-increment: guide-step;
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.page-slot-games__guide-list li::before {
  content: "Bước " counter(guide-step);
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 5px 15px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-slot-games__guide-step-title {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.6em;
}

.page-slot-games__guide-image {
  max-width: 80%;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Top Games Section */
.page-slot-games__top-games-section {
  padding: 80px 20px;
  box-sizing: border-box;
}

.page-slot-games__top-games-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.page-slot-games__top-games-title {
  color: var(--primary-color);
  margin-bottom: 40px;
}

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

.page-slot-games__game-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-slot-games__game-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  flex-grow: 1;
}

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

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

.page-slot-games__game-provider {
  font-size: 0.9em;
  color: #aaa;
  margin-bottom: 15px;
}

.page-slot-games__game-description {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-slot-games__game-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__game-button:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

/* Brand Section */
.page-slot-games__brand-section {
  background-color: var(--background-dark);
  padding: 80px 20px;
  box-sizing: border-box;
}

.page-slot-games__brand-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.page-slot-games__brand-title {
  color: var(--primary-color);
  margin-bottom: 40px;
}

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

.page-slot-games__brand-item {
  text-align: center;
  background: var(--background-card-dark);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-slot-games__brand-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-slot-games__brand-item h3 {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-bottom: 10px;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 20px;
  box-sizing: border-box;
}

.page-slot-games__faq-container {
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-slot-games__faq-main-title {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

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

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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 15px;
  opacity: 0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Ensure enough space */
  padding: 20px 25px !important;
  opacity: 1;
  background: var(--background-card-dark);
  border-radius: 0 0 5px 5px;
  border-top: 1px dashed var(--border-color);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--background-card-dark);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-slot-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

.page-slot-games__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Optional: change to a cross */
}

/* Blog Section */
.page-slot-games__blog-section {
  background-color: var(--background-dark);
  padding: 80px 20px;
  box-sizing: border-box;
}

.page-slot-games__blog-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.page-slot-games__blog-title {
  color: var(--primary-color);
  margin-bottom: 40px;
}

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

.page-slot-games__blog-item {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-slot-games__blog-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text-light);
}

.page-slot-games__blog-link:hover {
  text-decoration: none;
}

.page-slot-games__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 6px;
}

.page-slot-games__blog-item-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--primary-color);
  flex-grow: 1;
}

.page-slot-games__blog-item-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-slot-games__blog-item-title a:hover {
  text-decoration: underline;
}

.page-slot-games__blog-item-excerpt {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-slot-games__blog-item-date {
  font-size: 0.85em;
  color: #aaa;
  margin-top: auto; /* Push to bottom */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games h1 {
    font-size: 2.8em;
  }
  .page-slot-games h2 {
    font-size: 2em;
  }
  .page-slot-games h3 {
    font-size: 1.5em;
  }
  .page-slot-games section {
    padding: 50px 15px;
  }
  .page-slot-games__hero-section {
    padding-top: 100px;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 15px;
    line-height: 1.5;
  }
  .page-slot-games h1 {
    font-size: 2.2em;
  }
  .page-slot-games h2 {
    font-size: 1.8em;
  }
  .page-slot-games h3 {
    font-size: 1.3em;
  }
  .page-slot-games section {
    padding: 40px 15px !important; /* Ensure mobile padding */
  }
  
  /* Video Section Mobile */
  .page-slot-games__video-section {
    padding-top: 10px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-slot-games__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-slot-games__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain; 
  }
  
  .page-slot-games__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-slot-games__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-slot-games__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  /* Hero Section Mobile */
  .page-slot-games__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 30px !important;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-slot-games__cta-button {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  /* General content container mobile */
  .page-slot-games__content-container,
  .page-slot-games__guide-container,
  .page-slot-games__top-games-container,
  .page-slot-games__brand-container,
  .page-slot-games__faq-container,
  .page-slot-games__blog-container {
    padding-left: 0px !important; /* Remove container padding for full width content */
    padding-right: 0px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Card and item padding inside containers */
  .page-slot-games__feature-item,
  .page-slot-games__game-card,
  .page-slot-games__brand-item,
  .page-slot-games__blog-item {
    padding: 20px 15px !important;
    margin-left: 15px;
    margin-right: 15px;
    max-width: calc(100% - 30px) !important;
    width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
  }

  /* Images within mobile */
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__guide-image {
    max-width: 100%;
  }

  /* FAQ Mobile */
  .page-slot-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
    margin-left: 15px;
    margin-right: 15px;
    max-width: calc(100% - 30px) !important;
    width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
  }
  
  .page-slot-games__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-slot-games__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-slot-games__faq-answer {
    padding: 0 15px;
    margin-left: 15px;
    margin-right: 15px;
    max-width: calc(100% - 30px) !important;
    width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
  }
  
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px !important;
  }
  .page-slot-games__faq-item {
    margin-left: 0;
    margin-right: 0;
  }
  
  .page-slot-games__guide-list li {
    margin-left: 15px;
    margin-right: 15px;
    max-width: calc(100% - 30px) !important;
    width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
    padding: 20px 15px;
  }
  .page-slot-games__guide-list li::before {
    left: 15px;
  }

  .page-slot-games__game-image, .page-slot-games__blog-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .page-slot-games h1 {
    font-size: 1.8em;
  }
  .page-slot-games h2 {
    font-size: 1.5em;
  }
  .page-slot-games__video-click-hint {
    font-size: 12px;
    padding: 6px 12px;
  }
  .page-slot-games__feature-image {
    max-width: 200px;
  }
}