/* Counter Section Improvements */

.dp-funfact-area {
    position: relative;
    padding: 80px 0 50px;
    background-color: #f8f9fa;
    z-index: 1;
    overflow: hidden;
}

.dp-funfact-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/pattern.png');
    background-size: cover;
    opacity: 0.03;
    z-index: -1;
}

.dp-funfact-area::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.05);
    z-index: -1;
}

.dp-funfact-wrapper {
    background: linear-gradient(to bottom, #ffffff, #f8f9ff);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
}

.dp-funfact-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.1);
    border-color: rgba(67, 97, 238, 0.1);
}

.dp-funfact-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.05);
    z-index: 1;
}

.dp-funfact-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.04);
    z-index: 1;
}

.dp-funfact-icon {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.dp-funfact-icon i {
    font-size: 45px;
    color: #4361ee;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.dp-funfact-wrapper:hover .dp-funfact-icon i {
    transform: scale(1.1) rotate(5deg);
    color: #2644cc;
}

.dp-funfact-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.dp-funfact-wrapper:hover .dp-funfact-icon::before {
    width: 80px;
    height: 80px;
    background-color: rgba(67, 97, 238, 0.15);
}

.dp-funfact-content h3 {
    font-size: 40px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    line-height: 1;
    position: relative;
    display: inline-block;
}

.dp-funfact-content h3::after {
    content: '+';
    position: absolute;
    top: 0;
    right: -15px;
    font-size: 24px;
    color: #4361ee;
    font-weight: 700;
}

.dp-funfact-content h3.range-text::after {
    display: none;
}

.dp-funfact-content p {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wow .dp-funfact-content h3 {
    animation: countUp 1s ease forwards;
}

/* Responsive styles */
@media (max-width: 1199px) {
    .dp-funfact-area {
        padding: 70px 0 40px;
    }
    
    .dp-funfact-wrapper {
        padding: 35px 15px;
    }
    
    .dp-funfact-content h3 {
        font-size: 36px;
    }
    
    .dp-funfact-icon i {
        font-size: 40px;
    }
}

@media (max-width: 991px) {
    .dp-funfact-area {
        padding: 60px 0 30px;
    }
    
    .dp-funfact-content h3 {
        font-size: 32px;
    }
    
    .dp-funfact-icon i {
        font-size: 36px;
    }
    
    .dp-funfact-content p {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .dp-funfact-area {
        padding: 50px 0 20px;
    }
    
    .dp-funfact-wrapper {
        padding: 30px 15px;
        margin-bottom: 20px;
    }
    
    .dp-funfact-content h3 {
        font-size: 28px;
    }
    
    .dp-funfact-content h3::after {
        right: -12px;
        font-size: 20px;
    }
    
    .dp-funfact-icon i {
        font-size: 32px;
    }
    
    .dp-funfact-content p {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .dp-funfact-area {
        padding: 40px 0 10px;
    }
    
    .dp-funfact-content h3 {
        font-size: 24px;
    }
    
    .dp-funfact-content h3::after {
        right: -10px;
        font-size: 18px;
    }
    
    .dp-funfact-icon i {
        font-size: 28px;
    }
    
    .dp-funfact-content p {
        font-size: 13px;
    }
}

.section__title .title {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 15px;
    position: relative;
}

.section__title .title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: #4361ee;
    border-radius: 3px;
}

.section__title .sub-title {
    color: #4361ee;
    font-weight: 600;
    font-size: 16px;
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievement-intro {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin: 25px auto 0;
    max-width: 80%;
}

.mb-50 {
    margin-bottom: 50px;
} 