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

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

.page-index__main-title {
  font-size: 2.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
}

.page-index__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #A7D9B8; /* Text Secondary */
}

.page-index__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.3;
}

.page-index__section-description {
  font-size: 1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #A7D9B8; /* Text Secondary */
}

.page-index__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-index__btn-secondary {
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  border: 1px solid #2E7A4E; /* Border */
}

.page-index__btn-secondary:hover {
  background: #2E7A4E; /* Border */
  color: #F2FFF6;
  transform: translateY(-2px);
}

.page-index__btn-link {
  display: inline-block;
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__btn-link:hover {
  color: #F2C14E; /* Gold */
}

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

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-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: #08160F; /* Background */
  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;
}

.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; /* Max width for image container */
  overflow: hidden;
}

.page-index__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
}

/* Intro Section */
.page-index__intro-section {
  padding: 80px 20px;
  background: #11271B; /* Card BG */
}

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

.page-index__feature-item {
  background: #08160F; /* Background */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  text-align: center;
}

.page-index__feature-title {
  font-size: 1.5em;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

.page-index__feature-text {
  color: #A7D9B8; /* Text Secondary */
}

/* Quick Links Section */
.page-index__quick-links-section {
  padding: 80px 20px;
  background: #08160F; /* Background */
  text-align: center;
}

.page-index__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 20px;
  background: #11271B; /* Card BG */
}

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

.page-index__game-card {
  background: #08160F; /* Background */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__game-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 15px;
  max-width: 100%;
  display: block;
}

.page-index__game-title {
  font-size: 1.6em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-description {
  color: #A7D9B8; /* Text Secondary */
  padding: 0 15px 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 20px;
  background: #08160F; /* Background */
}

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

.page-index__promo-card {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 15px;
  max-width: 100%;
  display: block;
}

.page-index__promo-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-text {
  color: #A7D9B8; /* Text Secondary */
  padding: 0 15px 20px;
  flex-grow: 1;
}

/* Security & Support Section */
.page-index__security-support-section {
  padding: 80px 20px;
  background: #11271B; /* Card BG */
}

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

.page-index__info-card {
  background: #08160F; /* Background */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  text-align: center;
}

.page-index__info-title {
  font-size: 1.5em;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

.page-index__info-text {
  color: #A7D9B8; /* Text Secondary */
}

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

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background: #08160F; /* Background */
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

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

.page-index__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 20px 20px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 0 0 10px 10px;
  color: #A7D9B8; /* Text Secondary */
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 20px;
  background: #11271B; /* Card BG */
}

.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: #08160F; /* Background */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.page-index__blog-title {
  font-size: 1.4em;
  margin: 15px 15px 10px;
  line-height: 1.4;
}

.page-index__blog-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
}

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

.page-index__blog-meta {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.9em;
  margin: 0 15px 10px;
}

.page-index__blog-summary {
  color: #A7D9B8; /* Text Secondary */
  margin: 0 15px 20px;
  flex-grow: 1;
}

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

/* Copyright Section */
.page-index__copyright-section {
  padding: 30px 20px;
  background: #08160F; /* Background */
  text-align: center;
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-index__copyright-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.9em;
  margin: 0;
}

/* General Image styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Dark background sections */
.page-index__dark-section {
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__products-container {
    grid-template-columns: 1fr; /* Two product grids stack vertically */
  }

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

  .page-index__main-title {
    font-size: 2.2em;
  }

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

@media (max-width: 768px) {
  /* HERO Section */
  .page-index__hero-section {
    padding-top: 10px !important;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
  }

  /* Products Section */
  .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 */
  .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;
  }

  /* Buttons & Button Containers */
  .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__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__button-group {
    flex-direction: column;
  }

  /* Other Content Modules */
  .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__copyright-section {
    padding: 40px 15px;
  }

  .page-index__main-title {
    font-size: 1.8em;
  }

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

  .page-index__description,
  .page-index__section-description {
    font-size: 0.95em;
  }

  .page-index__features-grid,
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__info-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-index__faq-qtext {
    font-size: 1em;
  }

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