/* style/slot-games.css */

:root {
  --w88-gold: #FFD700;
  --w88-dark-red: #8B0000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --section-bg-dark: #1a1a1a; /* Assuming shared --dark-bg-1 is dark */
  --section-bg-light: #f5f5f5;
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

.page-slot-games__section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--section-bg-dark);
}

.page-slot-games__dark-section {
  background-color: var(--w88-dark-red);
  color: var(--text-light);
}

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

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

.page-slot-games__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--w88-gold);
  font-weight: bold;
}

.page-slot-games__dark-section .page-slot-games__section-title,
.page-slot-games__hero-content .page-slot-games__hero-title {
  color: var(--text-light);
}

.page-slot-games__dark-bg .page-slot-games__section-title {
  color: var(--text-dark);
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__text-block--small {
  font-size: 0.9em;
  opacity: 0.8;
}

.page-slot-games__text-block a {
  color: var(--w88-gold);
  text-decoration: underline;
}

.page-slot-games__text-block a:hover {
  color: var(--text-light);
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-slot-games__hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-slot-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  max-width: 900px;
  padding: 20px;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

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

.page-slot-games__btn-primary {
  background-color: var(--w88-gold);
  color: var(--text-dark);
  border: 2px solid var(--w88-gold);
}

.page-slot-games__btn-primary:hover {
  background-color: darken(var(--w88-gold), 10%);
  color: var(--text-light);
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--w88-gold);
  border: 2px solid var(--w88-gold);
}

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

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

/* Features Grid */
.page-slot-games__features-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;
  transition: transform 0.3s ease;
  color: var(--text-light);
}

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

.page-slot-games__feature-icon {
  width: 100%; /* Ensure images are responsive */
  height: auto;
  max-width: 250px; /* Example, adjust as needed */
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

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

.page-slot-games__feature-description a {
  color: var(--w88-gold);
  text-decoration: underline;
}

.page-slot-games__feature-description a:hover {
  color: var(--text-light);
}

/* Game List */
.page-slot-games__game-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 30px auto;
}

.page-slot-games__game-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--text-light);
}

.page-slot-games__game-item strong {
  color: var(--w88-gold);
}

/* Steps List */
.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 30px auto;
}

.page-slot-games__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-left: 5px solid var(--w88-dark-red);
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--text-dark);
}

.page-slot-games__step-item strong {
  color: var(--w88-dark-red);
}

.page-slot-games__step-item a {
  color: var(--w88-dark-red);
  text-decoration: underline;
}

.page-slot-games__step-item a:hover {
  color: var(--text-dark);
}

/* Video Section */
.page-slot-games__video-section {
  background-color: var(--section-bg-dark);
}

.page-slot-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 30px auto;
  border-radius: 10px;
  cursor: pointer;
}

.page-slot-games__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

/* FAQ Section */
.page-slot-games__faq-section {
  background-color: var(--section-bg-light);
  color: var(--text-dark);
}

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

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

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

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

.page-slot-games__faq-question:hover {
  background-color: #f0f0f0;
}

.page-slot-games__faq-title {
  margin: 0;
  color: var(--text-dark);
}

.page-slot-games__faq-title a {
  color: var(--w88-dark-red);
  text-decoration: underline;
}

.page-slot-games__faq-title a:hover {
  color: var(--text-dark);
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--w88-dark-red);
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 25px;
}

.page-slot-games__faq-answer p {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-slot-games__faq-answer p:last-child {
  margin-bottom: 0;
}

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

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

/* Final CTA Section */
.page-slot-games__cta-final {
  background-color: var(--w88-dark-red);
  color: var(--text-light);
}

.page-slot-games__cta-final .page-slot-games__section-title {
  color: var(--w88-gold);
}

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

/* Global image rules for content area */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__hero-description {
    font-size: 1.1em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-slot-games__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-slot-games__hero-title {
    font-size: 2.2em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-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__cta-buttons,
  .page-slot-games__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-slot-games__section {
    padding: 40px 15px;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__features-grid {
    grid-template-columns: 1fr;
  }
  .page-slot-games__feature-card {
    padding: 25px;
  }
  .page-slot-games__game-item,
  .page-slot-games__step-item {
    font-size: 1em;
    padding: 15px;
  }
  .page-slot-games__video-wrapper {
    margin-left: 0;
    margin-right: 0;
    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;
    display: block !important;
  }
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section top padding is correct */
  }
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-slot-games__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 1.8em;
  }
  .page-slot-games__hero-description {
    font-size: 0.9em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    font-size: 0.9em;
    padding: 12px 20px;
  }
  .page-slot-games__faq-question {
    font-size: 0.9em;
  }
}