/* style/slot-games.css */

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

/* --- Color Contrast Classes --- */
.page-slot-games__dark-bg {
  background-color: #017439;
  color: #ffffff; /* White text on main brand color */
}

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text on white background */
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-slot-games__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-slot-games__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* H1 font-size rule: use clamp or no fixed size. */
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive font size for H1 */
}

.page-slot-games__description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-slot-games__btn-primary {
  background-color: #C30808; /* Custom color for registration/login */
  color: #FFFF00; /* Custom font color for registration/login */
  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;
}

/* --- General Content Sections --- */
.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section for contrast */
}

.page-slot-games__intro-section p,
.page-slot-games__conclusion-section p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 20px auto;
  text-align: center;
}

/* --- Game Categories Section --- */
.page-slot-games__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__game-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 30px;
}

.page-slot-games__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

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

.page-slot-games__game-card p {
  padding: 0 20px;
  margin-bottom: 25px;
  color: #333333;
}

.page-slot-games__info-block {
  margin-top: 60px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-slot-games__info-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 15px;
}

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

.page-slot-games__benefit-item {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__benefit-icon {
  width: 100%; /* Ensure images are responsive within their container */
  max-width: 150px; /* Max width for icons */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__benefit-item p {
  color: #555555;
}

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

.page-slot-games__step-item {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
}

.page-slot-games__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

.page-slot-games__step-item a {
  color: #C30808;
  text-decoration: underline;
}

.page-slot-games__step-item a:hover {
  color: #a00606;
}

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

.page-slot-games__tip-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
  text-align: center;
}

.page-slot-games__tip-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-slot-games__tip-title {
  font-size: 1.7em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-slot-games__tip-item p {
  padding: 0 20px 30px 20px;
  color: #333333;
}

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

.page-slot-games__promo-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 30px;
}

.page-slot-games__promo-card .page-slot-games__card-image {
  height: 200px;
}

.page-slot-games__promo-card .page-slot-games__card-title {
  color: #017439;
}

.page-slot-games__promo-card p {
  padding: 0 20px;
  margin-bottom: 25px;
  color: #333333;
}

.page-slot-games__promo-card a {
  display: inline-block;
  margin-top: 15px;
}

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

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e6f4ea; /* Lighter shade of brand color for question background */
  border-bottom: 1px solid #d0e0d4;
}

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

.page-slot-games__faq-qtext {
  flex-grow: 1;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-games__faq-answer {
  padding: 20px;
  font-size: 1.05em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
  background-color: #ffffff;
}

.page-slot-games__faq-item details > summary {
  list-style: none;
}

.page-slot-games__faq-item details > summary::-webkit-details-marker {
  display: none;
}

/* --- Conclusion Section --- */
.page-slot-games__conclusion-section {
  text-align: center;
  padding: 60px 20px;
}

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

.page-slot-games__conclusion-section .page-slot-games__description {
  color: #f0f0f0;
}

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

  .page-slot-games__container {
    padding: 20px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__hero-section {
    padding-bottom: 40px;
  }

  .page-slot-games__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 15px;
  }

  .page-slot-games__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

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

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

  .page-slot-games__game-categories,
  .page-slot-games__benefit-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__tips-grid,
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__card-image,
  .page-slot-games__benefit-icon,
  .page-slot-games__tip-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all image containers are responsive */
  .page-slot-games__game-card,
  .page-slot-games__benefit-item,
  .page-slot-games__step-item,
  .page-slot-games__tip-item,
  .page-slot-games__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

/* Ensure all images maintain their original color */
.page-slot-games img {
  filter: none !important; /* Absolutely no CSS filters */
}

/* Content area images CSS size lower bound */
.page-slot-games__content-area img,
.page-slot-games__game-card img,
.page-slot-games__benefit-item img,
.page-slot-games__tip-item img,
.page-slot-games__promo-card img {
  min-width: 200px;
  min-height: 200px;
}

/* Overriding any potential smaller sizes for content images */
.page-slot-games img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
  width: auto; /* Allow natural width */
  height: auto; /* Allow natural height */
  max-width: 100%;
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-slot-games img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
}