/* style/slot-games.css */
:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-slot-games {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  overflow: hidden;
  text-align: center;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-slot-games__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over image for visual flow */
  position: relative;
  z-index: 1;
  background-color: rgba(8, 22, 15, 0.8); /* Semi-transparent background for text */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-slot-games__main-title {
  color: var(--gold-color);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 100%;
  font-size: clamp(2em, 4vw, 3.5em);
}

.page-slot-games__description {
  font-size: 1.1em;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  width: auto;
}

.page-slot-games__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--glow-color-rgb), 0.4);
}

.page-slot-games__btn-secondary {
  background: none;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-slot-games__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--page-bg-color);
  transform: translateY(-2px);
}

/* General Section Styles */
.page-slot-games__intro-section,
.page-slot-games__game-types-section,
.page-slot-games__providers-section,
.page-slot-games__how-to-play-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__dark-section {
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}

.page-slot-games__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-main-color);
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
}

.page-slot-games__feature-title,
.page-slot-games__game-name,
.page-slot-games__step-title,
.page-slot-games__promo-title {
  color: var(--gold-color);
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__feature-item p,
.page-slot-games__game-item p,
.page-slot-games__step-item p {
  color: var(--text-secondary-color);
  font-size: 0.95em;
}

.page-slot-games__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Game Types List */
.page-slot-games__game-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__game-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Provider Logos */
.page-slot-games__provider-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__provider-logo {
  max-width: 180px;
  height: auto;
  filter: grayscale(80%) brightness(120%);
  transition: filter 0.3s ease;
  min-width: 200px; /* Ensure min size */
  min-height: 200px;
  object-fit: contain;
}

.page-slot-games__provider-logo:hover {
  filter: grayscale(0%) brightness(100%);
}

/* How To Play Steps */
.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-slot-games__step-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-slot-games__step-item:before {
  content: counter(step-counter);
  counter-increment: step-counter;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: var(--btn-gradient);
  color: #ffffff;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 15px;
}

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

.page-slot-games__promo-card {
  text-align: center;
  padding: 0; /* Remove padding from card itself to let image fill */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-slot-games__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  min-width: 200px;
  min-height: 200px;
}

.page-slot-games__promo-card .page-slot-games__promo-title {
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 0 20px;
  color: var(--gold-color);
}

.page-slot-games__promo-card p {
  color: var(--text-secondary-color);
  font-size: 0.9em;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 20px;
}

.page-slot-games__promo-card .page-slot-games__btn-secondary {
  margin: 0 auto 20px auto;
  width: calc(100% - 40px);
  max-width: 200px;
}

.page-slot-games__btn-full-width {
  width: auto;
  max-width: 300px;
  margin: 50px auto 0 auto;
  padding: 18px 35px;
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--gold-color);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-slot-games__faq-question:hover {
  background-color: rgba(var(--border-color-rgb), 0.2);
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-slot-games__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--text-secondary-color);
  font-size: 0.95em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

@media (max-width: 768px) {
  .page-slot-games__hero-content {
    margin-top: -50px;
    padding: 20px;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

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

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__intro-section,
  .page-slot-games__game-types-section,
  .page-slot-games__providers-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__faq-section {
    padding: 40px 0;
  }

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

  .page-slot-games__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-slot-games__features-grid,
  .page-slot-games__game-list,
  .page-slot-games__steps-list,
  .page-slot-games__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__provider-logos {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .page-slot-games__provider-logo {
    max-width: 100% !important;
    min-width: 200px !important;
    height: auto !important;
  }

  .page-slot-games__content-image,
  .page-slot-games__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__hero-content,
  .page-slot-games__features-grid,
  .page-slot-games__game-list,
  .page-slot-games__provider-logos,
  .page-slot-games__steps-list,
  .page-slot-games__promotions-grid,
  .page-slot-games__promo-card,
  .page-slot-games__faq-list,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-slot-games__btn-full-width {
    width: calc(100% - 30px);
    max-width: none;
  }

  /* Adjust hero content margin for smaller screens */
  .page-slot-games__hero-content {
    margin-top: -30px;
  }
}

/* Ensure color contrast on dark backgrounds */
.page-slot-games h1, .page-slot-games h2, .page-slot-games h3, .page-slot-games h4, .page-slot-games h5, .page-slot-games h6 {
  color: var(--gold-color);
}

.page-slot-games p, .page-slot-games li {
  color: var(--text-secondary-color);
}

.page-slot-games__dark-section p, .page-slot-games__dark-section li {
  color: var(--text-secondary-color);
}

.page-slot-games__card p {
  color: var(--text-secondary-color);
}

/* Specific adjustment for hero text on semi-transparent background */
.page-slot-games__hero-content p {
  color: var(--text-main-color);
}