.page-index {
  color: #ffffff;
  background-color: #1a1a2e;
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-index__description {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__btn-promo,
.page-index__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-index__btn-primary {
  background: #C30808; /* Đăng ký, Đăng nhập */
  color: #FFFF00; /* Đăng ký và Đăng nhập font */
  border: 2px solid #C30808;
}

.page-index__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
}

.page-index__btn-secondary {
  background: transparent;
  color: #FFFF00; /* Đăng ký và Đăng nhập font */
  border: 2px solid #C30808;
}

.page-index__btn-secondary:hover {
  background: #C30808;
  color: #ffffff;
}

.page-index__btn-promo {
  background: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-index__btn-promo:hover {
  background: #005a2d;
  border-color: #005a2d;
}

.page-index__btn-text {
  background: transparent;
  color: #017439;
  border: none;
  padding: 0;
  font-size: 17px;
  font-weight: 700;
  text-decoration: underline;
}

.page-index__btn-text:hover {
  color: #005a2d;
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-index__cta-full-width {
  text-align: center;
  margin-top: 40px;
}

.page-index__cta-full-width .page-index__btn-primary {
  min-width: 250px;
}

/* HERO主图区域样式 */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* shared đã cho body padding-top, đây chỉ là khoảng cách nhỏ */
  margin-top: 0;
  background-color: #1a1a2e;
}

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
}

.page-index__hero-image {
  width: 100%;
  margin: 0;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Sản phẩm hiển thị khu vực */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #1a1a2e;
  box-sizing: border-box;
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr;
  gap: 20px;
}

.page-index__products-grid {
  display: grid;
  gap: 20px;
}

.page-index__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-index__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-index__product-card {
  width: 100%;
  max-width: 300px; /* Tối đa 300px rộng */
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
  justify-self: center; /* Căn giữa trong ô grid */
}

.page-index__product-card:hover {
  transform: translateY(-3px);
}

.page-index__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__product-card-image {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
}

.page-index__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto; /* Giữ tỷ lệ khung hình gốc */
  display: block;
}

/* Giới thiệu trang chủ */
.page-index__intro-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

.page-index__intro-section .page-index__container {
  background-color: #017439; /* Nền màu chủ đạo */
  padding: 60px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__intro-section .page-index__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-index__intro-section .page-index__description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Truy cập nhanh */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

.page-index__quick-access-section .page-index__section-title,
.page-index__quick-access-section .page-index__description {
  color: #ffffff;
}

.page-index__link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.page-index__quick-link-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  display: block;
}

.page-index__quick-link-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #017439;
  transform: translateY(-5px);
}

.page-index__quick-link-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-index__quick-link-card p {
  font-size: 15px;
  color: #e0e0e0;
  line-height: 1.5;
}

/* Giới thiệu trò chơi cốt lõi */
.page-index__games-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

.page-index__games-section .page-index__section-title,
.page-index__games-section .page-index__description {
  color: #ffffff;
}

.page-index__game-category {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
}

.page-index__game-category--reverse {
  flex-direction: row-reverse;
}

.page-index__game-content {
  flex: 1;
}

.page-index__game-title {
  font-size: 28px;
  font-weight: 700;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-index__game-content p {
  font-size: 17px;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-index__game-image {
  flex-shrink: 0;
  width: 50%;
  max-width: 600px;
  border-radius: 8px;
  overflow: hidden;
}

.page-index__game-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Khu vực khuyến mãi */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #017439;
}

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__description {
  color: #ffffff;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-index__promo-card p {
  font-size: 15px;
  color: #e0e0e0;
  line-height: 1.5;
  margin-bottom: 25px;
}

/* An toàn & hỗ trợ khách hàng */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

.page-index__security-support-section .page-index__section-title,
.page-index__security-support-section .page-index__description {
  color: #ffffff;
}

.page-index__security-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__feature-item img {
  
  
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.page-index__feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-index__feature-item p {
  font-size: 15px;
  color: #e0e0e0;
  line-height: 1.5;
}

/* Câu hỏi thường gặp (FAQ) */
.page-index__faq-section {
  padding: 80px 0;
  background-color: #017439;
}

.page-index__faq-section .page-index__section-title,
.page-index__faq-section .page-index__description {
  color: #ffffff;
}

.page-index__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

details.page-index__faq-item summary.page-index__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;
}

details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
  display: none;
}

details.page-index__faq-item summary.page-index__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #ffffff;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFFF00;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 20px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  color: #e0e0e0;
  font-size: 16px;
  line-height: 1.6;
}

/* Blog mới nhất */
.page-index__blog-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

.page-index__blog-section .page-index__section-title,
.page-index__blog-section .page-index__description {
  color: #ffffff;
}

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

.page-index__blog-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
}

.page-index__blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-index__blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index__blog-card-content {
  padding: 20px;
}

.page-index__blog-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFF00;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index__blog-card-summary {
  font-size: 15px;
  color: #e0e0e0;
  line-height: 1.5;
  margin-bottom: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Giới hạn 3 dòng */
  -webkit-box-orient: vertical;
}

.page-index__blog-card-date {
  font-size: 14px;
  color: #a0a0a0;
}

/* General image responsiveness for content area */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* MEDIA QUERIES */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-index__container {
    padding: 30px 15px;
  }

  .page-index__section-title {
    font-size: 30px;
  }

  .page-index__description {
    font-size: 16px;
  }

  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack product grids */
    gap: 15px;
  }

  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid for small */
  }

  .page-index__products-grid--large {
    grid-template-columns: repeat(2, 1fr); /* 1x2 grid for large */
  }

  .page-index__game-category {
    flex-direction: column; /* Stack image and content */
    text-align: center;
    gap: 20px;
  }

  .page-index__game-category--reverse {
    flex-direction: column; /* Keep stacked */
  }

  .page-index__game-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .page-index__game-title {
    font-size: 24px;
  }

  .page-index__game-content p {
    font-size: 16px;
  }

  .page-index__quick-link-title {
    font-size: 20px;
  }

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

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

  .page-index__faq-qtext {
    font-size: 17px;
  }

  .page-index__blog-card-title {
    font-size: 18px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* HERO主图区域 */
  .page-index__hero-section {
    padding-top: 10px !important;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
  }
  
  .page-index__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Sản phẩm hiển thị khu vực */
  .page-index__products-section {
    padding: 40px 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .page-index__products-container {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-index__products-grid--small .page-index__product-card,
  .page-index__products-grid--small .page-index__product-card-image {
    max-width: 100%; /* Đảm bảo hình ảnh không vượt quá ô */
  }
  
  .page-index__products-grid--small .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Giữ tỷ lệ khung hình gốc */
  }
  
  .page-index__products-grid--large {
    grid-template-columns: 1fr; /* Stack into single column */
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-index__products-grid--large .page-index__product-card,
  .page-index__products-grid--large .page-index__product-card-image {
    max-width: 100%; /* Đảm bảo hình ảnh không vượt quá ô */
  }
  
  .page-index__products-grid--large .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Giữ tỷ lệ khung hình gốc */
  }

  /* General content area padding and font sizes */
  .page-index__container,
  .page-index__intro-section .page-index__container {
    padding: 30px 15px;
  }

  .page-index__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-index__description {
    font-size: 15px;
    margin-bottom: 25px;
  }

  /* Buttons and button containers */
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
  }

  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index__btn-promo,
  .page-index__btn-text,
  .page-index a[class*="button"],
  .page-index 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-index__cta-buttons,
  .page-index__button-group,
  .page-index__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-index__cta-full-width .page-index__btn-primary {
    min-width: unset;
    width: 100%;
  }

  /* Quick Access Links */
  .page-index__link-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
  }

  .page-index__quick-link-card {
    padding: 20px;
  }

  .page-index__quick-link-title {
    font-size: 18px;
  }

  /* Core Games/Services */
  .page-index__game-category {
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
  }

  .page-index__game-title {
    font-size: 22px;
  }

  .page-index__game-content p {
    font-size: 15px;
  }

  /* Promotions */
  .page-index__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-index__promo-card {
    padding: 25px;
  }

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

  /* Security & Support */
  .page-index__security-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

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

  /* FAQ */
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }

  .page-index__faq-qtext {
    font-size: 16px;
  }

  .page-index__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  /* Blog */
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-index__blog-card-image {
    height: 180px;
  }

  .page-index__blog-card-title {
    font-size: 17px;
  }

  .page-index__blog-card-summary {
    font-size: 14px;
  }

  /* Universal image and container rules for mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__intro-section .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}