/* slot-games.css */

:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --card-bg-color: #D32F2F;
  --section-bg-dark: #B71C1C;
  --text-main-color: #FFF5E1;
  --text-dark-color: #333333;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --border-color-gold: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark-color); /* Default for light backgrounds */
}

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

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

.page-slot-games__section-title {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-slot-games__intro-text {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Text Color Overrides based on Background */
.page-slot-games__dark-bg {
  background: var(--section-bg-dark);
  color: var(--text-main-color); /* Light text on dark background */
}

.page-slot-games__light-bg {
  background: #ffffff;
  color: var(--text-dark-color); /* Dark text on light background */
}

.page-slot-games__text-main {
  color: var(--text-main-color);
}

.page-slot-games__text-dark {
  color: var(--text-dark-color);
}

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

.page-slot-games__hero-image-wrap {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  text-align: center;
  margin-top: -300px; /* Pull content over image, but not *on* it */
  background: linear-gradient(to top, var(--section-bg-dark) 0%, rgba(183, 28, 28, 0.8) 70%, rgba(183, 28, 28, 0) 100%);
  padding-top: 320px;
  border-radius: 10px;
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 4.5em);
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.page-slot-games__description {
  font-size: 1.25em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-slot-games__btn-primary {
  background: var(--button-gradient);
  color: var(--deep-red-color);
  border: 2px solid var(--gold-color);
}

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

.page-slot-games__btn-secondary {
  background: var(--deep-red-color);
  color: var(--text-main-color);
  border: 2px solid var(--gold-color);
}

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

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

.page-slot-games__card {
  background: var(--card-bg-color);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--border-color-gold);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.page-slot-games__feature-title,
.page-slot-games__game-title,
.page-slot-games__promo-title,
.page-slot-games__step-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-slot-games__feature-description,
.page-slot-games__game-description,
.page-slot-games__promo-description,
.page-slot-games__tip-description,
.page-slot-games__step-description {
  font-size: 1em;
  line-height: 1.7;
}

/* Popular Games */
.page-slot-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--gold-color);
}

.page-slot-games__game-card .page-slot-games__btn-primary {
  margin-top: 20px;
  align-self: center;
}

/* Strategy Tips */
.page-slot-games__tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-slot-games__tip-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--primary-color);
}

.page-slot-games__tip-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* Promotions Section */
.page-slot-games__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--gold-color);
}

.page-slot-games__promo-card .page-slot-games__btn-primary {
  margin-top: 20px;
  align-self: center;
}

.page-slot-games__all-promos-cta {
  margin-top: 50px;
}

/* How To Play Section */
.page-slot-games__step-item {
  position: relative;
  padding-top: 60px;
}

.page-slot-games__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--button-gradient);
  color: var(--deep-red-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: 900;
  border: 2px solid var(--gold-color);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-slot-games__register-cta {
  margin-top: 50px;
}

/* FAQ Section */
details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 15px;
  border: 1px solid var(--border-color-gold);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}
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(--text-main-color);
}
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: var(--deep-red-color);
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-slot-games__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 25px 20px;
  background: var(--deep-red-color);
  border-radius: 0 0 15px 15px;
  color: var(--text-main-color);
}

.page-slot-games__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__section-title {
    font-size: 2.5em;
  }
  .page-slot-games__hero-content {
    margin-top: -200px;
    padding-top: 220px;
  }
  .page-slot-games__main-title {
    font-size: clamp(2em, 4.5vw, 4em);
  }
  .page-slot-games__description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-slot-games__section {
    padding: 40px 0;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-slot-games__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* HERO Section */
  .page-slot-games__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
    min-height: auto;
  }
  .page-slot-games__hero-image-wrap {
    max-height: 400px;
  }
  .page-slot-games__hero-image {
    object-fit: contain !important; /* Prevents cropping */
    aspect-ratio: unset !important;
  }
  .page-slot-games__hero-content {
    margin-top: -100px; /* Adjust pull-up */
    padding-top: 120px;
    padding: 15px;
  }
  .page-slot-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-slot-games__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Grids */
  .page-slot-games__features-grid,
  .page-slot-games__games-grid,
  .page-slot-games__promo-cards,
  .page-slot-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-slot-games__game-image,
  .page-slot-games__promo-image {
    height: auto;
    max-width: 100% !important;
    width: 100% !important;
    object-fit: cover;
  }

  /* Card & Item Styling */
  .page-slot-games__card {
    padding: 20px;
  }
  .page-slot-games__feature-title,
  .page-slot-games__game-title,
  .page-slot-games__promo-title,
  .page-slot-games__step-title {
    font-size: 1.4em;
  }
  .page-slot-games__feature-description,
  .page-slot-games__game-description,
  .page-slot-games__promo-description,
  .page-slot-games__tip-description,
  .page-slot-games__step-description {
    font-size: 0.9em;
  }

  /* Tips */
  .page-slot-games__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__tip-item {
    padding: 20px;
  }
  .page-slot-games__tip-title {
    font-size: 1.3em;
  }

  /* How To Play */
  .page-slot-games__step-item {
    padding-top: 40px;
  }
  .page-slot-games__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }

  /* FAQ */
  details.page-slot-games__faq-item summary.page-slot-games__faq-question {
    padding: 15px;
  }
  .page-slot-games__faq-qtext {
    font-size: 1em;
  }
  .page-slot-games__faq-toggle {
    font-size: 1.8em;
    width: 25px;
  }
  details.page-slot-games__faq-item .page-slot-games__faq-answer {
    padding: 0 15px 15px;
  }

  /* General Image & Container Adaptivity */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-image-wrap,
  .page-slot-games__hero-content,
  .page-slot-games__cta-buttons,
  .page-slot-games__all-promos-cta,
  .page-slot-games__register-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
  .page-slot-games__all-promos-cta,
  .page-slot-games__register-cta {
    padding: 0 15px;
  }
  .page-slot-games__games-grid,
  .page-slot-games__promo-cards {
    overflow-x: hidden; /* Ensure no horizontal scroll for grids */
  }
}