/* style/slot-games.css */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #1a1a2e; /* Inherited from shared.css, explicitly set for context */
}

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

.page-slot-games__section-title {
  font-size: 36px;
  color: #FFD700; /* Primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-slot-games__text-center {
  text-align: center;
}

.page-slot-games__mt-40 {
  margin-top: 40px;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero_bg:1920x1080:qq88,slot_games,hero_background]') no-repeat center center/cover;
  padding: 120px 20px 80px;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  /* Ensure content is below fixed header */
  padding-top: calc(var(--header-offset, 120px) + 60px);
}

.page-slot-games__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-slot-games__main-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFD700; /* Primary color for H1 */
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Primary color */
  color: #1a1a2e;
  text-decoration: none;
  border-radius: 88px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
}

.page-slot-games__cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-slot-games__cta-button--secondary {
  background: #8B0000; /* Secondary color */
  color: #ffffff;
}

.page-slot-games__cta-button--secondary:hover {
  background: #6a0000; /* Slightly darker red */
}

.page-slot-games__cta-button--outline {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  box-shadow: none;
}

.page-slot-games__cta-button--outline:hover {
  background: #FFD700;
  color: #1a1a2e;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-slot-games__cta-button--large {
  padding: 18px 50px;
  font-size: 22px;
}

/* General Content Sections */
.page-slot-games__introduction-section, 
.page-slot-games__game-types-section, 
.page-slot-games__providers-section, 
.page-slot-games__how-to-play-section, 
.page-slot-games__promotions-section, 
.page-slot-games__mobile-section, 
.page-slot-games__conclusion-section {
  padding: 60px 0;
  background-color: #1f1f3a; /* Slightly lighter dark background for sections */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-slot-games__dark-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-slot-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-slot-games__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-slot-games__content-wrapper p {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
}

.page-slot-games__image {
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.page-slot-games__image--left {
  margin-right: 20px;
}

.page-slot-games__image--right {
  margin-left: 20px;
}

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

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

/* Cards */
.page-slot-games__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-slot-games__card-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__card p {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
}

/* Step Cards (How to Play) */
.page-slot-games__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-slot-games__step-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-slot-games__step-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
}

/* Promotions List */
.page-slot-games__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  font-size: 17px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__promo-list li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 5px solid #FFD700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-slot-games__promo-list li strong {
  color: #FFD700;
}

.page-slot-games__promotions-section p a, 
.page-slot-games__mobile-section p a {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-slot-games__promotions-section p a:hover,
.page-slot-games__mobile-section p a:hover {
  color: #e6c200;
}

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

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

/* FAQ item styles */
.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-slot-games__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;
  background-color: rgba(255, 255, 255, 0.03);
  color: #e0e0e0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to accommodate content */
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 5px 5px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(180deg);
  color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 44px;
  }
  .page-slot-games__hero-description {
    font-size: 18px;
  }
  .page-slot-games__section-title {
    font-size: 32px;
  }
  .page-slot-games__content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-slot-games__content-wrapper--reversed {
    flex-direction: column;
  }
  .page-slot-games__image {
    max-width: 80%;
    margin: 0 auto 30px auto;
  }
  .page-slot-games__image--left, .page-slot-games__image--right {
    margin: 0 auto 30px auto;
  }
  .page-slot-games__grid-3-cols, .page-slot-games__grid-2-cols {
    grid-template-columns: 1fr;
  }
  .page-slot-games__step-card, .page-slot-games__card {
    padding: 25px;
  }
  .page-slot-games__card-image, .page-slot-games__step-image {
    height: 200px;
  }
  .page-slot-games__card-title {
    font-size: 20px;
  }
  .page-slot-games__card p {
    font-size: 15px;
  }
  .page-slot-games__promo-list {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-top: calc(var(--header-offset, 120px) + 30px) !important;
    padding-bottom: 50px;
    min-height: 400px;
  }
  .page-slot-games__main-title {
    font-size: 36px;
  }
  .page-slot-games__hero-description {
    font-size: 16px;
  }
  .page-slot-games__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    border-radius: 8px; /* Ensure button corners are rounded on mobile */
  }
  .page-slot-games__cta-button--large {
    padding: 15px 40px;
    font-size: 20px;
  }
  .page-slot-games__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-slot-games__container {
    padding: 30px 15px;
  }
  .page-slot-games__content-wrapper p {
    font-size: 16px;
  }
  .page-slot-games__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
  }
  .page-slot-games__card {
    padding: 20px;
  }
  .page-slot-games__card-title {
    font-size: 20px;
  }
  .page-slot-games__card p {
    font-size: 15px;
  }
  .page-slot-games__step-card {
    padding: 20px;
  }
  .page-slot-games__step-title {
    font-size: 18px;
  }
  .page-slot-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-slot-games__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-slot-games__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-slot-games__faq-answer {
    padding: 0 15px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive and do not cause horizontal scroll */
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__section, .page-slot-games__card, .page-slot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-slot-games__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
}