.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.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: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for titles */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  margin-top: 0;
}

.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: #0d0d0d; /* Slightly lighter than body for subtle contrast */
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: first 4 cards occupy 4/6, last 2 cards occupy 2/6 */
  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%;
  border-radius: 8px;
  overflow: hidden;
  background: #1A237E; /* Dark blue background for cards */
  border: 3px solid #FFD700; /* Gold border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-index__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__product-card-image {
  width: 100%;
  height: 250px; /* Fixed height for desktop */
  overflow: hidden;
}

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

/* Intro Section */
.page-index__intro-section {
  padding: 80px 0;
}

.page-index__main-title {
  font-size: 48px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 25px;
  color: #FFD700;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-index__intro-description {
  font-size: 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

.page-index__intro-content h2,
.page-index__intro-content h3 {
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-index__intro-content h2 {
  font-size: 32px;
  text-align: center;
}

.page-index__intro-content h3 {
  font-size: 26px;
}

.page-index__intro-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #e0e0e0;
}

/* Quick Links Section */
.page-index__quick-links-section {
  padding: 80px 0;
  background: #1A237E; /* Main brand color for background */
}

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

.page-index__link-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 30px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index__link-text {
  color: inherit;
}

/* Core Games Section */
.page-index__core-games-section {
  padding: 80px 0;
  background: #000000; /* Dark background */
}

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

.page-index__game-item {
  background: #1A237E; /* Dark blue background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-index__game-title {
  font-size: 28px;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-index__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid #FFD700;
}

.page-index__game-description {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 25px;
}

.page-index__game-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 18px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background: #0d0d0d; /* Slightly lighter than body for subtle contrast */
}

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

.page-index__promotion-card {
  background: #1A237E; /* Dark blue background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-index__promotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-index__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #FFD700;
}

.page-index__promotion-title {
  font-size: 24px;
  color: #FFD700;
  padding: 20px 20px 10px;
}

.page-index__promotion-description {
  font-size: 16px;
  color: #e0e0e0;
  padding: 0 20px 20px;
}

.page-index__promotion-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 0;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 18px;
}

/* Security & CS Section */
.page-index__security-cs-section {
  padding: 80px 0;
  background: #000000; /* Dark background */
}

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

.page-index__security-item {
  background: #1A237E; /* Dark blue background */
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-index__security-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  border: 2px solid #FFD700;
  border-radius: 50%;
  padding: 10px;
}

.page-index__security-item-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
}

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

.page-index__contact-info {
  text-align: center;
  margin-top: 60px;
  font-size: 18px;
  color: #f0f0f0;
}

.page-index__contact-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-index__contact-link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
  background: #0d0d0d; /* Slightly lighter than body for subtle contrast */
}

.page-index__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #1A237E; /* Dark blue background for FAQ items */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1A237E;
  border: 1px solid #FFD700; /* Gold border */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #2A3A8E;
  border-color: #ffd700;
}

.page-index__faq-question:active {
  background: #3A4A9E;
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg);
}

.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for answer background */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to ensure content is visible */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-index__faq-answer p {
  margin-bottom: 10px;
  font-size: 16px;
  color: #e0e0e0;
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 0;
  background: #000000; /* Dark background */
}

.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: #1A237E; /* Dark blue background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

.page-index__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #FFD700;
}

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

.page-index__blog-title {
  font-size: 22px;
  margin-bottom: 10px;
}

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

.page-index__blog-title a:hover {
  color: #FFC000;
  text-decoration: underline;
}

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

.page-index__blog-date {
  font-size: 14px;
  color: #aaaaaa;
  display: block;
}

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

.page-index__view-all-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
}

/* General Button Styles */
.page-index__btn-primary {
  background: #FFD700;
  color: #1A237E;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-index__btn-secondary {
  background: #1A237E;
  color: #FFD700;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary:hover {
  background: #2A3A8E;
  border-color: #FFC000;
}

/* Dark background sections */
.page-index__dark-section {
  background-color: #000000; /* Primary dark background */
  color: #ffffff;
}

/* Light background sections */
.page-index__light-bg {
  background-color: #0d0d0d; /* Slightly lighter for contrast */
  color: #ffffff;
}

/* Responsive Design */
@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);
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-index__main-title {
    font-size: 36px;
    line-height: 1.3;
  }

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

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

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

  .page-index__container {
    padding: 30px 15px;
  }

  /* Products Section Mobile */
  .page-index__products-section {
    padding: 40px 15px;
  }
  
  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack product grids vertically */
    gap: 15px;
  }
  
  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 15px;
  }
  
  .page-index__products-grid--small .page-index__product-card,
  .page-index__products-grid--large .page-index__product-card {
    aspect-ratio: 1 / 1; /* Square cards */
    height: auto; /* Allow height to adjust based on aspect-ratio */
  }
  
  .page-index__products-grid--small .page-index__product-card-image,
  .page-index__products-grid--large .page-index__product-card-image {
    width: 100%;
    height: 100%; /* Fill the square card */
    aspect-ratio: 1 / 1; /* Ensure image container is square */
  }
  
  .page-index__products-grid--small .page-index__product-card-image img,
  .page-index__products-grid--large .page-index__product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .page-index__products-grid--large {
    grid-template-columns: 1fr; /* Each large card takes full width */
    gap: 15px;
  }

  /* General Image & Button Responsive */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__link-grid,
  .page-index__game-showcase,
  .page-index__promotions-grid,
  .page-index__security-content,
  .page-index__blog-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"],
  .page-index__link-card,
  .page-index__promotion-button,
  .page-index__game-button,
  .page-index__view-all-button {
    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;
    text-align: center;
  }
  
  .page-index__link-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .page-index__game-showcase,
  .page-index__promotions-grid,
  .page-index__security-content,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* FAQ Mobile */
  .page-index__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-index__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-index__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-index__faq-answer {
    padding: 0 15px;
  }
  
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }
}