/* style/slot-games.css */

/* General styles for the slot-games page */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF5E1); /* Use custom text color, fallback to light */
  background-color: var(--background-color, #B71C1C); /* Use custom background color, fallback to deep red */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  background-color: var(--deep-red, #7A0E0E); /* Use deep red for hero background */
  padding-bottom: 40px; /* Space below content */
  padding-top: 10px; /* Small top padding to avoid double header offset */
}

.page-slot-games__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-slot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter */
}

.page-slot-games__hero-content {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-main, #FFF5E1);
  max-width: 900px;
  margin: 0 auto;
}

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

.page-slot-games__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-main, #FFF5E1);
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box; /* Include padding in width */
  overflow: hidden; /* Hide overflow */
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play,
.page-slot-games__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure button takes full width */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #7A0E0E; /* Deep Red text for primary button */
  border: 2px solid var(--border-color, #F2B544);
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-slot-games__btn-secondary {
  background: var(--card-bg, #D32F2F); /* Custom card background */
  color: var(--text-main, #FFF5E1); /* Custom text main */
  border: 2px solid var(--border-color, #F2B544);
}

.page-slot-games__btn-secondary:hover {
  background: var(--deep-red, #7A0E0E);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-slot-games__btn-play {
  background: var(--primary-color, #C91F17); /* Main brand color */
  color: #FFF5E1;
  border: 1px solid var(--border-color, #F2B544);
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
}

.page-slot-games__btn-play:hover {
  background: var(--auxiliary-color, #E53935);
}

.page-slot-games__btn-tertiary {
  background: var(--gold, #F4D34D); /* Gold color */
  color: var(--deep-red, #7A0E0E); /* Deep Red text */
  border: none;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 5px;
}

.page-slot-games__btn-tertiary:hover {
  background: var(--glow, #FFCC66);
}

/* Sections */
.page-slot-games__section-title {
  font-size: clamp(1.8em, 2.5vw, 2.5em);
  color: var(--gold, #F4D34D); /* Gold color for section titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-slot-games__section-description {
  font-size: 1.1em;
  color: var(--text-main, #FFF5E1);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-slot-games__dark-section {
  background-color: var(--deep-red, #7A0E0E);
  padding: 60px 0;
  color: var(--text-main, #FFF5E1);
}

/* Games Showcase */
.page-slot-games__games-showcase {
  padding: 60px 0;
}

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

.page-slot-games__game-card {
  background-color: var(--card-bg, #D32F2F); /* Custom card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
  border: 2px solid var(--border-color, #F2B544);
}

.page-slot-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-slot-games__game-frame {
  width: 100%;
  height: 200px;
  border: none;
  display: block;
  margin-bottom: 15px;
  background-color: #000; /* Dark background for iframe placeholder */
}

.page-slot-games__game-title {
  font-size: 1.4em;
  color: var(--gold, #F4D34D); /* Gold for game titles */
  margin-bottom: 10px;
}

.page-slot-games__game-provider {
  font-size: 0.9em;
  color: rgba(255, 245, 225, 0.8);
  margin-bottom: 20px;
}

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

/* Why Choose Us Section */
.page-slot-games__why-choose-us {
  padding: 60px 0;
  background-color: var(--background-color, #B71C1C); /* Custom background */
  color: var(--text-main, #FFF5E1);
}

.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-item {
  background-color: var(--card-bg, #D32F2F); /* Custom card background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-color, #F2B544);
}

.page-slot-games__feature-icon {
  width: 100%;
  height: 200px; /* Enforce minimum height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter */
}

.page-slot-games__feature-title {
  font-size: 1.5em;
  color: var(--gold, #F4D34D); /* Gold for feature titles */
  margin-bottom: 10px;
}

.page-slot-games__feature-description {
  font-size: 1em;
  color: var(--text-main, #FFF5E1);
}

/* How to Play Section */
.page-slot-games__how-to-play {
  padding: 60px 0;
}

.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-item {
  background-color: var(--card-bg, #D32F2F); /* Custom card background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  border: 2px solid var(--border-color, #F2B544);
}

.page-slot-games__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--gold, #F4D34D); /* Gold for step numbers */
  color: var(--deep-red, #7A0E0E); /* Deep Red text */
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-slot-games__step-title {
  font-size: 1.4em;
  color: var(--gold, #F4D34D); /* Gold for step titles */
  margin-bottom: 10px;
}

.page-slot-games__step-description {
  font-size: 1em;
  color: var(--text-main, #FFF5E1);
  margin-bottom: 20px;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 60px 0;
  background-color: var(--background-color, #B71C1C); /* Custom background */
  color: var(--text-main, #FFF5E1);
}

.page-slot-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  background-color: var(--card-bg, #D32F2F); /* Custom card background */
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--border-color, #F2B544);
}

details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--gold, #F4D34D); /* Gold for FAQ questions */
  font-weight: 600;
  font-size: 1.1em;
}

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

details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background-color: var(--deep-red, #7A0E0E);
}

.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold, #F4D34D); /* Gold for FAQ question text */
}

.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main, #FFF5E1);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 25px 20px;
  background-color: var(--deep-red, #7A0E0E); /* Deep Red for FAQ answer background */
  border-radius: 0 0 12px 12px;
  color: var(--text-main, #FFF5E1);
  font-size: 0.95em;
}

.page-slot-games__faq-answer p {
  margin: 0;
  padding-top: 10px;
}

/* General image styling to prevent small icons */
.page-slot-games img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter */
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: clamp(2em, 3vw, 2.8em);
  }
  .page-slot-games__section-title {
    font-size: clamp(1.6em, 2.2vw, 2.2em);
  }
  .page-slot-games__game-grid,
  .page-slot-games__features-grid,
  .page-slot-games__steps-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-slot-games__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-slot-games__hero-image-wrapper {
    padding-bottom: 75%; /* 4:3 aspect ratio for mobile hero */
  }

  .page-slot-games__hero-content {
    padding: 30px 15px;
  }

  .page-slot-games__main-title {
    font-size: 2.2em !important; /* Smaller H1 for mobile */
    margin-bottom: 15px;
  }

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

  .page-slot-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* Sections */
  .page-slot-games__dark-section,
  .page-slot-games__games-showcase,
  .page-slot-games__why-choose-us,
  .page-slot-games__how-to-play,
  .page-slot-games__faq-section {
    padding: 40px 0;
  }

  .page-slot-games__container {
    padding: 0 15px !important; /* Adjust container padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__section-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }

  .page-slot-games__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Games Showcase */
  .page-slot-games__game-grid {
    grid-template-columns: 1fr; /* Single column for games */
    gap: 20px;
  }

  .page-slot-games__game-frame {
    height: 180px;
  }

  /* Why Choose Us */
  .page-slot-games__features-grid {
    grid-template-columns: 1fr; /* Single column for features */
    gap: 20px;
  }

  .page-slot-games__feature-item {
    padding: 25px;
  }

  .page-slot-games__feature-icon {
    height: 180px;
  }

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

  /* How to Play */
  .page-slot-games__steps-grid {
    grid-template-columns: 1fr; /* Single column for steps */
    gap: 20px;
  }

  .page-slot-games__step-item {
    padding: 25px;
  }

  .page-slot-games__step-number {
    width: 45px;
    height: 45px;
    font-size: 1.6em;
  }

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

  /* FAQ */
  details.page-slot-games__faq-item summary.page-slot-games__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-slot-games__faq-qtext {
    font-size: 0.95em;
  }

  .page-slot-games__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

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

  /* General image and container responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow smaller images if needed, but still responsive */
    min-height: unset !important;
  }
}