.page-index {
  color: #ffffff; /* Body background is dark, so text is light */
  background-color: var(--primary-color, #0A2239);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-index__section-title {
  font-size: 3em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: #FFD700;
  color: #0A2239;
  border: 2px solid #FFD700;
}

.page-index__btn-primary:hover {
  background: transparent;
  color: #FFD700;
}

.page-index__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index__btn-secondary:hover {
  background: #FFD700;
  color: #0A2239;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* shared đã xử lý padding-top cho body */
  margin-top: 0;
  width: 100%;
  overflow: hidden;
}

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

.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;
  min-height: 200px; /* Minimum size requirement */
}

/* Products Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background: var(--primary-color, #0A2239);
  box-sizing: border-box;
}

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

.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; /* Max width for product cards */
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
  justify-self: center; /* Center cards in grid cells */
}

.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; /* Preserve aspect ratio */
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Intro Section */
.page-index__intro-section {
  padding: 80px 20px;
  background: #0A2239;
  color: #ffffff;
  text-align: center;
}

.page-index__intro-section .page-index__title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-index__intro-section .page-index__description {
  font-size: 1.15em;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

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

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__feature-title {
  color: #FFD700;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-index__feature-item p {
  color: #cccccc;
  font-size: 1em;
  line-height: 1.7;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 20px;
  background: #f0f0f0;
  color: #333333;
  text-align: center;
}

.page-index__quick-access-section .page-index__section-title {
  color: #0A2239;
}

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

.page-index__access-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.page-index__access-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__access-title {
  color: #0A2239;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-index__access-card p {
  color: #666666;
  font-size: 0.95em;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 20px;
  background: #0A2239;
  color: #ffffff;
  text-align: center;
}

.page-index__games-section .page-index__section-title {
  color: #FFD700;
}

.page-index__games-section .page-index__section-description {
  color: #f0f0f0;
}

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

.page-index__game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

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

.page-index__game-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 15px;
}

.page-index__game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-index__game-title {
  color: #FFD700;
  font-size: 1.6em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-description {
  color: #cccccc;
  font-size: 0.95em;
  line-height: 1.6;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 20px;
  background: #f0f0f0;
  color: #333333;
  text-align: center;
}

.page-index__promotions-section .page-index__section-title {
  color: #0A2239;
}

.page-index__promotions-section .page-index__section-description {
  color: #666666;
}

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

.page-index__promo-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__promo-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 15px;
}

.page-index__promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-index__promo-title {
  color: #0A2239;
  font-size: 1.6em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-description {
  color: #666666;
  font-size: 0.95em;
  line-height: 1.6;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Security & Support Section */
.page-index__security-support-section {
  padding: 80px 20px;
  background: #0A2239;
  color: #ffffff;
  text-align: center;
}

.page-index__security-support-section .page-index__section-title {
  color: #FFD700;
}

.page-index__security-support-section .page-index__section-description {
  color: #f0f0f0;
}

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

.page-index__security-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__security-title {
  color: #FFD700;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-index__security-item p {
  color: #cccccc;
  font-size: 1em;
  line-height: 1.7;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background: #f0f0f0;
  color: #333333;
  text-align: center;
}

.page-index__faq-section .page-index__section-title {
  color: #0A2239;
}

.page-index__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #333333;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 5px 5px;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #0A2239;
}

.page-index__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-index__faq-question:active {
  background: #eeeeee;
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #0A2239;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #0A2239;
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 20px;
  background: #0A2239;
  color: #ffffff;
  text-align: center;
}

.page-index__blog-section .page-index__section-title {
  color: #FFD700;
}

.page-index__blog-section .page-index__section-description {
  color: #f0f0f0;
}

.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.05);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

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

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

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

.page-index__blog-title {
  color: #FFD700;
  font-size: 1.4em;
  margin: 15px 15px 10px 15px;
}

.page-index__blog-excerpt {
  color: #cccccc;
  font-size: 0.9em;
  line-height: 1.6;
  padding: 0 15px;
  flex-grow: 1;
}

.page-index__blog-date {
  color: #999999;
  font-size: 0.8em;
  margin-top: 15px;
  padding: 0 15px 20px 15px;
  display: block;
}

/* Dark background general styles */
.page-index__dark-section {
  background: #0A2239;
  color: #ffffff;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack product grids */
  }
  
  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .page-index__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .page-index__access-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 0 !important; /* Ensure no double padding on mobile */
  }

  .page-index__section-title {
    font-size: 2em;
  }

  .page-index__section-description {
    font-size: 1em;
  }

  .page-index__container,
  .page-index__products-section,
  .page-index__intro-section,
  .page-index__quick-access-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__security-support-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding: 30px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Buttons */
  .page-index__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__btn-primary,
  .page-index__btn-secondary,
  .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 !important;
    padding-right: 15px !important;
  }
  
  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Images */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__hero-image img {
    min-
  }

  /* Product Section Mobile */
  .page-index__products-section {
    padding: 40px 15px !important;
  }
  
  .page-index__products-container {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-index__products-grid--small .page-index__product-card,
  .page-index__products-grid--small .page-index__product-card-image {
    max-width: 100% !important; /* Allow cards to fill grid cell */
    width: 100% !important;
  }

  .page-index__products-grid--large {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-index__products-grid--large .page-index__product-card,
  .page-index__products-grid--large .page-index__product-card-image {
    max-width: 100% !important; /* Allow cards to fill grid cell */
    width: 100% !important;
  }

  .page-index__product-card-image img {
    min-width: unset;
    min-height: unset;
  }

  /* Intro Section Mobile */
  .page-index__intro-section .page-index__title {
    font-size: 1.8em;
  }

  .page-index__intro-section .page-index__description {
    font-size: 0.95em;
  }

  .page-index__intro-features {
    grid-template-columns: 1fr;
  }

  /* Quick Access Section Mobile */
  .page-index__access-links-grid {
    grid-template-columns: 1fr;
  }

  /* Games Section Mobile */
  .page-index__games-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-image {
    height: 180px;
  }

  /* Promotions Section Mobile */
  .page-index__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-index__promo-image {
    height: 180px;
  }

  /* Security Section Mobile */
  .page-index__security-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ Section Mobile */
  .page-index__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-index__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-index__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-index__faq-answer {
    padding: 0 15px;
  }
  
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }

  /* Blog Section Mobile */
  .page-index__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index__blog-image {
    height: 180px;
  }
}