/* style/slot-games.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này KHÔNG được thêm lại padding-top với biến này */

:root {
  --page-slot-games-primary-color: #11A84E;
  --page-slot-games-secondary-color: #22C768;
  --page-slot-games-bg-dark: #08160F;
  --page-slot-games-card-bg: #11271B;
  --page-slot-games-text-main: #F2FFF6;
  --page-slot-games-text-secondary: #A7D9B8;
  --page-slot-games-border-color: #2E7A4E;
  --page-slot-games-glow-color: #57E38D;
  --page-slot-games-gold-color: #F2C14E;
  --page-slot-games-divider-color: #1E3A2A;
  --page-slot-games-deep-green: #0A4B2C;
  --page-slot-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-slot-games {
  background-color: var(--page-slot-games-bg-dark);
  color: var(--page-slot-games-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-slot-games__section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  color: var(--page-slot-games-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-slot-games__text-block {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--page-slot-games-text-secondary);
}

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

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit hero image height */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-slot-games__main-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: var(--page-slot-games-gold-color);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.page-slot-games__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--page-slot-games-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-slot-games__btn-primary {
  background: var(--page-slot-games-button-gradient);
  color: var(--page-slot-games-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: var(--page-slot-games-gold-color);
  color: var(--page-slot-games-bg-dark);
  transform: translateY(-3px);
}

/* Intro Section */
.page-slot-games__intro-section {
  padding: 60px 0;
  background-color: var(--page-slot-games-bg-dark);
}

/* Why Choose Section */
.page-slot-games__why-choose-section {
  padding: 60px 0;
}

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

.page-slot-games__feature-card {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.page-slot-games__card-image {
  width: 100%;
  max-width: 400px; /* Adjusted max-width for card images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-slot-games__card-title {
  font-size: 24px;
  color: var(--page-slot-games-gold-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-slot-games__feature-card p {
  color: var(--page-slot-games-text-secondary);
  font-size: 16px;
}

/* Popular Games Section */
.page-slot-games__popular-games {
  padding: 60px 0;
  background-color: var(--page-slot-games-bg-dark);
}

.page-slot-games__game-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-slot-games__list-item {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-slot-games__list-title {
  font-size: 22px;
  color: var(--page-slot-games-gold-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-slot-games__list-item p {
  color: var(--page-slot-games-text-secondary);
  font-size: 16px;
}

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

/* How to Play Section */
.page-slot-games__how-to-play {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-slot-games__how-to-play .page-slot-games__section-title,
.page-slot-games__how-to-play .page-slot-games__card-title {
  color: var(--page-slot-games-deep-green);
}

.page-slot-games__how-to-play .page-slot-games__text-block,
.page-slot-games__how-to-play .page-slot-games__step-card p {
  color: #555555;
}

.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__step-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.page-slot-games__step-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--page-slot-games-glow-color);
  position: absolute;
  top: 10px;
  left: 10px;
  opacity: 0.1;
  line-height: 1;
}

.page-slot-games__step-card .page-slot-games__card-title {
  margin-top: 40px;
}

.page-slot-games__step-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--page-slot-games-primary-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--page-slot-games-primary-color);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-slot-games__step-link:hover {
  color: var(--page-slot-games-secondary-color);
  border-color: var(--page-slot-games-secondary-color);
}

/* Promotions Section */
.page-slot-games__promotions {
  padding: 60px 0;
}

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

.page-slot-games__promo-card {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-slot-games__promo-card .page-slot-games__card-image {
  margin-bottom: 20px;
}

.page-slot-games__promo-card .page-slot-games__card-title {
  font-size: 22px;
}

.page-slot-games__promo-card p {
  color: var(--page-slot-games-text-secondary);
  margin-bottom: 20px;
}

/* Tips Section */
.page-slot-games__tips-section {
  padding: 60px 0;
  background-color: var(--page-slot-games-bg-dark);
}

.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 60px 0;
}

.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border-color);
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: var(--page-slot-games-text-main);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-qtext {
  flex-grow: 1;
  color: var(--page-slot-games-gold-color);
}

.page-slot-games__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-slot-games-glow-color);
}

.page-slot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: var(--page-slot-games-text-secondary);
  line-height: 1.7;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
  animation: fadein 0.3s ease-out;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Final CTA Section */
.page-slot-games__cta-final {
  padding: 60px 0;
  text-align: center;
  background-color: var(--page-slot-games-deep-green);
}

.page-slot-games__cta-final .page-slot-games__section-title {
  color: var(--page-slot-games-gold-color);
}

.page-slot-games__cta-final .page-slot-games__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-image-wrapper {
    max-height: 400px;
  }

  .page-slot-games__main-title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .page-slot-games__hero-description {
    font-size: clamp(16px, 4vw, 20px);
  }

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

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

  .page-slot-games__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-slot-games__text-block {
    font-size: 16px;
  }

  .page-slot-games__features-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__promo-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-slot-games__card-image {
    max-width: 100%;
  }

  .page-slot-games__card-title {
    font-size: 20px;
  }

  .page-slot-games__list-title {
    font-size: 18px;
  }

  .page-slot-games__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

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

  /* Mobile image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container responsiveness */
  .page-slot-games__section,
  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__intro-section,
  .page-slot-games__why-choose-section,
  .page-slot-games__popular-games,
  .page-slot-games__how-to-play,
  .page-slot-games__promotions,
  .page-slot-games__tips-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final,
  .page-slot-games__feature-card,
  .page-slot-games__step-card,
  .page-slot-games__promo-card,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

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

  .page-slot-games__hero-image-wrapper {
    padding: 0;
  }

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

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: clamp(28px, 9vw, 38px);
  }

  .page-slot-games__hero-description {
    font-size: clamp(15px, 4.5vw, 18px);
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    font-size: 15px;
    padding: 10px 15px;
  }
}