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

/* Base styles for the page content, ensuring contrast with shared body background */
.page-slot-games {
  background-color: var(--hl88-background); /* #08160F */
  color: var(--hl88-text-main); /* #F2FFF6 */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

.page-slot-games h1,
.page-slot-games h2,
.page-slot-games h3,
.page-slot-games h4,
.page-slot-games h5,
.page-slot-games h6 {
  color: var(--hl88-text-main); /* #F2FFF6 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

.page-slot-games h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.page-slot-games h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 30px;
  color: var(--hl88-glow); /* #57E38D */
}

.page-slot-games h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--hl88-gold); /* #F2C14E */
}

.page-slot-games p {
  margin-bottom: 1em;
  color: var(--hl88-text-secondary); /* #A7D9B8 */
}

.page-slot-games a {
  color: var(--hl88-glow); /* #57E38D */
  text-decoration: none;
}

.page-slot-games a:hover {
  text-decoration: underline;
  color: var(--hl88-primary); /* #11A84E */
}

.page-slot-games__section {
  padding: 60px 20px;
  border-bottom: 1px solid var(--hl88-divider); /* #1E3A2A */
}

.page-slot-games__dark-bg {
  background-color: var(--hl88-background); /* #08160F */
  color: var(--hl88-text-main); /* #F2FFF6 */
}

.page-slot-games__dark-section {
  background-color: var(--hl88-deep-green); /* #0A4B2C */
  color: var(--hl88-text-main); /* #F2FFF6 */
}

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

.page-slot-games__text-center {
  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; /* body handles header offset, small top padding for visual separation */
  overflow: hidden;
}

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

.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 {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
  color: var(--hl88-text-main); /* #F2FFF6 */
}

.page-slot-games__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: var(--hl88-text-secondary); /* #A7D9B8 */
}

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

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

.page-slot-games__btn-primary {
  background: var(--hl88-button-gradient); /* linear-gradient */
  color: var(--hl88-text-main); /* #F2FFF6 */
  border: 2px solid transparent;
  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);
  opacity: 0.9;
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--hl88-glow); /* #57E38D */
  border: 2px solid var(--hl88-glow); /* #57E38D */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--hl88-glow); /* #57E38D */
  color: var(--hl88-background); /* #08160F */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__large-btn {
  padding: 18px 35px;
  font-size: 1.3rem;
  min-width: 280px;
}

/* Image and Content Block */
.page-slot-games__image-content-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
}

.page-slot-games__content-image {
  flex: 1 1 45%;
  min-width: 300px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-slot-games__text-block {
  flex: 1 1 45%;
  min-width: 300px;
}

/* Grid Cards */
.page-slot-games__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__card {
  background-color: var(--hl88-card-bg); /* #11271B */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--hl88-border); /* #2E7A4E */
  color: var(--hl88-text-main); /* #F2FFF6 */
}

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

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

.page-slot-games__card-title {
  font-size: 1.4rem;
  color: var(--hl88-gold); /* #F2C14E */
  margin-bottom: 10px;
}

.page-slot-games__card-description {
  font-size: 0.95rem;
  color: var(--hl88-text-secondary); /* #A7D9B8 */
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Step-by-step Guide */
.page-slot-games__step-by-step-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__guide-item {
  background-color: var(--hl88-card-bg); /* #11271B */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--hl88-border); /* #2E7A4E */
}

.page-slot-games__guide-icon {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 8px var(--hl88-glow)); /* #57E38D */
  max-width: 100%;
  display: block;
}

.page-slot-games__guide-title {
  font-size: 1.3rem;
  color: var(--hl88-gold); /* #F2C14E */
  margin-bottom: 10px;
}

.page-slot-games__guide-description {
  font-size: 0.9rem;
  color: var(--hl88-text-secondary); /* #A7D9B8 */
}

/* Feature List */
.page-slot-games__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__feature-item {
  background-color: var(--hl88-card-bg); /* #11271B */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--hl88-border); /* #2E7A4E */
}

.page-slot-games__feature-icon {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 8px var(--hl88-glow)); /* #57E38D */
  max-width: 100%;
  display: block;
}

.page-slot-games__feature-title {
  font-size: 1.3rem;
  color: var(--hl88-gold); /* #F2C14E */
  margin-bottom: 10px;
}

.page-slot-games__feature-description {
  font-size: 0.9rem;
  color: var(--hl88-text-secondary); /* #A7D9B8 */
}

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

.page-slot-games__faq-item {
  background-color: var(--hl88-card-bg); /* #11271B */
  border: 1px solid var(--hl88-border); /* #2E7A4E */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--hl88-text-main); /* #F2FFF6 */
}

.page-slot-games__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--hl88-gold); /* #F2C14E */
  position: relative;
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--hl88-glow); /* #57E38D */
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-slot-games__hero-image-wrapper {
    max-height: 500px;
  }
}

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

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

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

  .page-slot-games__hero-image-wrapper {
    max-height: 400px;
    margin-bottom: 20px;
  }

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

  .page-slot-games h1 {
    font-size: 2rem;
  }

  .page-slot-games h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-slot-games h3 {
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  /* Images and their containers */
  .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__image-content-block,
  .page-slot-games__grid-cards,
  .page-slot-games__step-by-step-guide,
  .page-slot-games__feature-list,
  .page-slot-games__faq-list,
  .page-slot-games__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-slot-games__content-image {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }

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

  /* Buttons */
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 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__large-btn {
    min-width: unset;
  }

  .page-slot-games__card {
    padding: 20px;
  }

  .page-slot-games__card-image {
    height: 180px;
  }

  .page-slot-games__guide-icon,
  .page-slot-games__feature-icon {
    height: 100px;
  }

  .page-slot-games__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-slot-games__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-slot-games h1 {
    font-size: 1.8rem;
  }

  .page-slot-games h2 {
    font-size: 1.5rem;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    font-size: 1rem;
    padding: 12px 20px;
  }
}