/* style/slot-games.css */

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

/* Base styles for the page-slot-games scope */
.page-slot-games {
  font-family: Arial, sans-serif;
  color: var(--du88-text-main); /* Default text color for dark background */
  background-color: var(--du88-background);
  line-height: 1.6;
}

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

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

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

.page-slot-games__light-bg {
  background-color: #f5f5f5; /* Using a light grey for contrast on sections */
  color: #333333; /* Dark text for light background */
}

.page-slot-games__dark-section {
  background-color: var(--du88-deep-green);
  color: var(--du88-text-main);
}

.page-slot-games__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--du88-gold);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-slot-games__light-bg .page-slot-games__section-title {
  color: var(--du88-deep-green);
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  color: var(--du88-text-secondary);
}

.page-slot-games__light-bg .page-slot-games__text-block {
  color: #555555;
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
  background-color: var(--du88-background);
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit hero image height */
  overflow: hidden;
  position: relative;
}

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  text-align: center;
  color: var(--du88-text-main);
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  color: var(--du88-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-slot-games__description {
  font-size: 1.2em;
  color: var(--du88-text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  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,
.page-slot-games__btn-play,
.page-slot-games__btn-view-details {
  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-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-slot-games__btn-primary {
  background: var(--du88-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: var(--du88-gold);
  color: var(--du88-background);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Game Types Section */
.page-slot-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__game-card {
  background-color: var(--du88-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--du88-text-main);
}

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

.page-slot-games__game-card .page-slot-games__card-title {
  font-size: 1.5em;
  color: var(--du88-gold);
  margin-bottom: 10px;
}

.page-slot-games__game-card .page-slot-games__card-description {
  font-size: 0.95em;
  color: var(--du88-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games__btn-play {
  background: var(--du88-button-gradient);
  color: #ffffff;
  width: calc(100% - 40px); /* Adjust for padding */
  text-align: center;
}

.page-slot-games__btn-play:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Guide Section */
.page-slot-games__ordered-list,
.page-slot-games__unordered-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-slot-games__ordered-list li,
.page-slot-games__unordered-list li {
  margin-bottom: 25px;
  position: relative;
  padding-left: 40px;
  color: #333333;
}

.page-slot-games__ordered-list li::before {
  content: counter(list-item) ".";
  counter-increment: list-item;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: var(--du88-green-main);
  font-size: 1.2em;
}

.page-slot-games__unordered-list li::before {
  content: "\2022"; /* Bullet point */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: var(--du88-green-main);
  font-size: 1.5em;
  line-height: 1;
}

.page-slot-games__list-title {
  font-size: 1.3em;
  color: var(--du88-deep-green);
  margin-bottom: 5px;
}

.page-slot-games__ordered-list li p,
.page-slot-games__unordered-list li p {
  font-size: 1em;
  color: #555555;
  margin-top: 5px;
}

.page-slot-games__ordered-list li a,
.page-slot-games__unordered-list li a {
  color: var(--du88-green-main);
  text-decoration: underline;
}

.page-slot-games__ordered-list li a:hover,
.page-slot-games__unordered-list li a:hover {
  color: var(--du88-gold);
}

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

/* Strategy Section */
.page-slot-games__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__strategy-card {
  background-color: var(--du88-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--du88-text-main);
}

.page-slot-games__strategy-card .page-slot-games__card-title {
  font-size: 1.5em;
  color: var(--du88-gold);
  margin-bottom: 10px;
}

.page-slot-games__strategy-card .page-slot-games__card-description {
  font-size: 0.95em;
  color: var(--du88-text-secondary);
  margin-bottom: 10px;
  flex-grow: 1;
}

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

.page-slot-games__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  color: #333333;
}

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

.page-slot-games__promo-card .page-slot-games__card-title {
  font-size: 1.4em;
  color: var(--du88-deep-green);
  margin-bottom: 10px;
}

.page-slot-games__promo-card .page-slot-games__card-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games__btn-view-details {
  background-color: var(--du88-green-main);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  width: calc(100% - 40px);
}

.page-slot-games__btn-view-details:hover {
  background-color: var(--du88-green-accent);
}

/* Security Section */
.page-slot-games__security-features {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-slot-games__security-features li {
  background-color: var(--du88-card-bg);
  border-left: 5px solid var(--du88-green-main);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__feature-title {
  font-size: 1.3em;
  color: var(--du88-gold);
  margin-bottom: 10px;
}

.page-slot-games__security-features li p {
  font-size: 1em;
  color: var(--du88-text-secondary);
}

.page-slot-games__security-features li a {
  color: var(--du88-green-main);
  text-decoration: underline;
}

.page-slot-games__security-features li a:hover {
  color: var(--du88-gold);
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-slot-games__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--du88-deep-green);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  background-color: #eaf7ed;
  border-bottom: none;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--du88-green-main);
}

.page-slot-games__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
}

.page-slot-games__faq-answer p {
  margin-bottom: 10px;
}

.page-slot-games__faq-answer a {
  color: var(--du88-green-main);
  text-decoration: underline;
}

.page-slot-games__faq-answer a:hover {
  color: var(--du88-gold);
}

/* Final CTA Section */
.page-slot-games__cta-final-section {
  padding: 80px 0;
  background-color: var(--du88-deep-green);
  color: var(--du88-text-main);
}

.page-slot-games__cta-final-section .page-slot-games__section-title {
  color: var(--du88-gold);
}

.page-slot-games__cta-final-section .page-slot-games__description {
  color: var(--du88-text-secondary);
  margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__hero-content {
    margin-top: 20px;
  }
  .page-slot-games__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-slot-games__section {
    padding: 40px 0;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
  }
  .page-slot-games__hero-content {
    margin-top: 20px;
  }
  .page-slot-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-slot-games__description {
    font-size: 1em;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-play,
  .page-slot-games__btn-view-details {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* 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__game-card,
  .page-slot-games__strategy-card,
  .page-slot-games__promo-card,
  .page-slot-games__hero-image-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__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-slot-games__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__game-grid,
  .page-slot-games__strategy-grid,
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__text-block {
    text-align: center;
  }
  .page-slot-games__ordered-list,
  .page-slot-games__unordered-list,
  .page-slot-games__security-features,
  .page-slot-games__faq-list {
    padding: 0 15px;
  }
  .page-slot-games__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-slot-games__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-slot-games__cta-final-section {
    padding: 60px 0;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-slot-games__section-title {
    font-size: 1.6em;
  }
  .page-slot-games__description {
    font-size: 0.9em;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-play,
  .page-slot-games__btn-view-details {
    padding: 10px 15px;
    font-size: 0.9em;
  }
}