/* style/slot-games.css */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-slot-games__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-slot-games__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Use yellow for highlight */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-slot-games__btn-register,
.page-slot-games__btn-login,
.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, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-slot-games__btn-register,
.page-slot-games__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #FFFF00;
}

.page-slot-games__btn-register:hover,
.page-slot-games__btn-login:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

.page-slot-games__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-slot-games__btn-primary:hover {
  background-color: #005f2e;
  transform: translateY(-3px);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

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

/* General Section Styles */
.page-slot-games__section {
  padding: 60px 0;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00;
}

.page-slot-games__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

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

.page-slot-games__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-slot-games__game-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  color: #FFFF00;
}

.page-slot-games__game-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 15px;
}

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

.page-slot-games__benefit-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

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

.page-slot-games__benefit-description {
  font-size: 1em;
  color: #555555;
}

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

.page-slot-games__promotion-card {
  background-color: #017439;
  color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
}

.page-slot-games__promotion-image {
  width: 100%;
  height: 200px; /* Fixed height */
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-slot-games__promotion-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  color: #FFFF00;
}

.page-slot-games__promotion-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 15px;
  margin-bottom: 20px;
}

/* Mobile App Section */
.page-slot-games__app-layout {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-slot-games__app-content {
  flex: 1;
  min-width: 300px;
  color: #ffffff;
}

.page-slot-games__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-slot-games__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__app-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.page-slot-games__app-features li {
  margin-bottom: 10px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  color: #f0f0f0;
}

.page-slot-games__icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background-color: #FFFF00; /* Checkmark color */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" fill="currentColor"/></svg>') no-repeat 50% 50%;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" fill="currentColor"/></svg>') no-repeat 50% 50%;
  background-size: contain;
}

/* 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: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-slot-games__faq-item summary {
  list-style: none;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFF00;
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-slot-games__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-slot-games__faq-answer .page-slot-games__btn-primary,
.page-slot-games__faq-answer .page-slot-games__btn-secondary {
  margin-top: 10px;
}

/* Color Contrast Classes */
.page-slot-games__dark-bg {
  background-color: var(--dark-bg-1, #0d0d0d);
  color: #ffffff;
}

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

.page-slot-games__light-bg .page-slot-games__section-title {
  color: #017439;
}

.page-slot-games__light-bg .page-slot-games__section-intro {
  color: #555555;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 2.8em;
  }

  .page-slot-games__hero-description {
    font-size: 1.2em;
  }

  .page-slot-games__section-title {
    font-size: 2em;
  }

  .page-slot-games__app-layout {
    flex-direction: column;
  }

  .page-slot-games__app-content,
  .page-slot-games__app-image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 400px;
  }

  .page-slot-games__main-title {
    font-size: 2.2em;
    line-height: 1.2;
  }

  .page-slot-games__hero-description {
    font-size: 1em;
  }

  .page-slot-games__section {
    padding: 40px 0;
  }

  .page-slot-games__section-title {
    font-size: 1.8em;
  }

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

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

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

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

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__game-card,
  .page-slot-games__benefit-card,
  .page-slot-games__promotion-card,
  .page-slot-games__faq-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__game-image,
  .page-slot-games__promotion-image {
    height: auto; /* Allow height to adjust for smaller screens */
  }

  .page-slot-games__app-features li {
    font-size: 1em;
  }

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

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

  .page-slot-games__app-layout,
  .page-slot-games__game-grid,
  .page-slot-games__benefit-grid,
  .page-slot-games__promotion-grid {
    flex-direction: column;
    gap: 20px;
  }
  
  .page-slot-games__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-slot-games__video,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}