.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-slot-games__section-title {
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-slot-games__section-intro {
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-slot-games__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

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

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero_main:1920x1080:slot_games,mcw_casino_88,jackpot,excitement,green_theme]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  overflow: hidden;
}

.page-slot-games__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

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

.page-slot-games__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #f0f0f0;
}

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

.page-slot-games__hero-image-wrapper {
  display: none; /* Hide hero image wrapper on desktop, background image is used */
}

/* Video Section */
.page-slot-games__video-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
  text-align: center;
}

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

.page-slot-games__video,
.page-slot-games__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
}

.page-slot-games__video-description {
  font-size: 1rem;
  color: #ccc;
  margin-top: 20px;
}

/* Game Categories Section */
.page-slot-games__game-categories-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-slot-games__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__category-title {
  font-size: 1.8rem;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__category-description {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-slot-games__category-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.page-slot-games__category-link:hover {
  background-color: #02944b;
}

/* Why Choose Section */
.page-slot-games__why-choose-section {
  padding: 80px 0;
  background-color: #017439;
}

.page-slot-games__why-choose-section .page-slot-games__section-title,
.page-slot-games__why-choose-section .page-slot-games__section-intro {
  color: #ffffff;
}

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

.page-slot-games__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-slot-games__feature-title {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-slot-games__feature-description {
  font-size: 0.95rem;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Top Games Section */
.page-slot-games__top-games-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-slot-games__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-slot-games__game-card:hover {
  transform: translateY(-5px);
}

.page-slot-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-slot-games__game-card .page-slot-games__game-title {
  padding: 15px 20px 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #017439;
}

.page-slot-games__game-card .page-slot-games__game-title a {
  color: #017439;
  text-decoration: none;
}

.page-slot-games__game-card .page-slot-games__game-title a:hover {
  text-decoration: underline;
}

.page-slot-games__game-provider {
  padding: 0 20px;
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 10px;
}

.page-slot-games__game-description {
  padding: 0 20px 15px;
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
  flex-grow: 1;
}

.page-slot-games__btn-play {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 20px;
  background-color: #C30808;
  color: #FFFF00;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
}

.page-slot-games__btn-play:hover {
  background-color: #e00b0b;
}

.page-slot-games__cta-more-games {
  text-align: center;
  margin-top: 50px;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-slot-games__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__step-title {
  font-size: 1.6rem;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__step-description {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-slot-games__btn-step {
  display: inline-block;
  padding: 10px 20px;
  background-color: #C30808;
  color: #FFFF00;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.page-slot-games__btn-step:hover {
  background-color: #e00b0b;
}

/* Responsible Gambling Section */
.page-slot-games__responsible-gambling-section {
  padding: 80px 0;
  background-color: #017439;
}

.page-slot-games__responsible-gambling-section .page-slot-games__section-title,
.page-slot-games__responsible-gambling-section .page-slot-games__section-intro {
  color: #ffffff;
}

.page-slot-games__responsible-gambling-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 800px;
  text-align: left;
}

.page-slot-games__responsible-gambling-list li {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 15px;
  line-height: 1.6;
  position: relative;
  padding-left: 30px;
}

.page-slot-games__responsible-gambling-list li::before {
  content: '✓';
  color: #FFFF00;
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

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

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  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.2);
}

.page-slot-games__faq-title {
  font-size: 1.2rem;
  color: #ffffff;
  margin: 0;
  font-weight: bold;
}

.page-slot-games__faq-toggle {
  font-size: 1.8rem;
  color: #017439;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-slot-games__faq-answer p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 25px;
}

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

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

.page-slot-games__cta-section .page-slot-games__section-title,
.page-slot-games__cta-section .page-slot-games__section-intro {
  color: #ffffff;
}

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

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

@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 0 15px !important;
  }
  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: auto;
    padding-bottom: 60px;
  }
  .page-slot-games__hero-title {
    font-size: 2.5rem;
  }
  .page-slot-games__hero-description {
    font-size: 1rem;
  }
  .page-slot-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__category-link,
  .page-slot-games__btn-play,
  .page-slot-games__btn-step {
    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__video-section,
  .page-slot-games__game-categories-section,
  .page-slot-games__why-choose-section,
  .page-slot-games__top-games-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__responsible-gambling-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    padding: 40px 0;
  }
  .page-slot-games__section-title {
    font-size: 1.8rem;
  }
  .page-slot-games__section-intro {
    font-size: 0.95rem;
  }
  .page-slot-games__categories-grid,
  .page-slot-games__features-grid,
  .page-slot-games__game-list-grid,
  .page-slot-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__category-image,
  .page-slot-games__game-image {
    height: 180px;
  }
  .page-slot-games__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-slot-games__responsible-gambling-list li {
    font-size: 1rem;
    padding-left: 25px;
  }
  .page-slot-games__faq-question {
    padding: 15px 20px;
  }
  .page-slot-games__faq-title {
    font-size: 1.1rem;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px 20px 20px;
  }
  /* Ensure all images are responsive */
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__hero-image-wrapper {
    display: block; /* Show hero image wrapper on mobile */
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
  }
  .page-slot-games__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
  .page-slot-games__video-wrapper,
  .page-slot-games__video-section,
  .page-slot-games__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 2rem;
  }
  .page-slot-games__section-title {
    font-size: 1.5rem;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    font-size: 1rem;
    padding: 12px 20px;
  }
}