.page-index {
  background-color: #0a0a0a; /* Body background is dark, so content background should be dark or contrasting */
  color: #ffffff; /* Default text color for dark body background */
  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: 36px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-index__cta-buttons--center {
  justify-content: center;
}

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

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

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

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

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

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 16px;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Assuming shared handles body padding-top */
  margin-top: 0;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  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: #0a0a0a;
  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;
  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;
  display: block;
}

/* Homepage Introduction Section */
.page-index__intro-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  color: #ffffff;
}

.page-index__intro-text {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #e0e0e0;
  text-align: justify;
}

/* Quick Links Section */
.page-index__quick-links-section {
  background-color: #017439;
  padding: 80px 0;
  color: #ffffff;
}

.page-index__quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-index__quick-link-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

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

.page-index__quick-link-icon {
  font-size: 48px;
  margin-bottom: 15px;
  line-height: 1;
}

.page-index__quick-link-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

/* Core Games Section */
.page-index__games-section {
  background-color: #0a0a0a;
  padding: 80px 0;
  color: #ffffff;
}

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

.page-index__game-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-index__game-card h3,
.page-index__game-card p {
  padding: 0 25px;
}

.page-index__game-title {
  font-size: 24px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #017439;
}

.page-index__game-description {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__game-card .page-index__btn--small {
  margin: 0 25px 20px;
  width: calc(100% - 50px);
}

/* Promotions Section */
.page-index__promotions-section {
  background-color: #017439;
  padding: 80px 0;
  color: #ffffff;
}

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

.page-index__promo-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  transition: background-color 0.3s ease;
}

.page-index__promo-item:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

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

.page-index__promo-description {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
}

/* Security & Customer Support Section */
.page-index__security-support-section {
  background-color: #0a0a0a;
  padding: 80px 0;
  color: #ffffff;
}

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

.page-index__security-item {
  text-align: center;
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-index__security-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__security-description {
  font-size: 15px;
  color: #cccccc;
}

/* FAQ Section */
details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #333333;
  overflow: hidden;
  background: #1a1a1a;
  color: #ffffff;
}
details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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: #2a2a2a;
}
.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: #017439;
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}
details.page-index__faq-item .page-index__faq-answer {
  padding: 0 20px 20px;
  background: #0a0a0a;
  border-radius: 0 0 8px 8px;
  color: #cccccc;
}

/* Blog Section */
.page-index__blog-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  color: #ffffff;
}

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

.page-index__blog-card {
  background-color: #0a0a0a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__blog-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-index__blog-card:hover .page-index__blog-image-link img {
  transform: scale(1.05);
}

.page-index__blog-content {
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px); /* Adjust based on image height */
}

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

.page-index__blog-date {
  color: #017439;
  font-weight: 600;
}

.page-index__blog-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.4;
  flex-grow: 1;
}

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

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

.page-index__blog-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-index__blog-readmore {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-index__blog-readmore:hover {
  color: #005a2d;
  text-decoration: underline;
}

/* General Image Styling */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no CSS filters are applied */
}

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

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

  .page-index__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-index__cta-buttons {
    gap: 15px;
  }

  .page-index__btn {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-index__products-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .page-index__products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-index__quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

  .page-index__games-grid,
  .page-index__promotions-list,
  .page-index__security-support-content,
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

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

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

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

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

  /* Product Showcase 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: 300px;
  }
  .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: 300px;
  }
  .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__container,
  .page-index__intro-section,
  .page-index__quick-links-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__security-support-section,
  .page-index__faq-section,
  .page-index__blog-section,
  .page-index__product-card,
  .page-index__game-card,
  .page-index__promo-item,
  .page-index__security-item,
  .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__container {
    padding: 30px 15px;
  }

  /* Buttons Mobile */
  .page-index__cta-button,
  .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;
    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;
    flex-direction: column !important; /* Force vertical stacking for buttons */
  }
  .page-index__cta-buttons .page-index__btn {
    margin-bottom: 10px; /* Add space between vertically stacked buttons */
  }

  /* Other Content Modules Mobile */
  .page-index__section-title {
    font-size: 24px;
  }

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

  .page-index__intro-text {
    font-size: 16px;
  }

  .page-index__quick-links-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

  .page-index__games-grid,
  .page-index__promotions-list,
  .page-index__security-support-content,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

  .page-index__game-image {
    height: 180px;
  }

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

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-qtext {
    font-size: 15px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 28px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }

  .page-index__blog-image-link {
    height: 160px;
  }

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