/* style/slot-games.css */

/* --- Base Styles --- */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default body background */
}

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

.page-slot-games__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #017439; /* Primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

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

.page-slot-games__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__text-block--white {
  color: #f0f0f0;
}

/* --- Color Contrast Classes --- */
.page-slot-games__dark-bg {
  background-color: #017439; /* Primary color */
  color: #ffffff; /* White text for dark background */
  padding: 80px 0;
}

.page-slot-games__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for light background */
  padding: 80px 0;
}

/* --- Buttons --- */
.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-slot-games__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-register {
  background: #C30808; /* Custom Register color */
  color: #FFFF00; /* Custom Register font color */
}

.page-slot-games__btn-register:hover {
  background: #a30707;
}

.page-slot-games__btn-login {
  background: #C30808; /* Custom Login color */
  color: #FFFF00; /* Custom Login font color */
  margin-left: 20px;
}

.page-slot-games__btn-login:hover {
  background: #a30707;
}

.page-slot-games__btn-play {
    background: #017439; /* Primary color */
    color: #ffffff;
    padding: 18px 50px;
    font-size: 20px;
}

.page-slot-games__btn-play:hover {
    background: #005a2e;
}

.page-slot-games__btn-primary {
  background: #017439; /* Primary color */
  color: #ffffff;
  border: 2px solid transparent;
  padding: 12px 25px;
  font-size: 16px;
}

.page-slot-games__btn-primary:hover {
  background: #005a2e;
}

.page-slot-games__btn-secondary {
  background: #ffffff;
  color: #017439; /* Primary color for text */
  border: 2px solid #017439;
  padding: 12px 25px;
  font-size: 16px;
}

.page-slot-games__btn-secondary:hover {
  background: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background: linear-gradient(135deg, #017439, #1a9254); /* Gradient background */
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-slot-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-slot-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.page-slot-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  -webkit-filter: none; /* Ensure no filter changes image color */
  filter: none; /* Ensure no filter changes image color */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3); /* Slightly dark overlay for text readability */
  border-radius: 12px;
  margin-top: -80px; /* Overlap with image */
  padding-top: 100px; /* Adjust padding to make space for overlapping content */
}

.page-slot-games__hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Yellow for main title for impact */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* --- Introduction Section --- */
.page-slot-games__introduction-section {
  padding-bottom: 60px;
}

.page-slot-games__image-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-slot-games__image-gallery img {
    max-width: 48%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    -webkit-filter: none;
    filter: none;
    min-width: 200px; /* Ensure images are not too small */
}

/* --- Advantages Section --- */
.page-slot-games__advantages-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-slot-games__card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

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

.page-slot-games__card--dark {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-slot-games__card--dark .page-slot-games__card-title {
  color: #FFFF00; /* Yellow for titles on dark cards */
}

.page-slot-games__card--dark .page-slot-games__btn-secondary {
  color: #FFFF00;
  border-color: #FFFF00;
}

.page-slot-games__card--dark .page-slot-games__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

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

.page-slot-games__card p {
  font-size: 16px;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* --- Game Types Section --- */
.page-slot-games__game-types-section {
  padding-bottom: 60px;
}

.page-slot-games__type-card {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__type-card--reverse {
  flex-direction: row-reverse;
}

.page-slot-games__type-card img {
  width: 50%;
  height: 400px;
  object-fit: cover;
  -webkit-filter: none;
  filter: none;
  min-width: 200px; /* Ensure images are not too small */
}

.page-slot-games__type-content {
  width: 50%;
  padding: 40px;
  box-sizing: border-box;
}

.page-slot-games__type-content h3 {
  font-size: 28px;
  color: #017439;
  margin-bottom: 15px;
}

.page-slot-games__type-content p {
  font-size: 17px;
  color: #555555;
  line-height: 1.7;
  text-align: left;
}

/* --- Guide Section --- */
.page-slot-games__guide-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-slot-games__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__guide-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 30px;
  text-align: left;
}

.page-slot-games__guide-title {
  font-size: 22px;
  color: #FFFF00; /* Yellow for guide titles */
  margin-bottom: 10px;
}

.page-slot-games__guide-item p {
  font-size: 16px;
  color: #f0f0f0;
  text-align: left;
}

.page-slot-games__guide-item a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-slot-games__guide-item a:hover {
    color: #ffffff;
}

.page-slot-games__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* --- Promotions Section --- */
.page-slot-games__promotions-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-slot-games__promo-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-slot-games__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  -webkit-filter: none;
  filter: none;
  min-height: 200px; /* Ensure images are not too small */
}

.page-slot-games__promo-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-slot-games__promo-content h3 {
  font-size: 22px;
  color: #017439;
  margin-bottom: 10px;
}

.page-slot-games__promo-content p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: left;
}

.page-slot-games__promo-content .page-slot-games__btn-primary {
    align-self: flex-start;
    width: auto; /* Override full width for mobile */
}

/* --- FAQ Section --- */
.page-slot-games__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.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: #f0f8f0; /* Light green background for answer */
  color: #333333;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Ensure content fits */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

.page-slot-games__faq-question:active {
  background: #eeeeee;
}

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

.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #017439;
  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: #C30808; /* Red for active toggle */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-slot-games__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

/* --- Call to Action Section (Bottom) --- */
.page-slot-games__cta-section {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

.page-slot-games__cta-container {
    max-width: 900px;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-slot-games__hero-content h1 {
    font-size: 40px;
  }
  .page-slot-games__hero-content p {
    font-size: 18px;
  }
  .page-slot-games__section-title {
    font-size: 30px;
  }
  .page-slot-games__type-card img {
    height: 300px;
  }
  .page-slot-games__type-content {
    padding: 30px;
  }
  .page-slot-games__type-content h3 {
    font-size: 24px;
  }
}

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

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

  /* --- Hero Section Mobile --- */
  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    padding-bottom: 40px;
  }

  .page-slot-games__hero-image {
    margin-bottom: 20px;
  }

  .page-slot-games__hero-image img {
    border-radius: 8px;
  }

  .page-slot-games__hero-content {
    margin-top: -60px; /* Adjust overlap */
    padding-top: 80px;
    padding: 15px;
    border-radius: 8px;
  }

  .page-slot-games__hero-content h1 {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-slot-games__hero-content p {
    font-size: 16px;
    margin-bottom: 25px;
  }
}