.page-index {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__section-title {
  color: #B80000; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
  font-weight: bold;
}

.page-index__sub-title {
  color: #B80000; /* Main brand color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.8em;
  font-weight: bold;
}

.page-index__text-content {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  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: #B80000; /* Main brand color */
  color: #ffffff;
  border: 2px solid #B80000;
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #B80000; /* Main brand color */
  border: 2px solid #B80000;
}

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

.page-index__button--tertiary {
  background-color: #FFD700; /* Auxiliary brand color */
  color: #333333;
  border: 2px solid #FFD700;
}

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

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

/* Hero Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Minimum height for hero */
  padding: 80px 20px;
  overflow: hidden;
  background-color: #1a1a1a; /* Dark background for contrast with image */
  color: #ffffff;
}

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the entire area */
  opacity: 0.4; /* Slightly dim image to make text readable */
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

/* About Section */
.page-index__about-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-index__games-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
}

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

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

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

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

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

.page-index__game-card-title a {
  color: #B80000;
  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;
}

/* Promotions Section */
.page-index__promotions-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px 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-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

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

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

/* Download Section */
.page-index__download-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 60px 20px;
  background: linear-gradient(90deg, #B80000 0%, #FFD700 100%); /* Gradient background */
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.page-index__download-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-index__download-content .page-index__section-title {
  color: #ffffff;
  text-align: left;
  margin-bottom: 20px;
}

.page-index__download-content .page-index__text-content {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-index__download-image-wrapper {
  flex-shrink: 0;
  min-width: 250px;
  max-width: 400px;
}

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

.page-index__download-section .page-index__button--primary {
  background-color: #333333;
  border-color: #333333;
  color: #FFD700;
}

.page-index__download-section .page-index__button--primary:hover {
  background-color: #000000;
  border-color: #000000;
}

/* Security Section */
.page-index__security-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-index__feature-item {
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding: 60px 15px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 80%;
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__sub-title {
    font-size: 1.5em;
  }
  .page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__download-section, .page-index__security-section {
    margin: 30px auto;
    padding: 30px 15px;
  }
  .page-index__game-cards, .page-index__promo-cards {
    grid-template-columns: 1fr;
  }
  .page-index__game-card-image, .page-index__promo-card-image {
    height: auto; /* Allow height to adjust proportionally */
    min-height: 200px; /* Ensure images are not too small */
    object-fit: cover;
  }
  .page-index__game-card-image[width], .page-index__game-card-image[height],
  .page-index__promo-card-image[width], .page-index__promo-card-image[height] {
    width: 100%;
    height: auto;
  }
  .page-index__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .page-index__download-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
  }
  .page-index__download-image[width], .page-index__download-image[height] {
    width: 100%;
    height: auto;
  }
  .page-index__security-features {
    grid-template-columns: 1fr;
  }
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}