.page-index {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  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;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #003366; /* Main brand color as fallback */
  min-height: 500px; /* Minimum height for hero */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 40px 0;
}

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

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

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

.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 Button Styles */
.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  font-size: 1.1em;
}

.page-index__button--primary {
  background-color: #FFD700; /* Accent color */
  color: #003366; /* Main brand color */
  border: 2px solid #FFD700;
}

.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: #003366;
  transform: translateY(-2px);
}

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

.page-index__button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Section Titles */
.page-index__section-title {
  font-size: 2.5em;
  color: #003366;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-index__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 10px auto 0;
  border-radius: 2px;
}

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

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

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

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

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

.page-index__feature-icon {
  width: 250px; /* Minimum 200px */
  height: 187px; /* Maintain aspect ratio for 250x187 */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__feature-heading {
  font-size: 1.5em;
  color: #003366;
  margin-bottom: 15px;
}

.page-index__feature-text {
  color: #666666;
}

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

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

.page-index__game-card {
  background-color: #fdfdfd;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-image {
  width: 100%;
  height: 250px; /* Example height for game cards, ensures min 200px */
  object-fit: cover;
}

.page-index__game-card h3 {
  padding: 20px 20px 0;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-index__game-card h3 a {
  color: #003366;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-index__game-description {
  padding: 0 20px 20px;
  color: #666666;
  font-size: 0.95em;
}

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

.page-index__view-all-games {
  text-align: center;
}

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

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__promo-image {
  width: 100%;
  height: 280px; /* Example height for promo cards, ensures min 200px */
  object-fit: cover;
}

.page-index__promo-card h3 {
  padding: 20px 20px 0;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-index__promo-card h3 a {
  color: #003366;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promo-card h3 a:hover {
  color: #FFD700;
}

.page-index__promo-description {
  padding: 0 20px 20px;
  color: #666666;
  font-size: 0.95em;
}

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

.page-index__view-all-promos {
  text-align: center;
}

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

.page-index__about-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-index__about-image {
  flex: 1;
  min-width: 300px;
  height: auto; /* Allow image to scale */
  max-height: 450px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-index__about-text {
  flex: 2;
  min-width: 300px;
}

.page-index__about-text p {
  margin-bottom: 20px;
  color: #555555;
}

/* Deep Content Section */
.page-index__deep-content-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-index__deep-content-section h3 {
  font-size: 1.8em;
  color: #003366;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-index__deep-content-section p {
  margin-bottom: 20px;
  color: #555555;
  font-size: 1.05em;
}

/* Call to Action Section */
.page-index__call-to-action {
  background-color: #003366; /* Main brand color */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-index__call-to-action-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-index__call-to-action-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* More Info Section */
.page-index__more-info-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-index__info-card {
  background-color: #fdfdfd;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.page-index__info-title {
  font-size: 1.5em;
  margin-bottom: 15px;
}

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

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

.page-index__info-description {
  color: #666666;
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 400px;
    padding: 30px 0;
  }
  .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-intro {
    font-size: 1em;
  }
  .page-index__about-content {
    flex-direction: column;
  }
  .page-index__about-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__call-to-action-title {
    font-size: 2em;
  }
  .page-index__call-to-action-description {
    font-size: 1em;
  }
  /* Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__feature-icon,
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__about-image {
    width: 100%;
    height: auto; /* Allow height to adjust proportionally */
    max-height: 350px; /* Example max-height for mobile */
    object-fit: cover;
  }
  .page-index__feature-icon { min-height: 200px; }
  .page-index__game-image { min-height: 200px; }
  .page-index__promo-image { min-height: 200px; }
  .page-index__about-image { min-height: 200px; }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__hero-content {
    padding: 15px;
  }
  .page-index__hero-buttons {
    gap: 10px;
  }
  .page-index__button--large {
    font-size: 1.1em;
  }
}