.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg-1); /* Inherit from shared.css */
}

.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: #FFFFFF;
  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-color: #017439;
  border-radius: 2px;
}

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

.page-slot-games__dark-section {
  background-color: var(--dark-bg-1);
  color: #ffffff;
  padding: 60px 0;
}

.page-slot-games__light-bg {
  background-color: #FFFFFF;
  color: #333333;
  padding: 60px 0;
}

.page-slot-games__light-bg .page-slot-games__section-title {
  color: #333333;
}

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #017439 0%, #004d27 100%);
  position: relative;
  overflow: hidden;
}

.page-slot-games__hero-content {
  flex: 1;
  padding-left: 5%;
  padding-right: 20px;
  z-index: 1;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Register and Login font color */
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-slot-games__hero-buttons {
  display: flex;
  gap: 20px;
}

.page-slot-games__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 5%;
  z-index: 1;
}

.page-slot-games__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-slot-games__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  transform: translateY(-3px);
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

.page-slot-games__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808; /* Register/Login color */
  transform: translateY(-3px);
}

/* Game Types Section */
.page-slot-games__game-types {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-slot-games__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff;
}

.page-slot-games__card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-slot-games__card-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-slot-games__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* How to Play Section */
.page-slot-games__instruction-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-slot-games__instruction-list li {
  background-color: #f9f9f9;
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  border-left: 5px solid #017439;
}

.page-slot-games__instruction-list li strong {
  color: #017439;
}

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

.page-slot-games__advantages-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__advantages-list li::before {
  content: '✔';
  color: #FFFF00;
  font-size: 1.5em;
  line-height: 1;
}

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

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

.page-slot-games__promo-card {
  background-color: #f9f9f9;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-slot-games__promo-card:hover {
  transform: translateY(-10px);
}

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

.page-slot-games__promo-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-slot-games__promo-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

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

.page-slot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  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: 20px 25px;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em;
}

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

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.02);
}

.page-slot-games__faq-answer p {
  padding-top: 15px;
  padding-bottom: 15px;
  margin: 0;
}

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

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

/* Final CTA Section */
.page-slot-games__cta-final {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-slot-games__cta-final .page-slot-games__hero-buttons {
  justify-content: center;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__hero-description {
    font-size: 1.1em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__card-title {
    font-size: 1.5em;
  }
  .page-slot-games__promo-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-slot-games__hero-section {
    flex-direction: column;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-slot-games__hero-content {
    padding: 0 15px 30px;
    order: 2;
  }
  .page-slot-games__hero-image-wrapper {
    padding: 0 15px 30px;
    order: 1;
  }
  .page-slot-games__hero-title {
    font-size: 2.2em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100%;
    max-width: 300px !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-slot-games__text-block {
    font-size: 0.95em;
  }
  .page-slot-games__card-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__advantages-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__card,
  .page-slot-games__promo-card,
  .page-slot-games__advantages-list li {
    padding: 20px;
  }
  .page-slot-games__card-image,
  .page-slot-games__promo-image {
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    display: block !important;
  }
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    display: block !important;
  }
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__game-types,
  .page-slot-games__how-to-play,
  .page-slot-games__advantages,
  .page-slot-games__promotions,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-slot-games__faq-question,
  .page-slot-games__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}