.page-index {
  color: #333333; /* Default text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold */
  color: #003366; /* Dark Blue */\  border: 2px solid #FFD700;
}

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

.page-index__button--secondary {
  background-color: #003366; /* Dark Blue */
  color: #FFD700; /* Gold */
  border: 2px solid #003366;
}

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

.page-index__button--text {
  background: none;
  color: #003366;
  border: none;
  padding: 0;
  text-decoration: underline;
}

.page-index__button--text:hover {
  color: #FFD700;
  text-decoration: none;
}

.page-index__button--small {
  padding: 8px 15px;
  font-size: 0.9em;
}

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

/* Hero Section */
.page-index__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #003366; /* Dark Blue background for hero content */
  overflow: hidden;
}

.page-index__hero-container {
  position: relative;
  max-width: 1920px; /* Max width for the hero section */
  margin: 0 auto;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.6; /* Slightly dim the image to make text stand out */
  object-fit: cover;
}

.page-index__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  z-index: 10;
  max-width: 90%;
  padding: 20px;
}

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

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-index__about-image {
  flex: 1 1 45%;
  min-width: 300px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__about-text {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-index__about-text p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #444444;
}

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

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

.page-index__game-card {
  background-color: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

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

.page-index__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-index__game-title {
  font-size: 1.6em;
  color: #003366;
  margin: 20px 15px 10px;
  font-weight: bold;
}

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

.page-index__center-action {
  text-align: center;
}

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

.page-index__mobile-section .page-index__section-title,
.page-index__mobile-section .page-index__section-description {
  color: #FFD700;
}

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

.page-index__mobile-image {
  flex: 1 1 45%;
  min-width: 300px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__mobile-text {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-index__mobile-text h3 {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__mobile-text p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

.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: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
}

.page-index__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-index__promo-title {
  font-size: 1.5em;
  color: #003366;
  margin: 20px 15px 10px;
  font-weight: bold;
}

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

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

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

.page-index__safety-image {
  flex: 1 1 45%;
  min-width: 300px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  order: 2; /* Image on right for desktop */
}

.page-index__safety-text {
  flex: 1 1 45%;
  min-width: 300px;
  order: 1; /* Text on left for desktop */
}

.page-index__safety-text h3 {
  font-size: 2em;
  color: #003366;
  margin-bottom: 15px;
}

.page-index__safety-text p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #444444;
}

/* Why Choose Section */
.page-index__why-choose-section {
  padding: 80px 0;
  background-color: #f0f5fa;
}

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

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

.page-index__feature-card:hover {
  transform: translateY(-10px);
}

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

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

.page-index__feature-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
}

/* Call to Action Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #003366;
  text-align: center;
}

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

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

/* 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: 2em;
  }
  .page-index__about-image, .page-index__about-text,
  .page-index__mobile-image, .page-index__mobile-text,
  .page-index__safety-image, .page-index__safety-text {
    flex: 1 1 100%;
  }
  .page-index__safety-image {
    order: 1;
  }
  .page-index__safety-text {
    order: 2;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset-mobile, 80px); /* Adjust for mobile header offset */
  }
  .page-index__hero-image,
  .page-index__about-image,
  .page-index__game-image,
  .page-index__mobile-image,
  .page-index__promo-image,
  .page-index__safety-image,
  .page-index__feature-icon {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small even on mobile */
    min-height: 200px;
  }
  .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__mobile-text h3, .page-index__safety-text h3 {
    font-size: 1.6em;
  }
  .page-index__game-image { height: 200px; }
  .page-index__promo-image { height: 180px; }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__button--primary, .page-index__button--secondary {
    padding: 10px 20px;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
}

/* Basic animation for demonstration */
.page-index__hidden {
  opacity: 0;
  transform: translateY(20px);
}

.page-index__fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}