/* style/slot-games.css */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  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;
  box-sizing: border-box;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  height: 700px; /* Increased height for visual impact */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  box-sizing: border-box;
}

.page-slot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-slot-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  z-index: 2;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

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

.page-slot-games__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Section Styling */
.page-slot-games__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-slot-games__section-title--white {
  color: #ffffff;
}

.page-slot-games__section-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #333333; /* Default for light background */
}

.page-slot-games__section-text--white {
  color: #ffffff;
}

/* Background Colors */
.page-slot-games__dark-bg {
  background-color: #1a1a1a; /* Darker background for contrast */
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #f5f5f5;
  color: #333333;
}

/* Buttons */
.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.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background-color: #FFD700;
  color: #8B0000; /* Dark red text for contrast */
  border: 2px solid #FFD700;
}

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

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

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

.page-slot-games__btn-primary--small,
.page-slot-games__btn-secondary--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

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

/* Feature Grid */
.page-slot-games__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 50px 0;
}

.page-slot-games__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark bg */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-slot-games__feature-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-slot-games__feature-description {
  font-size: 1em;
  line-height: 1.6;
}

/* Game Showcase Grid */
.page-slot-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 50px 0;
}

.page-slot-games__game-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-slot-games__game-title {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-slot-games__game-description {
  font-size: 0.95em;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Strategy List */
.page-slot-games__strategy-list {
  list-style: none;
  padding: 50px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

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

.page-slot-games__strategy-description--white {
  color: #ffffff;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 80px 0;
}

.page-slot-games__promotion-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  overflow: hidden;
  color: #333333;
}

.page-slot-games__promotion-card:nth-child(even) {
  flex-direction: column-reverse; /* Alternate layout */
}

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

.page-slot-games__promotion-content {
  padding: 30px;
  text-align: center;
}

.page-slot-games__promotion-title {
  font-size: 2em;
  color: #8B0000;
  margin-bottom: 15px;
}

.page-slot-games__promotion-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* How To Play Section */
.page-slot-games__how-to-play-section {
  padding: 80px 0;
}

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

.page-slot-games__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-slot-games__step-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-slot-games__step-description--white {
  color: #ffffff;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
}

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

.page-slot-games__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

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

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

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

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
  line-height: 1.6;
}

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

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

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

/* All images in content area */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space */
}

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

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Apply offset for mobile hero */
  }

  .page-slot-games__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-slot-games__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-slot-games__hero-actions,
  .page-slot-games__cta-actions {
    flex-direction: column;
    gap: 15px;
  }

  .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__feature-grid,
  .page-slot-games__game-grid,
  .page-slot-games__strategy-list,
  .page-slot-games__step-grid {
    grid-template-columns: 1fr;
    padding: 30px 0;
  }

  .page-slot-games__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

  .page-slot-games__section-text {
    font-size: 1em;
  }

  .page-slot-games__promotion-card {
    flex-direction: column !important;
  }

  .page-slot-games__promotion-card:nth-child(even) {
    flex-direction: column !important;
  }

  .page-slot-games__promotion-content {
    padding: 20px;
  }

  .page-slot-games__promotion-title {
    font-size: 1.5em;
  }

  .page-slot-games__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-slot-games__faq-answer {
    padding: 15px 20px;
  }

  /* Ensure all image containers and images are responsive on mobile */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__introduction-section,
  .page-slot-games__why-choose-section,
  .page-slot-games__game-showcase-section,
  .page-slot-games__tips-strategies-section,
  .page-slot-games__promotions-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section,
  .page-slot-games__feature-card,
  .page-slot-games__game-card,
  .page-slot-games__promotion-card,
  .page-slot-games__step-card,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-slot-games__hero-content {
    padding: 0 15px;
  }
}

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