.page-index {
  color: #ffffff; /* Text color for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #333; /* Fallback for main content if body background not fully applied */
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-index__button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold primary button */
  color: #000080; /* Dark blue text on gold */
}

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

.page-index__button--secondary {
  background-color: #000080; /* Dark blue secondary button */
  color: #FFD700; /* Gold text on dark blue */
  border: 2px solid #FFD700;
}

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

.page-index__button--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

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

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

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

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

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

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

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

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

.page-index__feature-item {
  background-color: rgba(0, 0, 128, 0.6); /* Dark blue semi-transparent */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #FFD700;
}

.page-index__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: brightness(0.8);
}

.page-index__feature-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-index__game-card {
  background-color: #2c2c2c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-index__game-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-index__game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
}

.page-index__game-title {
  font-size: 1.5em;
  color: #FFD700;
  padding: 15px 20px 5px;
  font-weight: bold;
}

.page-index__game-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 20px 20px;
  line-height: 1.5;
}

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

/* App Section */
.page-index__app-section {
  padding: 80px 0;
  background-color: #000080; /* Dark blue background */
}

.page-index__app-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.page-index__app-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  color: #ffffff;
}

.page-index__app-content .page-index__section-title {
  text-align: left;
  color: #FFD700;
}

.page-index__app-content .page-index__section-subtitle {
  text-align: left;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-index__app-features {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  font-size: 1.1em;
}

.page-index__app-features li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-index__app-features li::before {
  content: '✓';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
}

.page-index__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
}

.page-index__app-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 0;
  background-color: #222;
}

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

.page-index__blog-card {
  background-color: #2c2c2c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-index__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-index__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
}

.page-index__blog-title {
  font-size: 1.4em;
  color: #FFD700;
  padding: 15px 20px 5px;
  font-weight: bold;
  line-height: 1.4;
}

.page-index__blog-date {
  font-size: 0.9em;
  color: #999999;
  padding: 0 20px 15px;
}

/* Call to Action Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__section-subtitle {
    font-size: 1em;
  }
}

@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: 0.95em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__app-container {
    flex-direction: column;
  }
  .page-index__app-content .page-index__section-title,
  .page-index__app-content .page-index__section-subtitle {
    text-align: center;
  }
  .page-index__feature-image, .page-index__game-image, .page-index__blog-image {
    height: 180px;
  }
  .page-index__feature-item, .page-index__game-card, .page-index__blog-card {
    min-width: 280px;
  }
}

@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__button {
    width: 90%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-index__button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-index__feature-image, .page-index__game-image, .page-index__blog-image {
    height: 150px;
  }
  .page-index__feature-item, .page-index__game-card, .page-index__blog-card {
    padding: 20px;
  }
  .page-index__feature-title, .page-index__game-title, .page-index__blog-title {
    font-size: 1.3em;
  }
  .page-index__hero-content {
    padding: 15px;
  }
}