/* style/slot-games.css */

/* Root variables for colors */
:root {
  --page-slot-games-primary-color: #11A84E;
  --page-slot-games-secondary-color: #22C768;
  --page-slot-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-slot-games-card-bg: #11271B;
  --page-slot-games-background: #08160F;
  --page-slot-games-text-main: #F2FFF6;
  --page-slot-games-text-secondary: #A7D9B8;
  --page-slot-games-border: #2E7A4E;
  --page-slot-games-glow: #57E38D;
  --page-slot-games-gold: #F2C14E;
  --page-slot-games-divider: #1E3A2A;
  --page-slot-games-deep-green: #0A4B2C;
}

/* Base styles for the page */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-slot-games-text-main); /* Default text color for dark background */
  background-color: var(--page-slot-games-background); /* Overall page background */
}

/* Sections */
.page-slot-games__section {
  padding: 60px 20px;
  text-align: center;
}

.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Dark background sections (e.g., hero, game types, promotions) */
.page-slot-games__dark-bg {
  background-color: var(--page-slot-games-background);
  color: var(--page-slot-games-text-main);
}

/* Light background sections (e.g., introduction, guide, final CTA) */
.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Specific text colors for light background sections */
.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__subtitle,
.page-slot-games__light-bg .page-slot-games__text-block,
.page-slot-games__light-bg .page-slot-games__feature-title,
.page-slot-games__light-bg .page-slot-games__feature-description,
.page-slot-games__light-bg .page-slot-games__step-title,
.page-slot-games__light-bg .page-slot-games__step-description,
.page-slot-games__light-bg .page-slot-games__feature-list-title,
.page-slot-games__light-bg .page-slot-games__feature-list-description,
.page-slot-games__light-bg .page-slot-games__faq-qtext,
.page-slot-games__light-bg .page-slot-games__faq-answer p {
  color: #333333;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 600px;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding for content */
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and text content */
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 1920px; /* Ensure image doesn't stretch too wide */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  color: var(--page-slot-games-text-main);
}

.page-slot-games__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-slot-games-gold); /* Gold color for main title */
  letter-spacing: 1px;
}

.page-slot-games__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-slot-games-text-secondary);
}

.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 {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-slot-games__btn-primary {
  background: var(--page-slot-games-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: var(--page-slot-games-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-slot-games__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Section Titles */
.page-slot-games__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 30px;
  line-height: 1.3;
  color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-slot-games__subtitle {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-slot-games__text-block {
  font-size: 1.05rem;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

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

.page-slot-games__card {
  background-color: var(--page-slot-games-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-slot-games-text-main);
  border: 1px solid var(--page-slot-games-border);
}

.page-slot-games__light-bg .page-slot-games__card {
  background-color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

.page-slot-games__feature-icon,
.page-slot-games__game-image,
.page-slot-games__promo-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__feature-title,
.page-slot-games__game-title,
.page-slot-games__promo-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: inherit;
}

.page-slot-games__feature-description,
.page-slot-games__game-description,
.page-slot-games__promo-description {
  font-size: 1rem;
  color: var(--page-slot-games-text-secondary);
}

.page-slot-games__light-bg .page-slot-games__feature-description,
.page-slot-games__light-bg .page-slot-games__game-description,
.page-slot-games__light-bg .page-slot-games__promo-description {
  color: #555555;
}

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

.page-slot-games__step-card {
  padding: 30px;
  text-align: left;
}

.page-slot-games__step-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-slot-games-gold);
}

.page-slot-games__light-bg .page-slot-games__step-title {
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__step-description {
  font-size: 1rem;
  color: var(--page-slot-games-text-secondary);
  margin-bottom: 20px;
}

.page-slot-games__light-bg .page-slot-games__step-description {
  color: #555555;
}

/* Feature List */
.page-slot-games__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__feature-list-item {
  background-color: var(--page-slot-games-card-bg);
  border-radius: 12px;
  padding: 25px 30px;
  margin-bottom: 20px;
  border: 1px solid var(--page-slot-games-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__light-bg .page-slot-games__feature-list-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-slot-games__feature-list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-slot-games__feature-list-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-slot-games-gold);
}

.page-slot-games__light-bg .page-slot-games__feature-list-title {
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__feature-list-description {
  font-size: 1rem;
  color: var(--page-slot-games-text-secondary);
}

.page-slot-games__light-bg .page-slot-games__feature-list-description {
  color: #555555;
}

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

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

.page-slot-games__light-bg .page-slot-games__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-slot-games-text-main);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-slot-games__light-bg .page-slot-games__faq-question {
  color: #333333;
}

.page-slot-games__faq-question:hover {
  background-color: var(--page-slot-games-deep-green);
}

.page-slot-games__light-bg .page-slot-games__faq-question:hover {
  background-color: #f9f9f9;
}

.page-slot-games__faq-item[open] > .page-slot-games__faq-question {
  background-color: var(--page-slot-games-deep-green);
}

.page-slot-games__light-bg .page-slot-games__faq-item[open] > .page-slot-games__faq-question {
  background-color: #f9f9f9;
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
}

.page-slot-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-slot-games-gold);
}

.page-slot-games__light-bg .page-slot-games__faq-toggle {
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  color: var(--page-slot-games-gold);
}

.page-slot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--page-slot-games-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
  max-height: 2000px; /* Sufficiently large to show content */
  transition: max-height 0.5s ease-in;
}

.page-slot-games__light-bg .page-slot-games__faq-answer {
  color: #555555;
}

/* For details/summary, hide default marker */
.page-slot-games__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-slot-games__faq-item summary {
  list-style: none;
}

/* Final CTA */
.page-slot-games__cta-final {
  padding-bottom: 80px;
}

/* Global image responsiveness (applies to all images in .page-slot-games) */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Enforce minimum size for content images */
  min-width: 200px;
  min-height: 200px;
}

/* Content area image CSS size lower bound */
.page-slot-games__features-grid img,
.page-slot-games__game-types-grid img,
.page-slot-games__promo-grid img {
  width: 100%; /* Ensures it fills card width */
  height: auto; /* Maintains aspect ratio */
  min-width: 200px; /* Minimum display size */
  min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-slot-games__description {
    font-size: 1.1rem;
  }
  .page-slot-games__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-slot-games__card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding: 10px 15px 40px;
    min-height: auto;
  }
  .page-slot-games__hero-image-wrapper {
    margin-bottom: 30px;
  }
  .page-slot-games__hero-content {
    padding: 0 15px;
  }
  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-slot-games__description {
    font-size: 1rem;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-slot-games__section {
    padding: 40px 15px;
  }
  .page-slot-games__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-slot-games__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  .page-slot-games__subtitle {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }
  .page-slot-games__text-block {
    font-size: 0.95rem;
  }
  .page-slot-games__features-grid,
  .page-slot-games__game-types-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-slot-games__card {
    padding: 20px;
  }
  .page-slot-games__feature-title,
  .page-slot-games__game-title,
  .page-slot-games__promo-title {
    font-size: 1.15rem;
  }
  .page-slot-games__feature-description,
  .page-slot-games__game-description,
  .page-slot-games__promo-description,
  .page-slot-games__step-description {
    font-size: 0.9rem;
  }
  .page-slot-games__feature-list-item {
    padding: 20px 25px;
  }
  .page-slot-games__feature-list-title {
    font-size: 1.1rem;
  }
  .page-slot-games__feature-list-description {
    font-size: 0.9rem;
  }
  .page-slot-games__faq-question {
    padding: 18px 20px;
    font-size: 1rem;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px 18px;
    font-size: 0.9rem;
  }
  
  /* Mobile specific image and video responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow smaller display if needed, but max-width 100% */
    min-height: unset !important;
  }
  
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure no top padding for video section in mobile that duplicates body padding */
  .page-slot-games__video-section {
    padding-top: 10px !important; /* Small decorative top padding */
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .page-slot-games__section-title {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }
  .page-slot-games__faq-question {
    font-size: 0.95rem;
    padding: 15px;
  }
  .page-slot-games__faq-answer {
    padding: 0 15px 15px;
  }
}