/* ==========================================================================
   BREADCRUMB SECTION STYLES
   ========================================================================== */

.breadcrumb-section {
    position: relative;
    background: linear-gradient(135deg, #0A2540 0%, #1a3a5c 50%, #0A2540 100%);
    padding: 3.5rem 0 2rem;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
}

/* Animated background orbs */
.breadcrumb-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(255, 107, 0, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Dithering texture */
.breadcrumb-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

/* Gold top border */
.breadcrumb-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.4) 50%, 
        transparent 100%);
    z-index: 3;
}

.breadcrumb-section .container {
    z-index: 2;
    position: relative;
}

/* 1. Hero Title (Large, Above Breadcrumb) */
.breadcrumb-hero {
    margin-bottom: 1.25rem;
    animation: breadcrumbFadeInUp 0.6s ease forwards;
}

.breadcrumb-hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

/* Gold underline accent */
.breadcrumb-hero-title::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, transparent);
    border-radius: 3px;
}

.breadcrumb-hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: rgba(255, 255, 255, 0.7);
    margin: 0.75rem 0 0;
    font-weight: 400;
    max-width: 600px;
}

/* 2. Breadcrumb Navigation */
.custom-breadcrumb {
    background: transparent !important;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    animation: breadcrumbFadeInUp 0.6s ease 0.15s forwards;
    opacity: 0;
}

.custom-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    padding: 0;
    position: relative;
}

/* Custom Chevron Separator */
.custom-breadcrumb .breadcrumb-item + .breadcrumb-item {
    padding-left: 1.75rem;
    position: relative;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "\F285"; /* Bootstrap chevron-right */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.7;
}

/* Links */
.custom-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0;
    position: relative;
}

/* Underline animation on hover */
.custom-breadcrumb .breadcrumb-item a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: #d4af37;
}

.custom-breadcrumb .breadcrumb-item a:hover::after {
    width: 100%;
}

/* Home Icon */
.breadcrumb-home-icon {
    color: #d4af37;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.custom-breadcrumb .breadcrumb-item a:hover .breadcrumb-home-icon {
    transform: translateY(-2px) scale(1.15);
}

/* Active (Current Page) */
.custom-breadcrumb .breadcrumb-item.active {
    color: #d4af37;
    font-weight: 700;
    position: relative;
}

/* Subtle highlight behind active item */
.custom-breadcrumb .breadcrumb-item.active::before {
    content: "";
    position: absolute;
    left: -0.5rem;
    right: -0.5rem;
    top: -0.25rem;
    bottom: -0.25rem;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 6px;
    z-index: -1;
}

/* 3. Animations */
@keyframes breadcrumbFadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4. Mobile Responsiveness */
@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 2.5rem 0 1.5rem;
        min-height: 150px;
    }
    
    .breadcrumb-hero-title::after {
        width: 45px;
        bottom: -4px;
    }
    
    .custom-breadcrumb .breadcrumb-item {
        font-size: 0.82rem;
    }
    
    .custom-breadcrumb .breadcrumb-item + .breadcrumb-item {
        padding-left: 1.4rem;
    }
    
    .custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        left: 0.45rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .breadcrumb-section {
        padding: 2rem 0 1.25rem;
        min-height: 130px;
    }
    
    .breadcrumb-hero-subtitle {
        display: none; /* Hide subtitle on very small screens for cleaner look */
    }
    
    /* Hide middle items on mobile, show only first and last */
    .custom-breadcrumb .breadcrumb-item:not(:first-child):not(:last-child):not(:nth-last-child(2)) {
        display: none;
    }
    
    /* Show ellipsis indicator */
    .custom-breadcrumb .breadcrumb-item:nth-last-child(2)::after {
        content: "…";
        position: absolute;
        right: -1rem;
        color: rgba(255, 255, 255, 0.5);
        font-weight: 700;
    }
}