/* 
   Single Responsibility: Styling for the Success Section.
*/

.success-section {
  background-color: #020617; /* Dark background matching the screenshot */
  color: #ffffff;
  font-family: var(--feat-font, "Outfit", sans-serif);
  padding: 50px 0;
  border-top-left-radius: 80px;
}

.success-title {
  color: #ffffff;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: -1px;
}

@media (max-width: 576px) {
  .success-title {
    font-size: 2.1rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
  }
}

.success-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}

.success-stat-item {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle divider */
}

/* Remove bottom border for the last two items in the grid to look clean */
.success-stat-item:nth-last-child(-n + 2) {
  border-bottom: none;
}

.success-stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.success-stat-item:hover .success-stat-icon {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.success-stat-icon img {
  filter: brightness(0) invert(1); /* Ensure icons are white */
  opacity: 1;
  width: 28px !important;
  height: auto;
}

.success-stat-text h4 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Right Card */
.success-right-card {
  background-color: #3b3749; /* Slightly lighter gray/purple dark */
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.success-card-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.golden-leaf {
  color: #edbb66; /* Subtle golden color for decoration */
  font-size: 1.2rem;
  font-weight: 300;
}

.success-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.success-feature-box {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 25px 15px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.success-feature-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.success-feature-box h5 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f1b2d;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .success-section {
    border-top-left-radius: 0;
  }
  .success-title {
    font-size: 2.8rem;
    text-align: center;
  }
  .success-stats-grid {
    gap: 0 20px;
  }

  .success-stat-item {
    justify-content: center;
  }

  /* On tablet, the last 2 items constraint might change if it wraps differently, but 2 cols is fine */
  .success-right-card {
    margin-top: 50px;
    padding: 30px 20px;
  }
}

@media (max-width: 575px) {
  .success-title {
    font-size: 2.1rem;
  }
  .success-stats-grid {
    grid-template-columns: 1fr;
  }
  .success-stat-item {
    justify-content: flex-start;
  }
  /* Reset bottom borders for single column */
  .success-stat-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }
  .success-stat-item:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
  }
  .success-stat-item:nth-child(even) .success-stat-icon {
    margin-right: 0 !important;
    margin-left: 1.5rem !important; /* me-4 equivalent is roughly 1.5rem */
  }
  .success-stat-item:nth-last-child(1) {
    border-bottom: none;
  }

  .success-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .success-feature-box {
    padding: 15px 10px;
    min-height: 70px;
  }

  .success-feature-box h5 {
    font-size: 0.9rem !important;
  }

  .success-stat-icon {
    width: 50px;
    height: 50px;
  }

  .success-stat-icon img {
    width: 24px !important;
  }

  .success-stat-item {
    padding: 10px 20px;
  }
}
