:root {
  --primary-color: #FFD700; /* Vàng kim */
  --secondary-color: #1A1A1A; /* Đen đậm */
  --text-color-dark-bg: #ffffff; /* Trắng cho nền tối */
  --text-color-light-bg: #333333; /* Đen xám cho nền sáng */
  --background-dark: #0d0d0d; /* Nền body */
  --card-background-dark-mode: rgba(255, 255, 255, 0.1); /* Nền thẻ trong chế độ tối */
  --border-color: #e0e0e0;
}

/* Base styles for the page */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Mặc định chữ trắng trên nền tối của body */
  background-color: var(--background-dark);
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

/* 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: Ensure content is not hidden by fixed header */
  background-color: var(--background-dark);
}

.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;
}

.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;
}

.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.25);
}

.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 */
}

.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.7);
  padding: 10px 20px;
  background: rgba(var(--primary-color-rgb, 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;
}

.page-slot-games__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color); /* Nút vàng chữ đen đậm để nổi bật */
  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.3);
  border: none;
  cursor: pointer;
}

.page-slot-games__play-now-button:hover {
  background: #e6c200; /* Màu vàng đậm hơn */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

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

/* Title Section (Module 1) */
.page-slot-games__title-section {
  background-color: var(--secondary-color); /* Nền đen đậm */
  padding: 80px 20px;
  text-align: center;
  color: var(--text-color-dark-bg);
}

.page-slot-games__title-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-slot-games__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--primary-color); /* Tiêu đề chính màu vàng kim */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__title-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-slot-games__title-description a:hover {
  color: #e6c200;
}

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

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

.page-slot-games__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--secondary-color); /* Nút vàng chữ đen đậm */
  border: 2px solid var(--primary-color);
}

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

.page-slot-games__cta-button--secondary {
  background-color: transparent;
  color: var(--primary-color); /* Nút viền vàng chữ vàng */
  border: 2px solid var(--primary-color);
}

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

/* General Content Area */
.page-slot-games__content-area {
  padding: 60px 20px;
  background-color: var(--background-dark);
  color: var(--text-color-dark-bg);
}

.page-slot-games__heading {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-slot-games__sub-heading {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(var(--primary-color-rgb, 255, 215, 0), 0.3);
  padding-bottom: 10px;
}

.page-slot-games p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #f0f0f0;
}

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

.page-slot-games p a:hover {
  color: #e6c200;
}

.page-slot-games__list,
.page-slot-games__numbered-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-slot-games__numbered-list {
  list-style-type: decimal;
}

.page-slot-games__list li,
.page-slot-games__numbered-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-slot-games__list li strong {
  color: var(--primary-color);
}

.page-slot-games__image-block {
  margin: 40px auto;
  text-align: center;
  max-width: 800px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-slot-games__image-caption {
  font-style: italic;
  font-size: 0.95em;
  color: #cccccc;
  margin-top: 15px;
  padding: 0 15px;
}

/* FAQ Section (Module 2) */
.page-slot-games__faq-section {
  background-color: var(--secondary-color); /* Nền đen đậm */
  padding: 60px 20px;
  color: var(--text-color-dark-bg);
}

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

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  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: #3a3a3a;
  border-color: #4a4a4a;
}

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

.page-slot-games__faq-toggle {
  font-size: 28px;
  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: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(var(--primary-color-rgb, 255, 215, 0), 0.1);
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Change to X or minus */
  background: var(--primary-color);
}

.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: #1f1f1f;
  border-radius: 0 0 8px 8px;
  color: #e0e0e0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-slot-games__faq-answer p {
  margin-bottom: 10px;
  color: #e0e0e0;
}

/* Brand Section (Module 3) */
.page-slot-games__brand-section {
  background-color: var(--background-dark);
  padding: 60px 20px;
  color: var(--text-color-dark-bg);
}

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

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

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

.page-slot-games__brand-item p {
  color: #cccccc;
  font-size: 1em;
}

/* Blog Section (Module 4) */
.page-slot-games__blog-section {
  background-color: var(--secondary-color);
  padding: 60px 20px;
  color: var(--text-color-dark-bg);
}

.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 {
  background: var(--card-background-dark-mode);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

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

.page-slot-games__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 20px;
}

.page-slot-games__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-slot-games__blog-item-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin: 20px 20px 10px 20px;
  line-height: 1.4;
}

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

.page-slot-games__blog-item-excerpt a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-slot-games__blog-item-excerpt a:hover {
  color: #e6c200;
}

.page-slot-games__blog-item-date {
  font-size: 0.85em;
  color: #999999;
  margin: 0 20px;
  display: block;
}

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

/* Call to Action Section */
.page-slot-games__call-to-action {
  background-color: var(--primary-color);
  padding: 60px 20px;
  text-align: center;
  color: var(--secondary-color); /* Nền vàng chữ đen đậm */
}

.page-slot-games__call-to-action .page-slot-games__heading {
  color: var(--secondary-color);
  text-shadow: none;
}

.page-slot-games__call-to-action p {
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.page-slot-games__call-to-action p a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-slot-games__call-to-action p a:hover {
  color: #000000;
}

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

.page-slot-games__call-to-action .page-slot-games__cta-button--primary:hover {
  background-color: #000000;
  color: var(--primary-color);
  border-color: #000000;
}

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

  .page-slot-games__heading {
    font-size: 2em;
  }

  .page-slot-games__sub-heading {
    font-size: 1.5em;
  }

  .page-slot-games__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

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

@media (max-width: 768px) {
  .page-slot-games {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games__video-section {
    padding-top: 10px !important; /* Mobile: Ensure video is not hidden */
    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; /* Ensure video fits within bounds */
  }

  .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;
  }

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

  .page-slot-games__title-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-games__cta-button {
    max-width: 100% !important;
    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__cta-buttons--center {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-slot-games__sub-heading {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-slot-games__content-area, 
  .page-slot-games__faq-section, 
  .page-slot-games__brand-section, 
  .page-slot-games__blog-section, 
  .page-slot-games__call-to-action {
    padding: 40px 15px;
  }

  .page-slot-games__image-block {
    margin: 30px auto;
  }
  
  .page-slot-games__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-slot-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-slot-games__faq-question h3 {
    font-size: 1em;
    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;
  }
  
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px !important;
  }

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

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

  .page-slot-games__blog-image {
    height: 160px;
  }

  .page-slot-games__blog-item-title {
    font-size: 1.2em;
    margin: 15px 15px 8px 15px;
  }

  .page-slot-games__blog-item-excerpt {
    margin: 0 15px 10px 15px;
  }

  .page-slot-games__blog-item-date {
    margin: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: 1.8em;
  }

  .page-slot-games__heading {
    font-size: 1.6em;
  }

  .page-slot-games__sub-heading {
    font-size: 1.2em;
  }

  .page-slot-games__video-click-hint {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
}