/* style/slot-games-popular-slots.css */
.page-slot-games-popular-slots {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, ensuring consistency */
}

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

/* Hero Section */
.page-slot-games-popular-slots__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
  box-sizing: border-box;
}

.page-slot-games-popular-slots__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-slot-games-popular-slots__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.page-slot-games-popular-slots__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
}

.page-slot-games-popular-slots__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-slot-games-popular-slots__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* Sections */
.page-slot-games-popular-slots__introduction-section,
.page-slot-games-popular-slots__guide-section,
.page-slot-games-popular-slots__promotions-section,
.page-slot-games-popular-slots__cta-final {
  padding: 60px 0;
  text-align: center;
}

.page-slot-games-popular-slots__games-showcase,
.page-slot-games-popular-slots__benefits-section,
.page-slot-games-popular-slots__faq-section {
  padding: 60px 0;
  text-align: center;
  background-color: #ffffff; /* Specific background for light sections */
  color: #333333; /* Dark text for light background */
}

.page-slot-games-popular-slots__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

.page-slot-games-popular-slots__text-dark {
  color: #333333; /* Explicit dark text for light backgrounds */
}

.page-slot-games-popular-slots__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: inherit; /* Inherit from section for contrast */
}

.page-slot-games-popular-slots__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit; /* Inherit from section for contrast */
}

.page-slot-games-popular-slots__text-block a {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-slot-games-popular-slots__light-bg .page-slot-games-popular-slots__text-block a {
  color: #017439; /* Green for links on light background */
}

/* Buttons */
.page-slot-games-popular-slots__btn-primary,
.page-slot-games-popular-slots__btn-secondary,
.page-slot-games-popular-slots__card-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games-popular-slots__btn-primary {
  background-color: #017439; /* Primary brand color */
  color: #000000; /* Black text for contrast on #017439 */
  border-color: #017439;
}

.page-slot-games-popular-slots__btn-primary:hover {
  background-color: #005f2c;
  color: #ffffff;
}

.page-slot-games-popular-slots__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Primary brand color for text */
  border-color: #017439;
}

.page-slot-games-popular-slots__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2c;
}

/* Specific Login/Register buttons */
.page-slot-games-popular-slots__hero-buttons a[href*="redirect"] {
  background-color: #121212; /* Using body background for contrast with yellow text */
  color: #FFFF00; /* Specified custom color for register/login font */
  border-color: #FFFF00;
}

.page-slot-games-popular-slots__hero-buttons a[href*="redirect"]:hover {
  background-color: #000000;
  border-color: #FFFF00;
}

/* Game Grid */
.page-slot-games-popular-slots__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games-popular-slots__game-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  text-align: left;
  color: #333333; /* Dark text for light card background */
}

.page-slot-games-popular-slots__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-slot-games-popular-slots__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-slot-games-popular-slots__card-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
  color: #017439; /* Brand green for card titles */
}

.page-slot-games-popular-slots__card-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games-popular-slots__card-description a {
  color: #017439;
  text-decoration: underline;
}

.page-slot-games-popular-slots__card-button {
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
  text-align: center;
  padding: 10px 20px;
  font-size: 1em;
  margin-top: auto; /* Push button to bottom */
}

.page-slot-games-popular-slots__card-button:hover {
  background-color: #005f2c;
}

/* Guide Section */
.page-slot-games-popular-slots__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games-popular-slots__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-slot-games-popular-slots__guide-title {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for guide titles on dark background */
}

.page-slot-games-popular-slots__guide-title a {
  color: #FFFF00;
  text-decoration: none;
}

.page-slot-games-popular-slots__guide-item p {
  font-size: 0.95em;
}

/* Benefits List */
.page-slot-games-popular-slots__benefits-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-slot-games-popular-slots__benefits-list li {
  background-color: rgba(0, 0, 0, 0.05);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 1.1em;
  color: #333333;
}

.page-slot-games-popular-slots__benefits-list li strong {
  color: #017439;
  margin-right: 10px;
}

.page-slot-games-popular-slots__benefits-list li a {
  color: #017439;
  text-decoration: underline;
}

/* Promotions List */
.page-slot-games-popular-slots__promo-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
  color: #ffffff;
}

.page-slot-games-popular-slots__promo-list li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 1.1em;
}

.page-slot-games-popular-slots__promo-list li strong {
  color: #FFFF00;
  margin-right: 10px;
}

.page-slot-games-popular-slots__promo-list li a {
  color: #FFFF00;
  text-decoration: underline;
}

/* FAQ Section */
.page-slot-games-popular-slots__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games-popular-slots__faq-item {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-slot-games-popular-slots__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #017439; /* Brand green for FAQ questions */
  border-bottom: 1px solid #e0e0e0;
}

.page-slot-games-popular-slots__faq-question:hover {
  background-color: #e9e9e9;
}

.page-slot-games-popular-slots__faq-qtext {
  flex-grow: 1;
}

.page-slot-games-popular-slots__faq-qtext a {
  color: #017439;
  text-decoration: underline;
}

.page-slot-games-popular-slots__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-slot-games-popular-slots__faq-item[open] .page-slot-games-popular-slots__faq-toggle {
  content: '−';
}

.page-slot-games-popular-slots__faq-answer {
  padding: 20px;
  background-color: #ffffff;
  font-size: 1em;
  color: #333333;
  border-top: 1px solid #eee;
}

.page-slot-games-popular-slots__faq-answer p {
  margin: 0;
}

.page-slot-games-popular-slots__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

/* CTA Final */
.page-slot-games-popular-slots__cta-final .page-slot-games-popular-slots__section-title,
.page-slot-games-popular-slots__cta-final .page-slot-games-popular-slots__text-block {
  color: #ffffff;
}

.page-slot-games-popular-slots__cta-final .page-slot-games-popular-slots__text-block a {
  color: #FFFF00;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-slot-games-popular-slots__hero-title {
    font-size: 2.8em;
  }
  .page-slot-games-popular-slots__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-slot-games-popular-slots__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-slot-games-popular-slots__hero-title {
    font-size: 2.2em;
  }
  .page-slot-games-popular-slots__hero-description {
    font-size: 1em;
  }
  .page-slot-games-popular-slots__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games-popular-slots__btn-primary,
  .page-slot-games-popular-slots__btn-secondary,
  .page-slot-games-popular-slots__card-button,
  .page-slot-games-popular-slots__hero-buttons a[href*="redirect"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 auto; /* Center buttons */
  }
  .page-slot-games-popular-slots__game-grid,
  .page-slot-games-popular-slots__guide-steps {
    grid-template-columns: 1fr;
  }
  .page-slot-games-popular-slots__benefits-list li,
  .page-slot-games-popular-slots__promo-list li {
    font-size: 0.95em;
    padding: 12px 15px;
  }
  .page-slot-games-popular-slots__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-slot-games-popular-slots__faq-answer {
    font-size: 0.9em;
    padding: 15px;
  }
  .page-slot-games-popular-slots__container {
    padding: 15px;
  }
  .page-slot-games-popular-slots img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games-popular-slots__section,
  .page-slot-games-popular-slots__card,
  .page-slot-games-popular-slots__container,
  .page-slot-games-popular-slots__game-card,
  .page-slot-games-popular-slots__guide-item,
  .page-slot-games-popular-slots__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-slot-games-popular-slots__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-slot-games-popular-slots__hero-title {
    font-size: 1.8em;
  }
  .page-slot-games-popular-slots__section-title {
    font-size: 1.8em;
  }
  .page-slot-games-popular-slots__hero-section {
    height: 400px;
  }
}