/* Maeveport Landing Stats Card Component Styles */

.maeveport-landing-stats-card-section {
  width: 90%; /* Increased from 80% */
  max-width: 1440px; /* Increased from 1280px */
  margin-left: auto; /* Pushes to the right due to parent flex wrapper */
  margin-right: 0; /* Ensures it sticks to the very right of its container */
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  height: 85vh; /* Consistent height */
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.maeveport-landing-stats-card-section.is-visible {
  opacity: 1;
}

.maeveport-landing-stats-card {
  background-color: var(--maeveport-bg-white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  height: 100%;
  clip-path: polygon(230px 0, 100% 0, 100% 100%, 0 100%, 0 50px, 200px 50px);
}

.maeveport-landing-stats-card__top {
  display: flex;
  flex-direction: row;
  padding: 4rem 3rem 2rem;
  flex: 1;
}

.maeveport-landing-stats-card__animation-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
}

.maeveport-landing-stats-card__lottie-animation {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.maeveport-landing-stats-card__progress-container {
  padding: 0 3rem;
  margin-bottom: 2rem;
  position: relative;
  height: 2px;
}

.maeveport-landing-stats-card__progress-bar {
  width: 100%;
  height: 2px;
  background-color: var(--maeveport-progress-bg);
  position: absolute;
  top: 0;
  left: 0;
}

.maeveport-landing-stats-card__progress-fill {
  height: 2px;
  background-color: var(--maeveport-text-dark);
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
}

.maeveport-landing-stats-card__bottom {
  display: flex;
  flex-direction: row;
  padding: 0 3rem 4rem;
  flex: 1;
  align-items: flex-start;
}

.maeveport-landing-stats-card__headline {
  flex: 1;
  padding-right: 2rem;
}

.maeveport-landing-stats-card__headline-text {
  font-size: var(--font-size-body-lg);
  line-height: 1.6;
  color: var(--maeveport-text-light);
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.maeveport-landing-stats-card__description {
  flex: 1.5;
  display: flex;
  flex-direction: column;
}

.maeveport-landing-stats-card__description-text {
  font-size: var(--font-size-body-lg);
  line-height: 1.6;
  color: var(--maeveport-text-light);
  margin-bottom: 1.5rem;
  margin-top: 0;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .maeveport-landing-stats-card-section {
    width: 92%; /* Increased from 85% */
    max-width: 1180px; /* Increased from 1100px */
    margin-left: auto;
    margin-right: 0;
  }
}

@media (max-width: 1023px) {
  .maeveport-landing-stats-card-section {
    width: 95%; /* Increased from 90% */
    margin-left: auto;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .maeveport-landing-stats-card-section {
    height: auto;
    width: 95%; /* Remains 95% for mobile */
  }
  .maeveport-landing-stats-card {
    clip-path: polygon(130px 0, 100% 0, 100% 100%, 0 100%, 0 38px, 100px 38px);
  }
  .maeveport-landing-stats-card__top {
    flex-direction: column;
    padding: 2rem 2rem 1.5rem;
  }
  .maeveport-landing-stats-card__animation-container {
    margin-top: 2rem;
    min-height: 180px;
  }
  .maeveport-landing-stats-card__progress-container {
    padding: 0 2rem;
  }
  .maeveport-landing-stats-card__bottom {
    flex-direction: column;
    padding: 0 2rem 2rem;
  }
  .maeveport-landing-stats-card__headline {
    padding-right: 0;
    margin-bottom: 1.5rem;
  }

  .maeveport-landing-stats-card__description-text {
    display: none;
  }
}

@media (max-width: 640px) {
  .maeveport-landing-stats-card-section {
    padding: 0;
    width: 98%; /* Increased from 95% for small mobile */
  }
  .maeveport-landing-stats-card {
    clip-path: polygon(100px 0, 100% 0, 100% 100%, 0 100%, 0 23px, 70px 23px);
  }
  .maeveport-landing-stats-card__lottie-animation {
    max-width: 150px;
  }

  .maeveport-landing-stats-card__headline-text {
    font-size: var(--font-size-body-lg);
  }
}

.maeveport-landing-stats-card__animation-container {
  position: relative;
  overflow: hidden;
}

.maeveport-landing-stats-card__fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.maeveport-landing-stats-card__fade-in {
  opacity: 1;
  transition: opacity 0.4s ease;
}
