/* style/slot-games.css */

/* --- General Styles & Reset --- */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Using custom color */
  background-color: var(--background); /* Using custom color */
}

/* --- Section Styling --- */
.page-slot-games__section {
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__dark-section {
  background-color: var(--background); /* Deep Green background */
  color: var(--text-main); /* Light text */
}

.page-slot-games__light-bg {
  background-color: #f0f0f0; /* Lighter background for contrast */
  color: #333333; /* Dark text for light background */
}

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

.page-slot-games__section-title {
  font-size: clamp(2em, 3.5vw, 2.8em); /* Use clamp for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gold); /* Using custom color */
  letter-spacing: 0.05em;
}

.page-slot-games__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary); /* Using custom color */
}

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

.page-slot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image slightly for text contrast */
  /* No filter to change color, only brightness for readability */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--text-main); /* Light text on dark background */
}

.page-slot-games__main-title {
  font-size: clamp(2.8em, 5vw, 4em); /* Use clamp for H1 */
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--gold); /* Gold title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-slot-games__description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--text-main); /* Light text */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: var(--text-main); /* Light text */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-secondary {
  background: var(--card-bg); /* Dark background */
  color: var(--gold); /* Gold text */
  border: 2px solid var(--border); /* Custom border color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: var(--deep-green); /* Darker green on hover */
  color: var(--text-main);
}

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

.page-slot-games__feature-card {
  background-color: var(--card-bg); /* Custom card background */
  color: var(--text-main); /* Light text */
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border); /* Custom border */
}

.page-slot-games__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-slot-games__feature-icon {
  width: 100%; /* Ensure images are responsive */
  max-width: 250px; /* Limit max size for feature icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-slot-games__feature-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--gold); /* Gold title */
}

.page-slot-games__feature-text {
  font-size: 1em;
  color: var(--text-secondary); /* Secondary text color */
}

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

.page-slot-games__content-card {
  background-color: var(--card-bg); /* Custom card background */
  color: var(--text-main); /* Light text */
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border); /* Custom border */
}

.page-slot-games__content-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-slot-games__content-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-slot-games__content-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold); /* Gold title */
}

.page-slot-games__content-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  color: var(--text-secondary); /* Secondary text color */
}

/* --- Steps Grid (How to Play) --- */
.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__step-card {
  background-color: var(--card-bg); /* Custom card background */
  color: var(--text-main); /* Light text */
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--border); /* Custom border */
}

.page-slot-games__step-title {
  font-size: 1.7em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--gold); /* Gold title */
}

.page-slot-games__step-text {
  font-size: 1em;
  margin-bottom: 25px;
  color: var(--text-secondary); /* Secondary text color */
}

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

.page-slot-games__promotion-card {
  background-color: var(--card-bg); /* Custom card background */
  color: var(--text-main); /* Light text */
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border); /* Custom border */
}

.page-slot-games__promotion-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-slot-games__promotion-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-slot-games__promotion-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold); /* Gold title */
}

.page-slot-games__promotion-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  color: var(--text-secondary); /* Secondary text color */
}

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

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

.page-slot-games__faq-item {
  background-color: var(--card-bg); /* Custom card background */
  color: var(--text-main); /* Light text */
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border); /* Custom border */
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main); /* Light text */
  background-color: var(--card-bg); /* Custom card background */
  border-bottom: 1px solid var(--divider); /* Custom divider */
}

.page-slot-games__faq-question:hover {
  background-color: var(--deep-green); /* Darker green on hover */
}

.page-slot-games__faq-question::-webkit-details-marker,
.page-slot-games__faq-question::marker {
  display: none;
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
  color: var(--text-main); /* Light text */
}

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

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  border-bottom: 1px solid var(--border);
}

.page-slot-games__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--text-secondary); /* Secondary text color */
}

/* --- Call to Action Section --- */
.page-slot-games__cta-section {
  padding: 80px 20px;
  background-color: var(--deep-green); /* Use a darker green for CTA */
  color: var(--text-main);
}

.page-slot-games__cta-content {
  text-align: center;
}

/* --- Image Responsiveness (Global for .page-slot-games) --- */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games__section {
    padding: 40px 0;
  }

  .page-slot-games__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* Small top padding for mobile */
    min-height: 400px;
  }

  .page-slot-games__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-slot-games__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__features-grid,
  .page-slot-games__content-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__feature-card,
  .page-slot-games__content-card,
  .page-slot-games__step-card,
  .page-slot-games__promotion-card {
    padding: 20px;
  }

  .page-slot-games__feature-icon,
  .page-slot-games__content-image,
  .page-slot-games__promotion-image {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__faq-list {
    margin-top: 20px;
  }

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

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

  .page-slot-games__cta-section {
    padding: 40px 15px;
  }

  /* Ensure all images and their containers are responsive */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video specific mobile styles, though not used in this specific HTML generation, included for completeness based on general rules */
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-slot-games__video-section {
    padding-top: 10px !important;
  }
}

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

/* Intelligent contrast for light background sections */
.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__section-description {
  color: #333333; /* Dark text for light background */
}
.page-slot-games__light-bg .page-slot-games__content-card,
.page-slot-games__light-bg .page-slot-games__promotion-card {
  background-color: #ffffff; /* White card background on light section */
  color: #333333; /* Dark text for cards on light section */
  border-color: #e0e0e0; /* Lighter border */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Lighter shadow */
}
.page-slot-games__light-bg .page-slot-games__content-title,
.page-slot-games__light-bg .page-slot-games__promotion-title {
  color: var(--primary-color); /* Use primary color for titles on light cards */
}
.page-slot-games__light-bg .page-slot-games__content-text,
.page-slot-games__light-bg .page-slot-games__promotion-text {
  color: #555555; /* Darker text for readability */
}

/* Force specific contrast fix for light background sections if text-contrast-fix is applied */
.page-slot-games__text-contrast-fix {
  color: #333333 !important;
}
.page-slot-games__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

/* Ensure content area images are not too small */
.page-slot-games__feature-card img,
.page-slot-games__content-card img,
.page-slot-games__promotion-card img {
  width: 100%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}