/* 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: var(--black-color, #000000); /* Ensure body background is respected */
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-slot-games__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__dark-bg {
  background-color: var(--black-color, #000000);
  color: #ffffff;
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

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

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

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken background image for contrast */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: #ffffff;
}

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

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

.page-slot-games__cta-buttons {
  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;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-slot-games__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b8;
  border-color: #1e87b8;
}

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

/* About Slots Section */
.page-slot-games__about-slots-section {
  padding: 60px 0;
  color: #333333;
}

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

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

.page-slot-games__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-slot-games__feature-image {
  width: 100%;
  height: 200px; /* Consistent height for cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

/* Game Categories Section */
.page-slot-games__game-categories-section {
  padding: 60px 0;
}

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

.page-slot-games__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-slot-games__category-card .page-slot-games__card-title {
  color: #ffffff;
}

.page-slot-games__category-card .page-slot-games__card-text {
  color: #f0f0f0;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
  padding: 60px 0;
  color: #333333;
}

.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

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

.page-slot-games__list-item-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-slot-games__list-item p {
  color: #555555;
}

.page-slot-games__list-item a {
  color: #EA7C07; /* Login/Register color */
  text-decoration: underline;
  font-weight: bold;
}

.page-slot-games__list-item a:hover {
  color: #d16b06;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 60px 0;
}

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

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

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

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

.page-slot-games__faq-title {
  margin: 0;
  color: #ffffff;
}

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

.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: #f0f0f0;
}

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

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

.page-slot-games__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-slot-games__faq-answer a:hover {
  color: #1e87b8;
}

/* Contact CTA Section */
.page-slot-games__contact-cta-section {
  padding: 80px 0;
  text-align: center;
  color: #333333;
}

.page-slot-games__cta-content {
  max-width: 900px;
}

/* Global image styles */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__hero-description {
    font-size: 1.1em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__section-intro {
    font-size: 1em;
  }
}

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

  .page-slot-games__hero-section {
    padding: 60px 0;
    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__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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__about-slots-section,
  .page-slot-games__game-categories-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__faq-section,
  .page-slot-games__contact-cta-section {
    padding: 40px 0;
  }

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

  .page-slot-games__section-intro {
    font-size: 0.95em;
  }

  .page-slot-games__features-grid,
  .page-slot-games__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__feature-card,
  .page-slot-games__category-card,
  .page-slot-games__list-item,
  .page-slot-games__faq-item {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__feature-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Images in content area */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  .page-slot-games__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Ensure all containers containing images are responsive */
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@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;
  }
}