/* Breadcrumbs Styles */
.breadcrumb-nav {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb-nav ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    /* Добавляем перспективу для 3D-эффекта дочерних элементов */
    perspective: 400px;
}

/* Center breadcrumbs when they are inside a .hero or .container with text-align: center */
.hero .breadcrumb-nav ol,
.container[style*="text-align: center"] .breadcrumb-nav ol {
    justify-content: center;
}

.breadcrumb-nav li {
    display: flex;
    align-items: center;
    /* Настройка анимации для каждого элемента */
    opacity: 0;
    transform: rotateX(-90deg) translateY(20px);
    transform-origin: top center;
    animation: fallIn 0.5s ease-out forwards;
}

/* Поочередная задержка анимации для "вау-эффекта" */
.breadcrumb-nav li:nth-child(1) {
    animation-delay: 0.2s;
}
.breadcrumb-nav li:nth-child(2) {
    animation-delay: 0.4s;
}
.breadcrumb-nav li:nth-child(3) {
    animation-delay: 0.6s;
}

.breadcrumb-nav li a {
    color: var(--text-color-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav li a:hover {
    color: var(--text-blue);
    text-decoration: underline;
}

/* Separator */
.breadcrumb-nav li + li::before {
    content: '/';
    margin: 0 0.75rem;
    color: var(--border-color);
    pointer-events: none;
    /* Также анимируем разделитель */
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: inherit; /* Наследует задержку от родительского li */
}

/* Current page */
.breadcrumb-nav li[aria-current="page"] {
    color: var(--text-color);
    font-weight: 600;
}

/* WOW effect animation */
@keyframes fallIn {
    from {
        opacity: 0;
        transform: rotateX(-90deg) translateY(20px);
    }
    to {
        opacity: 1;
        transform: rotateX(0deg) translateY(0);
    }
}

/* Простое проявление для разделителя */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
