.page-index {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #007bff;
  color: #ffffff;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  position: relative;
  overflow: hidden;
}

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

.page-index__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background effect */
}

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffc107; /* Highlight with secondary color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.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;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.1em;
}

.page-index__button--primary {
  background-color: #ffc107;
  color: #007bff;
  border: 2px solid #ffc107;
}

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

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

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

.page-index__button--tertiary {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
  padding: 10px 20px;
  font-size: 1em;
}

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

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

.page-index__features-section,
.page-index__about-section,
.page-index__download-app-section,
.page-index__cta-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

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

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

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

.page-index__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__feature-heading {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #007bff;
}

.page-index__feature-heading .page-index__feature-link {
  text-decoration: none;
  color: inherit;
}

.page-index__feature-heading .page-index__feature-link:hover {
  text-decoration: underline;
}

.page-index__feature-description {
  font-size: 1.05em;
  color: #555555;
  margin-bottom: 25px;
}

.page-index__about-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  background-color: #f8f9fa;
  padding: 60px 20px;
  border-radius: 10px;
}

.page-index__about-content {
  flex: 1;
}

.page-index__about-text {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__about-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index__about-list-item {
  font-size: 1.05em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #333333;
}

.page-index__about-list-item::before {
  content: '✔';
  color: #ffc107;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-index__about-image-container {
  flex: 1;
  text-align: center;
}

.page-index__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__download-app-section {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 50px;
  padding: 60px 20px;
}

.page-index__download-app-content {
  flex: 1;
}

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

.page-index__download-app-image-container {
  flex: 1;
  text-align: center;
}

.page-index__download-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__cta-section {
  background-color: #007bff;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  border-radius: 10px;
  margin-bottom: 60px;
}

.page-index__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

  .page-index__about-section,
  .page-index__download-app-section {
    flex-direction: column;
  }

  .page-index__about-content,
  .page-index__download-app-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  }
  
  .page-index__hero-title {
    font-size: 2em;
  }

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

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

  .page-index__button {
    width: 100%;
  }

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

  .page-index__feature-card {
    padding: 20px;
  }

  .page-index__feature-image,
  .page-index__about-image,
  .page-index__download-app-image {
    max-width: 100%;
    height: auto;
    /* Ensure images within content area are responsive and not too small */
    width: 100%; 
    min-width: 200px; 
    min-height: 200px; 
    object-fit: cover;
  }
  
  /* Critical: Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  
  /* Specific overrides for images in cards to ensure they are large enough */
  .page-index__feature-image, .page-index__about-image, .page-index__download-app-image {
    min-width: 250px;
    min-height: 180px;
    width: 100%; /* Occupy full width of card */
    height: auto; /* Maintain aspect ratio */
  }
  
  /* Ensure no content causes horizontal scroll */
  .page-index {
    overflow-x: hidden;
  }
}

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

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

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

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

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

  .page-index__about-list-item {
    font-size: 0.95em;
  }
}