
/* Footer titles */
footer h5 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

footer h5:hover {
    color: rgba(106, 27, 154, 0.8);
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgba(106, 27, 154, 0.8);
    transition: width 0.3s ease;
}

footer h5:hover::after {
    width: 100%;
}

/* Style footer links */
.list-unstyled a {
    position: relative;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

/* Purple hover effect */
.list-unstyled a:hover {
    background-color: rgba(106, 27, 154, 0.2); /* Using the same purple as navbar but with opacity */
    color: #fff !important;
}

/* White border animation */
.list-unstyled a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: white;
    transition: height 0.3s ease;
}

.list-unstyled a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 2px;
    height: 0;
    background: white;
    transition: height 0.3s ease;
}

.list-unstyled a span::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.list-unstyled a span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

/* Animate borders on hover */
.list-unstyled a:hover::before,
.list-unstyled a:hover::after {
    height: 100%;
}

.list-unstyled a:hover span::before,
.list-unstyled a:hover span::after {
    width: 100%;
}

/* Add wrapper span to links */
.list-unstyled a {
    display: inline-block;
}
