/* Why Families Love Stakid Section */
.why-families {
  padding: 80px 0;
  background-color: #fdfbf5;
}

.why-families h2 {
  font-size: 3.5rem;
  color: #f2864f;
  text-align: center;
  margin-bottom: 60px;
}

.benefits-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.benefit-card {
  width: 48%;
  max-width: 500px;
  min-width: 300px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 25px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.benefit-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.benefit-card h3 {
  font-weight: 800;
  font-family: 'JUST Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: bolder;
  margin: 15px 0;
  color: #000000;
}

/* Apply individual rotations */
.benefit-card:nth-child(1) {
  transform: rotate(3deg);
}

.benefit-card:nth-child(2) {
  transform: rotate(-3deg);
}

.benefit-card:nth-child(3) {
  transform: rotate(3deg);
}

.benefit-card:nth-child(4) {
  transform: rotate(-3deg);
}

.benefit-card:nth-child(1):hover {
  transform: rotate(3deg) scale(1.05);
}

.benefit-card:nth-child(2):hover {
  transform: rotate(-3deg) scale(1.05);
}

.benefit-card:nth-child(3):hover {
  transform: rotate(3deg) scale(1.05);
}

.benefit-card:nth-child(4):hover {
  transform: rotate(-3deg) scale(1.05);
}

.benefit-card p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #444;
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.blue-bg {
  background-color: #DFE7FF;
}

.orange-bg {
  background-color: #FFE8D3;
}

.green-bg {
  background-color: #E9F7F2;
}

.yellow-bg {
  background-color: #FFF2CC;
}

@media (max-width: 768px) {
  .why-families h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .benefit-card {
    width: 100%;
    padding: 20px;
    min-width: 250px;
  }
  
  .benefit-card h3 {
    font-size: 1.3rem;
    margin: 10px 0;
  }
  
  .benefit-card p {
    font-size: 1rem;
  }
  
  .benefit-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }
}
