/* style/slot-games.css */
:root {
  --page-slot-games-primary-color: #11A84E;
  --page-slot-games-secondary-color: #22C768;
  --page-slot-games-text-main: #F2FFF6;
  --page-slot-games-text-secondary: #A7D9B8;
  --page-slot-games-card-bg: #11271B;
  --page-slot-games-background: #08160F;
  --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-background);
  color: var(--page-slot-games-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.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;
  padding: 10px 0 60px 0; /* body handles header offset, only small top padding here */
  overflow: hidden;
  background-color: var(--page-slot-games-deep-green);
}

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

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  min-height: 400px; /* Ensure minimum height */
}

.page-slot-games__hero-content {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  z-index: 10;
  max-width: 900px;
  margin-top: -100px; /* Pull content slightly over the image for visual flow, but not overlap text */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, var(--page-slot-games-background) 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: var(--page-slot-games-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-slot-games__hero-description {
  font-size: 1.1em;
  color: var(--page-slot-games-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.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 {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
  max-width: 300px; /* Limit individual button width */
  width: 100%; /* Default to 100% within its max-width */
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--page-slot-games-text-main);
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--page-slot-games-primary-color);
  border: 2px solid var(--page-slot-games-primary-color);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

.page-slot-games__btn-secondary:hover {
  background: var(--page-slot-games-primary-color);
  color: var(--page-slot-games-text-main);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.4);
}

.page-slot-games__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--page-slot-games-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-slot-games__text-block {
  font-size: 1.05em;
  color: var(--page-slot-games-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-slot-games__text-link {
  color: var(--page-slot-games-primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-slot-games__text-link:hover {
  text-decoration: underline;
  color: var(--page-slot-games-glow);
}

.page-slot-games__highlight {
  color: var(--page-slot-games-gold);
  font-weight: bold;
}

.page-slot-games__introduction-section,
.page-slot-games__popular-games-section,
.page-slot-games__how-to-play-section,
.page-slot-games__promotions-section,
.page-slot-games__cta-final-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-background);
}

.page-slot-games__why-choose-section,
.page-slot-games__jackpot-explanation-section,
.page-slot-games__tips-strategy-section,
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-card-bg);
}

.page-slot-games__dark-section {
  background-color: var(--page-slot-games-background);
}

.page-slot-games__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);
  color: var(--page-slot-games-text-main);
  display: flex;
  flex-direction: column;
}

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

.page-slot-games__feature-image,
.page-slot-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  min-height: 200px;
}

.page-slot-games__feature-title,
.page-slot-games__game-title {
  font-size: 1.5em;
  color: var(--page-slot-games-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-slot-games__feature-description,
.page-slot-games__game-description {
  font-size: 0.95em;
  color: var(--page-slot-games-text-secondary);
  flex-grow: 1;
}

.page-slot-games__steps-list,
.page-slot-games__tips-list,
.page-slot-games__promo-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-slot-games__steps-list li,
.page-slot-games__tips-list li,
.page-slot-games__promo-list li {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  font-size: 1.05em;
  color: var(--page-slot-games-text-main);
  display: flex;
  align-items: flex-start;
}

.page-slot-games__steps-list li strong,
.page-slot-games__tips-list li strong,
.page-slot-games__promo-list li strong {
  color: var(--page-slot-games-primary-color);
  margin-right: 10px;
  flex-shrink: 0;
}

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

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

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

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

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

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

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

.page-slot-games__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--page-slot-games-text-secondary);
  text-align: justify;
}

/* Details element specific styling */
.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  background-color: var(--page-slot-games-primary-color);
  border-bottom-color: transparent;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-image-wrapper {
    max-height: 550px;
  }
  .page-slot-games__hero-content {
    margin-top: -80px;
  }
  .page-slot-games__section-title {
    margin-bottom: 30px;
  }
  .page-slot-games__features-grid,
  .page-slot-games__game-categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-slot-games__hero-image-wrapper {
    max-height: 400px;
  }
  .page-slot-games__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-slot-games__hero-title {
    font-size: 2em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 auto; /* Center buttons when stacked */
  }
  .page-slot-games__introduction-section,
  .page-slot-games__why-choose-section,
  .page-slot-games__popular-games-section,
  .page-slot-games__jackpot-explanation-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__tips-strategy-section,
  .page-slot-games__promotions-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final-section {
    padding: 50px 0;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-slot-games__text-block {
    font-size: 0.95em;
  }
  .page-slot-games__features-grid,
  .page-slot-games__game-categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__feature-image,
  .page-slot-games__game-image {
    height: 180px;
    min-height: 180px;
  }
  .page-slot-games__feature-title,
  .page-slot-games__game-title {
    font-size: 1.3em;
  }
  .page-slot-games__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }
  /* Mobile responsive image adaptation */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  /* Ensure video wrapper does not overflow */
  .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,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}