.page-index {
  color: #333333; /* Dark text for default white body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  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.5em;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1em;
  text-align: center;
  min-width: 200px; /* Ensure buttons are not too small */
}

.page-index__btn--primary {
  background-color: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

.page-index__btn--primary:hover {
  background-color: #e6b800;
  color: #002244;
}

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

.page-index__btn--secondary:hover {
  background-color: #003366;
  color: #ffffff;
}

.page-index__btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
  min-width: 120px;
}

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

.page-index__hero-container {
  position: relative;
  width: 100%;
  max-width: 1920px; /* Max width for hero content area */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  min-width: 1920px;
  min-height: 1080px;
  opacity: 0.4;
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  padding: 40px 20px;
  max-width: 900px;
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFCC00;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__hero-buttons .page-index__btn--primary {
  background-color: #FFCC00;
  color: #003366;
  border: none;
}

.page-index__hero-buttons .page-index__btn--primary:hover {
  background-color: #e6b800;
}

.page-index__hero-buttons .page-index__btn--secondary {
  background-color: transparent;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-index__hero-buttons .page-index__btn--secondary:hover {
  background-color: #FFCC00;
  color: #003366;
}

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

.page-index__about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.page-index__about-image-wrapper {
  text-align: center;
}

.page-index__about-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 400px; /* Minimum image width */
  min-height: 300px; /* Minimum image height */
}

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

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
}

.page-index__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 280px; /* Card image minimum width */
  min-height: 200px; /* Card image minimum height */
}

.page-index__game-card-title {
  font-size: 1.5em;
  color: #003366;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-index__game-card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-index__game-card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-index__game-card .page-index__btn {
  margin-top: auto;
  margin-bottom: 20px;
  align-self: center;
}

.page-index__section-cta {
  text-align: center;
  margin-top: 40px;
}

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

.page-index__promo-section .page-index__section-title {
  color: #FFCC00;
}

.page-index__promo-section .page-index__section-description {
  color: #f0f0f0;
}

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: background-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__promo-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index__promo-card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  margin-bottom: 20px;
  min-width: 300px; /* Promo card image minimum width */
  min-height: 200px; /* Promo card image minimum height */
}

.page-index__promo-card-title {
  font-size: 1.8em;
  color: #FFCC00;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-card-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-index__promo-card .page-index__btn {
  margin-top: auto;
  align-self: center;
  background-color: #FFCC00;
  color: #003366;
  border: none;
}

.page-index__promo-card .page-index__btn:hover {
  background-color: #e6b800;
}

/* 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(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

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

.page-index__feature-item:hover {
  transform: translateY(-5px);
}

.page-index__feature-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Feature icon minimum width */
  min-height: 200px; /* Feature icon minimum height */
}

.page-index__feature-title {
  font-size: 1.6em;
  color: #003366;
  margin-bottom: 10px;
}

.page-index__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Testimonials Section */
.page-index__testimonials-section {
  padding: 80px 0;
  background-color: #eeeeee;
}

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

.page-index__testimonial-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__testimonial-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid #FFCC00;
  min-width: 200px; /* Testimonial image minimum width */
  min-height: 200px; /* Testimonial image minimum height */
}

.page-index__testimonial-text {
  font-style: italic;
  font-size: 1.1em;
  color: #444444;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__testimonial-author {
  font-weight: bold;
  color: #003366;
  font-size: 1em;
}

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

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

.page-index__blog-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
}

.page-index__blog-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 300px; /* Blog card image minimum width */
  min-height: 200px; /* Blog card image minimum height */
}

.page-index__blog-card-title {
  font-size: 1.4em;
  color: #003366;
  margin: 20px 0 10px;
  padding: 0 20px;
}

.page-index__blog-card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-index__blog-card-excerpt {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index__blog-card .page-index__btn {
  margin-top: auto;
  margin-bottom: 20px;
  margin-left: 20px;
  align-self: flex-start;
}

/* CTA Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #003366;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index__cta-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  min-width: 1000px;
  min-height: 563px;
  opacity: 0.2;
}

.page-index__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-index__cta-title {
  font-size: 3em;
  color: #FFCC00;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-index__cta-buttons .page-index__btn--primary {
  background-color: #FFCC00;
  color: #003366;
  border: none;
}

.page-index__cta-buttons .page-index__btn--primary:hover {
  background-color: #e6b800;
}

.page-index__cta-buttons .page-index__btn--secondary {
  background-color: transparent;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-index__cta-buttons .page-index__btn--secondary:hover {
  background-color: #FFCC00;
  color: #003366;
}

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

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

  .page-index__about-grid {
    grid-template-columns: 1fr;
  }

  .page-index__about-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-index__section-title {
    font-size: 2em;
  }

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

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

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

  .page-index__btn {
    min-width: unset;
    width: 100%;
  }

  .page-index__about-section, .page-index__games-section, .page-index__promo-section, .page-index__features-section, .page-index__testimonials-section, .page-index__blog-section, .page-index__cta-section {
    padding: 60px 0;
  }

  .page-index__about-content p, .page-index__section-description {
    text-align: center;
  }

  .page-index__about-image, .page-index__game-card-image, .page-index__promo-card-image, .page-index__feature-icon, .page-index__testimonial-image, .page-index__blog-card-image, .page-index__cta-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum width for all content images */
    min-height: 200px; /* Enforce minimum height for all content images */
    object-fit: cover;
  }

  /* Ensure all img elements within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index {
    overflow-x: hidden;
  }

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

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }

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

  .page-index__hero-buttons {
    gap: 10px;
  }

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

  .page-index__game-card-title, .page-index__promo-card-title, .page-index__feature-title, .page-index__blog-card-title {
    font-size: 1.3em;
  }

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