/* 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-bg-light: #ffffff;
  --page-slot-games-bg-dark: var(--black-color, #0d0d0d); /* Assuming shared.css defines --black-color as dark */
  --page-slot-games-login-color: #EA7C07;
}

.page-slot-games {
  color: var(--page-slot-games-text-light); /* Default to light text for dark body background */
  background-color: var(--page-slot-games-bg-dark);
}

.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  background-color: var(--page-slot-games-bg-dark);
  color: var(--page-slot-games-text-light);
  overflow: hidden;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.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;
  line-height: 1.5;
  color: var(--page-slot-games-secondary-color);
}

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

.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;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  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: #1e87b7;
  border-color: #1e87b7;
}

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

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

.page-slot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  display: block;
}

.page-slot-games__section {
  padding: 80px 20px;
  color: var(--page-slot-games-text-dark);
}

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

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

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

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

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

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

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

.page-slot-games__subtitle {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: inherit;
}

.page-slot-games__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: inherit;
}

.page-slot-games__list {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
  font-size: 1.1em;
  line-height: 1.7;
  color: inherit;
}

.page-slot-games__list-item {
  margin-bottom: 10px;
}

.page-slot-games__image-block {
  flex: 1;
  min-width: 400px; /* Ensure minimum size for content images */
}

.page-slot-games__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
}

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

.page-slot-games__card {
  background-color: rgba(255, 255, 255, 0.1); /* Light background for dark section */
  color: var(--page-slot-games-text-light);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px; /* Card minimum width */
  min-height: 200px; /* Card minimum height */
}

.page-slot-games__card-image {
  width: 100%;
  max-width: 400px; /* Limit image width within card */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size for card images */
  min-height: 200px;
}

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

.page-slot-games__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-slot-games-text-light);
}

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

.page-slot-games__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--page-slot-games-text-light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__step-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-slot-games-text-light);
}

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

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

.page-slot-games__faq-item {
  background-color: var(--page-slot-games-secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-slot-games-text-dark);
}

.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;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-title {
  margin: 0;
  color: var(--page-slot-games-text-dark);
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-slot-games-primary-color);
  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-dark);
}

.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__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
  line-height: 1.6;
  color: inherit;
}

/* Responsive Design */
@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: 2.2em;
  }

  .page-slot-games__subtitle {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .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;
    width: 100%;
    max-width: 300px; /* Limit button group width */
    margin: 0 auto;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-slot-games__section {
    padding: 50px 15px;
  }

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

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

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

  .page-slot-games__image-block {
    min-width: unset;
    width: 100%;
    box-sizing: border-box;
  }

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
  }
  
  .page-slot-games__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px; /* Enforce minimum size for card images */
    min-height: 200px;
  }

  .page-slot-games__container,
  .page-slot-games__card,
  .page-slot-games__step-item,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__card {
    padding: 20px;
  }

  .page-slot-games__step-item {
    padding: 25px;
  }

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

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

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

  /* Content area images CSS size lower bound check */
  .page-slot-games__content-area img,
  .page-slot-games__text-block img,
  .page-slot-games__image-block img,
  .page-slot-games__card img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}