/* style/slot-games.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-bg: #121212;
  --light-text: #ffffff;
  --dark-text: #333333;
  --gray-light: #f8f9fa;
  --gray-medium: #e0e0e0;
  --gray-dark: #6c757d;
}

.page-slot-games {
  background-color: var(--dark-bg); /* Body background is dark */
  color: var(--light-text); /* Use light text on dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Default padding for fixed header */
}

/* Override for specific sections with light backgrounds */
.page-slot-games__content-section,
.page-slot-games__tips-section,
.page-slot-games__brand-item {
  background-color: var(--light-text);
  color: var(--dark-text);
}

.page-slot-games__section-title,
.page-slot-games__sub-title,
.page-slot-games__tip-title,
.page-slot-games__brand-title,
.page-slot-games__brand-item h3,
.page-slot-games__blog-item-title {
  color: var(--primary-color);
}

.page-slot-games__dark-section {
  background-color: #1a1a1a;
  color: var(--light-text);
}

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

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

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

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

.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: var(--light-text);
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 123, 255, 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(--secondary-color);
  color: var(--dark-text);
  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;
}

.page-slot-games__play-now-button:hover {
  background: #e0a800;
  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);
}

/* Module 1: H1 Title + CTA Buttons */
.page-slot-games__title-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--dark-bg);
  color: var(--light-text);
}

.page-slot-games__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-slot-games__title-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--gray-light);
}

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

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

.page-slot-games__btn-primary {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.page-slot-games__btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--dark-text);
}

.page-slot-games__btn-secondary:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__cta-buttons--center {
  margin-top: 40px;
}

/* General Content Section */
.page-slot-games__content-section {
  padding: 80px 0;
  background-color: var(--light-text);
  color: var(--dark-text);
}

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

.page-slot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

.page-slot-games__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__sub-title {
  font-size: 2em;
  margin-top: 60px;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
}

.page-slot-games__list {
  list-style: disc inside;
  margin: 0 auto 40px;
  max-width: 900px;
  padding-left: 20px;
}

.page-slot-games__list li {
  margin-bottom: 15px;
  font-size: 1.1em;
}

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

/* How To Play Section */
.page-slot-games__how-to-play-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Darker background for contrast */
  color: var(--light-text);
}

.page-slot-games__how-to-play-section .page-slot-games__section-title {
  color: var(--secondary-color);
}

.page-slot-games__how-to-play-section .page-slot-games__section-description {
  color: var(--gray-light);
}

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

.page-slot-games__step-item {
  text-align: center;
  background-color: #222;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-slot-games__step-item:hover {
  transform: translateY(-5px);
}

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

.page-slot-games__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-slot-games__step-item p {
  color: var(--gray-light);
}

/* Tips Section */
.page-slot-games__tips-section {
  padding: 80px 0;
  background-color: var(--light-text);
  color: var(--dark-text);
}

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

.page-slot-games__tip-item {
  background-color: var(--gray-light);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-slot-games__tip-item:hover {
  transform: translateY(-5px);
}

.page-slot-games__tip-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

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

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: var(--light-text);
}

.page-slot-games__faq-section .page-slot-games__section-title {
  color: var(--secondary-color);
}

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

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #282828;
  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: #333;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--light-text);
  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(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent toggle 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(--light-text);
  transform: rotate(180deg);
}

.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.3s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--gray-light);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important;
  padding: 20px 20px !important;
  opacity: 1;
  background: #222;
  border-radius: 0 0 5px 5px;
}

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

.page-slot-games__faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-slot-games__faq-answer a:hover {
  color: var(--primary-color);
}

/* Brand Section */
.page-slot-games__brand-section {
  padding: 80px 0;
  background-color: var(--light-text);
  color: var(--dark-text);
}

.page-slot-games__brand-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
}

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

.page-slot-games__brand-item {
  background-color: var(--gray-light);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-slot-games__brand-item:hover {
  transform: translateY(-5px);
}

.page-slot-games__brand-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

/* Blog Section */
.page-slot-games__blog-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: var(--light-text);
}

.page-slot-games__blog-section .page-slot-games__section-title {
  color: var(--secondary-color);
}

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

.page-slot-games__blog-item {
  background-color: #282828;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.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;
  margin-bottom: 20px;
}

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

.page-slot-games__blog-item-excerpt {
  font-size: 0.95em;
  color: var(--gray-light);
  margin: 0 20px 15px;
}

.page-slot-games__blog-item-date {
  display: block;
  font-size: 0.85em;
  color: var(--gray-dark);
  margin: 0 20px;
}

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

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

  .page-slot-games__sub-title {
    font-size: 1.8em;
  }

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

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

  .page-slot-games__video-section {
    padding: 10px 15px 40px; /* Mobile padding for video section */
  }

  .page-slot-games__video-container,
  .page-slot-games__video-link,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }

  .page-slot-games__video-cta {
    margin-top: 20px;
    padding: 0 15px;
  }

  .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__title-section {
    padding: 60px 15px;
  }

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

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

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

  .page-slot-games__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__container {
    padding: 30px 15px;
  }

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

  .page-slot-games__sub-title {
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

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

  .page-slot-games__image,
  .page-slot-games__step-icon,
  .page-slot-games__tip-image,
  .page-slot-games__brand-item img,
  .page-slot-games__blog-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__step-item,
  .page-slot-games__tip-item,
  .page-slot-games__brand-item,
  .page-slot-games__blog-item {
    padding: 20px;
  }

  .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__blog-item-title {
    font-size: 1.2em;
    margin: 0 15px 10px;
  }

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

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

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

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

  .page-slot-games__cta-button {
    font-size: 0.9em;
    padding: 10px 25px;
  }

  .page-slot-games__step-icon {
    width: 80px;
    height: 80px;
  }

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

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

  .page-slot-games__brand-item img {
    width: 80px;
    height: 80px;
  }

  .page-slot-games__brand-item h3 {
    font-size: 1.3em;
  }
}