/* style/slot-games.css */
.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 handled by shared.css */
}

.page-slot-games__section {
  padding: 60px 20px;
  text-align: center;
}

.page-slot-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Fixed header offset for hero section */
.page-slot-games__hero-section {
  padding-top: var(--header-offset, 120px);
}

.page-slot-games__dark-bg {
  background-color: #1a1a2e; /* Explicit for sections to ensure dark background */
  color: #ffffff;
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #017439; /* Brand green for titles on light background, but overridden for dark */
  font-weight: bold;
}

.page-slot-games__dark-bg .page-slot-games__section-title {
  color: #ffffff; /* White for titles on dark background */
}

.page-slot-games__sub-title {
  font-size: 1.8em;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #017439; /* Brand green for subtitles on light background */
}

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

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

.page-slot-games__text-link {
  color: #FFFF00; /* Yellow for links to stand out */
  text-decoration: underline;
}

.page-slot-games__text-link:hover {
  color: #017439;
  text-decoration: none;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

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

.page-slot-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

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

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

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

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

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

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

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

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

/* Grid Container for Cards */
.page-slot-games__grid-container {
  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); /* Light background for cards on dark sections */
  color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 450px; /* Ensure cards have consistent height */
}

.page-slot-games__light-bg .page-slot-games__card {
  background-color: #FFFFFF;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__card-image {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439; /* Brand green for card titles on light background */
}

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

.page-slot-games__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-slot-games__light-bg .page-slot-games__card-text {
  color: #333333;
}

/* Lists */
.page-slot-games__ordered-list,
.page-slot-games__unordered-list {
  text-align: left;
  max-width: 800px;
  margin: 30px auto;
  padding-left: 25px;
  color: #ffffff;
}

.page-slot-games__light-bg .page-slot-games__ordered-list,
.page-slot-games__light-bg .page-slot-games__unordered-list {
  color: #333333;
}

.page-slot-games__ordered-list li,
.page-slot-games__unordered-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
}

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

/* Full width image */
.page-slot-games__image-full-width {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin: 30px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Strategy section with image */
.page-slot-games__strategy-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__strategy-text {
  flex: 1;
}

.page-slot-games__strategy-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-slot-games__strategy-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.page-slot-games__video-section {
  padding: 60px 20px;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure video section is not hidden by header */
}

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

.page-slot-games__video-wrapper .page-slot-games__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: block;
  cursor: pointer;
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

/* FAQ Section */
.page-slot-games__faq-container {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-slot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light background for FAQ items on dark sections */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__light-bg .page-slot-games__faq-item {
  background-color: #f8f8f8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: #017439; /* Brand green for question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-slot-games__light-bg .page-slot-games__faq-question {
  color: #ffffff;
  background-color: #017439;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-question h3 {
  margin: 0;
  color: inherit;
}

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

.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-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-slot-games__light-bg .page-slot-games__faq-answer {
  color: #333333;
}

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

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

/* CTA Bottom Section */
.page-slot-games__cta-section {
  padding-bottom: 80px;
}

.page-slot-games__cta-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 30px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

  .page-slot-games__strategy-flex {
    flex-direction: column;
  }

  .page-slot-games__strategy-image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
  }

  .page-slot-games__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  /* Fixed header offset for mobile, handled by shared, but ensure sections are not hidden */
  .page-slot-games__hero-section,
  .page-slot-games__video-section {
    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__section-title {
    font-size: 1.8em;
  }

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

  .page-slot-games__text-block,
  .page-slot-games__ordered-list li,
  .page-slot-games__unordered-list li,
  .page-slot-games__card-text,
  .page-slot-games__faq-question h3 {
    font-size: 1em;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Image responsive rules */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__card-image {
    height: auto !important; /* Allow height to adjust naturally */
    min-height: 150px; /* Ensure minimum size */
  }

  /* Video responsive rules */
  .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-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__faq-question,
  .page-slot-games__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px !important;
  }

  .page-slot-games__content-area {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@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__sub-title {
    font-size: 1.3em;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-slot-games__card {
    min-height: auto;
  }
}