/* style/slot-games.css */

/* Base styles for the page content */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

/* Sections */
.page-slot-games__hero-section,
.page-slot-games__intro-section,
.page-slot-games__video-section,
.page-slot-games__games-section,
.page-slot-games__why-w88-section,
.page-slot-games__how-to-play-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section,
.page-slot-games__cta-section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-slot-games__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-slot-games__text-white {
  color: #ffffff !important;
}

.page-slot-games__text-center {
  text-align: center;
}

/* Container for content */
.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-slot-games__hero-section {
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  background-color: #0a0a0a;
  position: relative;
}

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

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

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

.page-slot-games__hero-description a {
  color: #26A9E0;
  text-decoration: underline;
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-card {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  box-sizing: border-box;
  text-align: center;
}

.page-slot-games__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-slot-games__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-slot-games__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-slot-games__btn-card {
  background-color: #EA7C07;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
}

.page-slot-games__btn-card:hover {
  background-color: #c96706;
}

/* Section Titles and Descriptions */
.page-slot-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-slot-games__light-bg .page-slot-games__section-title {
  color: #26A9E0;
}

.page-slot-games__dark-bg .page-slot-games__section-title {
  color: #ffffff;
}

.page-slot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #666666;
}

.page-slot-games__dark-bg .page-slot-games__section-description {
  color: #f0f0f0;
}

.page-slot-games__section-description a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Video Section */
.page-slot-games__video-section {
  text-align: center;
}

.page-slot-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-slot-games__video-cta {
  margin-top: 30px;
}

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

.page-slot-games__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

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

.page-slot-games__game-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-slot-games__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-slot-games__game-desc {
  padding: 0 20px;
  margin-bottom: 20px;
  color: #555555;
}

.page-slot-games__game-desc a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Why W88 Section */
.page-slot-games__why-w88-section {
  text-align: center;
}

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

.page-slot-games__advantage-item {
  text-align: center;
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-slot-games__advantage-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-slot-games__advantage-desc {
  font-size: 1em;
  color: #f0f0f0;
}

.page-slot-games__advantage-desc a {
  color: #26A9E0;
  text-decoration: underline;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
  text-align: left;
}

.page-slot-games__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__step-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-slot-games__step-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-slot-games__step-desc {
  font-size: 1.1em;
  color: #555555;
}

.page-slot-games__step-desc a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  text-align: center;
}

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

.page-slot-games__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-slot-games__promo-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-slot-games__promo-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-slot-games__promo-desc {
  padding: 0 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-slot-games__promo-desc a {
  color: #26A9E0;
  text-decoration: underline;
}

/* FAQ Section */
.page-slot-games__faq-section {
  text-align: left;
}

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

.page-slot-games__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: #26A9E0;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.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: #555555;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

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

.page-slot-games__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* CTA Section (final) */
.page-slot-games__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: #0a0a0a;
  position: relative;
}

.page-slot-games__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.2;
}

.page-slot-games__cta-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

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

/* General image rules for content area - minimum size enforcement */
.page-slot-games img {
  min-width: 200px;
  min-height: 200px;
  /* Other styles like object-fit, etc. */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__promo-grid,
  .page-slot-games__game-grid,
  .page-slot-games__advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-slot-games__hero-title {
    font-size: 2.5em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__hero-buttons,
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-card {
    max-width: 100% !important;
    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__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__section-description {
    font-size: 0.95em;
  }
  .page-slot-games__game-grid,
  .page-slot-games__advantages-grid,
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-slot-games__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-slot-games__game-card,
  .page-slot-games__advantage-item,
  .page-slot-games__promo-card,
  .page-slot-games__step-item,
  .page-slot-games__faq-item {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 2em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__hero-section {
    padding-bottom: 40px;
  }
  .page-slot-games__hero-buttons,
  .page-slot-games__cta-buttons {
    gap: 10px;
  }
}