/* style/slot-games.css */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default text color from palette */
  background-color: var(--bg-color, #08160F); /* Default background color from palette */
}

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

.page-slot-games__section {
  padding: 60px 0;
}

.page-slot-games__section--intro,
.page-slot-games__section--games,
.page-slot-games__section--benefits,
.page-slot-games__section--promotions,
.page-slot-games__section--register-login,
.page-slot-games__section--faq,
.page-slot-games__section--conclusion {
  background-color: var(--bg-color, #08160F);
}

.page-slot-games__section-title {
  font-size: clamp(2em, 2.5vw, 2.8em);
  color: var(--gold-color, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-slot-games__sub-title {
  font-size: clamp(1.5em, 2vw, 2.2em);
  color: var(--text-main-color, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--bg-color, #08160F);
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-slot-games__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  position: relative;
  z-index: 1;
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 4.5vw, 3.5em);
  color: var(--gold-color, #F2C14E);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.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;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
}

.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(--gold-color, #F2C14E);
  border: 2px solid var(--gold-color, #F2C14E);
}

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

/* Video Section */
.page-slot-games__video-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  background-color: var(--card-bg-color, #11271B);
}

.page-slot-games__video-wrapper .page-slot-games__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

/* Game List */
.page-slot-games__game-list {
  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-color, #11271B);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-slot-games__game-title {
  font-size: 1.4em;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-slot-games__game-link {
  color: inherit;
  text-decoration: none;
}

.page-slot-games__game-link:hover {
  text-decoration: underline;
}

.page-slot-games__game-description {
  font-size: 0.95em;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-slot-games__btn-play {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background 0.3s ease;
}

.page-slot-games__btn-play:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-slot-games__guide-list,
.page-slot-games__promo-list,
.page-slot-games__register-guide,
.page-slot-games__login-guide {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  counter-reset: item;
}

.page-slot-games__guide-list li,
.page-slot-games__promo-list li,
.page-slot-games__register-guide li,
.page-slot-games__login-guide li {
  background-color: var(--card-bg-color, #11271B);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color, #F2FFF6);
  position: relative;
  padding-left: 60px;
}

.page-slot-games__guide-list li:before,
.page-slot-games__register-guide li:before,
.page-slot-games__login-guide li:before {
  content: counter(item);
  counter-increment: item;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color, #11A84E);
  color: #F2FFF6;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-slot-games__promo-list li {
  border-left: 5px solid var(--primary-color, #11A84E);
}

/* Benefits Section */
.page-slot-games__benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__benefit-card {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid var(--divider-color, #1E3A2A);
}

.page-slot-games__benefit-card:hover {
  transform: translateY(-5px);
}

.page-slot-games__benefit-title {
  font-size: 1.5em;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-slot-games__benefit-description {
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Promotions Section */
.page-slot-games__promotion-banner {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 40px auto;
  display: block;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--divider-color, #1E3A2A);
}

.page-slot-games__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-item summary:hover {
  background-color: var(--deep-green-color, #0A4B2C);
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold-color, #F2C14E);
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-games__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
}

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

/* Conclusion Section */
.page-slot-games__section--conclusion {
  text-align: center;
}

.page-slot-games__cta-buttons--bottom {
  margin-top: 40px;
}

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

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games__container {
    padding: 0 15px;
  }

  .page-slot-games__section {
    padding: 40px 0;
  }

  .page-slot-games__hero-section {
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-slot-games__hero-content {
    padding: 30px 15px;
    margin-top: -60px; /* Adjust overlap for smaller screens */
  }

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

  .page-slot-games__hero-description {
    font-size: 1em;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    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__video-wrapper {
    margin: 20px auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__game-list {
    grid-template-columns: 1fr;
  }

  .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__video-section {
    padding-top: 10px !important;
  }
}

/* Custom Colors from palette */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --bg-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Ensure contrast for all text elements */
.page-slot-games h1,
.page-slot-games h2,
.page-slot-games h3,
.page-slot-games h4,
.page-slot-games a,
.page-slot-games strong {
  color: var(--gold-color, #F2C14E);
}

.page-slot-games p,
.page-slot-games li,
.page-slot-games__game-description,
.page-slot-games__benefit-description,
.page-slot-games__faq-answer {
  color: var(--text-secondary-color, #A7D9B8);
}

.page-slot-games__btn-primary,
.page-slot-games__btn-play {
  color: #F2FFF6; /* Always light text on dark/gradient button */
}

.page-slot-games__btn-secondary {
  color: var(--gold-color, #F2C14E);
}

.page-slot-games__btn-secondary:hover {
  color: var(--bg-color, #08160F);
}

.page-slot-games__game-card,
.page-slot-games__benefit-card,
.page-slot-games__faq-item,
.page-slot-games__guide-list li,
.page-slot-games__promo-list li,
.page-slot-games__register-guide li,
.page-slot-games__login-guide li {
  background-color: var(--card-bg-color, #11271B);
}

.page-slot-games__faq-item summary:hover {
  background-color: var(--deep-green-color, #0A4B2C);
}

.page-slot-games__guide-list li:before,
.page-slot-games__register-guide li:before,
.page-slot-games__login-guide li:before {
  background-color: var(--primary-color, #11A84E);
  color: #F2FFF6;
}

.page-slot-games__promo-list li {
  border-left-color: var(--primary-color, #11A84E);
}

.page-slot-games__benefit-card {
  border-color: var(--divider-color, #1E3A2A);
}

.page-slot-games__faq-item {
  border-color: var(--divider-color, #1E3A2A);
}

.page-slot-games__video-wrapper {
  background-color: var(--card-bg-color, #11271B);
}