.page-index {
  color: #333333; /* Dark text for default light body background */
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #8B0000; /* Dark red for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-index__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold primary button */
  color: #8B0000; /* Dark red text for contrast */
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-index__button--primary:hover {
  background-color: #e6c200;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-index__button--secondary {
  background-color: #8B0000; /* Dark red secondary button */
  color: #FFD700; /* Gold text for contrast */
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.page-index__button--secondary:hover {
  background-color: #6a0000;
  border-color: #e6c200;
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 6px;
  background-color: #FFD700;
  color: #8B0000;
}

.page-index__button--small:hover {
  background-color: #e6c200;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: var(--header-offset, 120px) 20px 60px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.9) 0%, rgba(255, 215, 0, 0.7) 100%);
}

.page-index__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff; /* White text on dark/gradient background */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  color: #FFD700; /* Gold title */
}

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.5;
}

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

/* About Section */
.page-index__about-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-index__about-content p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-index__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.page-index__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-index__feature-title {
  font-size: 1.6em;
  color: #8B0000;
  margin-bottom: 15px;
}

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

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

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

.page-index__game-card {
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-index__game-card h3 {
  padding: 20px 25px 0;
  margin-bottom: 10px;
}

.page-index__game-title a {
  font-size: 1.8em;
  color: #8B0000;
  text-decoration: none;
  font-weight: 700;
}

.page-index__game-title a:hover {
  color: #FFD700;
}

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

.page-index__game-card .page-index__button {
  margin: 0 25px 25px;
}

/* Promo Section */
.page-index__promo-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.page-index__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-index__promo-card h3 {
  padding: 20px 25px 0;
  margin-bottom: 10px;
}

.page-index__promo-title {
  font-size: 1.6em;
  color: #8B0000;
  font-weight: 700;
}

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

.page-index__promo-card .page-index__button {
  margin: 0 25px 25px;
}

/* App Section */
.page-index__app-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-index__app-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

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

.page-index__app-text p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: justify;
}

.page-index__app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

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

.page-index__security-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__security-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-index__security-title {
  font-size: 1.6em;
  color: #8B0000;
  margin-bottom: 15px;
}

.page-index__security-description {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
}

/* CTA Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #8B0000; /* Dark red background */
  color: #ffffff; /* White text */
  text-align: center;
}

.page-index__cta-section .page-index__section-title {
  color: #FFD700; /* Gold title */
  margin-bottom: 15px;
}

.page-index__cta-section .page-index__section-intro {
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .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__app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__app-text p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 60vh;
    padding-top: var(--header-offset, 120px); /* Ensure mobile header offset */
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-intro {
    font-size: 0.95em;
  }
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promo-section,
  .page-index__app-section,
  .page-index__security-section,
  .page-index__cta-section {
    padding: 60px 0;
  }
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__app-image,
  .page-index__feature-icon,
  .page-index__security-icon {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }
  .page-index__about-content p,
  .page-index__app-text p {
    text-align: left; /* Revert to left align for better readability on mobile */
  }
  /* Ensure all images in content area are responsive and not too small */
  .page-index img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not tiny */
    min-height: 200px; /* Ensure images are not tiny */
  }
}

@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__button {
    width: 90%;
  }
}