/* style/slot-games.css */

/* Base styles for the slot games page */
.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: #ffffff; /* Default for dark sections */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-slot-games__text-block a {
  color: #FFFF00; /* Highlight links in text */
  text-decoration: underline;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  background-color: #017439; /* Brand color for hero background */
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Yellow for prominence */
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-slot-games__btn-small {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  background-color: #017439;
  color: #ffffff;
  border: 1px solid #017439;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-small:hover {
  background-color: #005a2e;
}

/* Section Backgrounds and Text Colors for Contrast */
.page-slot-games__dark-bg {
  background-color: #1a1a1a; /* Shared body background */
  color: #ffffff;
  padding: 60px 0;
}

.page-slot-games__light-bg {
  background-color: #FFFFFF; /* Custom light background */
  color: #333333;
  padding: 60px 0;
}

.page-slot-games__light-bg .page-slot-games__section-title {
  color: #017439; /* Brand green for titles on light background */
}

.page-slot-games__light-bg .page-slot-games__text-block a {
  color: #017439; /* Brand green for links on light background */
}

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

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

.page-slot-games__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-slot-games__card-title {
  font-size: 1.5em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-slot-games__card-text {
  font-size: 1em;
  line-height: 1.6;
}

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

.page-slot-games__game-card {
  background-color: #f8f8f8;
  color: #333333;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-slot-games__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-slot-games__game-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-slot-games__game-description {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Guide Section */
.page-slot-games__guide-list {
  list-style: none;
  counter-reset: guide-counter;
  padding: 0;
  margin-top: 30px;
}

.page-slot-games__guide-list li {
  position: relative;
  padding: 20px 0 20px 70px;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 5px solid #017439;
  font-size: 1.1em;
}

.page-slot-games__guide-list li::before {
  content: counter(guide-counter);
  counter-increment: guide-counter;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #017439;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-slot-games__guide-list li strong {
  color: #FFFF00;
}

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

.page-slot-games__tips-list li {
  background-color: #f8f8f8;
  color: #333333;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 5px solid #017439;
  font-size: 1.05em;
}

.page-slot-games__tips-list li strong {
  color: #017439;
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
}

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

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

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

.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); /* Change + to X or - */
}

.page-slot-games__faq-answer {
  background-color: #ffffff;
  color: #333333;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

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

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

/* Conclusion Section */
.page-slot-games__conclusion-section {
  text-align: center;
}

.page-slot-games__conclusion-section .page-slot-games__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2em;
}

/* Global Image/Video/Button Responsiveness (Desktop base, mobile override) */
.page-slot-games img,
.page-slot-games video {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-slot-games__video-section,
.page-slot-games__video-container,
.page-slot-games__video-wrapper,
.page-slot-games__section,
.page-slot-games__card,
.page-slot-games__container,
.page-slot-games__cta-buttons,
.page-slot-games__button-group,
.page-slot-games__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .page-slot-games {
    font-size: 15px;
  }

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

  .page-slot-games__hero-section {
    padding: 80px 15px;
    min-height: 400px;
  }

  .page-slot-games__hero-title {
    font-size: 2.2em;
  }

  .page-slot-games__hero-description {
    font-size: 1.1em;
  }

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

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__grid,
  .page-slot-games__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__card,
  .page-slot-games__game-card {
    padding: 25px 15px;
  }

  .page-slot-games__image-full-width,
  .page-slot-games__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .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__guide-list li {
    padding: 15px 15px 15px 60px;
    font-size: 1em;
  }

  .page-slot-games__guide-list li::before {
    left: 15px;
    width: 35px;
    height: 35px;
    font-size: 1em;
  }

  .page-slot-games__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure all content area images are at least 200px wide */
.page-slot-games img {
    min-width: 200px;
    min-height: 200px;
}

/* Contrast fixes for specific elements if needed */
.page-slot-games__dark-bg .page-slot-games__text-block {
    color: #f0f0f0; /* Slightly off-white for readability on dark */
}

.page-slot-games__light-bg .page-slot-games__text-block {
    color: #333333; /* Dark gray for readability on light */
}

.page-slot-games__light-bg .page-slot-games__card {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-slot-games__light-bg .page-slot-games__card-title {
    color: #017439;
}

.page-slot-games__light-bg .page-slot-games__btn-small {
    background-color: #017439;
    color: #ffffff;
}