/* style/slot-games.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --accent-login: #EA7C07;
  --background-white: #FFFFFF;
  --black: #000000;
}

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

.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;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: var(--primary-color); /* Fallback for image loading */
  color: var(--text-light);
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for hero image */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image, but text is below */
  padding: 40px;
  background-color: var(--background-white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

.page-slot-games__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 15px;
}

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

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

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  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: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-slot-games__btn-primary:hover {
  background-color: #1e87b6; /* Darken primary color */
  border-color: #1e87b6;
}

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

.page-slot-games__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-slot-games__btn-large {
  padding: 18px 35px;
  font-size: 1.1em;
}

.page-slot-games__btn-huge {
  padding: 20px 40px;
  font-size: 1.2em;
}

/* Sections */
.page-slot-games__intro-section,
.page-slot-games__how-to-play,
.page-slot-games__security-payments,
.page-slot-games__cta-final {
  padding: 80px 0;
  background-color: var(--background-white);
}

.page-slot-games__games-showcase,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-slot-games__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from section background */
}

.page-slot-games__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-slot-games__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: inherit;
}

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

.page-slot-games__game-card,
.page-slot-games__promo-card {
  background-color: var(--background-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-dark);
}

.page-slot-games__game-image,
.page-slot-games__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-slot-games__game-title,
.page-slot-games__promo-title {
  font-size: 1.4em;
  font-weight: 600;
  margin: 20px 15px 10px;
  color: var(--primary-color);
}

.page-slot-games__game-title a,
.page-slot-games__promo-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-slot-games__game-title a:hover,
.page-slot-games__promo-title a:hover {
  text-decoration: underline;
}

.page-slot-games__game-desc,
.page-slot-games__promo-desc {
  font-size: 0.95em;
  margin: 0 15px 20px;
}

.page-slot-games__game-btn,
.page-slot-games__promo-btn {
  display: inline-block;
  background-color: var(--accent-login);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.page-slot-games__game-btn:hover,
.page-slot-games__promo-btn:hover {
  background-color: #c06300; /* Darken accent-login color */
}

/* How to Play */
.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-slot-games__steps-list li {
  margin-bottom: 30px;
  position: relative;
  padding-left: 60px;
}

.page-slot-games__steps-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: 700;
}

.page-slot-games__step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.page-slot-games__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Security and Payments */
.page-slot-games__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-slot-games__security-content .page-slot-games__text-block {
  flex: 1;
  min-width: 300px;
}

.page-slot-games__image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-slot-games__security-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__payment-methods {
  margin-top: 40px;
}

.page-slot-games__payment-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

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

.page-slot-games__faq-item {
  background-color: var(--background-white);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: var(--text-dark);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  list-style: none; /* Remove default marker for summary */
}

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

.page-slot-games__faq-question:hover {
  background-color: #f0f0f0;
}

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

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

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  content: '−';
}

.page-slot-games__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--text-dark);
  border-top: 1px solid #eee;
}

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

.page-slot-games__faq-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 15px;
}

.page-slot-games__faq-btn:hover {
  background-color: #1e87b6; /* Darken primary color */
}

/* Final CTA */
.page-slot-games__cta-final-content {
  text-align: center;
  max-width: 800px;
}

/* Color Contrast Classes */
.page-slot-games__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-slot-games__light-bg {
  background-color: var(--background-white);
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    margin-top: -50px;
    padding: 30px;
  }

  .page-slot-games__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  .page-slot-games__section-title {
    font-size: clamp(1.6em, 4vw, 2.4em);
  }

  .page-slot-games__security-content {
    flex-direction: column;
    text-align: center;
  }
}

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

  .page-slot-games__hero-section {
    padding-bottom: 30px;
  }

  .page-slot-games__hero-content {
    margin-top: 0;
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
  }

  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__intro-section,
  .page-slot-games__games-showcase,
  .page-slot-games__how-to-play,
  .page-slot-games__promotions-section,
  .page-slot-games__security-payments,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final {
    padding: 40px 0;
  }

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

  .page-slot-games__hero-image,
  .page-slot-games__game-image,
  .page-slot-games__promo-image,
  .page-slot-games__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__hero-image-wrapper,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__image-wrapper,
  .page-slot-games__cta-buttons,
  .page-slot-games__cta-center,
  .page-slot-games__cta-final-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-slot-games__game-grid,
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-slot-games__steps-list li {
    padding-left: 50px;
  }

  .page-slot-games__steps-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
  }

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

  .page-slot-games__faq-answer {
    padding: 15px;
  }
}