/* style/slot-games.css */

/* Custom Colors */
:root {
  --page-slot-games-primary-color: #11A84E;
  --page-slot-games-secondary-color: #22C768;
  --page-slot-games-card-bg: #11271B;
  --page-slot-games-background: #08160F;
  --page-slot-games-text-main: #F2FFF6;
  --page-slot-games-text-secondary: #A7D9B8;
  --page-slot-games-border-color: #2E7A4E;
  --page-slot-games-glow-color: #57E38D;
  --page-slot-games-gold-color: #F2C14E;
  --page-slot-games-divider-color: #1E3A2A;
  --page-slot-games-deep-green: #0A4B2C;
  --page-slot-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  background-color: var(--page-slot-games-background);
  color: var(--page-slot-games-text-main); /* Light text on dark body background */
  line-height: 1.6;
}

.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: var(--page-slot-games-text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-slot-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-slot-games-primary-color);
  border-radius: 2px;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--page-slot-games-text-secondary);
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: var(--page-slot-games-deep-green);
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

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

.page-slot-games__hero-content {
  position: absolute;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-title {
  font-size: 3.2em;
  color: var(--page-slot-games-gold-color);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  color: var(--page-slot-games-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background: var(--page-slot-games-button-gradient);
  color: var(--page-slot-games-text-main);
  border: none;
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-slot-games-glow-color);
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--page-slot-games-primary-color);
  border: 2px solid var(--page-slot-games-primary-color);
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--page-slot-games-primary-color);
  color: var(--page-slot-games-text-main);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-tertiary {
  background-color: var(--page-slot-games-deep-green);
  color: var(--page-slot-games-text-main);
  border: 1px solid var(--page-slot-games-border-color);
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-slot-games__btn-tertiary:hover {
  background-color: var(--page-slot-games-primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-slot-games__introduction-section,
.page-slot-games__game-types-section,
.page-slot-games__features-section,
.page-slot-games__how-to-play-section,
.page-slot-games__promotions-section,
.page-slot-games__responsible-gaming-section,
.page-slot-games__why-choose-us-section,
.page-slot-games__faq-section,
.page-slot-games__cta-section {
  padding: 60px 0;
  background-color: var(--page-slot-games-background);
}

.page-slot-games__game-types-section,
.page-slot-games__promotions-section {
  background-color: var(--page-slot-games-card-bg);
}

/* Card Styles */
.page-slot-games__card {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-slot-games-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 10px var(--page-slot-games-glow-color);
}

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

.page-slot-games__game-card-title,
.page-slot-games__feature-card-title,
.page-slot-games__promotion-card-title {
  font-size: 1.5em;
  color: var(--page-slot-games-gold-color);
  margin-bottom: 10px;
}

.page-slot-games__game-card-description,
.page-slot-games__feature-card-description,
.page-slot-games__promotion-card-description {
  font-size: 1em;
  color: var(--page-slot-games-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* How-to-play List */
.page-slot-games__how-to-play-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-slot-games__how-to-play-list li {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border-color);
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: var(--page-slot-games-text-main);
}

.page-slot-games__how-to-play-step-title {
  font-size: 1.4em;
  color: var(--page-slot-games-gold-color);
  margin-bottom: 10px;
}

.page-slot-games__how-to-play-list p {
  color: var(--page-slot-games-text-secondary);
  font-size: 1em;
}

/* Responsible Gaming List */
.page-slot-games__responsible-gaming-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-slot-games__responsible-gaming-list li {
  background-color: var(--page-slot-games-deep-green);
  border: 1px solid var(--page-slot-games-border-color);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-slot-games__responsible-gaming-item-title {
  font-size: 1.3em;
  color: var(--page-slot-games-text-main);
  margin-bottom: 10px;
}

.page-slot-games__responsible-gaming-list p {
  color: var(--page-slot-games-text-secondary);
}

/* Why Choose Us List */
.page-slot-games__why-choose-us-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-slot-games__why-choose-us-list li {
  background-color: var(--page-slot-games-deep-green);
  border: 1px solid var(--page-slot-games-border-color);
  border-left: 5px solid var(--page-slot-games-primary-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-slot-games__why-choose-us-item-title {
  font-size: 1.4em;
  color: var(--page-slot-games-gold-color);
  margin-bottom: 10px;
}

.page-slot-games__why-choose-us-list p {
  color: var(--page-slot-games-text-secondary);
}

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

.page-slot-games__faq-item {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-divider-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-slot-games-text-main);
  background-color: var(--page-slot-games-deep-green);
  list-style: none; /* Hide default marker */
}

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

.page-slot-games__faq-qtext {
  flex-grow: 1;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--page-slot-games-gold-color);
}

.page-slot-games__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.1em;
  color: var(--page-slot-games-text-secondary);
  border-top: 1px solid var(--page-slot-games-divider-color);
  background-color: var(--page-slot-games-card-bg);
}

/* CTA Section */
.page-slot-games__cta-section {
  text-align: center;
  background-color: var(--page-slot-games-deep-green);
  padding: 80px 0;
}

.page-slot-games__cta-section .page-slot-games__section-title {
  color: var(--page-slot-games-gold-color);
}

.page-slot-games__cta-section .page-slot-games__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  color: var(--page-slot-games-text-main);
}

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

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

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

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

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

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

  .page-slot-games__hero-section {
    min-height: 450px;
    padding: 10px 0;
  }

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

  .page-slot-games__hero-title {
    font-size: 2.2em;
    margin-bottom: 10px;
  }

  .page-slot-games__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-slot-games__hero-cta-buttons,
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-tertiary,
  .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__game-cards-grid,
  .page-slot-games__features-grid,
  .page-slot-games__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-slot-games__text-block {
    font-size: 1em;
  }

  .page-slot-games__card {
    padding: 20px;
  }

  .page-slot-games__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__game-card-title,
  .page-slot-games__feature-card-title,
  .page-slot-games__promotion-card-title {
    font-size: 1.3em;
  }

  .page-slot-games__how-to-play-list li,
  .page-slot-games__responsible-gaming-list li,
  .page-slot-games__why-choose-us-list li {
    padding: 15px;
  }

  .page-slot-games__how-to-play-step-title,
  .page-slot-games__responsible-gaming-item-title,
  .page-slot-games__why-choose-us-item-title {
    font-size: 1.2em;
  }

  .page-slot-games__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-slot-games__faq-answer {
    padding: 10px 20px 15px;
    font-size: 1em;
  }

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

  /* Image responsive rules for all images within .page-slot-games */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images/content must have correct box-sizing and overflow */
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__game-card,
  .page-slot-games__feature-card,
  .page-slot-games__promotion-card,
  .page-slot-games__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__hero-image {
    filter: brightness(0.6) !important; /* Slightly darker on mobile for better text contrast */
  }
}

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}