/* style/999bet-slot.css */
:root {
  --primary-color: #0A0A0A;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0A0A0A;
  --background-light: #f8f9fa;
  --border-color: #e0e0e0;
}

.page-999bet-slot {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--background-dark); /* Body background is dark */
}

.page-999bet-slot__dark-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-999bet-slot__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-999bet-slot h1, .page-999bet-slot h2, .page-999bet-slot h3, .page-999bet-slot h4, .page-999bet-slot h5, .page-999bet-slot h6 {
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 15px;
}

.page-999bet-slot h1 {
  font-size: 3em;
  text-align: center;
}

.page-999bet-slot h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  position: relative;
}

.page-999bet-slot h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-999bet-slot h3 {
  font-size: 1.8em;
  color: var(--text-dark);
}

.page-999bet-slot__dark-section h3 {
  color: var(--text-light);
}

.page-999bet-slot p {
  margin-bottom: 15px;
}

.page-999bet-slot a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-999bet-slot a:hover {
  color: var(--text-light);
}

.page-999bet-slot__link-in-text {
  font-weight: bold;
  text-decoration: underline;
}

.page-999bet-slot__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-999bet-slot__section {
  padding: 60px 0;
}

.page-999bet-slot__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-999bet-slot__text-block--center {
  text-align: center;
}

.page-999bet-slot__center-content {
  text-align: center;
  margin-top: 30px;
}

/* HERO Section */
.page-999bet-slot__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  min-height: 700px;
  overflow: hidden;
}

.page-999bet-slot__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-999bet-slot__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 0;
}

.page-999bet-slot__hero-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-999bet-slot__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
  color: var(--text-light);
}

.page-999bet-slot__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-999bet-slot__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-999bet-slot__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
}

.page-999bet-slot__cta-button:hover {
  background: #ffe64d;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

/* Games Section */
.page-999bet-slot__games-section h2 {
  color: var(--text-light);
}

.page-999bet-slot__games-section .page-999bet-slot__text-block {
  color: var(--text-light);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-999bet-slot__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-999bet-slot__game-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-999bet-slot__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.page-999bet-slot__game-card img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid var(--secondary-color);
}

.page-999bet-slot__game-card .page-999bet-slot__card-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-999bet-slot__game-card .page-999bet-slot__card-description {
  color: var(--text-light);
  font-size: 1em;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-999bet-slot__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 30px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-999bet-slot__btn-primary:hover {
  background: #ffe64d;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

/* Promotions Section */
.page-999bet-slot__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-999bet-slot__promo-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-999bet-slot__promo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-999bet-slot__promo-title {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-999bet-slot__promo-item p {
  color: var(--text-dark);
  font-size: 0.95em;
}

/* Guide Section */
.page-999bet-slot__guide-section h2 {
  color: var(--text-light);
}

.page-999bet-slot__guide-section .page-999bet-slot__text-block {
  color: var(--text-light);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-999bet-slot__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-counter;
  margin-top: 40px;
}

.page-999bet-slot__guide-list li {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px 30px 25px 70px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-999bet-slot__guide-list li::before {
  counter-increment: guide-counter;
  content: counter(guide-counter);
  position: absolute;
  left: 25px;
  top: 25px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
}

.page-999bet-slot__guide-title {
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-999bet-slot__guide-list li p {
  color: var(--text-light);
}

/* Security Section */
.page-999bet-slot__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-999bet-slot__feature-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-999bet-slot__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-999bet-slot__feature-item img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-999bet-slot__feature-title {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-999bet-slot__feature-item p {
  color: var(--text-dark);
  font-size: 0.95em;
}

/* FAQ Section */
.page-999bet-slot__faq-section h2 {
  color: var(--text-light);
}

.page-999bet-slot__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ container style */
.page-999bet-slot__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* FAQ default state - answer hidden */
.page-999bet-slot__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-999bet-slot__faq-item.active .page-999bet-slot__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to contain any content */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
  color: var(--text-light);
}

/* Question style */
.page-999bet-slot__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-999bet-slot__faq-item.active .page-999bet-slot__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-999bet-slot__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-999bet-slot__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Question title style */
.page-999bet-slot__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: var(--secondary-color);
}

/* Toggle icon */
.page-999bet-slot__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-999bet-slot__faq-item.active .page-999bet-slot__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Optional: rotate for 'X' effect */
}

/* Conclusion Section */
.page-999bet-slot__conclusion-section .page-999bet-slot__text-block {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Image Responsive Styles */
.page-999bet-slot img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-999bet-slot__hero-title {
    font-size: 3em;
  }
  .page-999bet-slot__hero-description {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-999bet-slot__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust based on mobile fixed header height */
    min-height: 500px;
    padding-bottom: 40px;
  }
  .page-999bet-slot__hero-image img {
    border-radius: 4px;
  }
  .page-999bet-slot__hero-title {
    font-size: 2.2em;
  }
  .page-999bet-slot__hero-description {
    font-size: 1em;
  }
  .page-999bet-slot__cta-button {
    padding: 15px 35px;
    font-size: 1.1em;
  }
  .page-999bet-slot h1 {
    font-size: 2.5em;
  }
  .page-999bet-slot h2 {
    font-size: 2em;
    margin-bottom: 20px;
  }
  .page-999bet-slot h2::after {
    width: 60px;
  }
  .page-999bet-slot h3 {
    font-size: 1.5em;
  }
  .page-999bet-slot__section {
    padding: 40px 0;
  }
  .page-999bet-slot__text-block {
    font-size: 1em;
  }
  .page-999bet-slot__container {
    padding: 0 15px;
  }

  .page-999bet-slot img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-999bet-slot__section,
  .page-999bet-slot__card,
  .page-999bet-slot__container,
  .page-999bet-slot__game-card,
  .page-999bet-slot__promo-item,
  .page-999bet-slot__feature-item,
  .page-999bet-slot__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-999bet-slot__game-grid,
  .page-999bet-slot__promo-list,
  .page-999bet-slot__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-999bet-slot__game-card img {
    height: 180px;
  }

  .page-999bet-slot__guide-list li {
    padding: 20px 20px 20px 60px;
  }

  .page-999bet-slot__guide-list li::before {
    left: 15px;
    top: 20px;
    width: 30px;
    height: 30px;
    font-size: 1em;
  }

  .page-999bet-slot__faq-question {
    padding: 15px;
  }
  .page-999bet-slot__faq-question h3 {
    font-size: 1em;
  }
  .page-999bet-slot__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-999bet-slot__faq-item.active .page-999bet-slot__faq-answer {
    padding: 15px !important;
  }
}