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

.page-index__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #FFFFFF;
  padding-bottom: 40px;
}

.page-index__hero-content {
  max-width: 800px;
  margin: 0 auto 20px;
  padding: 20px;
}

.page-index__hero-title {
  font-size: 3.2em;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 30px;
}

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

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

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

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

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

.page-index__button--login:hover {
  background-color: #e0a73a;
  border-color: #e0a73a;
}

.page-index__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-index__features-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 40px;
}

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

.page-index__feature-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__feature-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__card-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__card-title a {
  color: #000000;
  text-decoration: none;
}

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

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

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

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

.page-index__button--primary:hover {
  background-color: #333333;
}

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

.page-index__button--secondary:hover {
  background-color: #e0a73a;
  border-color: #e0a73a;
}

.page-index__app-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #F8F8F8;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  gap: 40px;
}

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

.page-index__app-image {
  flex-shrink: 0;
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__app-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-index__button--download {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__button--download:hover {
  background-color: #333333;
}

.page-index__about-section,
.page-index__contact-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-index__about-text,
.page-index__contact-text {
  font-size: 1.1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-index__button--learn-more,
.page-index__button--contact {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__button--learn-more:hover,
.page-index__button--contact:hover {
  background-color: #e0a73a;
  border-color: #e0a73a;
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px); /* Mobile header offset */
    padding: 30px 15px;
  }

  .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: 100%;
    max-width: 280px;
  }

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

  .page-index__features-section,
  .page-index__app-section,
  .page-index__about-section,
  .page-index__contact-section {
    margin: 40px auto;
    padding: 0 15px;
  }

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

  .page-index__app-section {
    flex-direction: column;
    text-align: center;
  }

  .page-index__app-content {
    text-align: center;
    margin-bottom: 30px;
  }

  .page-index__app-image {
    max-width: 300px;
  }

  /* Ensure content images do not overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

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

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