.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #1a1a1a;
}

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

.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Default to column for mobile first */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px; /* Adjust for header offset */
  padding-top: calc(var(--header-offset, 120px) + 60px); /* Ensure space below fixed header */
  background: linear-gradient(135deg, #8B0000, #FFD700);
  overflow: hidden;
  color: #ffffff;
}

.page-slot-games__hero-content {
  z-index: 1;
  max-width: 800px;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
}

.page-slot-games__btn-primary:hover {
  background-color: #e6c200;
  color: #6a0000;
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-slot-games__btn-secondary:hover {
  background-color: #ffffff;
  color: #8B0000;
}

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

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-slot-games__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 60px;
  color: #FFD700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-slot-games__sub-title,
.page-slot-games__card-title,
.page-slot-games__step-title,
.page-slot-games__strategy-sub-title,
.page-slot-games__advantage-title,
.page-slot-games__faq-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-slot-games__introduction-section {
  padding: 80px 0;
}

.page-slot-games__dark-section {
  background-color: #0d0d0d;
  color: #f0f0f0;
}

.page-slot-games__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-slot-games__text-block p {
  line-height: 1.7;
  color: #e0e0e0;
}

.page-slot-games__link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-slot-games__game-types-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-slot-games__card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.page-slot-games__card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min size enforcement */
  min-height: 200px; /* Min size enforcement */
}

.page-slot-games__card p {
  color: #e0e0e0;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-slot-games__how-to-play-section {
  padding: 80px 0;
}

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

.page-slot-games__step-item {
  text-align: center;
}

.page-slot-games__step-icon {
  background-color: #FFD700;
  color: #8B0000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-slot-games__step-item p {
  color: #e0e0e0;
  line-height: 1.6;
}

.page-slot-games__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background-color: #000;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-slot-games__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-slot-games__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Ensure link is clickable over video */
}

.page-slot-games__strategy-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-slot-games__strategy-list {
  list-style: none;
  padding: 0;
  margin: 0 0 60px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-slot-games__strategy-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__strategy-item p {
  color: #e0e0e0;
  line-height: 1.6;
}

.page-slot-games__cta-section {
  text-align: center;
  padding: 40px;
  background-color: rgba(255, 215, 0, 0.1);
  border-radius: 15px;
}

.page-slot-games__cta-text {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #FFD700;
}

.page-slot-games__advantages-section {
  padding: 80px 0;
}

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

.page-slot-games__advantage-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-slot-games__advantage-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min size enforcement */
  min-height: 200px; /* Min size enforcement */
}

.page-slot-games__advantage-item p {
  color: #e0e0e0;
  line-height: 1.6;
  flex-grow: 1;
}

.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-slot-games__faq-list {
  max-width: 900px;
  margin: 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 30px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

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

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

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
  line-height: 1.6;
}

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

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

.page-slot-games__conclusion-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #e0e0e0;
  line-height: 1.7;
}

.page-slot-games__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Desktop specific styles */
@media (min-width: 769px) {
  .page-slot-games__hero-section {
    flex-direction: row;
    padding: 120px 20px;
    padding-top: var(--header-offset, 120px);
    height: 600px;
    justify-content: space-around;
  }

  .page-slot-games__hero-content {
    text-align: left;
  }

  .page-slot-games__hero-title {
    font-size: 4.5em;
  }

  .page-slot-games__content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-slot-games__strategy-list {
    grid-template-columns: 1fr 1fr;
  }

  .page-slot-games__advantages-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-slot-games__hero-title {
    font-size: 2.5em;
  }

  .page-slot-games__hero-description {
    font-size: 1em;
  }

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

  .page-slot-games__sub-title,
  .page-slot-games__card-title,
  .page-slot-games__step-title,
  .page-slot-games__strategy-sub-title,
  .page-slot-games__advantage-title,
  .page-slot-games__faq-title {
    font-size: 1.5em;
  }

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

  /* Video responsiveness */
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* Button responsiveness */
  .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__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-slot-games__cta-section .page-slot-games__btn-primary {
    max-width: 80% !important;
    width: 80% !important;
    margin: 0 auto;
  }

  /* Container padding for mobile */
  .page-slot-games__container,
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__text-block,
  .page-slot-games__step-item,
  .page-slot-games__strategy-item,
  .page-slot-games__advantage-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__faq-item {
    padding: 0;
    margin: 0 15px 15px 15px;
  }
  .page-slot-games__faq-question {
    padding: 15px 20px;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px 20px;
  }
}