/* style/slot-games-popular.css */

/* Custom Colors */
:root {
  --page-slot-games-popular-bg: #08160F;
  --page-slot-games-popular-card-bg: #11271B;
  --page-slot-games-popular-text-main: #F2FFF6;
  --page-slot-games-popular-text-secondary: #A7D9B8;
  --page-slot-games-popular-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-slot-games-popular-border: #2E7A4E;
  --page-slot-games-popular-glow: #57E38D;
  --page-slot-games-popular-gold: #F2C14E;
  --page-slot-games-popular-divider: #1E3A2A;
  --page-slot-games-popular-deep-green: #0A4B2C;
}

.page-slot-games-popular {
  background-color: var(--page-slot-games-popular-bg);
  color: var(--page-slot-games-popular-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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: var(--page-slot-games-popular-bg);
  color: var(--page-slot-games-popular-text-main);
}

.page-slot-games-popular__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-slot-games-popular-text-main);
  position: relative;
  padding-bottom: 15px;
}

.page-slot-games-popular__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-slot-games-popular-glow);
  border-radius: 2px;
}

.page-slot-games-popular__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--page-slot-games-popular-text-secondary);
}

.page-slot-games-popular__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: var(--page-slot-games-popular-text-secondary);
}

/* Buttons */
.page-slot-games-popular__btn-primary,
.page-slot-games-popular__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;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games-popular__btn-primary {
  background: var(--page-slot-games-popular-btn-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games-popular__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-slot-games-popular__btn-secondary {
  background-color: transparent;
  color: var(--page-slot-games-popular-glow);
  border: 2px solid var(--page-slot-games-popular-glow);
}

.page-slot-games-popular__btn-secondary:hover {
  background-color: var(--page-slot-games-popular-glow);
  color: var(--page-slot-games-popular-bg);
  transform: translateY(-2px);
}

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

/* Hero Section */
.page-slot-games-popular__hero-section {
  position: relative;
  padding: 10px 0 80px 0; /* Small top padding, body handles header offset */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-slot-games-popular__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  margin-bottom: 40px;
}

.page-slot-games-popular__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-slot-games-popular__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-slot-games-popular__main-title {
  color: var(--page-slot-games-popular-gold);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
  /* No fixed font-size, rely on weight, line-height, spacing for hierarchy */
  font-size: clamp(2.2em, 5vw, 3.5em); /* Responsive font size */
}

/* Intro Section */
.page-slot-games-popular__intro-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-popular-card-bg);
}

/* Featured Slots Section */
.page-slot-games-popular__featured-slots {
  padding: 80px 0;
}

.page-slot-games-popular__slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-slot-games-popular__slot-card {
  background-color: var(--page-slot-games-popular-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--page-slot-games-popular-border);
}

.page-slot-games-popular__slot-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-slot-games-popular__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--page-slot-games-popular-text-main);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-slot-games-popular__card-description {
  color: var(--page-slot-games-popular-text-secondary);
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-slot-games-popular__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin: 0 auto;
}

/* Providers Section */
.page-slot-games-popular__providers-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-popular-card-bg);
}

.page-slot-games-popular__provider-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 50px;
  justify-items: center;
  align-items: center;
}

.page-slot-games-popular__provider-item {
  background-color: var(--page-slot-games-popular-deep-green);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-slot-games-popular-border);
}

.page-slot-games-popular__provider-logo {
  max-width: 100%;
  height: auto;
  display: block;
  filter: brightness(1.2); /* Allowed for logos to stand out on dark background */
  /* Minimal size is 200x200, so 300x150 is fine as width > 200 */
  min-width: 200px; 
  min-height: 100px; 
}

/* Strategy Section */
.page-slot-games-popular__strategy-section {
  padding: 80px 0;
}

.page-slot-games-popular__strategy-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-slot-games-popular__strategy-text {
  flex: 1;
}

.page-slot-games-popular__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-slot-games-popular__strategy-list li {
  background: var(--page-slot-games-popular-card-bg);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 10px;
  border-left: 5px solid var(--page-slot-games-popular-glow);
  color: var(--page-slot-games-popular-text-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games-popular__strategy-list li strong {
  color: var(--page-slot-games-popular-text-main);
}

.page-slot-games-popular__strategy-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-slot-games-popular__strategy-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-slot-games-popular__promotions-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-popular-card-bg);
}

.page-slot-games-popular__promotion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-slot-games-popular__promotion-card {
  background-color: var(--page-slot-games-popular-deep-green);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid var(--page-slot-games-popular-border);
}

.page-slot-games-popular__promotion-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

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

/* Support Section */
.page-slot-games-popular__support-section {
  padding: 80px 0;
}

/* FAQ Section */
.page-slot-games-popular__faq-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-popular-card-bg);
}

.page-slot-games-popular__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-slot-games-popular__faq-item {
  background-color: var(--page-slot-games-popular-deep-green);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--page-slot-games-popular-border);
}

.page-slot-games-popular__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--page-slot-games-popular-text-main);
  background-color: var(--page-slot-games-popular-deep-green);
  user-select: none;
  list-style: none;
}

.page-slot-games-popular__faq-question::-webkit-details-marker {
  display: none;
}

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

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

.page-slot-games-popular__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--page-slot-games-popular-text-secondary);
  font-size: 0.95em;
  line-height: 1.8;
}

/* Final CTA Section */
.page-slot-games-popular__final-cta {
  padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games-popular__strategy-content {
    flex-direction: column;
    text-align: center;
  }
  .page-slot-games-popular__strategy-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-slot-games-popular__container {
    padding: 0 15px !important;
  }

  .page-slot-games-popular__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-slot-games-popular__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-slot-games-popular__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 a[class*="button"],
  .page-slot-games-popular a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-slot-games-popular__slot-grid,
  .page-slot-games-popular__promotion-cards,
  .page-slot-games-popular__provider-logos {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games-popular img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Reset min-width for mobile */
    min-height: unset !important; /* Reset min-height for mobile */
  }

  .page-slot-games-popular__hero-image-wrapper,
  .page-slot-games-popular__strategy-image-wrapper,
  .page-slot-games-popular__provider-item,
  .page-slot-games-popular__slot-card,
  .page-slot-games-popular__promotion-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games-popular__hero-section,
  .page-slot-games-popular__intro-section,
  .page-slot-games-popular__featured-slots,
  .page-slot-games-popular__providers-section,
  .page-slot-games-popular__strategy-section,
  .page-slot-games-popular__promotions-section,
  .page-slot-games-popular__support-section,
  .page-slot-games-popular__faq-section,
  .page-slot-games-popular__final-cta {
    padding: 40px 0 !important;
  }

  .page-slot-games-popular__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

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

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

  /* Ensure content area images are not smaller than 200px (if not full width) */
  .page-slot-games-popular__slot-image,
  .page-slot-games-popular__promotion-image {
    height: 180px; /* Adjust height for mobile, still large enough */
  }

  .page-slot-games-popular__provider-logo {
    width: 180px; /* Adjust width for mobile, still large enough */
    height: 90px; /* Adjust height for mobile, still large enough */
    min-width: 180px;
    min-height: 90px;
  }

  /* Specific override for any img to ensure min size if not 100% width */
  .page-slot-games-popular img:not([class*="hero-image"]) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
  }
  .page-slot-games-popular__provider-logo {
    min-width: 180px; /* Allow smaller for logos if they are not the main content */
    min-height: 90px;
  }
  .page-slot-games-popular__provider-item {
    width: fit-content;
    margin: 0 auto;
  }

}

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

  .page-slot-games-popular__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }

  .page-slot-games-popular__hero-section {
    padding-bottom: 50px;
  }
}