/* style/slot-games.css */
:root {
  --page-slot-games-primary-color: #11A84E;
  --page-slot-games-secondary-color: #22C768;
  --page-slot-games-bg-color: #08160F;
  --page-slot-games-card-bg: #11271B;
  --page-slot-games-text-main: #F2FFF6;
  --page-slot-games-text-secondary: #A7D9B8;
  --page-slot-games-border-color: #2E7A4E;
  --page-slot-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

.page-slot-games__section {
  padding: 40px 20px;
  margin-bottom: 20px;
}

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

.page-slot-games__dark-bg {
  background-color: var(--page-slot-games-bg-color);
  color: var(--page-slot-games-text-main);
}

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-slot-games__text-center {
  text-align: center;
}

.page-slot-games__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  font-weight: bold;
  color: var(--page-slot-games-primary-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

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

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

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

.page-slot-games__hero-content {
  text-align: center;
  padding: 30px 15px;
  max-width: 800px;
  margin-top: -100px; /* Overlap slightly for visual flow, but text is below image */
  position: relative;
  z-index: 1;
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--page-slot-games-gold);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__description {
  font-size: 1.1rem;
  color: var(--page-slot-games-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: var(--page-slot-games-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  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);
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--page-slot-games-primary-color);
  border: 2px solid var(--page-slot-games-primary-color);
}

.page-slot-games__btn-secondary:hover {
  background: var(--page-slot-games-primary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

.page-slot-games__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__card {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--page-slot-games-text-main);
  height: 100%; /* Ensure cards in grid have equal height */
  box-sizing: border-box;
}

.page-slot-games__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--page-slot-games-primary-color);
  margin-bottom: 15px;
}

.page-slot-games__introduction p,
.page-slot-games__security p {
  font-size: 1.05rem;
  margin-bottom: 15px;
  color: var(--page-slot-games-text-main);
}

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

.page-slot-games__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--page-slot-games-primary-color);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-slot-games__how-to-play .page-slot-games__step-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__game-list,
.page-slot-games__strategy-list,
.page-slot-games__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-slot-games__game-item,
.page-slot-games__strategy-item,
.page-slot-games__security-item {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--page-slot-games-text-main);
}

.page-slot-games__game-title,
.page-slot-games__strategy-title,
.page-slot-games__security-title {
  font-size: 1.3rem;
  color: var(--page-slot-games-primary-color);
  margin-bottom: 10px;
}

.page-slot-games__popular-games .page-slot-games__btn-primary,
.page-slot-games__promotions .page-slot-games__btn-primary {
  margin-top: 30px;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-slot-games__promo-card p a {
  color: var(--page-slot-games-secondary-color);
  text-decoration: underline;
}

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

.page-slot-games__faq-item {
  margin-bottom: 15px;
  overflow: hidden;
}

.page-slot-games__faq-item details {
  width: 100%;
}

.page-slot-games__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 15px 20px;
  background-color: var(--page-slot-games-primary-color);
  color: #ffffff;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-item summary:hover {
  background-color: #13994A;
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
  padding-right: 10px;
}

.page-slot-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
}

.page-slot-games__faq-answer {
  padding: 20px;
  background-color: var(--page-slot-games-card-bg);
  border-top: 1px solid var(--page-slot-games-border-color);
  color: var(--page-slot-games-text-secondary);
  border-radius: 0 0 8px 8px;
}

.page-slot-games__faq-answer p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-slot-games__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-slot-games__final-cta {
  padding: 60px 20px;
}

.page-slot-games__final-cta .page-slot-games__section-title {
  color: var(--page-slot-games-gold);
}

.page-slot-games__final-cta .page-slot-games__description {
  font-size: 1.2rem;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    margin-top: -50px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__section {
    padding: 30px 15px;
  }

  .page-slot-games__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 20px;
  }

  .page-slot-games__main-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

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

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

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

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

  .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-section,
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-slot-games__hero-section {
    padding-top: 10px !important;
  }

  .page-slot-games__final-cta {
    padding: 40px 15px;
  }
  .page-slot-games__hero-image-wrapper {
    max-height: 400px; /* Adjust hero image height for mobile */
  }
  .page-slot-games__image {
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }

  .page-slot-games__promo-image {
    height: 150px;
  }
  
  .page-slot-games p, .page-slot-games li {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-slot-games__description {
    font-size: 1rem;
  }

  .page-slot-games__hero-content {
    margin-top: -20px;
  }
}