/* style/slot-games.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-login-btn-color: #C30808;
  --register-login-text-color: #FFFF00;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --light-bg: #f8f8f8;
  --dark-bg-section: #017439;
}

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

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Apply header offset here */
}

.page-slot-games__hero-section.page-slot-games__dark-bg {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-slot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.2; /* Subtle overlay for text readability */
}

.page-slot-games__hero-section .page-slot-games__container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-slot-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-slot-games__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

/* General Section Styling */
.page-slot-games__intro-section,
.page-slot-games__why-choose-section,
.page-slot-games__game-types-section,
.page-slot-games__guide-section,
.page-slot-games__strategy-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section,
.page-slot-games__cta-final-section {
  padding: 80px 0;
}

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

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

.page-slot-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 60px;
  color: inherit;
}

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

.page-slot-games__highlight-text {
  color: var(--register-login-text-color); /* Using yellow for highlight on dark backgrounds */
  font-weight: bold;
}

.page-slot-games__text-link {
  color: var(--register-login-text-color);
  text-decoration: underline;
}

.page-slot-games__text-link:hover {
  color: #FFFF00;
}

/* 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__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-slot-games__feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}

.page-slot-games__feature-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-slot-games__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--text-light);
}

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

/* Game Types List */
.page-slot-games__list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
  text-align: center;
}

.page-slot-games__list-item:nth-child(even) {
  flex-direction: column-reverse; /* Alternate image/text order */
}

.page-slot-games__list-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-slot-games__list-item p {
  max-width: 800px;
  margin-bottom: 20px;
}

.page-slot-games__game-type-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-top: 20px;
}

/* Steps List */
.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  margin-top: 40px;
}

.page-slot-games__step-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 40px;
}

.page-slot-games__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--register-login-btn-color);
  color: var(--register-login-text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
}

.page-slot-games__step-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-slot-games__step-item p {
  color: var(--text-light);
}

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

.page-slot-games__tip-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  color: var(--text-dark);
}

.page-slot-games__tip-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Promotions 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__promo-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-slot-games__promo-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}

.page-slot-games__promo-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__promo-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--text-light);
}

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

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

/* FAQ Section */
.page-slot-games__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background: var(--secondary-color);
  color: var(--primary-color);
  transition: background 0.3s ease;
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 25px 25px 25px;
}

.page-slot-games__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: inherit;
}

/* Final CTA Section */
.page-slot-games__cta-final-section {
  text-align: center;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-slot-games__cta-content {
  max-width: 800px;
}

.page-slot-games__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-slot-games__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--text-light);
}

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

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

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

  .page-slot-games__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    min-height: 500px;
  }

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

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

  .page-slot-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}