/* 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: transparent; /* Body background is handled by shared.css */
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  color: #E0B75D;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-slot-games__section-subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 1em;
  color: #f0f0f0;
}

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

.page-slot-games__hero-section.page-slot-games__dark-bg {
  background-color: #0A2463;
  color: #ffffff;
}

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

.page-slot-games__hero-section .page-slot-games__container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

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

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

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary {
  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;
  text-align: center;
}

.page-slot-games__btn-primary {
  background-color: #E0B75D;
  color: #0A2463;
  border: 2px solid #E0B75D;
}

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

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

.page-slot-games__btn-secondary:hover {
  background-color: #E0B75D;
  color: #0A2463;
}

.page-slot-games__btn-tertiary {
  background-color: #0A2463;
  color: #E0B75D;
  border: 1px solid #E0B75D;
}

.page-slot-games__btn-tertiary:hover {
  background-color: #E0B75D;
  color: #0A2463;
}

/* Intro Section */
.page-slot-games__intro-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Light transparent background */
}

/* Game Categories Section */
.page-slot-games__game-categories-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
}

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

.page-slot-games__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-slot-games__game-card:hover {
  transform: translateY(-5px);
}

.page-slot-games__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  min-height: 200px; /* Ensure minimum size */
}

.page-slot-games__game-card-title {
  font-size: 1.5em;
  color: #E0B75D;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-slot-games__game-card-title a {
  color: #E0B75D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games__game-card-title a:hover {
  color: #ffffff;
}

.page-slot-games__game-card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px;
  flex-grow: 1;
}

/* Features Section */
.page-slot-games__features-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-slot-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-slot-games__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
  display: block; /* Important for responsive image */
  margin-left: auto; /* Center image */
  margin-right: auto; /* Center image */
}

.page-slot-games__feature-title {
  font-size: 1.8em;
  color: #E0B75D;
  margin-bottom: 10px;
}

.page-slot-games__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* How-To-Play Section */
.page-slot-games__how-to-play-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
}

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

.page-slot-games__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  font-size: 2em;
  font-weight: bold;
  color: #E0B75D;
  min-width: 40px;
  text-align: center;
}

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

.page-slot-games__step-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-slot-games__step-description a {
  color: #E0B75D;
  text-decoration: underline;
}

.page-slot-games__step-description a:hover {
  color: #ffffff;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-slot-games__promotion-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-bottom: 20px;
}

.page-slot-games__promotion-card:hover {
  transform: translateY(-5px);
}

.page-slot-games__promotion-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  min-height: 200px; /* Ensure minimum size */
}

.page-slot-games__promotion-title {
  font-size: 1.5em;
  color: #E0B75D;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-slot-games__promotion-title a {
  color: #E0B75D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games__promotion-title a:hover {
  color: #ffffff;
}

.page-slot-games__promotion-description {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Tips Section */
.page-slot-games__tips-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
}

.page-slot-games__tips-content {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-slot-games__tips-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #E0B75D;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-slot-games__tips-item strong {
  color: #E0B75D;
}

/* Video Section */
.page-slot-games__video-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
  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%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__video-caption {
  margin-top: 20px;
  font-style: italic;
  color: #cccccc;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
}

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

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

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

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

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

.page-slot-games__faq-answer p {
  margin-bottom: 1em;
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-slot-games__faq-answer a:hover {
  color: #ffffff;
}

/* CTA Section */
.page-slot-games__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0A2463;
  color: #ffffff;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 2.8em;
  }
  .page-slot-games__hero-description {
    font-size: 1.1em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-slot-games__hero-section {
    padding: 40px 15px;
  }
  .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,
  .page-slot-games__btn-tertiary {
    width: 100%;
    padding: 12px 20px;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-slot-games__game-grid,
  .page-slot-games__features-grid,
  .page-slot-games__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__feature-icon {
    min-width: 100px; /* Adjust for mobile, but ensure it's not too small */
    min-height: 100px;
    width: 100px; /* Explicitly set for smaller icons if needed, but min-width still applies */
    height: 100px;
  }
  .page-slot-games__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .page-slot-games__step-item::before {
    margin-bottom: 10px;
  }
  .page-slot-games__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-slot-games__faq-answer {
    padding: 0 15px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px;
  }
  .page-slot-games__video-section,
  .page-slot-games__intro-section,
  .page-slot-games__game-categories-section,
  .page-slot-games__features-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__tips-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    padding: 40px 0;
  }

  /* Mobile responsive image and video rules - CRITICAL */
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper,
  .page-slot-games__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !important;
    margin: 20px auto !important;
  }
  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }
  .page-slot-games__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .page-slot-games__tips-item {
    font-size: 1em;
    padding: 15px;
  }
}