.page-index {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for default light body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

/* Hero Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
}

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

.page-index__hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  padding: 40px;
  border-radius: 10px;
  max-width: 900px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* General Buttons */
.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  font-size: 1.1em;
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Burgundy text for contrast */
  border: 2px solid #FFD700;
}

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

.page-index__button--secondary {
  background-color: #8B0000; /* Burgundy */
  color: #FFD700; /* Gold text for contrast */
  border: 2px solid #8B0000;
}

.page-index__button--secondary:hover {
  background-color: #6b0000;
  transform: translateY(-2px);
}

.page-index__button--tertiary {
  background-color: transparent;
  color: #8B0000; /* Burgundy text */
  border: 2px solid #8B0000;
}

.page-index__button--tertiary:hover {
  background-color: #8B0000;
  color: #FFD700;
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-index__button--centered {
  display: block;
  margin: 40px auto 0;
  width: fit-content;
}

/* Section Titles and Descriptions */
.page-index__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Burgundy for section titles */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

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

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

.page-index__about-section .page-index__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  margin-bottom: 20px;
}

.page-index__about-section .page-index__section-description:last-of-type {
  margin-bottom: 40px;
}

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

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

.page-index__game-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__game-title {
  font-size: 1.5em;
  color: #8B0000;
  margin: 20px 15px 10px;
}

.page-index__game-title a {
  color: #8B0000;
  text-decoration: none;
}

.page-index__game-title a:hover {
  text-decoration: underline;
}

.page-index__game-text {
  font-size: 0.95em;
  color: #666;
  padding: 0 15px 20px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-index__promotion-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index__promotion-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure image meets min size requirement */
  min-height: 200px;
  object-fit: cover;
}

.page-index__promotion-text {
  flex: 1;
  text-align: left;
}

.page-index__promotion-text p {
  margin-bottom: 20px;
  color: #555;
  font-size: 1.05em;
}

/* Why Choose Us Section */
.page-index__why-choose-us-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-index__feature-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__feature-icon {
  width: 100px; /* Enforce min size for content images */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-index__feature-description {
  font-size: 0.95em;
  color: #666;
}

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

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

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

/* Blog Section */
.page-index__blog-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.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-color: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__blog-image {
  width: 100%;
  height: 220px; /* Enforce min-height for content images */
  object-fit: cover;
  display: block;
}

.page-index__blog-title {
  font-size: 1.3em;
  color: #8B0000;
  margin: 20px 15px 10px;
}

.page-index__blog-title a {
  color: #8B0000;
  text-decoration: none;
}

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

.page-index__blog-excerpt {
  font-size: 0.9em;
  color: #666;
  padding: 0 15px 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }

  .page-index__hero-description {
    font-size: 1.1em;
  }

  .page-index__section-title {
    font-size: 2em;
  }

  .page-index__promotion-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index__promotion-image {
    max-width: 80%;
  }

  .page-index__promotion-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header height */
  }

  .page-index__hero-title {
    font-size: 2.2em;
  }

  .page-index__hero-description {
    font-size: 1em;
  }

  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__button {
    width: 80%;
    margin: 0 auto;
  }

  .page-index__section-title {
    font-size: 1.8em;
  }

  .page-index__section-description {
    font-size: 0.95em;
  }

  .page-index__game-grid, .page-index__features-grid, .page-index__blog-grid {
    grid-template-columns: 1fr;
  }

  .page-index__hero-section {
    min-height: 500px;
  }

  .page-index__hero-overlay {
    padding: 20px;
  }

  /* Mobile content image constraint */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}