.page-slot-games-popular {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Default light text for dark body background */
  background-color: #121212; /* Inherited from body, ensuring contrast */
}

.page-slot-games-popular__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-slot-games-popular__dark-bg {
  background-color: #0A2463;
  color: #ffffff;
}

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

.page-slot-games-popular__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Adjusted padding-top to account for header offset */
  text-align: center;
  overflow: hidden;
  background-image: linear-gradient(135deg, #0A2463 0%, #1a3a70 100%);
}

.page-slot-games-popular__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #E0B34C;
  line-height: 1.2;
}

.page-slot-games-popular__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-slot-games-popular__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

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

.page-slot-games-popular__btn-primary {
  background-color: #E0B34C;
  color: #0A2463;
  border: 2px solid #E0B34C;
}

.page-slot-games-popular__btn-primary:hover {
  background-color: #f0c560;
  border-color: #f0c560;
}

.page-slot-games-popular__btn-secondary {
  background-color: transparent;
  color: #E0B34C;
  border: 2px solid #E0B34C;
}

.page-slot-games-popular__btn-secondary:hover {
  background-color: #E0B34C;
  color: #0A2463;
}

.page-slot-games-popular__btn-tertiary {
  background-color: #0A2463;
  color: #E0B34C;
  border: 1px solid #E0B34C;
  padding: 10px 20px;
  font-size: 1em;
}

.page-slot-games-popular__btn-tertiary:hover {
  background-color: #E0B34C;
  color: #0A2463;
}

.page-slot-games-popular__hero-image-wrapper {
  margin-top: 40px;
}

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

.page-slot-games-popular__section-title {
  font-size: 2.5em;
  color: #E0B34C;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-slot-games-popular__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #E0B34C;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-slot-games-popular__intro-section,
.page-slot-games-popular__game-types-section,
.page-slot-games-popular__tips-section,
.page-slot-games-popular__responsible-gambling-section,
.page-slot-games-popular__cta-bottom-section {
  padding: 80px 0;
}

.page-slot-games-popular__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-slot-games-popular__why-choose-section,
.page-slot-games-popular__how-to-play-section,
.page-slot-games-popular__promotions-section,
.page-slot-games-popular__faq-section {
  padding: 80px 0;
}

.page-slot-games-popular__features-grid,
.page-slot-games-popular__game-types-grid,
.page-slot-games-popular__tips-grid,
.page-slot-games-popular__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games-popular__feature-item,
.page-slot-games-popular__game-type-card,
.page-slot-games-popular__tip-card,
.page-slot-games-popular__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-slot-games-popular__feature-item:hover,
.page-slot-games-popular__game-type-card:hover,
.page-slot-games-popular__tip-card:hover,
.page-slot-games-popular__promo-card:hover {
  transform: translateY(-10px);
}

.page-slot-games-popular__feature-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  object-fit: contain;
  max-width: 100%;
}

.page-slot-games-popular__feature-title,
.page-slot-games-popular__game-type-title,
.page-slot-games-popular__tip-title,
.page-slot-games-popular__promo-title {
  font-size: 1.5em;
  color: #E0B34C;
  margin-bottom: 15px;
}

.page-slot-games-popular__feature-description,
.page-slot-games-popular__game-type-description,
.page-slot-games-popular__tip-description,
.page-slot-games-popular__promo-description {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-slot-games-popular__game-type-image,
.page-slot-games-popular__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-slot-games-popular__game-type-card.page-slot-games-popular__light-bg {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games-popular__game-type-card.page-slot-games-popular__light-bg .page-slot-games-popular__game-type-title {
  color: #0A2463;
}

.page-slot-games-popular__game-type-card.page-slot-games-popular__light-bg .page-slot-games-popular__game-type-description {
  color: #555555;
}

.page-slot-games-popular__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-slot-games-popular__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-slot-games-popular__step-title {
  font-size: 1.3em;
  color: #E0B34C;
  margin-bottom: 10px;
}

.page-slot-games-popular__step-item p {
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-slot-games-popular__center-cta {
  text-align: center;
  margin-top: 50px;
}

.page-slot-games-popular__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games-popular__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-slot-games-popular__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #E0B34C;
  cursor: pointer;
  background-color: #0A2463;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games-popular__faq-question:hover {
  background-color: #1a3a70;
}

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

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

.page-slot-games-popular__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-slot-games-popular__faq-item.active .page-slot-games-popular__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px !important;
}

.page-slot-games-popular__faq-answer p {
  margin-bottom: 0;
}

.page-slot-games-popular__cta-bottom-section {
  text-align: center;
  padding: 80px 0 100px;
  background-image: linear-gradient(to top, #0A2463, #121212);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-slot-games-popular__hero-title {
    font-size: 3em;
  }

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

@media (max-width: 768px) {
  .page-slot-games-popular__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

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

  .page-slot-games-popular__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-slot-games-popular__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-slot-games-popular__btn-primary,
  .page-slot-games-popular__btn-secondary,
  .page-slot-games-popular__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  
  .page-slot-games-popular__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-slot-games-popular__intro-section,
  .page-slot-games-popular__why-choose-section,
  .page-slot-games-popular__game-types-section,
  .page-slot-games-popular__how-to-play-section,
  .page-slot-games-popular__tips-section,
  .page-slot-games-popular__promotions-section,
  .page-slot-games-popular__responsible-gambling-section,
  .page-slot-games-popular__faq-section,
  .page-slot-games-popular__cta-bottom-section {
    padding: 50px 0;
  }

  .page-slot-games-popular__paragraph {
    font-size: 0.95em;
  }

  .page-slot-games-popular__features-grid,
  .page-slot-games-popular__game-types-grid,
  .page-slot-games-popular__tips-grid,
  .page-slot-games-popular__promo-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-slot-games-popular__feature-item,
  .page-slot-games-popular__game-type-card,
  .page-slot-games-popular__tip-card,
  .page-slot-games-popular__promo-card {
    padding: 20px;
  }

  .page-slot-games-popular__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-slot-games-popular__feature-title,
  .page-slot-games-popular__game-type-title,
  .page-slot-games-popular__tip-title,
  .page-slot-games-popular__promo-title {
    font-size: 1.3em;
  }

  .page-slot-games-popular__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-slot-games-popular__faq-list {
    padding: 0 15px;
  }

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

  .page-slot-games-popular__faq-answer {
    padding: 0 15px;
  }

  .page-slot-games-popular__faq-item.active .page-slot-games-popular__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive and don't overflow */
  .page-slot-games-popular img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games-popular__hero-image-wrapper,
  .page-slot-games-popular__feature-item,
  .page-slot-games-popular__game-type-card,
  .page-slot-games-popular__promo-card,
  .page-slot-games-popular__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games-popular__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-slot-games-popular__hero-title {
    font-size: 1.8em;
  }

  .page-slot-games-popular__section-title {
    font-size: 1.5em;
  }

  .page-slot-games-popular__btn-primary,
  .page-slot-games-popular__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}