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

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

.page-index__main-title,
.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__btn-text,
.page-index a[class*="button"],
.page-index a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

.page-index__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-index__btn-secondary:hover {
  background: #1E3A2A; /* Divider */
  color: #F2FFF6; /* Text Main */
  transform: translateY(-2px);
}

.page-index__btn-text {
  background: transparent;
  color: #57E38D; /* Glow */
  border: none;
  padding: 8px 0;
  font-size: 15px;
}

.page-index__btn-text:hover {
  text-decoration: underline;
  color: #F2FFF6; /* Text Main */
}

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

.page-index__cta-center .page-index__btn-primary {
  min-width: 200px;
}

/* HERO SECTION */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* shared already gives body padding-top */
  margin-top: 0;
}

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

.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; /* Background */
  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 each product card */
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
  margin: 0 auto; /* Center cards within their grid cell */
}

.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-top: 60px;
  padding-bottom: 60px;
  background-color: #08160F; /* Background */
}

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

.page-index__feature-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
}

.page-index__feature-title {
  font-size: 22px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-index__feature-item p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 15px;
}

/* QUICK LINKS SECTION */
.page-index__quick-links-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #0A4B2C; /* Deep Green */
}

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

/* GAMES SECTION */
.page-index__games-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #08160F; /* Background */
}

.page-index__game-category {
  margin-bottom: 60px;
  border-bottom: 1px solid #1E3A2A; /* Divider */
  padding-bottom: 40px;
}

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

.page-index__game-title {
  font-size: 28px;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 30px;
}

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

.page-index__game-content img {
  width: 40%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-index__game-content p {
  flex: 1;
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
  margin-bottom: 20px;
}

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

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

/* PROMOTIONS SECTION */
.page-index__promotions-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #0A4B2C; /* Deep Green */
}

.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.page-index__promo-card {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-title {
  font-size: 20px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-index__promo-card p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* SECURITY & SUPPORT SECTION */
.page-index__security-support-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #08160F; /* Background */
}

.page-index__info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.page-index__info-card {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__info-title {
  font-size: 20px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-index__info-card p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ SECTION */
.page-index__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #0A4B2C; /* Deep Green */
}

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

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

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

.page-index__faq-qtext {
  flex: 1;
  font-size: 16px;
  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-color: #1E3A2A; /* Divider */
  border-radius: 0 0 10px 10px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 15px;
}

/* BLOG SECTION */
.page-index__blog-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #08160F; /* Background */
}

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

.page-index__blog-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
}

.page-index__blog-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

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

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

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

.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 {
  font-size: 14px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__main-title,
  .page-index__section-title {
    font-size: 32px;
  }

  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack product 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__features-grid,
  .page-index__promo-grid,
  .page-index__info-grid,
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-index__game-content {
    flex-direction: column;
  }

  .page-index__game-content img {
    width: 100%;
    max-width: 100%;
  }

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

@media (max-width: 768px) {
  /* HERO SECTION Mobile */
  .page-index__hero-section {
    padding-top: 10px !important; /* shared already gives body padding-top */
  }
  .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 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .page-index__products-container {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !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; /* Ensure they fit the 2-column grid */
    margin: 0 !important;
  }
  .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 !important; /* Each large card takes full width */
    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;
    margin: 0 auto !important;
  }
  .page-index__products-grid--large .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General Images & Containers 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 !important;
    padding-right: 15px !important;
  }

  /* Buttons & Button Containers 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 !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 !important;
    flex-direction: column !important; /* Force vertical stack for buttons */
  }

  /* Other Content Modules Mobile */
  .page-index__main-title,
  .page-index__section-title {
    font-size: 28px !important;
    margin-bottom: 15px !important;
  }

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

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

  .page-index__feature-item,
  .page-index__promo-card,
  .page-index__info-card,
  .page-index__blog-card {
    padding: 20px !important;
  }

  .page-index__feature-title,
  .page-index__promo-title,
  .page-index__info-title,
  .page-index__blog-title {
    font-size: 18px !important;
  }

  .page-index__game-title {
    font-size: 24px !important;
  }

  .page-index__game-content p {
    font-size: 15px !important;
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px !important;
  }
  .page-index__faq-qtext {
    font-size: 15px !important;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px !important;
  }

  .page-index__blog-image {
    height: 180px !important;
  }
  .page-index__blog-content {
    padding: 15px !important;
  }
}