.articlecard {
    background: white;
    border-radius: 15px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* overflow: hidden; */
}
.articlecard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 3px;
    background: linear-gradient(
        45deg,
        #667eea,
        #764ba2,
        #f093fb,
        #4facfe,
        #00f2fe,
        #667eea
    );
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderRotate 3s linear infinite;
    animation-play-state: paused;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.articlecard:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.articlecard:hover::before {
    opacity: 1;
    animation-play-state: running;
}

.articlecard .bg-primary-gradient {
    transition: all 0.4s ease;
    overflow: hidden;
}


.articlecard:hover .bg-primary-gradient {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.articlecard h5 {
    transition: color 0.3s ease;
}

.articlecard:hover h5 {
    color: #667eea;
}

.articlecard .main-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.articlecard .main-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.articlecard:hover .main-btn::before {
    left: 100%;
}