.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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__section-title {
  font-size: 2.5em;
  color: #007bff; /* Primary color for main titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

.page-index__button--primary {
  background-color: #007bff; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #007bff;
}

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

.page-index__button--secondary {
  background-color: #28a745; /* Secondary brand color */
  color: #ffffff;
  border: 2px solid #28a745;
}

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

.page-index__button--text {
  background: none;
  color: #007bff;
  border: none;
  padding: 10px 15px;
}

.page-index__button--text:hover {
  text-decoration: underline;
  background: none;
  transform: none;
}

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

.page-index__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

.page-index__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Constrain hero content width */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

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

.page-index__hero-content {
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

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

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

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

.page-index__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-index__feature-icon {
  width: 200px; /* Enforce min size */
  height: 200px; /* Enforce min size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

/* Game Categories Section */
.page-index__game-categories-section {
  padding: 60px 0;
}

.page-index__game-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 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  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 20px rgba(0, 0, 0, 0.1);
}

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

.page-index__game-title {
  font-size: 1.4em;
  color: #007bff;
  margin: 15px 20px 5px;
  font-weight: bold;
}

.page-index__game-text {
  font-size: 0.95em;
  color: #666666;
  margin: 0 20px 20px;
}

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

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__promo-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-index__download-flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-index__download-content {
  flex: 1;
  text-align: left;
}

.page-index__download-content .page-index__section-title,
.page-index__download-content .page-index__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

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

.page-index__download-image {
  flex-shrink: 0;
  width: 400px; /* Example fixed width */
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Security Section */
.page-index__security-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-index__security-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__security-icon {
  width: 200px; /* Enforce min size */
  height: 200px; /* Enforce min size */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__security-title {
  font-size: 1.4em;
  color: #007bff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-index__security-text {
  font-size: 1em;
  color: #666666;
  margin-bottom: 15px;
}

/* About Section */
.page-index__about-section {
  padding: 60px 0;
}

/* Resources Section */
.page-index__resources-section {
  background-color: #f0f8ff;
  padding: 60px 0;
}

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

.page-index__resource-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-index__resource-title {
  font-size: 1.4em;
  color: #007bff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-index__resource-text {
  font-size: 1em;
  color: #666666;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__download-flex {
    flex-direction: column-reverse;
    text-align: center;
  }
  .page-index__download-content {
    text-align: center;
  }
  .page-index__download-content .page-index__section-title,
  .page-index__download-content .page-index__section-description {
    text-align: center;
  }
  .page-index__download-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 120px);
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-description {
    font-size: 1em;
  }
  .page-index__feature-grid, .page-index__game-grid, .page-index__promo-grid, .page-index__security-grid, .page-index__resource-grid {
    grid-template-columns: 1fr;
  }
  .page-index__download-image {
    width: 80%; /* Adjust size for mobile */
    max-width: 400px;
    height: auto;
  }
  /* Ensure all content area images are responsive and prevent overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  /* Specific override for feature/security icons if needed to prevent shrinking below 200px */
  .page-index__feature-icon, .page-index__security-icon {
    width: 200px; /* Maintain minimum size */
    height: 200px; /* Maintain minimum size */
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.95em;
  }
  .page-index__download-buttons {
    flex-direction: column;
  }
}