.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6;
  background-color: #08160F;
}

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

.page-index__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  color: #F2FFF6;
  margin-bottom: 15px;
  text-align: center;
}

.page-index__description-text,
.page-index__section-description {
  font-size: 17px;
  color: #A7D9B8;
  text-align: center;
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__read-more {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

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

.page-index__btn-secondary:hover {
  background: #57E38D;
  color: #08160F;
  transform: translateY(-2px);
}

.page-index__read-more {
  background: #0A4B2C;
  color: #F2FFF6;
  border: 1px solid #2E7A4E;
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 5px;
}

.page-index__read-more:hover {
  background: #1E3A2A;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* shared đã cho body padding-top */
  margin-top: 0;
  background-color: #08160F;
}

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

/* Products Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #08160F;
  box-sizing: border-box;
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 small + 2 large */
  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 each card */
  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;
  display: block;
}

/* Introduction Section */
.page-index__introduction-section {
  padding: 80px 20px;
  background-color: #08160F;
  color: #F2FFF6;
  text-align: center;
}

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

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 20px;
  background-color: #11271B;
  color: #F2FFF6;
}

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

.page-index__quick-link-card {
  background-color: #0A4B2C;
  padding: 30px;
  border-radius: 10px;
  text-decoration: none;
  color: #F2FFF6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  border: 1px solid #2E7A4E;
}

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

.page-index__quick-link-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2FFF6;
}

.page-index__quick-link-text {
  font-size: 15px;
  color: #A7D9B8;
}

/* Games Overview Section */
.page-index__games-overview-section {
  padding: 80px 20px;
  background-color: #08160F;
  color: #F2FFF6;
}

.page-index__game-category {
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid #1E3A2A;
}

.page-index__game-category:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-index__game-category-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #57E38D;
  text-align: center;
  margin-bottom: 30px;
}

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

.page-index__game-content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-index__game-image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-index__game-text-content p {
  font-size: 16px;
  color: #A7D9B8;
  margin-bottom: 20px;
  text-align: left;
}

.page-index__game-text-content .page-index__btn-primary {
  margin-top: 15px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 20px;
  background-color: #11271B;
  color: #F2FFF6;
}

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

.page-index__promotion-card {
  background-color: #0A4B2C;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  border: 1px solid #2E7A4E;
}

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

.page-index__promotion-title {
  font-size: 20px;
  font-weight: 600;
  color: #F2FFF6;
  margin: 20px 15px 10px;
}

.page-index__promotion-text {
  font-size: 15px;
  color: #A7D9B8;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-index__promotion-card .page-index__btn-primary {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

.page-index__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

/* Security & Customer Service Section */
.page-index__security-customer-section {
  padding: 80px 20px;
  background-color: #08160F;
  color: #F2FFF6;
}

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

.page-index__feature-item {
  background-color: #0A4B2C;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E;
}

.page-index__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
}

.page-index__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-index__feature-text {
  font-size: 15px;
  color: #A7D9B8;
}

.page-index__contact-cta {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #11271B;
  color: #F2FFF6;
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #2E7A4E;
  overflow: hidden;
  background: #0A4B2C;
}

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;
  color: #F2FFF6;
}

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: #1E3A2A;
}

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

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

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background: #11271B;
  border-radius: 0 0 8px 8px;
  color: #A7D9B8;
  font-size: 16px;
}

/* Latest Blog Section */
.page-index__latest-blog-section {
  padding: 80px 20px;
  background-color: #08160F;
  color: #F2FFF6;
}

.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-color: #0A4B2C;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  border: 1px solid #2E7A4E;
}

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

.page-index__blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__blog-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index__blog-title a {
  color: #F2FFF6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-title a:hover {
  color: #57E38D;
}

.page-index__blog-meta {
  font-size: 14px;
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-index__blog-summary {
  font-size: 15px;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__view-all-posts {
  text-align: center;
  margin-top: 50px;
}

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

/* Mobile Responsive Design */
@media (max-width: 1024px) {
  .page-index__container {
    padding: 30px 15px;
  }
  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack products grid vertically */
    gap: 15px;
  }
  .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-wrapper {
    flex-direction: column;
    gap: 25px;
  }
  .page-index__game-content-wrapper--reversed {
    flex-direction: column;
  }
  .page-index__game-image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-index__game-text-content p {
    text-align: center;
  }
  .page-index__game-text-content .page-index__btn-primary {
    width: 100%;
  }
  .page-index__promotions-grid,
  .page-index__features-grid,
  .page-index__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .page-index__quick-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .page-index__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }
  .page-index__section-title {
    font-size: clamp(20px, 4.5vw, 36px);
  }
  .page-index__description-text, .page-index__section-description {
    font-size: 16px;
  }
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__cta-buttons .page-index__btn-primary,
  .page-index__cta-buttons .page-index__btn-secondary {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* HERO Section Mobile */
  .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;
  }

  /* Products Section Mobile */
  .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);
    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 for 2-column layout */
    width: 100%;
  }
  .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;
    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%;
    width: 100%;
  }
  .page-index__products-grid--large .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General Image & Container Mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section, .page-index__card, .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__introduction-section, .page-index__quick-access-section, .page-index__games-overview-section, .page-index__promotions-section, .page-index__security-customer-section, .page-index__faq-section, .page-index__latest-blog-section {
    padding: 40px 15px;
  }

  /* Buttons Mobile */
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index__read-more,
  .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-buttons {
    flex-direction: column;
  }
  
  /* Other Content Modules Mobile */
  .page-index__main-title {
    font-size: 28px;
  }
  .page-index__section-title {
    font-size: 24px;
  }
  .page-index__description-text, .page-index__section-description {
    font-size: 15px;
  }
  .page-index__quick-links-grid {
    grid-template-columns: 1fr;
  }
  .page-index__quick-link-title {
    font-size: 18px;
  }
  .page-index__game-category-title {
    font-size: 20px;
  }
  .page-index__game-text-content p {
    font-size: 15px;
  }
  .page-index__promotions-grid,
  .page-index__features-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index__promotion-title,
  .page-index__feature-title,
  .page-index__blog-title {
    font-size: 18px;
  }
  .page-index__promotion-text,
  .page-index__feature-text,
  .page-index__blog-summary {
    font-size: 14px;
  }
  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: 24px;
    margin-left: 10px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }
  .page-index__blog-card img {
    
  }
}