/* style/slot-games.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --card-bg-light: #ffffff;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
}

/* Body background is assumed to be dark from shared.css (var(--dark-bg-1)), so default text is light */
.page-slot-games {
  color: var(--text-light); /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-slot-games__section-title, .page-slot-games__main-title {
  color: var(--text-light); /* Default for dark background sections */
}

.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background: var(--primary-color);
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  order: 1; /* Image first */
}

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

.page-slot-games__hero-content {
  order: 2; /* Content second */
  max-width: 900px;
  margin-top: 20px;
  padding: 0 15px;
}

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

.page-slot-games__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

.page-slot-games__btn-secondary {
  background-color: transparent;
  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__small-btn {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-slot-games__section {
  padding: 60px 0;
}

.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;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

.page-slot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-slot-games__light-bg {
  background-color: var(--background-color); /* White background */
  color: var(--text-dark); /* Dark text for light background */
}

.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__feature-title,
.page-slot-games__light-bg .page-slot-games__step-title,
.page-slot-games__light-bg .page-slot-games__promo-title,
.page-slot-games__light-bg .page-slot-games__strategy-title {
  color: var(--text-dark);
}

.page-slot-games__dark-bg {
  background-color: var(--primary-color); /* Primary color background */
  color: var(--text-light); /* Light text for primary background */
}

.page-slot-games__dark-bg .page-slot-games__card {
  background-color: var(--card-bg-dark);
  color: var(--text-light);
}

.page-slot-games__dark-bg .page-slot-games__section-title,
.page-slot-games__dark-bg .page-slot-games__type-title,
.page-slot-games__dark-bg .page-slot-games__strategy-title,
.page-slot-games__dark-bg .page-slot-games__faq-question {
  color: var(--text-light);
}

.page-slot-games__card {
  background-color: var(--card-bg-light);
  color: var(--text-dark);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px; /* Minimum card height */
}

.page-slot-games__feature-item, .page-slot-games__type-item, .page-slot-games__step-item, .page-slot-games__promo-item, .page-slot-games__strategy-item {
  min-height: 200px;
}

.page-slot-games__feature-item p, .page-slot-games__type-item p, .page-slot-games__step-item p, .page-slot-games__promo-item p, .page-slot-games__strategy-item p {
    color: inherit;
}

.page-slot-games__features-grid,
.page-slot-games__types-grid,
.page-slot-games__steps-grid,
.page-slot-games__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-slot-games__feature-image,
.page-slot-games__type-image,
.page-slot-games__guide-image,
.page-slot-games__promo-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum image width */
  min-height: 200px; /* Minimum image height */
}

.page-slot-games__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-slot-games__faq-item {
  background-color: var(--card-bg-dark);
  color: var(--text-light);
  border-radius: 8px;
  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: 18px 25px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  color: var(--text-light);
}

.page-slot-games__faq-item summary {
    list-style: none;
}

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

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

.page-slot-games__faq-answer {
  padding: 0 25px 18px;
  font-size: 1em;
  color: var(--text-light);
}

.page-slot-games__faq-answer p {
    color: inherit;
}

/* 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 {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games__hero-section {
    padding: 10px 15px 40px;
  }

  .page-slot-games__hero-content {
      padding: 0 10px;
  }

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

  .page-slot-games__section {
    padding: 40px 0;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    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;
    margin-top: 10px; /* Add spacing between stacked buttons */
  }

  .page-slot-games__hero-content > .page-slot-games__btn-primary {
      margin-top: 20px;
  }

  .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-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-slot-games__hero-image-wrapper,
  .page-slot-games__feature-image,
  .page-slot-games__type-image,
  .page-slot-games__guide-image,
  .page-slot-games__promo-image,
  .page-slot-games__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__features-grid,
  .page-slot-games__types-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

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

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