/* style/slot-games.css */

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

/* General Page Styling */
.page-slot-games {
  background-color: var(--k9cc-bg-primary); /* Dark background */
  color: var(--k9cc-text-main); /* Light text for dark background */
  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__section {
  padding: 60px 0;
}

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

.page-slot-games__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--k9cc-gold);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-slot-games__section-title--light {
  color: var(--k9cc-text-main);
}

.page-slot-games__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--k9cc-text-secondary);
}

.page-slot-games__section-description--light {
  color: var(--k9cc-text-main);
}

/* 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(--k9cc-bg-primary);
  overflow: hidden;
}

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

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

.page-slot-games__hero-content {
  text-align: center;
  padding: 40px 20px 60px;
  max-width: 900px;
  z-index: 1;
  background-color: var(--k9cc-card-bg);
  border-radius: 10px;
  margin-top: -80px; /* Overlap with image slightly for visual effect */
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid var(--k9cc-border);
}

.page-slot-games__hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--k9cc-gold);
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-slot-games__hero-description {
  font-size: 20px;
  color: var(--k9cc-text-secondary);
  margin-bottom: 40px;
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: var(--k9cc-btn-gradient);
  color: var(--k9cc-text-main);
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: var(--k9cc-glow);
  color: var(--k9cc-bg-primary);
  transform: translateY(-3px);
}

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

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

.page-slot-games__feature-card {
  background-color: var(--k9cc-bg-primary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  text-align: center;
  padding-bottom: 30px;
  border: 1px solid var(--k9cc-border);
}

.page-slot-games__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-slot-games__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--k9cc-gold);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-slot-games__card-title--light {
  color: var(--k9cc-text-main);
}

.page-slot-games__card-text {
  font-size: 16px;
  color: var(--k9cc-text-secondary);
  padding: 0 20px;
}

.page-slot-games__card-text--light {
  color: var(--k9cc-text-main);
}

/* Slot Types Grid */
.page-slot-games__slot-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__slot-type-card {
  background-color: var(--k9cc-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  text-align: center;
  padding-bottom: 30px;
  border: 1px solid var(--k9cc-border);
}

.page-slot-games__slot-type-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

/* Guide List */
.page-slot-games__guide-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-slot-games__guide-item {
  background-color: var(--k9cc-bg-primary);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  border: 1px solid var(--k9cc-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-slot-games__guide-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--k9cc-gold);
  margin-bottom: 15px;
}

.page-slot-games__guide-text {
  font-size: 16px;
  color: var(--k9cc-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-slot-games__promotion-card {
  background-color: var(--k9cc-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  text-align: center;
  padding-bottom: 30px;
  border: 1px solid var(--k9cc-border);
}

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

.page-slot-games__card-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--k9cc-glow);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-slot-games__card-link:hover {
  color: var(--k9cc-gold);
}

/* Tips List */
.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}

.page-slot-games__tips-item {
  background-color: var(--k9cc-bg-primary);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  border: 1px solid var(--k9cc-border);
}

.page-slot-games__tips-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--k9cc-gold);
  margin-bottom: 10px;
}

.page-slot-games__tips-text {
  font-size: 16px;
  color: var(--k9cc-text-secondary);
}

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

.page-slot-games__faq-item {
  background-color: var(--k9cc-card-bg);
  border: 1px solid var(--k9cc-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--k9cc-text-main);
  cursor: pointer;
  background-color: var(--k9cc-deep-green);
  border-bottom: 1px solid var(--k9cc-border);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-question:hover {
  background-color: var(--k9cc-deep-green);
}

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

.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: var(--k9cc-gold);
  margin-left: 15px;
}

.page-slot-games__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--k9cc-text-secondary);
  border-top: 1px solid var(--k9cc-divider);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  background-color: var(--k9cc-deep-green);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  color: var(--k9cc-gold);
}

/* Conclusion Section */
.page-slot-games__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    margin-top: -60px;
  }
  .page-slot-games__hero-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }
  .page-slot-games__hero-description {
    font-size: 18px;
  }
}

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

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

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

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

  .page-slot-games__hero-title {
    font-size: clamp(24px, 7vw, 38px);
    margin-bottom: 15px;
  }

  .page-slot-games__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-slot-games__hero-cta-buttons,
  .page-slot-games__cta-buttons--center {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

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

  .page-slot-games__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 15px;
  }

  .page-slot-games__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Image and Video responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

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

  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper,
  .page-slot-games__feature-grid,
  .page-slot-games__slot-types-grid,
  .page-slot-games__guide-list,
  .page-slot-games__promotion-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-slot-games__feature-image,
  .page-slot-games__slot-type-image,
  .page-slot-games__promotion-image {
    height: auto !important;
    min-height: 200px !important; /* Ensure minimum size */
  }

  .page-slot-games__card-title,
  .page-slot-games__guide-title,
  .page-slot-games__tips-title {
    font-size: 20px;
  }

  .page-slot-games__card-text,
  .page-slot-games__guide-text,
  .page-slot-games__tips-text,
  .page-slot-games__faq-question,
  .page-slot-games__faq-answer {
    font-size: 15px;
  }

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

}

@media (max-width: 480px) {
  .page-slot-games__hero-content {
    margin-top: -20px;
    padding: 20px 10px 30px;
  }
  .page-slot-games__hero-title {
    font-size: clamp(22px, 8vw, 32px);
  }
  .page-slot-games__section-title {
    font-size: clamp(22px, 7vw, 30px);
  }
  .page-slot-games__feature-grid,
  .page-slot-games__slot-types-grid,
  .page-slot-games__guide-list,
  .page-slot-games__promotion-grid {
    gap: 20px;
  }
  .page-slot-games__guide-item,
  .page-slot-games__feature-card,
  .page-slot-games__slot-type-card,
  .page-slot-games__promotion-card,
  .page-slot-games__tips-item,
  .page-slot-games__faq-item {
    padding: 20px;
  }
  .page-slot-games__faq-question {
    padding: 12px 15px;
  }
  .page-slot-games__faq-answer {
    padding: 12px 15px;
  }
}