.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Ensure main content area matches body background */
}

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

.page-slot-games__section-title {
  font-size: 2.8em;
  color: #FFB800;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
  color: #f0f0f0;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background: linear-gradient(135deg, #E44D26, #FFB800);
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-slot-games__hero-title {
  font-size: 3.8em;
  font-weight: 900;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-slot-games__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

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

.page-slot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Only for background effect, not changing original image color */
}

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

.page-slot-games__btn-primary {
  background-color: #E44D26;
  color: #ffffff;
  border: 2px solid #E44D26;
  box-shadow: 0 5px 15px rgba(228, 77, 38, 0.4);
}

.page-slot-games__btn-primary:hover {
  background-color: #FFB800;
  border-color: #FFB800;
  color: #000000;
  box-shadow: 0 8px 20px rgba(255, 184, 0, 0.6);
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.page-slot-games__btn-secondary:hover {
  background-color: #ffffff;
  color: #E44D26;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

/* Intro Section */
.page-slot-games__intro-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Lighter dark for contrast */
  color: #f0f0f0;
}

.page-slot-games__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  cursor: pointer;
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.page-slot-games__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Dark overlay for better text visibility */
  border-radius: 15px;
  transition: background 0.3s ease;
}

.page-slot-games__video-link:hover .page-slot-games__video-overlay {
  background: rgba(228, 77, 38, 0.3);
}

/* Game Types Section */
.page-slot-games__game-types {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

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

.page-slot-games__card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Ensure light text on dark card */
}

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

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

.page-slot-games__card-title {
  font-size: 1.8em;
  color: #FFB800;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-slot-games__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  padding: 0 15px;
}

/* Benefits Section */
.page-slot-games__benefits-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

.page-slot-games__feature-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-slot-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: rgba(255, 184, 0, 0.1);
  padding: 10px;
}

.page-slot-games__feature-title {
  font-size: 1.6em;
  color: #FFB800;
  margin-bottom: 10px;
}

.page-slot-games__feature-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* How To Play Section */
.page-slot-games__how-to-play {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

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

.page-slot-games__step-item {
  text-align: center;
  background-color: rgba(228, 77, 38, 0.1);
  border: 1px solid #E44D26;
  border-radius: 15px;
  padding: 30px;
  position: relative;
  color: #ffffff;
}

.page-slot-games__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #E44D26;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  border: 3px solid #0d0d0d;
}

.page-slot-games__step-title {
  font-size: 1.6em;
  color: #FFB800;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-slot-games__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

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

/* Tips & Strategies Section */
.page-slot-games__tips-strategies {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-slot-games__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-slot-games__list-item {
  background-color: rgba(255, 184, 0, 0.08);
  border-left: 5px solid #FFB800;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-slot-games__list-item strong {
  color: #FFB800;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-slot-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-slot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #E44D26;
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  background-color: #FFB800;
  color: #000000;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-question {
  background-color: #FFB800;
  color: #000000;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-slot-games__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* CTA Section */
.page-slot-games__cta-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  text-align: center;
  color: #f0f0f0;
}

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

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

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-slot-games__hero-content {
    padding: 15px;
  }
  .page-slot-games__hero-title {
    font-size: 2.5em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    width: 100% !important; /* Ensure buttons take full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-slot-games__text-block,
  .page-slot-games__list-item,
  .page-slot-games__card-text,
  .page-slot-games__feature-text,
  .page-slot-games__step-text,
  .page-slot-games__faq-answer p {
    font-size: 0.95em;
    line-height: 1.5;
  }
  .page-slot-games__intro-section,
  .page-slot-games__game-types,
  .page-slot-games__benefits-section,
  .page-slot-games__how-to-play,
  .page-slot-games__tips-strategies,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    padding: 40px 0;
  }
  .page-slot-games__grid,
  .page-slot-games__features-grid,
  .page-slot-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__card-image,
  .page-slot-games__feature-icon {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__container,
  .page-slot-games__video-wrapper,
  .page-slot-games__cta-buttons,
  .page-slot-games__hero-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-slot-games__faq-answer {
    padding: 15px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px !important;
  }
}