/* style/slot-games.css */

:root {
  --page-slot-games-primary-color: #26A9E0;
  --page-slot-games-secondary-color: #FFFFFF;
  --page-slot-games-text-dark: #333333;
  --page-slot-games-text-light: #FFFFFF;
  --page-slot-games-background-light: #FFFFFF;
  --page-slot-games-background-dark: #26A9E0;
  --page-slot-games-login-color: #EA7C07;
}

.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-slot-games-text-dark); /* Default text color for light backgrounds */
  background-color: var(--page-slot-games-background-light);
}

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

.page-slot-games__light-bg {
  background-color: var(--page-slot-games-background-light);
  color: var(--page-slot-games-text-dark);
}

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

.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.5);
  z-index: 2;
}

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

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-slot-games-secondary-color);
}

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

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary,
.page-slot-games a[class*="button"],
.page-slot-games a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background-color: var(--page-slot-games-primary-color);
  color: var(--page-slot-games-secondary-color);
  border: 2px solid var(--page-slot-games-primary-color);
}

.page-slot-games__btn-primary:hover {
  background-color: darken(var(--page-slot-games-primary-color), 10%);
  border-color: darken(var(--page-slot-games-primary-color), 10%);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: var(--page-slot-games-secondary-color);
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__btn-tertiary {
  background-color: var(--page-slot-games-login-color);
  color: var(--page-slot-games-secondary-color);
  border: 2px solid var(--page-slot-games-login-color);
}

.page-slot-games__btn-tertiary:hover {
  background-color: darken(var(--page-slot-games-login-color), 10%);
  border-color: darken(var(--page-slot-games-login-color), 10%);
}

.page-slot-games__btn-center {
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 250px;
  margin-top: 40px;
}

.page-slot-games__btn-large {
  padding: 18px 40px;
  font-size: 1.1em;
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-slot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
}

.page-slot-games__intro-section,
.page-slot-games__why-choose-us,
.page-slot-games__popular-games,
.page-slot-games__how-to-play,
.page-slot-games__strategies,
.page-slot-games__promotions,
.page-slot-games__faq-section,
.page-slot-games__conclusion-cta {
  padding: 80px 0;
}

.page-slot-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-slot-games__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-slot-games__text-block {
  flex: 1;
}

.page-slot-games__image-block {
  flex: 1;
  text-align: center;
}

.page-slot-games__image-full {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.page-slot-games__image-centered {
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__image-margin-top {
  margin-top: 50px;
}

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

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

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

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

.page-slot-games__game-card {
  background-color: var(--page-slot-games-secondary-color);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: var(--page-slot-games-text-dark);
}

.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;
  margin-bottom: 10px;
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
}

.page-slot-games__steps-list li {
  margin-bottom: 25px;
  padding-left: 0;
  position: relative;
}

.page-slot-games__steps-list li h3 {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: var(--page-slot-games-secondary-color);
}

.page-slot-games__steps-list li p {
  padding-left: 0;
}

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

.page-slot-games__strategy-card {
  background-color: var(--page-slot-games-secondary-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: var(--page-slot-games-text-dark);
}

.page-slot-games__strategy-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__video-section {
  position: relative;
  width: 100%;
  padding: 60px 0;
  padding-top: var(--header-offset, 120px);
  text-align: center;
}

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

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

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

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

.page-slot-games__promotion-card {
  background-color: var(--page-slot-games-secondary-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: var(--page-slot-games-text-dark);
}

.page-slot-games__promotion-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.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: var(--page-slot-games-text-light);
}

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

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

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

  .page-slot-games__content-wrapper {
    flex-direction: column;
  }

  .page-slot-games__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-slot-games__text-block, .page-slot-games__image-block {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games__hero-section {
    height: 70vh;
  }

  .page-slot-games__hero-title {
    font-size: 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,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__hero-cta-buttons,
  .page-slot-games__video-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden !important;
  }

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

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

  .page-slot-games__intro-section,
  .page-slot-games__why-choose-us,
  .page-slot-games__popular-games,
  .page-slot-games__how-to-play,
  .page-slot-games__strategies,
  .page-slot-games__promotions,
  .page-slot-games__faq-section,
  .page-slot-games__conclusion-cta {
    padding: 50px 0;
  }

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

  .page-slot-games__image-full {
    max-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;
  }

  .page-slot-games__video,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__video-wrapper {
    padding-bottom: 56.25% !important;
    height: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .page-slot-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-slot-games__faq-answer {
    padding: 10px 20px;
  }
}

/* Ensure no image filters are used */
.page-slot-games img {
  filter: none;
}

/* Content area images must be at least 200px */
.page-slot-games__intro-section img,
.page-slot-games__why-choose-us img,
.page-slot-games__popular-games img,
.page-slot-games__how-to-play img,
.page-slot-games__strategies img,
.page-slot-games__promotions img,
.page-slot-games__faq-section img,
.page-slot-games__conclusion-cta img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific rule to ensure content area images are not scaled down below 200px by CSS */
.page-slot-games__content-area img,
.page-slot-games__text-block img,
.page-slot-games__image-block img,
.page-slot-games__game-card img,
.page-slot-games__strategy-card img,
.page-slot-games__promotion-card img {
  /* For desktop, if width/height are explicitly set, they should be respected. */
  /* Otherwise, max-width: 100% will prevent overflow, and min-width/min-height will enforce minimum size. */
  max-width: 100%; /* Prevents overflow */
  height: auto; /* Maintains aspect ratio */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

@media (max-width: 768px) {
  .page-slot-games__content-area img,
  .page-slot-games__text-block img,
  .page-slot-games__image-block img,
  .page-slot-games__game-card img,
  .page-slot-games__strategy-card img,
  .page-slot-games__promotion-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow mobile to scale down but respect container */
    min-height: unset !important;
  }
}