.page-index {
  color: #333333;
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px);
  background-color: #000000;
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px; /* Constrain max width for desktop */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  padding: 40px 20px;
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FCBC45; /* Gold for emphasis */
}

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

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

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

.page-index__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-index__button--register:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
  transform: translateY(-3px);
}

.page-index__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
  transform: translateY(-3px);
}

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

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

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

.page-index__features-section,
.page-index__about-section,
.page-index__promotions-section,
.page-index__resources-section {
  padding: 60px 0;
  background-color: #F8F8F8;
}

.page-index__about-section {
  background-color: #FFFFFF;
}

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

.page-index__feature-card,
.page-index__promo-card,
.page-index__resource-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__feature-card:hover,
.page-index__promo-card:hover,
.page-index__resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.page-index__feature-image,
.page-index__promo-image,
.page-index__resource-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__feature-title,
.page-index__promo-title,
.page-index__resource-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #000000;
}

.page-index__feature-title a,
.page-index__promo-title a,
.page-index__resource-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__feature-title a:hover,
.page-index__promo-title a:hover,
.page-index__resource-title a:hover {
  color: #FCBC45;
}

.page-index__feature-text,
.page-index__promo-text,
.page-index__resource-text {
  font-size: 1em;
  line-height: 1.5;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__button--small:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-index__about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-index__about-text {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.7;
  color: #333333;
}

.page-index__about-text p {
  margin-bottom: 20px;
}

.page-index__about-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure minimum size */
}

.page-index__view-all-promotions {
  text-align: center;
  margin-top: 50px;
}

.page-index__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 15px 35px;
  font-size: 1.1em;
}

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

.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.page-index__cta-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-index__cta-description {
  font-size: 1.4em;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #FFFFFF;
}

.page-index__button--cta {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-index__button--cta:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

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

  .page-index__hero-description {
    font-size: 1.2em;
  }

  .page-index__section-title {
    font-size: 2.2em;
  }

  .page-index__about-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index__about-image {
    max-width: 80%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 80px);
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }

  .page-index__hero-description {
    font-size: 1em;
  }

  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__button {
    width: 80%;
    max-width: 300px;
  }

  .page-index__section-title {
    font-size: 1.8em;
  }

  .page-index__section-description {
    font-size: 0.95em;
  }

  .page-index__features-grid,
  .page-index__promotions-grid,
  .page-index__resources-grid {
    grid-template-columns: 1fr;
  }

  .page-index__about-image {
    max-width: 100%;
  }

  .page-index__cta-title {
    font-size: 2.2em;
  }

  .page-index__cta-description {
    font-size: 1.1em;
  }

  .page-index__button--cta {
    width: 80%;
    max-width: 300px;
  }
  
  /* Mobile content area image constraint */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }

  .page-index__hero-description {
    font-size: 0.9em;
  }

  .page-index__button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-index__section-title {
    font-size: 1.5em;
  }

  .page-index__cta-title {
    font-size: 1.8em;
  }

  .page-index__cta-description {
    font-size: 1em;
  }
}