.stats-section{
  padding:5rem 0;
  background-color:#f8f9fa;
  position:relative;
  overflow:hidden;
}

.stats-section::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:5px;
  background:linear-gradient(90deg, #1a3c6e 0%, #476a9e 50%, #1a3c6e 100%);
}

.stats-section .section-title{
  text-align:center;
  margin-bottom:3rem;
  color:#1a3c6e;
  font-family:'Playfair Display', serif;
  font-weight:bold;
  position:relative;
}

.stats-section .section-title::after{
  content:'';
  position:absolute;
  bottom:-15px;
  left:50%;
  transform:translateX(-50%);
  width:80px;
  height:3px;
  background:linear-gradient(90deg, #1a3c6e 0%, #476a9e 100%);
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:2rem;
  max-width:1200px;
  margin:0 auto;
  padding:0 1rem;
}

.stat-item{
  background-color:white;
  border-radius:10px;
  padding:2rem;
  text-align:center;
  box-shadow:0 5px 20px rgba(0, 0, 0, 0.05);
  transition:transform 0.3s ease, box-shadow 0.3s ease;
  position:relative;
  overflow:hidden;
}

.stat-item::after{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:5px;
  background:linear-gradient(90deg, #1a3c6e 0%, #476a9e 100%);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 0.6s ease;
}

.stat-item:hover{
  transform:translateY(-10px);
  box-shadow:0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-item:hover::after{
  transform:scaleX(1);
}

.stat-icon{
  margin-bottom:1.5rem;
  display:flex;
  justify-content:center;
  align-items:center;
  height:80px;
}

.stat-icon svg{
  color:#1a3c6e;
  transition:transform 0.3s ease;
}

.stat-item:hover .stat-icon svg{
  transform:scale(1.2);
}

.stat-number{
  font-size:3rem;
  font-weight:bold;
  margin-bottom:0.5rem;
  color:#1a3c6e;
  font-family:'Playfair Display', serif;
  line-height:1.2;
  background:linear-gradient(90deg, #1a3c6e 0%, #476a9e 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.stat-label{
  font-size:1.2rem;
  font-weight:bold;
  margin-bottom:0.5rem;
  color:#333;
}

.stat-description{
  font-size:0.95rem;
  color:#6c757d;
  line-height:1.5;
}
@keyframes fadeInUp{
  from{
    opacity:0;
    transform:translateY(30px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.stat-item[data-scroll]{
  opacity:1;
}

.stat-item[data-scroll].in-view{
  animation:fadeInUp 0.8s forwards;
}

.stat-item:nth-child(2){
  animation-delay:0.2s;
}

.stat-item:nth-child(3){
  animation-delay:0.4s;
}

.stat-item:nth-child(4){
  animation-delay:0.6s;
}
@media (max-width: 768px){
  .stats-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .stat-number{
    font-size:2.5rem;
  }
}

@media (max-width: 576px){
  .stats-grid{
    grid-template-columns:1fr;
  }

  .stats-section{
    padding:3rem 0;
  }
}
