.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent;
}

.page-index__section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

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

.page-index__heading {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFC300; /* Auxiliary color for headings */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__description {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.8;
  color: #e0e0e0;
}

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

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

.page-index__btn-primary:hover {
  background-color: #a0002f;
  border-color: #a0002f;
  transform: translateY(-2px);
}

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

.page-index__btn-secondary:hover {
  background-color: #FFC300;
  color: #121212;
  transform: translateY(-2px);
}

.page-index__btn-text {
  background-color: transparent;
  color: #FFC300;
  border: none;
  padding: 0;
  text-decoration: underline;
}

.page-index__btn-text:hover {
  color: #C70039;
  text-decoration: none;
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-index__cta-buttons--center {
  margin-top: 50px;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* shared đã cấp padding-top cho body */
  margin-top: 0;
  background-color: #121212;
}

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

.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;
}

/* Product Showcase Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #1a1a1a;
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 small + 2 large */
  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; /* Max width for each card */
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.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;
}

/* Introduction Section */
.page-index__introduction-section {
  background-color: #121212;
  color: #ffffff;
}

.page-index__introduction-section .page-index__heading {
  color: #FFC300;
}

/* Quick Links Section */
.page-index__quick-links-section {
  background-color: #C70039; /* Dark brand color background */
  color: #ffffff;
}

.page-index__quick-links-section .page-index__heading {
  color: #FFC300;
}

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

.page-index__link-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  text-decoration: none;
  color: #ffffff;
  transition: background 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__link-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.page-index__link-card h3 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FFC300;
}

.page-index__link-card p {
  font-size: 16px;
  line-height: 1.5;
  color: #e0e0e0;
}

/* Core Games/Services Section */
.page-index__games-overview-section {
  background-color: #121212;
  color: #ffffff;
}

.page-index__games-overview-section .page-index__heading {
  color: #FFC300;
}

.page-index__game-category {
  margin-bottom: 60px;
  text-align: left;
}

.page-index__game-title {
  font-size: 32px;
  color: #C70039;
  margin-bottom: 25px;
  text-align: center;
}

.page-index__game-content {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-index__game-content:nth-child(even) {
  flex-direction: row-reverse;
}

.page-index__game-image {
  max-width: 50%;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-index__game-content p {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
  color: #e0e0e0;
}

/* Promotions Section */
.page-index__promotions-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-index__promotions-section .page-index__heading {
  color: #FFC300;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__promo-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

.page-index__promo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-index__promo-card h3 {
  font-size: 24px;
  color: #FFC300;
  margin-bottom: 15px;
}

.page-index__promo-card p {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 25px;
}

/* Safety & Support Section */
.page-index__safety-support-section {
  background-color: #C70039;
  color: #ffffff;
}

.page-index__safety-support-section .page-index__heading {
  color: #FFC300;
}

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

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: background 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.page-index__feature-item img {
  
  height: auto;
  margin-bottom: 20px;
}

.page-index__feature-item h3 {
  font-size: 22px;
  color: #FFC300;
  margin-bottom: 10px;
}

.page-index__feature-item p {
  font-size: 16px;
  color: #e0e0e0;
}

/* FAQ Section */
.page-index__faq-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-index__faq-section .page-index__heading {
  color: #FFC300;
}

.page-index__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFC300;
  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-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #e0e0e0;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 8px 8px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #C70039;
  transform: rotate(45deg);
}

/* Blog Section */
.page-index__blog-section {
  background-color: #121212;
  color: #ffffff;
}

.page-index__blog-section .page-index__heading {
  color: #FFC300;
}

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

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

.page-index__blog-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

.page-index__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-index__blog-card h3 {
  font-size: 22px;
  padding: 15px 20px 0;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-index__blog-card h3 a {
  color: #FFC300;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-card h3 a:hover {
  color: #C70039;
}

.page-index__blog-card p {
  font-size: 16px;
  color: #e0e0e0;
  padding: 0 20px 15px;
  line-height: 1.6;
}

.page-index__blog-date {
  display: block;
  font-size: 14px;
  color: #a0a0a0;
  padding: 0 20px 20px;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-index__heading {
    font-size: 32px;
  }
  .page-index__description {
    font-size: 16px;
  }
  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack grids vertically */
  }
  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__game-content {
    flex-direction: column;
  }
  .page-index__game-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-index__section {
    padding: 40px 15px;
  }
  .page-index__container {
    padding: 0 10px;
  }
  .page-index__heading {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-index__description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  
  /* Buttons */
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__btn-primary, .page-index__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* HERO Section */
  .page-index__hero-section {
    padding-top: 0 !important;
  }
  .page-index__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Product Showcase Section */
  .page-index__products-section {
    padding: 30px 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);
    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%; /* Adjust to fit 2 columns in mobile */
  }
  .page-index__products-grid--small .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__products-grid--large {
    grid-template-columns: 1fr; /* Each large card takes full width */
    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%;
  }
  .page-index__products-grid--large .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Quick Links */
  .page-index__links-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-index__link-card {
    padding: 20px;
  }
  .page-index__link-card h3 {
    font-size: 20px;
  }
  .page-index__link-card p {
    font-size: 15px;
  }

  /* Core Games/Services */
  .page-index__game-title {
    font-size: 26px;
  }
  .page-index__game-content {
    gap: 20px;
  }
  .page-index__game-content p {
    font-size: 15px;
  }

  /* Promotions */
  .page-index__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__promo-card h3 {
    font-size: 20px;
  }
  .page-index__promo-card p {
    font-size: 15px;
  }

  /* Safety & Support */
  .page-index__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__feature-item h3 {
    font-size: 20px;
  }
  .page-index__feature-item p {
    font-size: 15px;
  }

  /* FAQ */
  .page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-question h3 {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }

  /* Blog */
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__blog-card h3 {
    font-size: 20px;
  }
  .page-index__blog-card p {
    font-size: 15px;
  }
  .page-index__blog-date {
    font-size: 13px;
  }
  
  /* Global image and container responsive styles */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__link-card,
  .page-index__promo-card,
  .page-index__feature-item,
  .page-index__blog-card,
  .page-index__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__products-section, .page-index__products-container, .page-index__products-grid--small, .page-index__products-grid--large {
    padding-left: 0;
    padding-right: 0;
  }
  .page-index__products-grid--small .page-index__product-card, .page-index__products-grid--large .page-index__product-card {
    padding-left: 0;
    padding-right: 0;
    margin: 0 auto; /* Center cards */
  }
}