/* style/slot-games.css */

/* Variables */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #017439;
  --btn-register-bg: #C30808;
  --btn-login-bg: #C30808;
  --btn-text-login-register: #FFFF00;
}

/* Base styles for the page */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--bg-light); /* Body background is light */
}

/* Sections */
.page-slot-games__section {
  padding: 60px 0;
  text-align: center;
}

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

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

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

/* 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;
  /* Fixed header spacing handled by shared.css body padding-top. This is just a small decorative top padding. */
  padding-top: 10px;
  padding-bottom: 40px;
}

.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%; /* Ensure full width on desktop too */
}

.page-slot-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-slot-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

/* Titles */
.page-slot-games__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.3;
}

.page-slot-games__dark-bg .page-slot-games__section-title {
  color: var(--text-light);
}

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

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

.page-slot-games__dark-bg .page-slot-games__card-title {
  color: var(--text-light);
}

/* Text */
.page-slot-games__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

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

.page-slot-games__dark-bg .page-slot-games__text-block {
  color: rgba(255, 255, 255, 0.9);
}

.page-slot-games__highlight {
  font-weight: bold;
  color: var(--primary-color);
}

.page-slot-games__dark-bg .page-slot-games__highlight {
  color: var(--btn-text-login-register); /* Yellow for highlight on dark bg */
}

/* CTA Buttons */
.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

.page-slot-games__btn-register:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-login:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-primary:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* Feature Grid */
.page-slot-games__features-grid,
.page-slot-games__game-types-grid,
.page-slot-games__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__feature-card,
.page-slot-games__game-type-card,
.page-slot-games__promo-card {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__dark-bg .page-slot-games__feature-card,
.page-slot-games__dark-bg .page-slot-games__game-type-card,
.page-slot-games__dark-bg .page-slot-games__promo-card {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.page-slot-games__feature-card:hover,
.page-slot-games__game-type-card:hover,
.page-slot-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__feature-card img,
.page-slot-games__game-type-card img,
.page-slot-games__promo-card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-slot-games__card-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-slot-games__dark-bg .page-slot-games__card-link {
  color: var(--btn-text-login-register);
}

.page-slot-games__card-link:hover {
  text-decoration: underline;
}

/* Instruction List */
.page-slot-games__instruction-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-slot-games__instruction-list li {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  counter-increment: instruction-counter;
  position: relative;
  padding-left: 50px;
}

.page-slot-games__instruction-list li::before {
  content: "" counter(instruction-counter) ".";
  position: absolute;
  left: 20px;
  top: 20px;
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.2em;
}

.page-slot-games__instruction-list li strong {
  color: var(--primary-color);
}

.page-slot-games__instruction-list li a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-slot-games__instruction-list li a:hover {
  color: darken(var(--primary-color), 10%);
}

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

details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: #f5f5f5;
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark);
}
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-slot-games__section {
    padding: 40px 0;
  }
  
  .page-slot-games__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__hero-image img {
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

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

  .page-slot-games__card-title {
    font-size: 1.2em;
  }

  .page-slot-games__text-block {
    font-size: 1em;
    text-align: left;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    margin: 0 auto;
  }

  .page-slot-games__features-grid,
  .page-slot-games__game-types-grid,
  .page-slot-games__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__feature-card,
  .page-slot-games__game-type-card,
  .page-slot-games__promo-card {
    padding: 20px;
  }

  .page-slot-games__feature-card img,
  .page-slot-games__game-type-card img,
  .page-slot-games__promo-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__instruction-list {
    margin: 30px auto;
  }

  .page-slot-games__instruction-list li {
    font-size: 1em;
    padding: 15px 15px 15px 45px;
  }

  .page-slot-games__instruction-list li::before {
    left: 15px;
    top: 15px;
    font-size: 1.1em;
  }

  details.page-slot-games__faq-item summary.page-slot-games__faq-question {
    padding: 15px;
  }
  .page-slot-games__faq-qtext {
    font-size: 15px;
  }
  details.page-slot-games__faq-item .page-slot-games__faq-answer {
    padding: 0 15px 15px;
  }
  .page-slot-games__faq-list {
    margin-top: 30px;
  }
}