/* style/slot-games.css */
:root {
  --kv888-primary-color: #C61F1F;
  --kv888-secondary-color: #E53030;
  --kv888-card-bg: #2A1212;
  --kv888-text-main: #FFF1E8;
  --kv888-border-color: #6A1E1E;
  --kv888-gold-color: #F3C54D;
  --kv888-deep-red: #7E0D0D;
  --kv888-button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

.page-slot-games {
  background-color: #140C0C;
  color: var(--kv888-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__dark-bg {
  background-color: #140C0C;
  color: var(--kv888-text-main);
}

.page-slot-games__card {
  background-color: var(--kv888-card-bg);
  color: var(--kv888-text-main);
  border: 1px solid var(--kv888-border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-slot-games__section-title {
  font-size: 2.8em;
  font-weight: bold;
  color: var(--kv888-gold-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__description {
  font-size: 1.1em;
  color: var(--kv888-text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

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

.page-slot-games__btn-primary {
  background: var(--kv888-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(255, 176, 74, 0.4);
}

.page-slot-games__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--kv888-gold-color);
  border: 2px solid var(--kv888-gold-color);
  box-shadow: 0 4px 10px rgba(243, 197, 77, 0.3);
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--kv888-gold-color);
  color: #140C0C;
  transform: translateY(-2px);
}

.page-slot-games__btn-play {
  background: var(--kv888-button-gradient);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 6px;
}

.page-slot-games__btn-play:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 80px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

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

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

.page-slot-games__hero-content {
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
  z-index: 1;
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 900;
  color: var(--kv888-gold-color);
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-slot-games__hero-section .page-slot-games__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 700px;
}

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

/* Features Section */
.page-slot-games__features-section {
  padding: 80px 0;
}

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

.page-slot-games__feature-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-slot-games__feature-card .page-slot-games__card-title {
  font-size: 1.8em;
  color: var(--kv888-gold-color);
  margin-bottom: 15px;
}

.page-slot-games__feature-card .page-slot-games__card-text {
  font-size: 1em;
  color: var(--kv888-text-main);
}

/* Games Showcase Section */
.page-slot-games__games-showcase {
  padding: 80px 0;
}

.page-slot-games__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-slot-games__game-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__game-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  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(--kv888-gold-color);
  margin-bottom: 10px;
}

.page-slot-games__game-card .page-slot-games__card-link {
  color: var(--kv888-gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games__game-card .page-slot-games__card-link:hover {
  color: var(--kv888-primary-color);
}

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

.page-slot-games__view-all-button-container {
  text-align: center;
  margin-top: 40px;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 80px 0;
}

.page-slot-games__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.page-slot-games__promo-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-slot-games__promo-card .page-slot-games__card-title {
  font-size: 1.6em;
  color: var(--kv888-gold-color);
  margin-bottom: 10px;
}

.page-slot-games__promo-card .page-slot-games__card-link {
  color: var(--kv888-gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games__promo-card .page-slot-games__card-link:hover {
  color: var(--kv888-primary-color);
}

.page-slot-games__promo-card .page-slot-games__card-text {
  font-size: 1em;
  color: var(--kv888-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
}

.page-slot-games__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-slot-games__faq-item {
  cursor: pointer;
  border-color: var(--kv888-border-color);
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--kv888-gold-color);
  padding: 15px 20px;
  border-bottom: 1px solid var(--kv888-deep-red);
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-slot-games__faq-answer {
  padding: 15px 20px;
  font-size: 1em;
  color: var(--kv888-text-main);
  line-height: 1.5;
}

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

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  background-color: rgba(255, 255, 255, 0.08);
  border-bottom: none;
}

/* Contact CTA Section */
.page-slot-games__contact-cta {
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__contact-cta .page-slot-games__section-title {
  margin-bottom: 20px;
}

.page-slot-games__contact-cta .page-slot-games__description {
  margin-bottom: 40px;
}

/* General image styling for content areas to ensure minimum size */
.page-slot-games img:not(.page-slot-games__hero-image) {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__section-title {
    font-size: 2.2em;
  }

  .page-slot-games__hero-section .page-slot-games__main-title {
    font-size: clamp(2em, 4.5vw, 3.2em);
  }

  .page-slot-games__hero-section .page-slot-games__description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 0 15px !important;
  }

  .page-slot-games__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-slot-games__description {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-slot-games__hero-section {
    padding-bottom: 60px;
    padding-top: 10px !important; /* Small top padding for mobile */
  }

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

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

  .page-slot-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.8em) !important;
  }

  .page-slot-games__hero-section .page-slot-games__description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .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 a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__features-section,
  .page-slot-games__games-showcase,
  .page-slot-games__promotions-section,
  .page-slot-games__faq-section,
  .page-slot-games__contact-cta {
    padding: 60px 0;
  }

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

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

  .page-slot-games__feature-icon,
  .page-slot-games__game-image,
  .page-slot-games__promo-image {
    max-width: 100% !important;
  }

  .page-slot-games__game-card .page-slot-games__card-title,
  .page-slot-games__promo-card .page-slot-games__card-title {
    font-size: 1.3em;
  }

  .page-slot-games__faq-question {
    font-size: 1.1em;
    padding: 12px 15px;
  }

  .page-slot-games__faq-answer {
    padding: 12px 15px;
    font-size: 0.95em;
  }
}