/* style/slot-games.css */

/* Base styles for the page content */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Assuming body has background from shared.css */
}

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

.page-slot-games__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Gold color for titles */
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.page-slot-games__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-slot-games__intro-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-slot-games__intro-content {
  text-align: center;
  font-size: 17px;
  color: #f0f0f0;
}

.page-slot-games__intro-content p {
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__intro-content a {
  color: #FFD700;
  text-decoration: underline;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* Assuming shared.css sets body padding-top */
  margin-top: 0;
  overflow: hidden;
}

.page-slot-games__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
}

.page-slot-games__hero-image {
  width: 100%;
  margin: 0;
}

.page-slot-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Products Section (Game Showcase) */
.page-slot-games__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #0d0d0d; /* Slightly lighter dark background for contrast */
  box-sizing: border-box;
}

.page-slot-games__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 small + 2 large */
  gap: 20px;
}

.page-slot-games__products-grid {
  display: grid;
  gap: 20px;
}

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

.page-slot-games__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-slot-games__product-card {
  width: 100%;
  max-width: 300px; /* Max width for each card */
  border-radius: 0; /* No border-radius */
  overflow: hidden;
  background: transparent; /* No background */
  box-shadow: none; /* No box-shadow */
  transition: transform 0.3s ease;
  margin: 0 auto; /* Center cards in grid cells */
}

.page-slot-games__product-card:hover {
  transform: translateY(-5px); /* Slight lift on hover */
}

.page-slot-games__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-slot-games__product-card-image {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
}

.page-slot-games__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
}

/* Feature Cards Section */
.page-slot-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__feature-card {
  background: rgba(255, 255, 255, 0.05); /* 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);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__feature-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  object-fit: cover;
}

.page-slot-games__feature-card .page-slot-games__card-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-slot-games__feature-card p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-slot-games__feature-card a {
  color: #DC143C;
  text-decoration: underline;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  background-color: #000;
}

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

.page-slot-games__promo-item {
  background: 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);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__promo-item .page-slot-games__promo-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-slot-games__promo-item p {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* CTA Buttons */
.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-slot-games__cta-buttons--centered {
  margin-bottom: 60px;
}

.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: nowrap; /* Prevent text wrap on desktop */
  box-sizing: border-box;
  max-width: 300px; /* Limit button width */
}

.page-slot-games__btn-primary {
  background: #FFD700;
  color: #000; /* Dark text on gold button for contrast */
  border: 2px solid #FFD700;
}

.page-slot-games__btn-primary:hover {
  background: #DC143C; /* Red on hover */
  color: #fff;
  border-color: #DC143C;
}

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

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

/* FAQ Section */
.page-slot-games__faq-section {
  background-color: #0d0d0d;
}

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

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark bg */
  border: 1px solid rgba(255, 255, 255, 0.15);
  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.12);
  border-color: #FFD700;
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700; /* Gold color for FAQ questions */
}

.page-slot-games__faq-toggle {
  font-size: 28px;
  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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: #DC143C; /* Red when active */
  transform: rotate(180deg); /* Rotate for minus sign */
}

.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;
  padding: 0 20px;
  opacity: 0;
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark bg */
  border-radius: 0 0 5px 5px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
}

.page-slot-games__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

.page-slot-games__faq-answer a {
  color: #FFD700;
  text-decoration: underline;
}

/* Blog Section */
.page-slot-games__blog-section {
  background-color: #000;
}

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

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

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

.page-slot-games__blog-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-slot-games__blog-card .page-slot-games__blog-card-title {
  font-size: 20px;
  margin-bottom: 10px;
  flex-grow: 1; /* Allow title to take space */
}

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

.page-slot-games__blog-card .page-slot-games__blog-card-title a:hover {
  color: #DC143C;
}

.page-slot-games__blog-card .page-slot-games__blog-excerpt {
  font-size: 15px;
  color: #ccc;
  margin-bottom: 15px;
}

.page-slot-games__blog-card .page-slot-games__blog-date {
  font-size: 14px;
  color: #999;
  text-align: right;
  display: block;
}

/* Contact CTA Section */
.page-slot-games__contact-cta {
  background-color: #0d0d0d;
  text-align: center;
  padding: 80px 20px;
}

.page-slot-games__contact-cta p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 18px;
  color: #f0f0f0;
}

/* Responsive Styles */

/* Tablet and larger mobile (up to 1024px) */
@media (max-width: 1024px) {
  .page-slot-games__section-title {
    font-size: 32px;
  }

  .page-slot-games__main-title {
    font-size: 40px;
  }

  .page-slot-games__intro-text {
    font-size: 17px;
  }

  .page-slot-games__products-container {
    grid-template-columns: 1fr; /* Stack product grids vertically */
  }
  
  .page-slot-games__products-grid--small {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for small products */
  }

  .page-slot-games__products-grid--large {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for large products */
  }

  .page-slot-games__product-card {
    max-width: none; /* Allow cards to fill grid space */
  }

  .page-slot-games__feature-card img,
  .page-slot-games__blog-card img {
    height: auto; /* Allow height to adapt */
  }
}

/* Mobile (up to 768px) - MUST be explicitly written for each required section */
@media (max-width: 768px) {
  /* General Mobile Styles */
  .page-slot-games__content-area {
    padding: 30px 15px;
  }

  .page-slot-games__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-slot-games__main-title {
    font-size: 32px;
  }

  .page-slot-games__intro-text {
    font-size: 16px;
  }

  .page-slot-games p,
  .page-slot-games li {
    font-size: 15px;
    line-height: 1.6;
  }

  /* HERO Main Image Section */
  .page-slot-games__hero-section {
    padding-top: 0 !important; /* Fixed header offset handled by shared.css body, or this would be var(--header-offset) */
  }

  .page-slot-games__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Products Section (Game Showcase) */
  .page-slot-games__products-section {
    padding: 40px 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
    box-sizing: border-box;
  }
  
  .page-slot-games__products-container {
    grid-template-columns: 1fr; /* Stack grids */
    gap: 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  /* Front 4 images - 2x2 grid */
  .page-slot-games__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-slot-games__products-grid--small .page-slot-games__product-card,
  .page-slot-games__products-grid--small .page-slot-games__product-card-image {
    max-width: 100%; /* Allow to fill container */
  }
  
  .page-slot-games__products-grid--small .page-slot-games__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Maintain aspect ratio */
  }
  
  /* Last 2 large images - each on its own row */
  .page-slot-games__products-grid--large {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-slot-games__products-grid--large .page-slot-games__product-card,
  .page-slot-games__products-grid--large .page-slot-games__product-card-image {
    max-width: 100%; /* Allow to fill container */
  }
  
  .page-slot-games__products-grid--large .page-slot-games__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Maintain aspect ratio */
  }

  /* General Images and Containers */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__feature-card,
  .page-slot-games__promo-item,
  .page-slot-games__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons and Button Containers */
  .page-slot-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px; /* Add padding to container */
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .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; /* Allow text wrap */
    word-wrap: break-word !important;
    padding: 12px 20px; /* Adjust padding for mobile */
  }

  /* Other Content Modules (Features, Promotions, Blog, Contact CTA) */
  .page-slot-games__features-grid,
  .page-slot-games__promo-list,
  .page-slot-games__blog-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-slot-games__feature-card {
    padding: 20px;
  }
  
  .page-slot-games__feature-card .page-slot-games__card-title {
    font-size: 20px;
  }

  .page-slot-games__promo-item {
    padding: 20px;
  }
  
  .page-slot-games__promo-item .page-slot-games__promo-title {
    font-size: 22px;
  }

  .page-slot-games__blog-card {
    padding: 15px;
  }

  .page-slot-games__blog-card img {
     /* Adjust blog image height for mobile */
  }
  
  .page-slot-games__blog-card .page-slot-games__blog-card-title {
    font-size: 18px;
  }

  .page-slot-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-slot-games__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    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;
  }

  .page-slot-games__contact-cta {
    padding: 60px 15px;
  }
  
  .page-slot-games__contact-cta p {
    font-size: 16px;
  }
}