/* style/slot-games.css */

/* Base styles for the slot games page */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-slot-games__section-title {
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-slot-games__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-slot-games__brand-name {
  color: #FFFF00;
  font-weight: bold;
}

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

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-slot-games__hero-content {
  text-align: center;
  color: #ffffff;
  max-width: 900px;
}

.page-slot-games__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.1;
  color: #FFFF00;
}

.page-slot-games__subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

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

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

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

.page-slot-games__btn-tertiary {
  background-color: #017439;
  color: #ffffff;
  border: 1px solid #017439;
  padding: 10px 20px;
  font-size: 1rem;
}

.page-slot-games__btn-tertiary:hover {
  background-color: #005a2d;
}

/* Section backgrounds */
.page-slot-games__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Adjust text color for light background sections */
.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__text-block,
.page-slot-games__light-bg .page-slot-games__feature-title,
.page-slot-games__light-bg .page-slot-games__feature-description,
.page-slot-games__light-bg .page-slot-games__game-title,
.page-slot-games__light-bg .page-slot-games__game-description,
.page-slot-games__light-bg .page-slot-games__promo-title,
.page-slot-games__light-bg .page-slot-games__promo-description,
.page-slot-games__light-bg .page-slot-games__step-title,
.page-slot-games__light-bg .page-slot-games__step-description,
.page-slot-games__light-bg .page-slot-games__tips-list li,
.page-slot-games__light-bg .page-slot-games__faq-qtext,
.page-slot-games__light-bg .page-slot-games__faq-answer p {
  color: #333333;
}

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

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

/* About Section */
.page-slot-games__about-section,
.page-slot-games__why-choose-us,
.page-slot-games__popular-games,
.page-slot-games__promotions,
.page-slot-games__how-to-play,
.page-slot-games__tips-for-winning,
.page-slot-games__faq-section,
.page-slot-games__cta-section {
  padding: 80px 0;
}

.page-slot-games__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Features Grid */
.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-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__feature-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-slot-games__feature-description {
  font-size: 1rem;
}

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

.page-slot-games__game-card {
  background-color: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
}

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

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

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

.page-slot-games__view-all-games {
  text-align: center;
  margin-top: 40px;
}

/* Promotions */
.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 {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  text-align: center;
  padding-bottom: 30px;
}

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

.page-slot-games__promo-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #FFFF00;
  padding: 0 20px;
}

.page-slot-games__promo-description {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 25px;
  padding: 0 20px;
}

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

.page-slot-games__step-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-slot-games__step-title {
  font-size: 1.7rem;
  color: #017439;
  margin-bottom: 15px;
}

.page-slot-games__step-description {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
}

/* Tips for Winning */
.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-slot-games__tips-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-left: 5px solid #FFFF00;
  border-radius: 4px;
  font-size: 1.1rem;
  color: #ffffff;
}

.page-slot-games__tips-list li strong {
  color: #FFFF00;
}

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

.page-slot-games__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  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.2rem;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e8f5e9; /* Lighter background for question */
  border-bottom: 1px solid #dcdcdc;
}

.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-slot-games__faq-question::marker {
  display: none;
}

.page-slot-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #017439;
  transition: transform 0.3s ease;
}

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

.page-slot-games__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #555555;
  background-color: #ffffff;
}

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

/* CTA Section */
.page-slot-games__cta-section {
  text-align: center;
}

.page-slot-games__cta-section .page-slot-games__section-title {
  color: #FFFF00;
}

.page-slot-games__cta-section .page-slot-games__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-slot-games__section-title {
    font-size: 2rem;
  }
  .page-slot-games__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-slot-games__subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section,
  .page-slot-games__about-section,
  .page-slot-games__why-choose-us,
  .page-slot-games__popular-games,
  .page-slot-games__promotions,
  .page-slot-games__how-to-play,
  .page-slot-games__tips-for-winning,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    padding: 40px 0;
  }

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

  .page-slot-games__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem) !important;
  }

  .page-slot-games__subtitle {
    font-size: 1rem;
  }

  .page-slot-games__text-block {
    font-size: 1rem;
  }

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

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

  .page-slot-games__hero-image,
  .page-slot-games__image-content,
  .page-slot-games__game-image,
  .page-slot-games__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__about-section .page-slot-games__container,
  .page-slot-games__why-choose-us .page-slot-games__container,
  .page-slot-games__popular-games .page-slot-games__container,
  .page-slot-games__promotions .page-slot-games__container,
  .page-slot-games__how-to-play .page-slot-games__container,
  .page-slot-games__tips-for-winning .page-slot-games__container,
  .page-slot-games__faq-section .page-slot-games__container,
  .page-slot-games__cta-section .page-slot-games__container,
  .page-slot-games__cta-buttons,
  .page-slot-games__features-grid,
  .page-slot-games__games-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-slot-games__hero-section {
    padding-top: 10px !important;
  }

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

  .page-slot-games__faq-answer {
    padding: 15px;
  }
}

/* Ensure no image filters */
.page-slot-games img {
  filter: none !important;
}

/* Content area image size check (minimum 200px) */
.page-slot-games__image-content,
.page-slot-games__game-image,
.page-slot-games__promo-image {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure CSS doesn't make content images smaller than 200px */
.page-slot-games__image-content[width][height],
.page-slot-games__game-image[width][height],
.page-slot-games__promo-image[width][height] {
  /* If HTML width/height are set, CSS should not override them to be smaller. */
  /* Responsive override in media query is handled separately with !important */
}

/* For desktop, video-container needs width: 100% */
.page-slot-games__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}