﻿/* ===== Your Original Breadcrumbs CSS ===== */

.breadcrumbs {
    display: flex;
    padding: 0;
    margin: 0;
}

.breadcrumbs {
    width: 100vw;
    position: relative;
    left: -21%;
    right: 50%;
}

    .breadcrumbs a,
    .breadcrumbs span {
        display: block;
        padding: 4px 21px 4px 22px;
        background: #e5e4e2;
        color: black;
        /* font-weight: bold; */
        text-decoration: none;
        position: relative;
        margin-right: -7px;
        transition: background 0.2s ease;
        z-index: 1;
    }

.anch1 {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    z-index: 2;
}

.anch {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
}

/* Hover effect */
/* 
.breadcrumbs a:hover {
    background-color: #e6f0fb;
}
*/

/* Selected/Active Page */
.breadcrumbs .active {
    background-color: #0057b7;
    color: #ffffff;
}

/* Current section/label */
.breadcrumbs .section-only {
    background-color: #f0f0f0;
    color: #999999;
    pointer-events: none;
    cursor: default;
}

/* ===== Responsive Add-On Styles ===== */

.breadcrumbs {
    flex-wrap: wrap; /* Let items wrap on small screens */
    overflow-x: auto; /* Allow horizontal scrolling if too many items */
    white-space: nowrap; /* Prevent text wrapping unless wrapping mode is triggered */
}

    .breadcrumbs a,
    .breadcrumbs span {
        font-size: 0.9rem; /* Slightly smaller text for narrow devices */
        padding: 4px 14px; /* Reduce padding for better fit */
    }

@media (max-width: 600px) {
    .breadcrumbs {
        width: 100%; /* Adjust container width */
        left: 0;
        right: 0;
        justify-content: flex-start; /* Align to left */
    }

        .breadcrumbs a,
        .breadcrumbs span {
            font-size: 0.8rem; /* Smaller text on small screens */
            padding: 4px 10px;
        }
}

@media (max-width: 400px) {
    .breadcrumbs a,
    .breadcrumbs span {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}
