/* style/slot-games.css */

/* Base styles for the page-slot-games */
.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 from 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: clamp(2em, 4vw, 2.8em); /* H1/H2 font size for responsiveness */
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.2;
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.1;
  color: #FFFFFF;
}

.page-slot-games__subtitle {
  font-size: clamp(1em, 2vw, 1.3em);
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Color Contrast Adjustments based on body background #1a1a1a (dark) */
.page-slot-games__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__text-block,
.page-slot-games__light-bg .page-slot-games__card-title,
.page-slot-games__light-bg .page-slot-games__card-text,
.page-slot-games__light-bg .page-slot-games__game-title,
.page-slot-games__light-bg .page-slot-games__game-description,
.page-slot-games__light-bg .page-slot-games__instruction-title,
.page-slot-games__light-bg .page-slot-games__instruction-text,
.page-slot-games__light-bg .page-slot-games__promotion-title,
.page-slot-games__light-bg .page-slot-games__promotion-text,
.page-slot-games__light-bg .page-slot-games__faq-qtext {
  color: #333333;
}

.page-slot-games__light-bg .page-slot-games__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-slot-games__light-bg .page-slot-games__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play,
.page-slot-games__faq-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

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

.page-slot-games__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

.page-slot-games__btn-play {
  background-color: #EA7C07; /* Login color for play buttons */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
  font-size: 0.9em;
  padding: 8px 15px;
}

.page-slot-games__btn-play:hover {
  background-color: #c76706;
  border-color: #c76706;
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-slot-games__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
  max-width: 90%;
  padding: 20px;
  box-sizing: border-box;
}

.page-slot-games__hero-section .page-slot-games__btn-primary {
  margin-top: 20px;
}

/* Introduction Section */
.page-slot-games__introduction-section,
.page-slot-games__advantages-section,
.page-slot-games__popular-games-section,
.page-slot-games__how-to-play-section,
.page-slot-games__bonuses-section,
.page-slot-games__faq-section,
.page-slot-games__cta-final-section {
  padding: 60px 0;
}

.page-slot-games__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  max-width: 800px;
}

/* Advantages 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 for dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-slot-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-slot-games__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-slot-games__card-text {
  font-size: 1em;
  flex-grow: 1;
}

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

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

.page-slot-games__game-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-slot-games__game-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-slot-games__game-description {
  font-size: 0.95em;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* How-to-Play Section */
.page-slot-games__instruction-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__instruction-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-slot-games__instruction-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFFFF;
}

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

.page-slot-games__instruction-item .page-slot-games__btn-primary,
.page-slot-games__instruction-item .page-slot-games__btn-secondary {
  margin-top: 15px;
  margin-right: 10px;
}

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

.page-slot-games__promotion-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-slot-games__promotion-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-slot-games__promotion-text {
  font-size: 1em;
  flex-grow: 1;
  margin-bottom: 15px;
}

.page-slot-games__promotion-card .page-slot-games__btn-primary,
.page-slot-games__promotion-card .page-slot-games__btn-secondary {
  margin-top: auto; /* Push buttons to bottom */
}

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

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

.page-slot-games__light-bg .page-slot-games__faq-item {
  background-color: #f8f8f8;
  color: #333333;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #FFFFFF;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

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

.page-slot-games__light-bg .page-slot-games__faq-question:hover {
  background-color: #e9e9e9;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #26A9E0;
}

.page-slot-games__faq-answer {
  padding: 0 20px 15px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-slot-games__faq-link {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: normal;
  padding: 0;
  border: none;
  background: none;
  display: inline;
}

.page-slot-games__faq-link:hover {
  color: #1e87c0;
}

/* Final CTA Section */
.page-slot-games__cta-final-section {
  text-align: center;
}

.page-slot-games__cta-final-section .page-slot-games__btn-large {
  margin-top: 30px;
}

/* Responsive Styles */

/* Images, Videos, Buttons Base Responsive */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-slot-games video,
.page-slot-games__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-slot-games__video-section,
.page-slot-games__video-container,
.page-slot-games__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-slot-games__cta-button,
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games a[class*="button"],
.page-slot-games a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.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 (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-slot-games__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-slot-games__hero-content {
    width: 95%;
    padding: 15px;
  }

  .page-slot-games__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-slot-games__subtitle {
    font-size: clamp(0.9em, 3vw, 1.1em);
  }

  .page-slot-games__section-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
  }

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__game-card,
  .page-slot-games__instruction-item,
  .page-slot-games__promotion-card,
  .page-slot-games__faq-item,
  .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__hero-image-wrapper {
    max-height: 400px;
  }

  .page-slot-games__card-image,
  .page-slot-games__game-image,
  .page-slot-games__promotion-image {
    height: 150px; /* Smaller height for mobile cards */
  }

  .page-slot-games__instruction-item .page-slot-games__btn-primary,
  .page-slot-games__instruction-item .page-slot-games__btn-secondary {
    display: block;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .page-slot-games__cta-button,
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-slot-games__hero-content .page-slot-games__btn-primary {
    width: auto !important;
    max-width: fit-content !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .page-slot-games__instruction-item .page-slot-games__btn-primary,
  .page-slot-games__instruction-item .page-slot-games__btn-secondary {
    padding-left: 15px;
    padding-right: 15px;
  }
}