/* Breadcrumb Wrapper */
.breadcrumb-wrapper {
    background: linear-gradient(90deg, #f7f9fc, #eef2f7);
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* Breadcrumb Base */
.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 10px 0;
    padding: 0;
    font-size: 14px;
}

/* List Items */
.breadcrumb li {
    display: flex;
    align-items: center;
    color: #555;
}

/* Separator Arrow */
.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 10px;
    color: #999;
    font-size: 18px;
}

/* Remove default slash separator permanently */
.breadcrumb-item + .breadcrumb-item::before,
.breadcrumb li::before {
    content: none !important;
    display: none !important;
}

/* Links */
.breadcrumb a {
    text-decoration: none;
    color: #3f51b5;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* Hover Effect */
.breadcrumb a:hover {
    color: #f1c232;
    text-decoration: underline;
}

/* Current Page */
.breadcrumb .last span {
    /* color: #222; */
    color: #c12b3c;
    font-weight: 600;
    background: #fff3cd;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Mobile Friendly */
@media (max-width: 576px) {
    .breadcrumb-wrapper {
        padding: 12px;
    }

    .breadcrumb {
        font-size: 13px;
    }

    .breadcrumb li:not(:last-child)::after {
        margin: 0 6px;
    }
}

/* Last Item Base Style */
.breadcrumb li:last-child span {
    position: relative;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: #fff3cd;
    color: #c12b3c;
    font-weight: 600;
    z-index: 1;
    overflow: hidden;
}

/* Animated Border Layer */
.breadcrumb li:last-child span::before {
    content: "";
    position: absolute;
    inset: -2px; /* border thickness */
    border-radius: 20px;
    background: linear-gradient(
        90deg,
        #4285f4,
        #ea4335,
        #fbbc05,
        #34a853,
        #4285f4
    );
    background-size: 300% 300%;
    z-index: -1;
    animation: borderMove 4s linear infinite;
}

/* Inner mask to create border effect */
.breadcrumb li:last-child span::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 20px;
    background: #fff3cd;
    z-index: -1;
}

/* Animation */
@keyframes borderMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

/* Home Link */
.breadcrumb li:first-child a {
    color: #3f51b5;
    font-weight: 600;
}

/* Middle Breadcrumb Links */
.breadcrumb li:not(:first-child):not(:last-child) a {
    color: #7b61a8;
    font-weight: 500;
}

/* Hover Effects */
.breadcrumb li:first-child a:hover {
    color: #fbbc05;
}

.breadcrumb li:not(:first-child):not(:last-child) a:hover {
    color: #c76243;
}