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

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7); /* Slightly dim the background image for text readability */
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark overlay for text */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Accent color for title */
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.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;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.page-index__button--primary {
  background-color: #FFD700; /* Accent color */
  color: #0A2463; /* Main color */
}

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

.page-index__button--secondary {
  background-color: #0A2463; /* Main color */
  color: #FFD700; /* Accent color */
  border: 2px solid #FFD700;
}

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

.page-index__button--tertiary {
  background-color: transparent;
  color: #0A2463;
  border: 2px solid #0A2463;
}

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

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FFD700;
  color: #0A2463;
}

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

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

.page-index__section-title {
  font-size: 2.5em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 20px;
  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-subtitle {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

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

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

.page-index__about-image {
  flex: 1 1 40%;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  width: 100%; /* Ensure image fills its flex container */
  height: auto;
  object-fit: cover;
}

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

.page-index__about-text p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-index__games-section {
  padding: 60px 0;
}

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

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

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-index__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

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

.page-index__game-title a {
  text-decoration: none;
  color: #0A2463;
}

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

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

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

.page-index__promotions-section {
  padding: 60px 0;
  background-color: #0A2463;
  color: #ffffff;
}

.page-index__promotions-section .page-index__section-title {
  color: #ffffff;
}

.page-index__promotions-section .page-index__section-title::after {
  background-color: #FFD700;
}

.page-index__promotions-section .page-index__section-subtitle {
  color: #f0f0f0;
}

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

.page-index__promo-card {
  background-color: #1a3a7a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-index__promo-title {
  font-size: 1.6em;
  color: #FFD700;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-index__promo-title a {
  text-decoration: none;
  color: #FFD700;
}

.page-index__promo-title a:hover {
  color: #ffffff;
}

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

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

.page-index__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

.page-index__features-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

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

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-index__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__feature-title {
  font-size: 1.4em;
  color: #0A2463;
  margin-bottom: 10px;
}

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

.page-index__download-section {
  padding: 60px 0;
  text-align: center;
  background-color: #0A2463;
  color: #ffffff;
}

.page-index__download-section .page-index__section-title {
  color: #ffffff;
}

.page-index__download-section .page-index__section-title::after {
  background-color: #FFD700;
}

.page-index__download-section .page-index__section-subtitle {
  color: #f0f0f0;
}

.page-index__download-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 40px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-index__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #0A2463, #1a3a7a);
  color: #ffffff;
}

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

.page-index__cta-section .page-index__section-title::after {
  background-color: #ffffff;
}

.page-index__cta-section .page-index__section-subtitle {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* 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: 500px;
  }

  .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__about-content {
    flex-direction: column;
  }

  .page-index__about-image,
  .page-index__about-text {
    min-width: unset;
    width: 100%;
  }

  .page-index__game-image,
  .page-index__promo-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
  }

  /* Force all content images to be responsive and not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  /* Content area image size enforcement for mobile */
  .page-index__about-image,
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__feature-icon,
  .page-index__download-image {
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
    width: auto; /* Allow auto width to scale with max-width */
    height: auto; /* Allow auto height to scale with max-width */
  }
  
  .page-index__feature-icon {
    width: 100px; /* Specific size for icons, still above 200px for its content */
    height: 100px;
    min-width: 100px;
    min-height: 100px;
  }

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

  .page-index__section-subtitle {
    font-size: 1em;
  }

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

  .page-index__download-image {
    margin: 20px auto;
  }
}

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

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

  .page-index__button {
    padding: 12px 25px;
    font-size: 0.9em;
  }

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

  .page-index__section-subtitle {
    font-size: 0.9em;
  }

  .page-index__container {
    padding: 20px 15px;
  }
}