/* style/slot-games.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark-bg: #FFFFFF;
  --text-light-bg: #333333;
  --background-dark: #1a1a2e; /* From body background info */
  --register-color: #C30808;
  --login-color: #C30808;
  --font-register-login: #FFFF00;
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark-bg); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Ensure consistency if main has a default background */
}

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

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

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

.page-slot-games__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.page-slot-games__text-content {
  flex: 1;
}

.page-slot-games__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px; /* Base padding, header offset handled by inline style */
  background: linear-gradient(135deg, var(--primary-color) 0%, #004d2e 100%);
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: var(--text-dark-bg);
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: var(--font-register-login); /* Specific color for hero title */
}

.page-slot-games__hero-description {
  font-size: 1.25em;
  margin-bottom: 30px;
  color: var(--text-dark-bg);
}

.page-slot-games__hero-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; /* Subtle background image */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image to ensure text contrast */
  border-radius: 0;
  box-shadow: none;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background: var(--register-color);
  color: var(--font-register-login);
  border: 2px solid var(--register-color);
}

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

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

.page-slot-games__btn-secondary:hover {
  background: var(--font-register-login);
  color: var(--register-color);
}

.page-slot-games__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 1px solid var(--primary-color);
}

.page-slot-games__btn-small:hover {
  background: #005f2e;
}

/* Section Titles */
.page-slot-games__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
  color: inherit; /* Inherit from parent section (dark/light bg) */
}

/* Cards */
.page-slot-games__card {
  background: var(--secondary-color);
  color: var(--text-light-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-slot-games__card-description {
  font-size: 1em;
  color: #555;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Download Steps */
.page-slot-games__download-steps {
  list-style-type: decimal;
  padding-left: 20px;
  margin-bottom: 30px;
  color: var(--text-dark-bg);
}

.page-slot-games__download-steps li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-slot-games__download-steps strong {
  color: var(--font-register-login);
}

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

/* Promo List */
.page-slot-games__promo-list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 30px;
  color: var(--text-dark-bg);
}

.page-slot-games__promo-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-slot-games__promo-list strong {
  color: var(--font-register-login);
}

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

.page-slot-games__tip-card {
  background: var(--secondary-color);
  color: var(--text-light-bg);
  text-align: left;
}

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

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.page-slot-games__faq-question::-webkit-details-marker, /* Hide default marker for Chrome */
.page-slot-games__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

.page-slot-games__faq-item[open] > .page-slot-games__faq-question {
  border-bottom-color: var(--primary-color);
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 25px;
  font-size: 1.05em;
  color: #555;
}

.page-slot-games__faq-answer p {
  margin-bottom: 10px;
}

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

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    min-height: 450px;
    padding: 40px 15px;
  }
  .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,
  .page-slot-games__btn-small {
    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__hero-buttons {
    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__flex-container {
    flex-direction: column;
  }
  .page-slot-games__flex-reverse {
    flex-direction: column;
  }
  .page-slot-games__container {
    padding: 20px 15px;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-slot-games__game-grid,
  .page-slot-games__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__card-image {
    height: auto; /* Allow image height to adjust */
  }
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__image-wrapper,
  .page-slot-games__game-card,
  .page-slot-games__tip-card,
  .page-slot-games__card,
  .page-slot-games__faq-item,
  .page-slot-games__section,
  .page-slot-games__container {
    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-top: var(--header-offset, 120px) !important; /* Ensure mobile top padding */
  }
  .page-slot-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-slot-games__faq-answer {
    padding: 15px 20px;
  }
}