.page-index {
  color: #333333; /* Dark text for light body background #f4f4f4 */
  padding-top: var(--header-offset, 120px); /* Ensures 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: #8B0000;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

.page-index__paragraph {
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
}

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

.page-index__btn--primary:hover {
  background-color: #e6c200;
  color: #6a0000;
}

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

.page-index__btn--secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
}

.page-index__btn--tertiary {
  background-color: #8B0000;
  color: #FFD700;
  border: 2px solid #8B0000;
}

.page-index__btn--tertiary:hover {
  background-color: #6a0000;
  border-color: #6a0000;
}

.page-index__btn--small {
  padding: 8px 18px;
  font-size: 0.9em;
}

.page-index__btn--large {
  padding: 15px 30px;
  font-size: 1.1em;
}

.page-index__btn--download {
  background-color: #333333;
  color: #FFD700;
  border: 2px solid #333333;
  margin-right: 10px;
}

.page-index__btn--download:hover {
  background-color: #000000;
  border-color: #000000;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background-color: #333333; /* Fallback background */
}

.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-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-index__hero-actions {
  margin-top: 30px;
}

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

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

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

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

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

.page-index__game-card {
  background-color: #fcfcfc;
  border-radius: 10px;
  box-shadow: 0 5px 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(-5px);
}

.page-index__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

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

.page-index__game-title a {
  color: #8B0000;
  text-decoration: none;
}

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

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

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

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

.page-index__promo-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;
}

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

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

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

.page-index__promo-card-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 20px;
}

.page-index__all-promos-cta {
  text-align: center;
  margin-top: 20px;
}

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

.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: #fcfcfc;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-index__feature-icon {
  width: 150px; /* Min 200px rule for content images. This is an exception if it's considered an 'icon' but still needs to be substantial. Adhering to the 200px rule strictly for all content images, including these 'feature icons'. */
  height: 150px; /* Adjusted to meet the 200px minimum for content images */
  object-fit: contain;
  margin-bottom: 20px;
  width: 200px;
  height: 200px;
}

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

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

/* Download Section */
.page-index__download-section {
  padding: 80px 0;
  background-color: #f4f4f4;
}

.page-index__download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.page-index__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__download-text {
  text-align: left;
}

.page-index__download-text .page-index__paragraph {
  font-size: 1.1em;
}

.page-index__download-buttons {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

/* CTA Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #8B0000;
  color: #ffffff;
  text-align: center;
}

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

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

/* Floating Buttons */
.page-index__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-index__floating-btn {
  display: block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.page-index__floating-btn:hover {
  transform: translateY(-3px);
}

.page-index__floating-btn--register {
  background-color: #FFD700;
  color: #8B0000;
}

.page-index__floating-btn--login {
  background-color: #8B0000;
  color: #FFD700;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__about-grid,
  .page-index__download-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-index__about-image-wrapper,
  .page-index__download-image {
    order: -1; /* Image first on mobile */
  }
  .page-index__download-text {
    text-align: center;
  }
  .page-index__download-buttons {
    justify-content: center;
  }
  .page-index__promo-grid,
  .page-index__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn--secondary {
    margin-left: 0;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-subtitle {
    font-size: 1em;
  }
  .page-index__floating-buttons {
    flex-direction: row;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    bottom: 15px;
  }
  .page-index__floating-btn {
    flex: 1;
    padding: 10px 15px;
    font-size: 1em;
  }
  .page-index__download-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .page-index__btn--download {
    margin-right: 0;
    width: 100%;
    max-width: 250px;
  }
  /* Mobile content images must be responsive */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  /* Ensure content images are not smaller than 200px, this applies to all img within .page-index */
  .page-index__feature-icon,
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__about-image,
  .page-index__download-image,
  .page-index__hero-image {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow auto-scaling while respecting max-width: 100% */
    height: auto;
  }
  .page-index__feature-icon {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__hero-container {
    padding: 20px;
  }
}