.page-index {
  color: #333333; /* Dark text for light body background */
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero section */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-index__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #FFFFFF; /* White text for contrast against hero image */
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay for text readability */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF; /* White text for contrast */
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #F0F0F0; /* Slightly off-white for description */
}

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

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

.page-index__button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Black text */
  border: 2px solid #FCBC45;
}

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

.page-index__button--secondary {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* White text */
  border: 2px solid #FFFFFF;
}

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

.page-index__button--outline {
  background-color: transparent;
  color: #000000; /* Black text */
  border: 2px solid #000000;
}

.page-index__button--outline:hover {
  background-color: #000000;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

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

.page-index__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #000000; /* Main color */
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  color: #555555;
}

.page-index__about-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__app-section,
.page-index__resources-section,
.page-index__cta-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Auxiliary color */
}

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

.page-index__about-card,
.page-index__game-card,
.page-index__promo-card,
.page-index__resource-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #333333;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__about-card:hover,
.page-index__game-card:hover,
.page-index__promo-card:hover,
.page-index__resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index__about-card-image,
.page-index__game-card-image,
.page-index__promo-card-image,
.page-index__resource-card-image {
  width: 100%;
  height: 250px; /* Consistent height for card images */
  object-fit: cover;
  border-bottom: 1px solid #EEEEEE;
}

.page-index__about-card-title,
.page-index__game-card-title,
.page-index__promo-card-title,
.page-index__resource-card-title {
  font-size: 1.5em;
  margin: 20px 15px 10px 15px;
  color: #000000; /* Main color */
}

.page-index__about-card-text,
.page-index__game-card-text,
.page-index__promo-card-text,
.page-index__resource-card-text {
  font-size: 0.95em;
  padding: 0 15px 20px 15px;
  line-height: 1.6;
  flex-grow: 1;
}

.page-index__games-cta,
.page-index__promo-cta,
.page-index__resources-cta {
  text-align: center;
  margin-top: 40px;
}

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

.page-index__app-content {
  flex: 1;
  min-width: 300px;
}

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

.page-index__app-image {
  width: 100%;
  max-width: 400px; /* Max width for phone image */
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-index__app-features ul {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.page-index__app-features li {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #333333;
}

.page-index__app-features li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #FCBC45; /* Login color for checkmark */
  font-weight: bold;
}

.page-index__cta-section {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* White text */
  text-align: center;
  padding: 100px 0;
}

.page-index__cta-section .page-index__section-title,
.page-index__cta-section .page-index__section-description {
  color: #FFFFFF;
}

.page-index__cta-section .page-index__button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000;
  border-color: #FCBC45;
}

.page-index__cta-section .page-index__button--primary:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 450px;
  }
  .page-index__hero-content {
    padding: 15px;
  }
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.95em;
  }
  .page-index__about-grid,
  .page-index__games-grid,
  .page-index__promo-grid,
  .page-index__resources-grid {
    grid-template-columns: 1fr;
  }
  .page-index__app-container {
    flex-direction: column;
  }
  .page-index__app-content,
  .page-index__app-image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-index__app-image {
    max-width: 300px;
  }
  .page-index__app-features ul {
    text-align: center;
  }
  .page-index__app-features li {
    padding-left: 0;
    text-indent: -20px;
    margin-left: 20px;
  }
  /* Ensure content area images are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__button {
    width: 90%;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
}