/* style/slot-games.css */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark background */
  background-color: var(--dark-background-1); /* Assuming shared.css defines a dark background */
}

.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: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-slot-games__hero-background-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;
  color: #ffffff;
  max-width: 800px;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold color for title */
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

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

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

/* General Section Styling */
.page-slot-games__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.page-slot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

.page-slot-games__why-choose-us-section,
.page-slot-games__popular-games-section,
.page-slot-games__how-to-play-section,
.page-slot-games__promotions-section,
.page-slot-games__responsible-gambling-section,
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: var(--dark-background-1);
}

/* Features Grid */
.page-slot-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-slot-games__feature-item {
  background: rgba(255, 215, 0, 0.05); /* Light gold transparent background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-slot-games__feature-text {
  color: #f0f0f0;
}

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

.page-slot-games__game-card {
  background: rgba(139, 0, 0, 0.1); /* Light red transparent background */
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-slot-games__game-card-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-slot-games__game-card-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games__game-card-title a:hover {
  color: #ffffff;
}

.page-slot-games__game-card-description {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* How to Play Section */
.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 50px;
}

.page-slot-games__step-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__step-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-slot-games__step-image {
  width: 40%;
  height: auto;
  border-radius: 8px;
  margin: 0 30px;
  object-fit: cover;
}

.page-slot-games__step-item:nth-child(even) .page-slot-games__step-image {
  margin: 0 30px 0 0;
}

.page-slot-games__step-content {
  flex: 1;
}

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

.page-slot-games__step-text {
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-slot-games__step-text a {
  color: #FFD700;
  text-decoration: none;
}

.page-slot-games__step-text a:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-slot-games__promotion-banner-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 50px;
}

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

.page-slot-games__promotion-item {
  background: rgba(139, 0, 0, 0.2); /* Dark red transparent background */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #8B0000;
}

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

.page-slot-games__promotion-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-slot-games__promotion-text {
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Responsible Gambling Section */
.page-slot-games__responsible-gambling-section {
  text-align: center;
  background-color: #8B0000; /* Dark Red background */
  color: #ffffff;
}

.page-slot-games__responsible-gambling-section .page-slot-games__section-title {
  color: #FFD700;
}

.page-slot-games__responsible-gambling-section .page-slot-games__section-description {
  color: #ffffff;
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 50px;
}

.page-slot-games__faq-item {
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  color: #FFD700;
  cursor: pointer;
  background: rgba(255, 215, 0, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transform-origin: center;
  transition: transform 0.3s ease;
}

.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;
  color: #f0f0f0;
}

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

/* 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;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-slot-games__btn-primary {
  background-color: #FFD700;
  color: #000000; /* Ensure high contrast */
  border: 2px solid #FFD700;
}

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

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

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

/* Global image settings for content area to prevent small icons */
.page-slot-games img {
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  max-width: 100%;
  height: auto;
  display: block;
}

.page-slot-games__game-card-image {
  height: 250px; /* Override for specific card image display */
  min-height: 200px;
}

.page-slot-games__step-image {
  width: 100%; /* Ensure it takes full width of its container on desktop */
  max-width: 400px; /* Limit its max width */
  height: auto;
  min-height: 200px;
}

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

  .page-slot-games__section-title {
    font-size: 2em;
  }

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

  .page-slot-games__step-item:nth-child(even) {
    flex-direction: column;
  }

  .page-slot-games__step-image {
    width: 80%;
    margin: 0 auto 20px auto;
  }
}

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

  .page-slot-games__hero-section {
    height: auto;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-slot-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-slot-games__section-title {
    font-size: 1.8em;
  }

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

  .page-slot-games__why-choose-us-section,
  .page-slot-games__popular-games-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__responsible-gambling-section,
  .page-slot-games__faq-section {
    padding: 50px 0;
  }

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

  .page-slot-games__features-grid,
  .page-slot-games__game-cards-grid,
  .page-slot-games__promotion-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__game-card-image {
    height: 180px;
    min-height: 180px; /* Ensure min height is respected even on mobile */
  }

  .page-slot-games__step-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .page-slot-games__step-item:nth-child(even) {
    flex-direction: column;
  }

  .page-slot-games__step-image {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 20px auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    height: auto !important;
  }

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

  .page-slot-games__faq-answer {
    padding: 15px;
  }
  
  .page-slot-games__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}