.page-index {
  color: #ffffff; /* Light text on dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Accent color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  font-weight: 700;
}

.page-index__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #e0e0e0;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #0A1931;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.4;
}

.page-index__hero-container {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  max-width: 900px;
  color: #ffffff;
}

.page-index__hero-title {
  font-size: 3.8em;
  font-weight: 900;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #f0f0f0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Buttons */
.page-index__button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
}

.page-index__button--primary {
  background-color: #FFD700;
  color: #0A1931;
}

.page-index__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-index__button--secondary:hover {
  background-color: #FFD700;
  color: #0A1931;
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 10px 25px;
  font-size: 0.95em;
  border-radius: 5px;
}

/* About Section */
.page-index__about-section {
  background-color: #1a2b45; /* Darker background for contrast */
  padding: 80px 0;
}

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

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

.page-index__game-card {
  background-color: #1a2b45;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 4px solid #FFD700;
}

.page-index__game-title {
  font-size: 1.6em;
  color: #FFD700;
  margin: 25px 15px 15px 15px;
  font-weight: 600;
}

.page-index__game-description {
  font-size: 0.95em;
  color: #e0e0e0;
  margin: 0 20px 25px 20px;
  line-height: 1.6;
  flex-grow: 1;
}

/* Promotions Section */
.page-index__promo-section {
  background-color: #1a2b45;
  padding: 80px 0;
}

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

.page-index__promo-card {
  background-color: #0A1931;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 4px solid #FFD700;
}

.page-index__promo-title {
  font-size: 1.6em;
  color: #FFD700;
  margin: 25px 15px 15px 15px;
  font-weight: 600;
}

.page-index__promo-description {
  font-size: 0.95em;
  color: #e0e0e0;
  margin: 0 20px 25px 20px;
  line-height: 1.6;
  flex-grow: 1;
}

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

/* Download Section */
.page-index__download-section {
  background-color: #0A1931;
  padding: 80px 0;
}

.page-index__download-content {
  display: flex;
  align-items: center;
  gap: 60px;
  text-align: left;
}

.page-index__download-text {
  flex: 1;
}

.page-index__download-text .page-index__section-title {
  text-align: left;
}

.page-index__download-text .page-index__section-text {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__download-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.page-index__download-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 4px solid #FFD700;
}

/* Security Section */
.page-index__security-section {
  background-color: #1a2b45;
  padding: 80px 0;
}

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

.page-index__feature-item {
  background-color: #0A1931;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  /* No filter property allowed */
}

.page-index__feature-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-index__feature-description {
  font-size: 0.95em;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Support Section */
.page-index__support-section {
  background-color: #0A1931;
  padding: 80px 0;
}

.page-index__support-contact {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Final CTA Section */
.page-index__cta-final-section {
  background-color: #1a2b45;
  padding: 80px 0;
  text-align: center;
}

.page-index__final-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__download-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__download-text .page-index__section-title,
  .page-index__download-text .page-index__section-text {
    text-align: center;
  }
  .page-index__download-actions {
    justify-content: center;
  }
  .page-index__download-image {
    width: 80%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__hero-actions,
  .page-index__download-actions,
  .page-index__support-contact,
  .page-index__final-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 300px;
  }
  /* Ensure all content images are responsive and not smaller than 200px display size */
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__download-image,
  .page-index__feature-icon {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum display size for images */
    min-height: 200px; /* Enforce minimum display size for images */
  }
  .page-index__feature-icon {
    width: 100px; /* Specific icon size, but max-width: 100% and height: auto still apply */
    height: 100px;
  }
  .page-index__game-card,
  .page-index__promo-card,
  .page-index__feature-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
  .page-index__hero-container {
    padding: 60px 15px;
  }
  .page-index__section-text {
    font-size: 0.9em;
  }
  .page-index__button {
    font-size: 1em;
    padding: 12px 25px;
  }
}