.page-index {
  color: #333333; /* Dark text for light body background #f4f4f4 */
  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;
}

.page-index__hero-section {
  background-color: #1A2E40; /* Main brand color */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.page-index__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

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

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

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

.page-index__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  min-width: 200px; /* Ensure button minimum size */
  text-align: center;
}

.page-index__btn--primary {
  background-color: #FFD700;
  color: #1A2E40;
  border: 2px solid #FFD700;
}

.page-index__btn--primary:hover {
  background-color: #e5c100;
  transform: translateY(-3px);
}

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

.page-index__btn--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-3px);
}

.page-index__section-title {
  font-size: 2.5em;
  color: #1A2E40;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

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

.page-index__about-section,
.page-index__games-showcase,
.page-index__promotions-section,
.page-index__mobile-app-section,
.page-index__seo-content-section {
  padding: 80px 0;
  background-color: #ffffff;
  margin-bottom: 20px; /* Add some margin between sections */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-index__about-section {
  background-color: #fcfcfc;
}

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

.page-index__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px 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(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-index__feature-icon {
  width: 400px; /* Enforce min 200px */
  height: 300px; /* Enforce min 200px */
  object-fit: cover;
  margin-bottom: 25px;
  border-radius: 8px;
}

.page-index__feature-title {
  font-size: 1.6em;
  color: #1A2E40;
  margin-bottom: 15px;
}

.page-index__feature-text {
  font-size: 1em;
  color: #666666;
  line-height: 1.7;
}

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

.page-index__game-card {
  background-color: #1A2E40;
  color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__game-image {
  width: 100%;
  height: 250px; /* Maintain aspect ratio and minimum size */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-title {
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-index__game-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-link:hover {
  color: #e5c100;
  text-decoration: underline;
}

.page-index__game-text {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  min-width: unset;
  align-self: center;
}

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

.page-index__promo-card {
  background-color: #fcfcfc;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__promo-image {
  width: 100%;
  height: 300px; /* Maintain aspect ratio and minimum size */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__promo-title {
  font-size: 1.8em;
  color: #1A2E40;
  margin-bottom: 15px;
}

.page-index__promo-text {
  font-size: 1em;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.page-index__mobile-app-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
}

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

.page-index__mobile-app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index__mobile-app-image {
  max-width: 400px; /* Ensure image doesn't get too large */
  height: 600px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 250px; /* Ensure minimum display size */
  min-height: 350px;
  object-fit: cover;
}

.page-index__long-text {
  font-size: 1em;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 20px;
  text-align: justify;
}

.page-index__sub-title {
  font-size: 2em;
  color: #1A2E40;
  margin-top: 40px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 15px;
}

.page-index__sub-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80%;
  background-color: #FFD700;
  border-radius: 2px;
}

/* 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: 2.2em;
  }
  .page-index__game-categories {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .page-index__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  .page-index__mobile-app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__mobile-app-text {
    text-align: center;
  }
  .page-index__mobile-app-image {
    max-width: 300px;
    height: auto;
  }
}

@media (max-width: 768px) {
  .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__btn {
    width: 100%;
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-description {
    font-size: 0.95em;
  }
  .page-index__about-section,
  .page-index__games-showcase,
  .page-index__promotions-section,
  .page-index__mobile-app-section,
  .page-index__seo-content-section {
    padding: 60px 0;
  }
  .page-index__features-grid,
  .page-index__game-categories,
  .page-index__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-index__feature-icon,
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__mobile-app-image {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
    object-fit: cover;
  }
  .page-index__feature-icon {
    width: 100%;
    height: 250px;
  }
  .page-index__game-image {
    width: 100%;
    height: 200px;
  }
  .page-index__promo-image {
    width: 100%;
    height: 250px;
  }
  .page-index__mobile-app-image {
    width: 100%;
    max-width: 300px; /* Keep a reasonable max-width */
    height: auto;
    min-width: 200px;
    min-height: 280px;
  }
  .page-index__sub-title {
    font-size: 1.7em;
  }
  .page-index__long-text {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__mobile-app-image {
    max-width: 250px;
    min-height: 250px;
  }
}