.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-slot-games__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-slot-games__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height on desktop */
  object-fit: cover;
  display: block;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
}

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

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__card-button,
.page-slot-games__btn-large {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-slot-games__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

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

.page-slot-games__section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #017439;
}

.page-slot-games__dark-section .page-slot-games__section-title {
  color: #FFFFFF;
}

.page-slot-games__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #666666;
}

.page-slot-games__dark-section .page-slot-games__section-description {
  color: #f0f0f0;
}

.page-slot-games__text-block {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-slot-games__text-block p {
  margin-bottom: 15px;
}

.page-slot-games__text-block ul,
.page-slot-games__text-block ol {
  list-style-position: inside;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-slot-games__text-block li {
  margin-bottom: 8px;
}

.page-slot-games__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.page-slot-games__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-slot-games__dark-section .page-slot-games__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-slot-games__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-slot-games__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0 15px;
  color: #017439;
}

.page-slot-games__dark-section .page-slot-games__card-title {
  color: #FFFFFF;
}

.page-slot-games__card-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-slot-games__card-button {
  background-color: #017439;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 6px;
  margin-top: auto; /* Push button to bottom */
  margin-left: 15px;
  margin-right: 15px;
}

.page-slot-games__card-button:hover {
  background-color: #005f2c;
}

.page-slot-games__view-all-button-container {
  text-align: center;
  margin-top: 40px;
}

.page-slot-games__guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-slot-games__guide-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-slot-games__guide-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-slot-games__guide-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-slot-games__guide-item p {
  text-align: left;
  margin-bottom: 15px;
}

.page-slot-games__guide-item ol,
.page-slot-games__guide-item ul {
  text-align: left;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-slot-games__promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.page-slot-games__promo-card {
  text-align: left;
  padding-bottom: 20px;
}

.page-slot-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-slot-games__promo-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0 15px;
  color: #017439;
}

.page-slot-games__dark-section .page-slot-games__promo-title {
  color: #FFFFFF;
}

.page-slot-games__promo-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* FAQ Styles */
details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: #f5f5f5;
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__products-grid,
  .page-slot-games__guide-grid,
  .page-slot-games__promo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 849px) {
  .page-slot-games__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: 400px; /* Adjust max height for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }

  .page-slot-games__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-slot-games__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__card-button,
  .page-slot-games__btn-large {
    padding: 12px 20px !important;
    font-size: 1rem !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0;
    margin-right: 0;
  }

  .page-slot-games__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-slot-games__section-description {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  .page-slot-games__text-block {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-slot-games__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    margin: 20px auto;
  }

  .page-slot-games__products-grid,
  .page-slot-games__guide-grid,
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: hidden;
    padding: 0 10px;
  }

  .page-slot-games__card {
    padding-bottom: 20px;
  }

  .page-slot-games__card-image {
    height: 180px;
  }

  .page-slot-games__card-title {
    font-size: 1.2rem;
  }

  .page-slot-games__card-text {
    font-size: 0.9rem;
  }

  .page-slot-games__guide-item {
    padding: 20px;
  }

  .page-slot-games__guide-image {
    height: 160px;
  }

  .page-slot-games__guide-heading {
    font-size: 1.3rem;
  }

  .page-slot-games__promo-image {
    height: 180px;
  }

  .page-slot-games__promo-title {
    font-size: 1.2rem;
  }

  details.page-slot-games__faq-item summary.page-slot-games__faq-question { padding: 15px; }
  .page-slot-games__faq-qtext { font-size: 15px; }
  details.page-slot-games__faq-item .page-slot-games__faq-answer { padding: 0 15px 15px; }

  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__introduction-section,
  .page-slot-games__games-showcase,
  .page-slot-games__guide-section,
  .page-slot-games__promotions-section,
  .page-slot-games__security-section,
  .page-slot-games__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}