/* style/slot-games.css */

/* Common styles for page-slot-games */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: var(--dark-bg-1); /* Assume dark background from 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.5em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.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, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-slot-games__btn-secondary {
  background-color: #C30808;
  color: #FFFF00; /* Custom color for login/register font */
  border: 2px solid #C30808;
}

.page-slot-games__btn-secondary:hover {
  background-color: #9e0606;
  border-color: #9e0606;
}

/* Section backgrounds and text colors */
.page-slot-games__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0;
}

.page-slot-games__dark-section .page-slot-games__section-title {
  color: #ffffff;
}

.page-slot-games__dark-section .page-slot-games__text-block {
  color: #f0f0f0;
}

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

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

.page-slot-games__light-bg .page-slot-games__text-block {
  color: #333333;
}

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.page-slot-games__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
  z-index: 1;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

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

.page-slot-games__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
  min-width: 200px; /* Minimum size for images */
}

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

/* Introduction Section */
.page-slot-games__introduction-section .page-slot-games__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__image-content {
  max-width: 100%;
  height: auto;
  margin-top: 30px;
  border-radius: 10px;
  min-width: 200px; /* Minimum size for images */
}

/* Game Types Section */
.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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #333333;
}

.page-slot-games__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Minimum size for images */
  min-height: 200px;
  object-fit: cover;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

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

/* Why Choose Us Section */
.page-slot-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

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

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

.page-slot-games__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #333333;
}

/* How to Play Section */
.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__steps-list li {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__step-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-slot-games__steps-list p {
  color: #555555;
  font-size: 1em;
  margin-bottom: 0;
}

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

/* Download App Section */
.page-slot-games__app-download-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-slot-games__app-image {
  max-width: 350px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum size for images */
  min-height: 200px;
  object-fit: contain;
}

.page-slot-games__app-info {
  flex: 1;
  max-width: 600px;
  color: #f0f0f0;
}

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

.page-slot-games__app-features-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23017439" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

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

.page-slot-games__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #017439;
  background-color: #e6ffe6; /* Light green for question background */
  border-bottom: 1px solid #d0ffd0;
}

.page-slot-games__faq-question:hover {
  background-color: #d0ffd0;
}

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

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #555555;
}

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

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

/* Video Section */
.page-slot-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__video-wrapper .page-slot-games__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Conclusion Section */
.page-slot-games__conclusion-section .page-slot-games__text-block {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .page-slot-games__hero-content {
    max-width: 100%;
    text-align: center;
  }

  .page-slot-games__hero-title {
    font-size: 3em;
  }

  .page-slot-games__hero-cta-buttons {
    justify-content: center;
  }

  .page-slot-games__app-download-content {
    flex-direction: column;
    text-align: center;
  }

  .page-slot-games__app-info {
    max-width: 100%;
  }

  .page-slot-games__app-features-list li {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-slot-games__dark-section,
  .page-slot-games__light-bg {
    padding: 40px 0;
  }

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

  .page-slot-games__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

  .page-slot-games__app-download-content {
    gap: 20px;
  }

  .page-slot-games__app-image {
    max-width: 80%;
    margin: 0 auto;
  }

  /* Force responsive images and videos */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-slot-games__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for video section */
  }

  /* Video specific mobile styles */
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Button specific mobile styles */
  .page-slot-games__cta-button,
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    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__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    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__cta-buttons {
    flex-direction: column;
  }
}