/* style/slot-games.css */

/* Base styles for the page */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  line-height: 1.6;
  background-color: #121212; /* Matches body background from shared.css */
}

/* General container for content */
.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-slot-games__hero-section,
.page-slot-games__introduction-section,
.page-slot-games__features-section,
.page-slot-games__game-types-section,
.page-slot-games__how-to-play-section,
.page-slot-games__promotions-section,
.page-slot-games__why-choose-us-section,
.page-slot-games__faq-section,
.page-slot-games__cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background colors based on body background */
.page-slot-games__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #262626;
  color: #f0f0f0;
}

/* Hero Section */
.page-slot-games__hero-section {
  padding-top: calc(80px + var(--header-offset, 120px)); /* Adjust for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.page-slot-games__hero-content {
  max-width: 800px;
  z-index: 1;
  position: relative;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

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

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

/* General Titles */
.page-slot-games__section-title {
  font-size: 2.8em;
  color: #26A9E0;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.page-slot-games__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #EA7C07;
  margin: 10px auto 0;
}

.page-slot-games__text-block {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* Buttons */
.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;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

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

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

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Feature Grid */
.page-slot-games__feature-grid,
.page-slot-games__game-type-grid,
.page-slot-games__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-slot-games__feature-card,
.page-slot-games__game-type-card,
.page-slot-games__promotion-card,
.page-slot-games__reason-card {
  background-color: #2c2c2c;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__feature-card:hover,
.page-slot-games__game-type-card:hover,
.page-slot-games__promotion-card:hover,
.page-slot-games__reason-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__feature-image,
.page-slot-games__game-type-image,
.page-slot-games__promotion-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__feature-card-title,
.page-slot-games__game-type-title,
.page-slot-games__promotion-card-title,
.page-slot-games__reason-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-slot-games__feature-card-description,
.page-slot-games__game-type-description,
.page-slot-games__promotion-card-description,
.page-slot-games__reason-description {
  font-size: 1em;
  color: #cccccc;
}

/* How To Play List */
.page-slot-games__instruction-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 50px auto;
  text-align: left;
}

.page-slot-games__list-item {
  background-color: #2c2c2c;
  border-left: 5px solid #26A9E0;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__list-title {
  font-size: 1.5em;
  color: #EA7C07;
  margin-bottom: 10px;
}

.page-slot-games__list-item p {
  color: #f0f0f0;
  font-size: 1em;
}

.page-slot-games__list-item a {
  color: #26A9E0;
  text-decoration: none;
}

.page-slot-games__list-item a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-slot-games__faq-list {
  max-width: 800px;
  margin: 50px auto;
  text-align: left;
}

.page-slot-games__faq-item {
  background-color: #2c2c2c;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

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

.page-slot-games__faq-question h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.2em;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(0deg);
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
  font-size: 1em;
  text-align: left;
}

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

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

/* Links within text */
.page-slot-games a {
  color: #26A9E0;
  text-decoration: none;
}

.page-slot-games a:hover {
  text-decoration: underline;
}

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

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

  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-slot-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    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 {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-slot-games__feature-grid,
  .page-slot-games__game-type-grid,
  .page-slot-games__promotion-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-slot-games__feature-card,
  .page-slot-games__game-type-card,
  .page-slot-games__promotion-card,
  .page-slot-games__reason-card {
    padding: 25px;
  }

  .page-slot-games__feature-image,
  .page-slot-games__game-type-image,
  .page-slot-games__promotion-image,
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__introduction-section,
  .page-slot-games__features-section,
  .page-slot-games__game-types-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__why-choose-us-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    padding: 60px 0;
  }

  .page-slot-games__container,
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__text-block,
  .page-slot-games__instruction-list,
  .page-slot-games__faq-list {
    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: 20px;
    padding-right: 20px;
  }

  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 1.8em;
  }

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

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