/* style/slot-games.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --button-text-color: #FFFF00;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --border-color: #e0e0e0;
  --card-bg-light: #ffffff;
}

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: var(--light-text-color); /* Default text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Main content background will be handled by sections */
}

.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-slot-games__section {
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__dark-section {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.page-slot-games__light-bg {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

.page-slot-games__section-title {
  font-size: 2.8em;
  margin-bottom: 30px;
  color: inherit; /* Inherit color from parent section */
  font-weight: bold;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  padding: 120px 15px 60px; /* Use header-offset for initial spacing */
  overflow: hidden;
  color: var(--light-text-color);
  background-color: var(--primary-color);
  text-align: center;
}

.page-slot-games__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(1, 116, 57, 0.7), rgba(1, 116, 57, 0.9));
  z-index: 1;
}

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

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the background image for text readability */
}

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

.page-slot-games__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--light-text-color);
}

.page-slot-games__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--light-text-color);
}

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

/* 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;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background-color: var(--register-button-bg); /* Custom red for register */
  color: var(--button-text-color); /* Custom yellow for button text */
  border: 2px solid var(--register-button-bg);
}

.page-slot-games__btn-primary:hover {
  background-color: darken(var(--register-button-bg), 10%);
  border-color: darken(var(--register-button-bg), 10%);
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--light-text-color);
  border: 2px solid var(--light-text-color);
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--light-text-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.page-slot-games__btn-text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-slot-games__btn-text:hover {
  color: darken(var(--primary-color), 10%);
  text-decoration: underline;
}

.page-slot-games__btn-register {
  background-color: var(--register-button-bg);
  color: var(--button-text-color);
  border-color: var(--register-button-bg);
}

.page-slot-games__btn-register:hover {
  background-color: darken(var(--register-button-bg), 10%);
  border-color: darken(var(--register-button-bg), 10%);
}

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

.page-slot-games__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--light-text-color);
}

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

.page-slot-games__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-slot-games__feature-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--light-text-color);
}

.page-slot-games__feature-description {
  font-size: 1em;
  color: var(--light-text-color);
}

/* Game List & Image Wrapper */
.page-slot-games__game-list,
.page-slot-games__tips-list,
.page-slot-games__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__list-item {
  background-color: var(--card-bg-light);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: var(--dark-text-color);
}

.page-slot-games__list-item p {
  color: var(--dark-text-color);
}

.page-slot-games__list-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

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

.page-slot-games__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-slot-games__promo-image-wrapper {
  margin-top: 50px;
  text-align: center;
}

/* How-to-play Steps */
.page-slot-games__steps-list {
  list-style: decimal;
  padding-left: 20px;
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__steps-list .page-slot-games__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text-color);
}

.page-slot-games__steps-list .page-slot-games__list-item p {
  color: var(--light-text-color);
}

.page-slot-games__steps-list .page-slot-games__list-title {
  color: var(--light-text-color);
}

/* Support Grid */
.page-slot-games__support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-slot-games__support-item {
  background-color: var(--card-bg-light);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: var(--dark-text-color);
}

.page-slot-games__support-item p {
  color: var(--dark-text-color);
}

.page-slot-games__support-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* FAQ Section */
.page-slot-games__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

.page-slot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--light-text-color);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  color: var(--light-text-color);
}

.page-slot-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-question h3 {
  margin: 0;
  color: var(--light-text-color);
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--light-text-color);
}

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

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--light-text-color);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

.page-slot-games__faq-answer p {
  margin: 0;
  color: var(--light-text-color);
}

/* CTA Section */
.page-slot-games__cta-section {
  padding: 100px 0;
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

.page-slot-games__cta-section .page-slot-games__section-title {
  color: var(--primary-color);
}

.page-slot-games__cta-section .page-slot-games__text-block {
  color: var(--dark-text-color);
}

.page-slot-games__cta-section .page-slot-games__btn-primary {
  background-color: var(--register-button-bg);
  border-color: var(--register-button-bg);
  color: var(--button-text-color);
}

.page-slot-games__cta-section .page-slot-games__btn-secondary {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-slot-games__cta-section .page-slot-games__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

/* Image and Video responsive styles */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; /* Center images */
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__hero-description {
    font-size: 1.2em;
  }
  .page-slot-games__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }
  .page-slot-games__hero-title {
    font-size: 2.2em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-slot-games__section {
    padding: 60px 0;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-slot-games__text-block {
    font-size: 0.95em;
  }
  .page-slot-games__features-grid,
  .page-slot-games__support-grid {
    grid-template-columns: 1fr;
  }
  .page-slot-games__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
  .page-slot-games__feature-title,
  .page-slot-games__support-title {
    font-size: 1.5em;
  }
  .page-slot-games__list-title {
    font-size: 1.3em;
  }
  .page-slot-games__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Mobile image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__image-wrapper,
  .page-slot-games__promo-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-slot-games__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-slot-games__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__cta-buttons {
    flex-wrap: wrap !important;
    gap: 15px;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 1.8em;
  }
  .page-slot-games__hero-description {
    font-size: 0.9em;
  }
  .page-slot-games__section-title {
    font-size: 1.6em;
  }
  .page-slot-games__feature-title,
  .page-slot-games__support-title {
    font-size: 1.3em;
  }
  .page-slot-games__faq-question {
    font-size: 1em;
  }
  .page-slot-games__faq-toggle {
    font-size: 1.2em;
  }
}