/* Biến màu sắc tùy chỉnh */
:root {
  --page-primary-color: #11A84E;
  --page-secondary-color: #22C768;
  --page-card-bg: #11271B;
  --page-background: #08160F;
  --page-text-main: #F2FFF6;
  --page-text-secondary: #A7D9B8;
  --page-border-color: #2E7A4E;
  --page-glow-color: #57E38D;
  --page-gold-color: #F2C14E;
  --page-divider-color: #1E3A2A;
  --page-deep-green-color: #0A4B2C;
  --page-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Thiết lập chung cho trang */
.page-index-cac-tro-choi-noi-bat {
  color: var(--page-text-main); /* Văn bản chính */
  background-color: var(--page-background); /* Nền chính của trang */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Phần Hero Section */
.page-index-cac-tro-choi-noi-bat__hero-section {
  position: relative;
  padding-top: 10px; /* Nhỏ hơn so với --header-offset */
  padding-bottom: 50px;
  text-align: center;
  background-color: var(--page-background);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index-cac-tro-choi-noi-bat__hero-image {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-index-cac-tro-choi-noi-bat__hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-index-cac-tro-choi-noi-bat__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-index-cac-tro-choi-noi-bat__main-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--page-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.6);
}

.page-index-cac-tro-choi-noi-bat__intro-text {
  font-size: 18px;
  color: var(--page-text-secondary);
  margin-bottom: 30px;
}

.page-index-cac-tro-choi-noi-bat__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-index-cac-tro-choi-noi-bat__btn-primary,
.page-index-cac-tro-choi-noi-bat__btn-secondary,
.page-index-cac-tro-choi-noi-bat a[class*="button"],
.page-index-cac-tro-choi-noi-bat a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-cac-tro-choi-noi-bat__btn-primary {
  background: var(--page-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-index-cac-tro-choi-noi-bat__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-index-cac-tro-choi-noi-bat__btn-secondary {
  background: transparent;
  color: var(--page-gold-color);
  border: 2px solid var(--page-gold-color);
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-index-cac-tro-choi-noi-bat__btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(242, 193, 78, 0.1);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
}

/* Các phần Section chung */
.page-index-cac-tro-choi-noi-bat__section {
  padding: 60px 0;
  background-color: var(--page-background);
  text-align: center;
}

.page-index-cac-tro-choi-noi-bat__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index-cac-tro-choi-noi-bat__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--page-gold-color);
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.4);
}

.page-index-cac-tro-choi-noi-bat__article-body {
  text-align: left;
  font-size: 17px;
  color: var(--page-text-main);
  line-height: 1.8;
}

.page-index-cac-tro-choi-noi-bat__article-body h3 {
  font-size: 28px;
  color: var(--page-gold-color);
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.page-index-cac-tro-choi-noi-bat__article-body p {
  margin-bottom: 20px;
}

.page-index-cac-tro-choi-noi-bat__article-body ul,
.page-index-cac-tro-choi-noi-bat__article-body ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.page-index-cac-tro-choi-noi-bat__article-body li {
  margin-bottom: 10px;
  color: var(--page-text-main);
}

.page-index-cac-tro-choi-noi-bat__article-figure {
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
}

.page-index-cac-tro-choi-noi-bat__article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-cac-tro-choi-noi-bat__figcaption {
  font-size: 15px;
  color: var(--page-text-secondary);
  margin-top: 15px;
}

.page-index-cac-tro-choi-noi-bat__text-link {
  color: var(--page-gold-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-index-cac-tro-choi-noi-bat__text-link:hover {
  color: var(--page-primary-color);
}

.page-index-cac-tro-choi-noi-bat__cta-buttons--bottom {
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* FAQ Section */
.page-index-cac-tro-choi-noi-bat__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-index-cac-tro-choi-noi-bat__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--page-border-color);
  overflow: hidden;
  background: var(--page-card-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

details.page-index-cac-tro-choi-noi-bat__faq-item summary.page-index-cac-tro-choi-noi-bat__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--page-text-main);
  font-weight: 600;
}

details.page-index-cac-tro-choi-noi-bat__faq-item summary.page-index-cac-tro-choi-noi-bat__faq-question::-webkit-details-marker {
  display: none;
}

details.page-index-cac-tro-choi-noi-bat__faq-item summary.page-index-cac-tro-choi-noi-bat__faq-question:hover {
  background: var(--page-deep-green-color);
}

.page-index-cac-tro-choi-noi-bat__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  color: var(--page-text-main);
}

.page-index-cac-tro-choi-noi-bat__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--page-gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-index-cac-tro-choi-noi-bat__faq-item .page-index-cac-tro-choi-noi-bat__faq-answer {
  padding: 0 25px 20px;
  background: var(--page-card-bg);
  border-radius: 0 0 8px 8px;
  color: var(--page-text-secondary);
  font-size: 16px;
}

.page-index-cac-tro-choi-noi-bat__faq-answer p {
  margin-top: 10px;
}

/* -------------------------------------------------- */
/* Responsive Styles */
/* -------------------------------------------------- */

/* Mobile/Tablet specific styles (max-width: 849px for hero image) */
@media (max-width: 849px) {
  .page-index-cac-tro-choi-noi-bat__hero-image {
    max-height: 400px;
  }
  .page-index-cac-tro-choi-noi-bat__hero-img {
    object-fit: contain !important; /* Đảm bảo hình ảnh không bị cắt */
    aspect-ratio: unset !important; /* Cho phép tỷ lệ khung hình tự do */
    width: 100% !important;
    height: auto !important;
  }
}

/* Mobile specific styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-index-cac-tro-choi-noi-bat {
    font-size: 15px;
  }

  /* Hero Section */
  .page-index-cac-tro-choi-noi-bat__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-index-cac-tro-choi-noi-bat__hero-image {
    margin-bottom: 20px;
  }

  .page-index-cac-tro-choi-noi-bat__hero-content {
    padding: 0 15px;
  }

  .page-index-cac-tro-choi-noi-bat__main-title {
    font-size: clamp(30px, 8vw, 40px); /* Responsive font size */
    margin-bottom: 15px;
  }

  .page-index-cac-tro-choi-noi-bat__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-index-cac-tro-choi-noi-bat__cta-buttons {
    flex-direction: column; /* Buttons stack vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
    width: 100%;
    box-sizing: border-box;
  }

  .page-index-cac-tro-choi-noi-bat__btn-primary,
  .page-index-cac-tro-choi-noi-bat__btn-secondary,
  .page-index-cac-tro-choi-noi-bat a[class*="button"],
  .page-index-cac-tro-choi-noi-bat a[class*="btn"] {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Section */
  .page-index-cac-tro-choi-noi-bat__section {
    padding: 40px 0;
  }

  .page-index-cac-tro-choi-noi-bat__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index-cac-tro-choi-noi-bat__section-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 30px;
  }

  .page-index-cac-tro-choi-noi-bat__article-body {
    font-size: 16px;
  }

  .page-index-cac-tro-choi-noi-bat__article-body h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-index-cac-tro-choi-noi-bat__article-figure {
    margin: 30px auto;
  }

  .page-index-cac-tro-choi-noi-bat__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index-cac-tro-choi-noi-bat__figcaption {
    font-size: 14px;
  }

  /* FAQ Section */
  .page-index-cac-tro-choi-noi-bat__faq-list {
    margin-top: 30px;
  }

  details.page-index-cac-tro-choi-noi-bat__faq-item summary.page-index-cac-tro-choi-noi-bat__faq-question {
    padding: 15px 20px;
  }

  .page-index-cac-tro-choi-noi-bat__faq-qtext {
    font-size: 16px;
  }

  .page-index-cac-tro-choi-noi-bat__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-index-cac-tro-choi-noi-bat__faq-item .page-index-cac-tro-choi-noi-bat__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }

  .page-index-cac-tro-choi-noi-bat__cta-buttons--bottom {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* Generic image and container responsive */
  .page-index-cac-tro-choi-noi-bat img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-cac-tro-choi-noi-bat__section,
  .page-index-cac-tro-choi-noi-bat__card,
  .page-index-cac-tro-choi-noi-bat__container,
  .page-index-cac-tro-choi-noi-bat__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index-cac-tro-choi-noi-bat__products-grid { /* Assuming there might be a grid, though not directly in this content */
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for mobile */
    gap: 20px;
    overflow-x: hidden;
  }
}

/* Dark background for sections */
.page-index-cac-tro-choi-noi-bat__dark-bg {
  background-color: var(--page-background);
  color: var(--page-text-main);
}