/* style/slot-games.css */

/* Base styles for the page content, ensuring contrast with dark body background */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body or shared, ensuring contrast for specific sections */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header if shared.css doesn't set it for body */
}

/* Container for general content to center and limit width */
.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Section titles */
.page-slot-games__section-title {
  font-size: 2.5em;
  color: #ffffff; /* Default for dark sections */
  text-align: center;
  margin-bottom: 30px;
  margin-top: 50px;
  font-weight: bold;
}

/* Sub-titles for content blocks */
.page-slot-games__sub-title {
  font-size: 1.8em;
  color: #017439; /* Brand color for headings in light sections */
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Paragraphs */
.page-slot-games p {
  margin-bottom: 1em;
  font-size: 1.1em;
}

/* Links within content */
.page-slot-games a {
  color: #C30808; /* Red for emphasis, ensure contrast */
  text-decoration: underline;
}

.page-slot-games a:hover {
  text-decoration: none;
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 15px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #017439, #004d2b); /* Brand color gradient */
  color: #ffffff;
}

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

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

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

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

.page-slot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for text contrast, NOT changing color */
}

/* --- 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;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

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

/* --- Video Section --- */
.page-slot-games__video-section {
  padding: 60px 15px;
  background-color: #1a1a2e; /* Dark background from body */
  color: #ffffff;
  text-align: center;
}

.page-slot-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 20px auto;
  background-color: #000;
  border-radius: 10px;
}

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

.page-slot-games__video-description {
  font-size: 1.1em;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-slot-games__video-cta {
  margin-top: 20px;
}

/* --- Content Area (light background) --- */
.page-slot-games__content-area {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-slot-games__content-area .page-slot-games__section-title {
  color: #017439; /* Brand color for titles in light sections */
}

/* --- Card Grid --- */
.page-slot-games__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-slot-games__card {
  background-color: #f8f8f8; /* Slightly off-white for card background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

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

.page-slot-games__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-slot-games__card-description {
  font-size: 1em;
  color: #555555;
  padding: 0 15px;
}

/* --- Guide List / Tips List --- */
.page-slot-games__guide-list,
.page-slot-games__tips-list,
.page-slot-games__promotions-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-slot-games__guide-item,
.page-slot-games__tips-item,
.page-slot-games__promotions-item {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__guide-item .page-slot-games__sub-title,
.page-slot-games__tips-item .page-slot-games__sub-title,
.page-slot-games__promotions-item .page-slot-games__sub-title {
  color: #017439;
  margin-top: 0;
  font-size: 1.6em;
}

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

.page-slot-games__feature-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

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

.page-slot-games__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

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

.page-slot-games__feature-card p {
  font-size: 1em;
  color: #555555;
  padding: 0 15px;
  flex-grow: 1; /* Allow paragraph to take up remaining space */
}

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

.page-slot-games__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-slot-games__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  font-weight: bold;
  font-size: 1.2em;
  color: #017439;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

.page-slot-games__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #017439;
}

.page-slot-games__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.1em;
  color: #555555;
}

/* --- Conclusion Section --- */
.page-slot-games__conclusion-section {
  padding: 60px 15px;
  background-color: #017439; /* Brand color dark background */
  color: #ffffff;
  text-align: center;
}

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

.page-slot-games__conclusion-section p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-slot-games__cta-final {
  margin-top: 30px;
}

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

@media (max-width: 768px) {
  /* Ensure content is below fixed header on mobile */
  .page-slot-games {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset to main content area */
  }

  .page-slot-games__hero-section {
    flex-direction: column;
    padding: 60px 15px;
    min-height: auto;
  }

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

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

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

  /* Mobile button responsiveness */
  .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__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-slot-games__sub-title {
    font-size: 1.3em;
  }

  /* Mobile image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness */
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video and image containers for mobile */
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    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__video-wrapper {
    padding-bottom: 75%; /* Adjust for mobile aspect ratio if needed, or keep 16:9 */
  }

  .page-slot-games__hero-image-wrapper {
    height: 300px; /* Adjust hero image height for mobile */
  }

  .page-slot-games__card-image,
  .page-slot-games__feature-image {
    height: 180px; /* Adjust card image height for mobile */
  }

  .page-slot-games__grid-cards,
  .page-slot-games__features-grid {
    grid-template-columns: 1fr;
  }

  .page-slot-games__card,
  .page-slot-games__feature-card {
    margin: 0 auto;
    max-width: 400px;
  }
}