.second-section-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 10px;
}

/* GRID LAYOUT */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 300px;
  grid-auto-rows: minmax(200px, auto);
  gap: 2rem;
}

/* FEATURE CARDS */
.feature-card {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.feature-card .icon img {
  width: 48px;
  height: 48px;
  margin: 0 auto;
}
.feature-card .title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-text-color);
}
.feature-card .desc {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  flex-grow: 1;
}

/* HAPPY SPIRITS SIDE PANEL */
.happy-card {
  grid-row: 1 / span 2;
  background: linear-gradient(90deg, #f7f8fb 0%, #cccce6 100%);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.happy-card .avatars {
  display: flex;
  margin-top: 1rem;
}
.happy-card .avatars img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -12px;
}
.happy-card .happy-stats {
  text-align: center;
}
.happy-card .happy-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-text-color);
}
.happy-card .happy-label {
  display: block;
  font-size: 20px;
  color: #666;
}
.happy-button {
  background-color: var(--primary-blue);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* RESPONSIVE: TABLETS & PHONES */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
  }
  .happy-card {
    grid-column: 1 / -1;
    grid-row: 5; /* below all feature cards */
    margin-top: 2rem;
  }
}

@media (max-width: 600px) {
  .second-section-wrapper {
    margin-top: 20px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card,
  .happy-card {
    padding: 1.5rem;
  }
  .feature-card .title {
    font-size: 1.125rem;
  }
}

/*---------------------------------------animations-----------------------------------------------*/

.feature-card,
.happy-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 1.2 The “reveal” state */
.feature-card.reveal,
.happy-card.reveal {
  opacity: 1;
  transform: translateY(0);
}
