/* style/index.css */

:root {
  --page-index-primary-color: #11A84E;
  --page-index-secondary-color: #22C768;
  --page-index-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-index-card-bg: #11271B;
  --page-index-bg-color: #08160F;
  --page-index-text-main: #F2FFF6;
  --page-index-text-secondary: #A7D9B8;
  --page-index-border-color: #2E7A4E;
  --page-index-glow-color: #57E38D;
  --page-index-gold-color: #F2C14E;
  --page-index-divider-color: #1E3A2A;
  --page-index-deep-green: #0A4B2C;
}

.page-index {
  font-family: Arial, sans-serif;
  color: var(--page-index-text-main); /* Light text for dark body background */
  background-color: var(--page-index-bg-color);
}

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

.page-index__main-title,
.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--page-index-text-main);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-index__description,
.page-index__section-description {
  font-size: 18px;
  line-height: 1.8;
  color: var(--page-index-text-secondary);
  text-align: center;
  margin-bottom: 40px;
}

.page-index__dark-section {
  background-color: var(--page-index-card-bg);
  color: var(--page-index-text-main);
}

/* HERO Section Styles */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Assuming shared.css sets body padding-top */
  margin-top: 0;
  background-color: var(--page-index-bg-color);
}

.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 Styles */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: var(--page-index-bg-color);
}

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

.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; /* Maintain original aspect ratio */
  display: block;
}

/* Intro Section Styles */
.page-index__intro-section {
  padding: 80px 0;
  background-color: var(--page-index-bg-color);
}

/* Quick Access Section Styles */
.page-index__quick-access-section {
  padding: 60px 0;
  background-color: var(--page-index-card-bg);
  text-align: center;
}

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

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-index__btn-primary {
  background: var(--page-index-button-gradient);
  color: #ffffff;
}

.page-index__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--page-index-glow-color);
}

.page-index__btn-secondary {
  background: transparent;
  color: var(--page-index-primary-color);
  border-color: var(--page-index-primary-color);
}

.page-index__btn-secondary:hover {
  background: var(--page-index-primary-color);
  color: #ffffff;
  box-shadow: 0 0 10px var(--page-index-primary-color);
}

/* Games Section Styles */
.page-index__games-section {
  padding: 80px 0;
  background-color: var(--page-index-bg-color);
}

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

.page-index__game-card {
  background-color: var(--page-index-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
}

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

.page-index__game-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-index-text-main);
  margin: 20px 15px 10px;
}

.page-index__game-title a {
  color: var(--page-index-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-title a:hover {
  color: var(--page-index-glow-color);
}

.page-index__game-description {
  font-size: 16px;
  color: var(--page-index-text-secondary);
  line-height: 1.6;
  padding: 0 15px;
}

/* Promotions Section Styles */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: var(--page-index-card-bg);
}

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

.page-index__promo-card {
  background-color: var(--page-index-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
}

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

.page-index__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--page-index-text-main);
  margin: 20px 15px 10px;
}

.page-index__promo-title a {
  color: var(--page-index-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promo-title a:hover {
  color: var(--page-index-glow-color);
}

.page-index__promo-description {
  font-size: 15px;
  color: var(--page-index-text-secondary);
  line-height: 1.6;
  padding: 0 15px;
}

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

/* Security & Support Section Styles */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: var(--page-index-bg-color);
}

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

.page-index__feature-item {
  background-color: var(--page-index-card-bg);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-index__feature-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--page-index-text-main);
  margin-bottom: 15px;
}

.page-index__feature-description {
  font-size: 15px;
  color: var(--page-index-text-secondary);
  line-height: 1.6;
}

/* FAQ Section Styles */
.page-index__faq-section {
  padding: 80px 0;
  background-color: var(--page-index-card-bg);
}

.page-index__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--page-index-border-color);
  overflow: hidden;
  background-color: var(--page-index-bg-color);
}

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: var(--page-index-deep-green);
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-index-text-main);
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-index-primary-color);
  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: var(--page-index-bg-color);
  border-radius: 0 0 5px 5px;
  color: var(--page-index-text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* Blog Section Styles */
.page-index__blog-section {
  padding: 80px 0;
  background-color: var(--page-index-bg-color);
}

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

.page-index__blog-card {
  background-color: var(--page-index-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-index__blog-content {
  padding: 20px;
}

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

.page-index__blog-title a {
  color: var(--page-index-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-title a:hover {
  color: var(--page-index-glow-color);
}

.page-index__blog-meta {
  font-size: 14px;
  color: var(--page-index-text-secondary);
  margin-bottom: 15px;
}

.page-index__blog-summary {
  font-size: 15px;
  color: var(--page-index-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-index__read-more {
  display: inline-block;
  color: var(--page-index-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__read-more:hover {
  color: var(--page-index-glow-color);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .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__main-title,
  .page-index__section-title {
    font-size: 32px;
  }
  .page-index__description,
  .page-index__section-description {
    font-size: 16px;
  }
}

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

  /* Product Showcase Section Mobile Styles */
  .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: 300px !important;
  }
  .page-index__products-grid--small .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Keep aspect ratio */
  }
  .page-index__products-grid--large {
    grid-template-columns: 1fr !important;
    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: 300px !important;
  }
  .page-index__products-grid--large .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Keep aspect ratio */
  }

  /* General Image & Container Mobile Styles */
  .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;
  }

  /* Button Mobile Styles */
  .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__button-group,
  .page-index__cta-buttons,
  .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-direction: column !important;
    gap: 10px !important;
  }

  /* Other Content Modules Mobile Styles */
  .page-index__main-title,
  .page-index__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-index__description,
  .page-index__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-index__intro-section,
  .page-index__quick-access-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__security-support-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding: 40px 0;
  }
  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__features-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__game-title,
  .page-index__promo-title,
  .page-index__feature-title,
  .page-index__blog-title {
    font-size: 18px;
  }
  .page-index__game-description,
  .page-index__promo-description,
  .page-index__feature-description,
  .page-index__blog-summary {
    font-size: 14px;
  }
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px !important;
  }
  .page-index__faq-qtext {
    font-size: 15px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px !important;
  }
}