/* style/slot-games.css */

/* Base styles for the slot games page */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css, assuming dark */
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  overflow: hidden;
  background-color: #1a1a1a; /* Fallback dark background */
}

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

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

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

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

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

.page-slot-games__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Section Title */
.page-slot-games__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  font-weight: bold;
}

/* Text Block */
.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__highlight {
  color: #26A9E0;
  font-weight: bold;
}

/* Buttons */
.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;
  cursor: pointer;
  font-size: 1.1em;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
}

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

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

.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__btn-text-link {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
  display: block; /* Ensure it takes full width if needed */
  margin-top: 10px;
}

.page-slot-games__btn-text-link:hover {
  color: #1f8ac9;
}

/* Card styles */
.page-slot-games__card {
  background: 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);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover; /* Ensure images fill card space nicely */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

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

/* Sections */
.page-slot-games__introduction-section,
.page-slot-games__guide-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1); /* Ensure consistency with body background */
  color: #f0f0f0;
}

.page-slot-games__dark-section {
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
  padding: 60px 0;
}

.page-slot-games__dark-section .page-slot-games__section-title {
  color: #ffffff; /* White title on brand blue background */
}

.page-slot-games__dark-section .page-slot-games__text-block {
  color: #f0f0f0;
}

.page-slot-games__dark-section .page-slot-games__card {
  background: rgba(255, 255, 255, 0.2); /* Lighter card on brand blue */
  color: #ffffff;
}

.page-slot-games__dark-section .page-slot-games__card-title {
  color: #ffffff;
}

.page-slot-games__dark-section .page-slot-games__highlight {
  color: #ffffff;
}

/* Image content */
.page-slot-games__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Game Types Section */
.page-slot-games__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Guide Section */
.page-slot-games__guide-layout {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-slot-games__guide-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-slot-games__step-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #f0f0f0;
}

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

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

.page-slot-games__guide-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Strategy Section */
.page-slot-games__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__list-item {
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
  position: relative;
  padding-left: 40px;
}

.page-slot-games__list-item::before {
  content: '✓';
  color: #ffffff;
  font-weight: bold;
  position: absolute;
  left: 15px;
  top: 15px;
}

/* Promotions Section */
.page-slot-games__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Features Section */
.page-slot-games__features-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__features-list .page-slot-games__list-item {
  background: rgba(255, 255, 255, 0.2);
}

/* Call to Action Buttons Group */
.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap */
}

/* FAQ Section */
.page-slot-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-slot-games__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-title {
  font-size: 1.2em;
  color: #26A9E0;
  margin: 0;
  font-weight: bold;
}

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

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.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 to show content */
  padding: 15px 25px;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__guide-layout {
    flex-direction: column;
  }
  .page-slot-games__guide-image-wrapper {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .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;
  }
  .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-direction: column !important; /* Force vertical stacking for button groups */
    gap: 15px !important; /* Ensure spacing */
    overflow: hidden !important;
  }

  .page-slot-games__section-title {
    font-size: 1.8em;
    padding-top: 30px;
  }
  .page-slot-games__text-block {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-slot-games__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    padding: 0 15px;
    box-sizing: border-box !important;
  }

  /* Ensure all img elements are responsive and do not overflow */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Specific container adjustments for mobile */
  .page-slot-games__introduction-section .page-slot-games__container,
  .page-slot-games__game-types-section .page-slot-games__container,
  .page-slot-games__guide-section .page-slot-games__container,
  .page-slot-games__strategy-section .page-slot-games__container,
  .page-slot-games__promotions-section .page-slot-games__container,
  .page-slot-games__features-section .page-slot-games__container,
  .page-slot-games__faq-section .page-slot-games__container,
  .page-slot-games__cta-final-section .page-slot-games__container {
    padding: 0 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-slot-games__card {
    padding: 20px;
  }
  .page-slot-games__card-image {
    min-width: 200px !important; /* Enforce minimum size even on mobile */
    min-height: 200px !important; /* Enforce minimum size even on mobile */
  }
  .page-slot-games__card-title {
    font-size: 1.3em;
  }
  .page-slot-games__faq-question {
    padding: 15px 20px;
  }
  .page-slot-games__faq-title {
    font-size: 1.1em;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 1.8em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}

/* Ensure content area images are not too small as per rules */
/* Selectors that can select any img under .page-slot-games */
.page-slot-games__image-content,
.page-slot-games__card-image,
.page-slot-games img {
  min-width: 200px;
  min-height: 200px;
}

/* Override for mobile if needed, but still keep min-width 200px where applicable */
@media (max-width: 768px) {
  .page-slot-games__image-content,
  .page-slot-games__card-image,
  .page-slot-games img {
    min-width: 200px !important; /* Enforce minimum size even on mobile */
    min-height: 200px !important; /* Enforce minimum size even on mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}