/* style/slot-games.css */

/* Base styles for the slot games page */
.page-slot-games {
  font-family: Arial, sans-serif;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
  line-height: 1.6;
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  color: #E53935; /* Primary color for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  padding: 10px 0 60px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
  margin-bottom: 30px; /* Space between image and content */
}

.page-slot-games__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-slot-games__hero-content h1 {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Use clamp for H1 font size */
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-slot-games__hero-content p {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 600px; /* Limit max width for button group */
  margin: 0 auto;
}

.page-slot-games__cta-buttons--center {
  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;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button color */
  color: #ffffff;
  border: none;
}

.page-slot-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background-color: #ffffff;
  color: #E53935; /* Primary color for text */
  border: 2px solid #E53935;
}

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

.page-slot-games__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Info Section */
.page-slot-games__info-section {
  padding: 60px 0;
  background-color: #F5F7FA; /* Background */
  color: #333333; /* Text Main */
}

.page-slot-games__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Min size for content images */
  min-height: 200px;
  object-fit: cover;
}

/* Why Choose Section (Dark Background) */
.page-slot-games__why-choose-section {
  padding: 80px 0;
  background-color: #E53935; /* Primary color */
  color: #ffffff;
}

.page-slot-games__why-choose-section .page-slot-games__section-title {
  color: #ffffff;
}

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

.page-slot-games__feature-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for contrast */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-slot-games__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FF5A4F; /* Accent color for feature titles */
}

.page-slot-games__feature-card p {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
  padding: 80px 0;
  background-color: #F5F7FA; /* Background */
  color: #333333; /* Text Main */
}

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

.page-slot-games__game-card {
  background-color: #ffffff; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-slot-games__game-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for thumbnails */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Min size for card images */
  min-height: 200px;
}

.page-slot-games__game-card h3 {
  font-size: 1.3em;
  margin: 20px 15px 10px;
  color: #E53935;
}

.page-slot-games__game-description {
  font-size: 0.95em;
  margin: 0 15px 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-slot-games__game-card .page-slot-games__btn-primary {
  margin: 0 15px 20px;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
  padding: 80px 0;
  background-color: #F5F7FA; /* Background */
  color: #333333; /* Text Main */
}

.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__step-item {
  background-color: #ffffff; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-slot-games__step-item h3 {
  font-size: 1.4em;
  color: #E53935;
  margin-bottom: 10px;
}

.page-slot-games__step-item p {
  font-size: 1.05em;
  line-height: 1.7;
}

.page-slot-games__step-item a {
  color: #FF5A4F;
  text-decoration: underline;
}

.page-slot-games__step-item a:hover {
  color: #E53935;
}

/* Promotions Section (Dark Background) */
.page-slot-games__promotions-section {
  padding: 80px 0;
  background-color: #E53935; /* Primary color */
  color: #ffffff;
}

.page-slot-games__promotions-section .page-slot-games__section-title {
  color: #ffffff;
}

.page-slot-games__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-slot-games__promo-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

.page-slot-games__promo-item h3 {
  font-size: 1.5em;
  color: #FF5A4F;
  margin-bottom: 10px;
}

.page-slot-games__promo-item p {
  font-size: 1em;
  line-height: 1.7;
}

/* Tips Section */
.page-slot-games__tips-section {
  padding: 80px 0;
  background-color: #F5F7FA; /* Background */
  color: #333333; /* Text Main */
}

.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-slot-games__tip-item {
  background-color: #ffffff; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-slot-games__tip-item h3 {
  font-size: 1.4em;
  color: #E53935;
  margin-bottom: 10px;
}

.page-slot-games__tip-item p {
  font-size: 1.05em;
  line-height: 1.7;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: #F5F7FA; /* Background */
  color: #333333; /* Text Main */
}

.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  background-color: #ffffff; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-slot-games__faq-question {
  display: block;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #E53935;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #FF5A4F;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question::after {
  content: '−';
  transform: translateY(-50%) rotate(0deg);
}

.page-slot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #333333;
}

/* Bottom CTA Section */
.page-slot-games__cta-bottom-section {
  padding: 80px 0;
  background-color: #E53935; /* Primary color */
  color: #ffffff;
  text-align: center;
}

.page-slot-games__cta-bottom-section .page-slot-games__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-slot-games__cta-bottom-section p {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-content h1 {
    font-size: clamp(2.2em, 4.5vw, 3em);
  }
}

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

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

  .page-slot-games__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual top padding */
    padding-bottom: 40px;
  }

  .page-slot-games__hero-content h1 {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-slot-games__hero-content p {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 !important; /* Remove individual button margins */
  }

  .page-slot-games__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__info-section,
  .page-slot-games__why-choose-section,
  .page-slot-games__popular-games-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__tips-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-bottom-section {
    padding: 40px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Images responsive */
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size is maintained if possible */
    min-height: 200px !important;
  }
  .page-slot-games__hero-image {
    max-height: 400px !important;
  }

  /* Card image specific adjustments */
  .page-slot-games__game-thumbnail {
    height: 180px !important; /* Adjust height for mobile */
    min-height: 180px !important;
  }

  .page-slot-games__features-grid,
  .page-slot-games__game-grid,
  .page-slot-games__promo-list,
  .page-slot-games__tips-list {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-slot-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-slot-games__faq-question::after {
    right: 20px;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px 15px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__hero-content h1 {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-slot-games__hero-content p {
    font-size: 0.95em;
  }
}