/* style/slot-games.css */

/* Base styles for the page content, ensuring contrast with assumed dark body background */
.page-slot-games {
  background-color: var(--background-color, #08160F); /* Fallback if shared var not loaded */
  color: var(--text-main, #F2FFF6); /* Main text color for light contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Ensure all content sections have appropriate padding and max-width */
.page-slot-games__section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
}

.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added for mobile safety */
  box-sizing: border-box; /* Added for mobile safety */
}

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure visibility */
  padding: 10px 0 60px 0; /* Small top padding, larger bottom for content */
  overflow: hidden; /* Prevent content overflow */
  box-sizing: border-box;
}

.page-slot-games__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  order: 1; /* Image first */
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-slot-games__hero-content {
  order: 2; /* Content second */
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-slot-games__main-title {
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  line-height: 1.2;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
}

.page-slot-games__description {
  font-size: 1.2em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__large-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  text-align: center;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background: none;
  color: var(--main-color, #11A84E);
  border: 2px solid var(--main-color, #11A84E);
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--main-color, #11A84E);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-slot-games__large-btn {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Card Layouts */
.page-slot-games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__card {
  background-color: var(--card-bg, #11271B); /* Card background */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #2E7A4E); /* Card border */
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-slot-games__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

.page-slot-games__card-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

/* Dark background section */
.page-slot-games__dark-section {
  background-color: var(--deep-green, #0A4B2C); /* Deep Green background */
  color: #ffffff; /* Ensure white text on dark background */
}

.page-slot-games__dark-section .page-slot-games__section-title,
.page-slot-games__dark-section .page-slot-games__text-block {
  color: #ffffff;
}

/* Images */
.page-slot-games__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 40px auto;
  object-fit: cover;
  min-height: 200px; /* Min size for content images */
}

.page-slot-games__image-bottom {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-top: 40px;
  object-fit: cover;
  min-height: 200px; /* Min size for content images */
}

/* Ordered/Unordered Lists */
.page-slot-games__ordered-list,
.page-slot-games__unordered-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__ordered-list li,
.page-slot-games__unordered-list li {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-slot-games__list-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
}

.page-slot-games__list-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
}

.page-slot-games__list-button {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Content Grid for game types */
.page-slot-games__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__content-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border-color, #2E7A4E);
}

/* Provider Logos */
.page-slot-games__provider-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__provider-item {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  padding: 15px 25px;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1em;
  min-width: 150px; /* Ensure sufficient size for text */
  text-align: center;
  box-sizing: border-box;
}

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

.page-slot-games__promo-grid .page-slot-games__card {
  background-color: #11271B; /* Custom lighter card background for this section */
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-slot-games__promo-grid .page-slot-games__card-title {
  color: var(--gold-color, #F2C14E); /* Gold text for promo titles */
}

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

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

.page-slot-games__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  background-color: var(--card-bg, #11271B);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-slot-games__faq-question::-webkit-details-marker { /* Hide default marker */
  display: none;
}

.page-slot-games__faq-question:hover {
  background-color: rgba(var(--main-color-rgb, 17, 168, 78), 0.2); /* Slight hover effect */
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--gold-color, #F2C14E);
  margin-left: 15px;
}

.page-slot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.6;
}

.page-slot-games__faq-answer p {
  margin-bottom: 10px;
}

.page-slot-games__faq-button {
  margin-top: 15px;
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Conclusion Section */
.page-slot-games__conclusion-section {
  padding: 80px 20px;
  background-color: var(--deep-green, #0A4B2C);
}

.page-slot-games__conclusion-section .page-slot-games__section-title,
.page-slot-games__conclusion-section .page-slot-games__text-block {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__section-title {
    font-size: 2em;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-slot-games__description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-slot-games__section {
    padding: 40px 15px;
  }

  .page-slot-games__hero-section {
    min-height: 450px;
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
  }

  .page-slot-games__hero-image-wrapper {
    margin-bottom: 30px;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
  }

  .page-slot-games__description {
    font-size: 1em;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__large-btn,
  .page-slot-games a[class*="button"],
  .page-slot-games 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: 12px 15px !important;
    font-size: 1em !important;
  }

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

  .page-slot-games__section-title {
    font-size: 1.8em;
  }

  .page-slot-games__sub-title {
    font-size: 1.4em;
  }

  .page-slot-games__text-block {
    font-size: 0.95em;
  }

  .page-slot-games__ordered-list li,
  .page-slot-games__unordered-list li,
  .page-slot-games__content-item {
    padding: 20px;
  }

  .page-slot-games__list-title {
    font-size: 1.3em;
  }

  .page-slot-games__list-text {
    font-size: 0.9em;
  }

  .page-slot-games__provider-item {
    min-width: unset;
    width: calc(50% - 15px);
    padding: 12px 10px;
    font-size: 0.9em;
  }

  /* Mobile image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__container,
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__content-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__faq-list,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Specific for hero image wrapper, remove extra padding */
  .page-slot-games__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-slot-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

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

  .page-slot-games__main-title {
    font-size: clamp(1.4em, 7vw, 2.2em);
  }

  .page-slot-games__hero-section {
    min-height: 350px;
  }

  .page-slot-games__hero-image {
    max-height: 300px;
  }

  .page-slot-games__card,
  .page-slot-games__ordered-list li,
  .page-slot-games__unordered-list li,
  .page-slot-games__content-item {
    padding: 15px;
  }

  .page-slot-games__provider-item {
    width: 100%;
    max-width: 250px;
  }

  .page-slot-games__cta-buttons {
    gap: 10px;
  }
}