/* --- XenForo-Style Breadcrumb (Updated) --- */
#breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 1rem 0;
    padding: 0;
}

/* Each breadcrumb item */
#breadcrumb li {
    position: relative;
}

/* Base link styling */
#breadcrumb li a {
    display: block;
    position: relative;
    padding: 0.6rem 1.2rem;
    margin-right: 14px; /* Space so the arrow can sit outside */
    background-color: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

/* The arrow on the right side of each breadcrumb */
#breadcrumb li a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--primary);
}

/* No arrow (and no extra margin) on the last crumb */
#breadcrumb li:last-child a {
    margin-right: 0;
}
#breadcrumb li:last-child a::after {
    display: none;
}

/* Hover state */
#breadcrumb li a:hover {
    background-color: var(--accent);
}
#breadcrumb li a:hover::after {
    border-left-color: var(--accent)
}

/* Active crumb styling */
#breadcrumb li.active a {
    background-color: #01579b;
    pointer-events: none; /* Disable clicks on active crumb */
}
#breadcrumb li.active a::after {
    border-left-color: #01579b;
}

		