/* style/slot-games.css */
:root {
  --e2betvip-primary: #26A9E0;
  --e2betvip-secondary: #FFFFFF;
  --e2betvip-text-dark: #333333;
  --e2betvip-text-light: #FFFFFF;
  --e2betvip-bg-light: #F5F5F5;
  --e2betvip-bg-dark: #1a1a1a; /* Adjusted for contrast on dark sections */
  --e2betvip-login-color: #EA7C07;
}

/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại tại đây */
.page-slot-games {
  font-family: Arial, sans-serif;
  color: var(--e2betvip-text-dark); /* Default text color for light body background */
  background-color: var(--e2betvip-secondary); /* Default body background is white */
}

.page-slot-games__section {
  padding: 60px 20px;
  text-align: center;
}

.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add horizontal padding for content */
  box-sizing: border-box;
}

.page-slot-games__section-title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  color: var(--e2betvip-primary);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* H1 title, clamped */
  color: var(--e2betvip-text-light);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
  padding: 10px 20px 60px; /* Small top padding, larger bottom */
  color: var(--e2betvip-text-light);
}

.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.5); /* Darken image for text readability */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow button text to wrap */
  word-wrap: break-word;
  box-sizing: border-box;
}

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

.page-slot-games__btn-primary:hover {
  background-color: #1e87c0; /* Slightly darker primary */
  border-color: #1e87c0;
}

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

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

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

.page-slot-games__btn-play:hover {
  background-color: #c46404;
  border-color: #c46404;
}

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

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

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

.page-slot-games__features-grid,
.page-slot-games__games-grid,
.page-slot-games__promo-cards {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__features-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-slot-games__feature-card {
  background-color: var(--e2betvip-secondary);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--e2betvip-text-dark);
}

.page-slot-games__feature-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-slot-games__feature-description {
  font-size: 1em;
  line-height: 1.5;
  flex-grow: 1;
}

.page-slot-games__games-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-slot-games__game-card {
  background-color: var(--e2betvip-bg-dark); /* Darker background for game cards in dark section */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
  color: var(--e2betvip-text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-slot-games__game-title {
  font-size: 1.4em;
  color: var(--e2betvip-primary);
  margin-bottom: 5px;
}

.page-slot-games__game-provider {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.page-slot-games__guide-list,
.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__guide-item,
.page-slot-games__tip-item {
  background-color: var(--e2betvip-secondary);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  color: var(--e2betvip-text-dark);
}

.page-slot-games__guide-step-title,
.page-slot-games__tip-title {
  font-size: 1.3em;
  color: var(--e2betvip-primary);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-slot-games__guide-item a {
  color: var(--e2betvip-primary);
  text-decoration: underline;
}

.page-slot-games__guide-item a:hover {
  color: #1e87c0;
}

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

.page-slot-games__promo-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-slot-games__promo-card {
  background-color: var(--e2betvip-bg-dark);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
  color: var(--e2betvip-text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.page-slot-games__promo-description {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-slot-games__hero-section {
    min-height: 400px;
    padding: 10px 10px 40px;
  }

  .page-slot-games__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-slot-games__section-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
  }

  .page-slot-games__hero-description,
  .page-slot-games__section-description,
  .page-slot-games__text-block {
    font-size: 0.95em;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-play {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto; /* Center buttons if in column */
  }

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

  /* Mobile image responsiveness */
  .page-slot-games img {
    max-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;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-slot-games__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Video specific mobile responsive styles (if any video was present) */
  .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;
  }
  
  .page-slot-games__video-section {
    padding-top: 10px !important;
  }
}

/* Ensure no CSS filter on images */
.page-slot-games img {
  filter: none; /* Explicitly remove any filter */
}

.page-slot-games__hero-image {
  filter: brightness(0.5); /* This is allowed as it's for text readability, not changing image color */
}