/* style/slot-games.css */

/* Custom Colors */
:root {
  --page-slot-games-bg: #08160F;
  --page-slot-games-card-bg: #11271B;
  --page-slot-games-text-main: #F2FFF6;
  --page-slot-games-text-secondary: #A7D9B8;
  --page-slot-games-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --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;
}

.page-slot-games {
  background-color: var(--page-slot-games-bg);
  color: var(--page-slot-games-text-main);
  font-family: 'Arial', sans-serif;
}

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

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

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-slot-games__hero-content {
  position: relative; /* Ensure content is above any background but not overlaid on img */
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over the image's bottom part */
  background-color: var(--page-slot-games-card-bg); /* Dark background for readability */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--page-slot-games-border);
}

.page-slot-games__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--page-slot-games-gold);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-slot-games__hero-description {
  font-size: 1.1rem;
  color: var(--page-slot-games-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-slot-games__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--page-slot-games-btn-gradient);
  color: var(--page-slot-games-text-main);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--page-slot-games-text-main);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-slot-games__section-description {
  font-size: 1.05rem;
  color: var(--page-slot-games-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: -20px auto 50px auto;
  line-height: 1.6;
}

.page-slot-games__introduction-section,
.page-slot-games__types-section,
.page-slot-games__how-to-play-section,
.page-slot-games__strategy-section,
.page-slot-games__features-section,
.page-slot-games__faq-section,
.page-slot-games__cta-section {
  padding: 80px 0;
}

.page-slot-games__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-slot-games__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-slot-games__text-block {
  flex: 1;
}

.page-slot-games__text-block p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--page-slot-games-text-secondary);
}

.page-slot-games__text-block a {
  color: var(--page-slot-games-gold);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-slot-games__text-block a:hover {
  color: var(--page-slot-games-glow);
}

.page-slot-games__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__content-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--page-slot-games-border);
}

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

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

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

.page-slot-games__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--page-slot-games-divider);
}

.page-slot-games__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--page-slot-games-text-main);
  margin-bottom: 15px;
}

.page-slot-games__card-text {
  font-size: 1rem;
  color: var(--page-slot-games-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;
  color: var(--page-slot-games-gold);
  border: 2px solid var(--page-slot-games-gold);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--page-slot-games-gold);
  color: var(--page-slot-games-bg);
}

.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-slot-games__step-card {
  background-color: var(--page-slot-games-card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-slot-games-border);
}

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

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

.page-slot-games__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--page-slot-games-text-main);
  margin-bottom: 20px;
}

.page-slot-games__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-slot-games__feature-card {
  background-color: var(--page-slot-games-card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-slot-games-border);
}

.page-slot-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-slot-games__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--page-slot-games-text-main);
  margin-bottom: 10px;
}

.page-slot-games__feature-text {
  font-size: 0.95rem;
  color: var(--page-slot-games-text-secondary);
  line-height: 1.6;
}

.page-slot-games__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-slot-games-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

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

.page-slot-games__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--page-slot-games-text-secondary);
  line-height: 1.7;
}

/* Ensure details element's summary toggle works correctly */
details[open] .page-slot-games__faq-toggle {
  content: '−';
}

.page-slot-games__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--page-slot-games-deep-green);
  border-top: 1px solid var(--page-slot-games-border);
  border-bottom: 1px solid var(--page-slot-games-border);
}

.page-slot-games__cta-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  color: var(--page-slot-games-gold);
  margin-bottom: 25px;
}

.page-slot-games__cta-description {
  font-size: 1.15rem;
  color: var(--page-slot-games-text-main);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.page-slot-games__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    margin-top: -80px;
    padding: 30px;
  }
  .page-slot-games__content-wrapper {
    flex-direction: column;
  }
  .page-slot-games__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-slot-games__image-block {
    order: -1;
    margin-bottom: 30px;
  }
  .page-slot-games__content-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 0 15px; /* Mobile padding */
  }
  .page-slot-games__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles --header-offset, small decorative padding here */
  }
  .page-slot-games__hero-content {
    margin-top: -60px;
    padding: 25px;
  }
  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-slot-games__hero-description {
    font-size: 1rem;
  }
  .page-slot-games__btn-primary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    padding-top: 40px;
  }
  .page-slot-games__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-slot-games__introduction-section,
  .page-slot-games__types-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__strategy-section,
  .page-slot-games__features-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    padding: 50px 0;
  }
  .page-slot-games__text-block p {
    font-size: 0.95rem;
  }
  .page-slot-games__card-image {
    height: 180px;
  }
  .page-slot-games__card-title {
    font-size: 1.3rem;
  }
  .page-slot-games__card-text {
    font-size: 0.9rem;
  }
  .page-slot-games__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__step-title {
    font-size: 1.4rem;
  }
  .page-slot-games__step-text {
    font-size: 0.9rem;
  }
  .page-slot-games__sub-title {
    font-size: 1.5rem;
  }
  .page-slot-games__feature-title {
    font-size: 1.2rem;
  }
  .page-slot-games__feature-text {
    font-size: 0.85rem;
  }
  .page-slot-games__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-slot-games__faq-answer {
    font-size: 0.9rem;
    padding: 0 20px 15px 20px;
  }
  .page-slot-games__cta-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-slot-games__cta-description {
    font-size: 1rem;
  }
  .page-slot-games__btn-primary--large {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .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-wrapper,
  .page-slot-games__content-wrapper,
  .page-slot-games__steps-grid,
  .page-slot-games__feature-grid,
  .page-slot-games__faq-list,
  .page-slot-games__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  /* Specific adjustments for hero content to prevent overflow on very small screens */
  .page-slot-games__hero-content {
    max-width: calc(100% - 30px) !important; /* Account for container padding */
    width: calc(100% - 30px) !important;
  }
}