/* Breadcrumb Navigation Styles */
.breadcrumb-nav {
    display: block;
    width: 100%;
    /* Fix for fixed header overlap - reduced spacing */
    margin-top: 16px; /* Reduced from 64px to 16px for closer positioning */
    padding-top: 8px; /* Reduced from 16px to 8px */
    position: relative;
    z-index: 10;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.5;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: #7c3aed; /* Purple-600 */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.breadcrumb-link:hover {
    color: #5b21b6; /* Purple-800 */
    background-color: #f3f4f6; /* Gray-100 */
}

.breadcrumb-separator {
    color: #6b7280; /* Gray-500 */
    margin: 0 8px;
    font-weight: 400;
}

.breadcrumb-current {
    color: #374151; /* Gray-700 */
    font-weight: 600;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Yoast SEO Breadcrumb Override Styles */
#breadcrumbs {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

#breadcrumbs a {
    color: #7c3aed !important; /* Purple-600 */
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
}

#breadcrumbs a:hover {
    color: #5b21b6 !important; /* Purple-800 */
    background-color: #f3f4f6 !important; /* Gray-100 */
}

#breadcrumbs span {
    color: #6b7280 !important; /* Gray-500 */
    margin: 0 8px !important;
    font-weight: 400 !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    .breadcrumb-list,
    #breadcrumbs {
        font-size: 12px;
    }
    
    .breadcrumb-separator,
    #breadcrumbs span {
        margin: 0 4px;
    }
    
    .breadcrumb-current {
        max-width: 200px;
    }
}

/* Ensure breadcrumbs are always visible */
.breadcrumb-nav,
#breadcrumbs {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Fallback for any hidden breadcrumbs */
.breadcrumb-nav:not(:empty),
#breadcrumbs:not(:empty) {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fix for breadcrumb container positioning */
.bg-white.border-b {
    margin-top: 16px; /* Reduced from 64px to 16px for closer positioning */
    padding-top: 8px; /* Reduced from 16px to 8px */
    position: relative;
    z-index: 10;
}

/* Ensure breadcrumb section is above other content */
.breadcrumb-section {
    position: relative;
    z-index: 10;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    /* Compact spacing for closer positioning to header */
    margin-top: 16px;
    padding-top: 8px;
}

/* Additional compact styling for breadcrumb containers */
.breadcrumb-section .py-4 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Ensure minimal spacing between header and breadcrumbs */
.breadcrumb-section:first-of-type {
    margin-top: 16px;
    padding-top: 8px;
}

/* Single blog post page - add more spacing */
.single .breadcrumb-section {
    margin-top: 24px; /* Increased from 16px for single posts */
    padding-top: 12px; /* Increased from 8px for single posts */
}

.single .breadcrumb-section .py-4 {
    padding-top: 12px !important; /* Increased padding for single posts */
    padding-bottom: 12px !important;
}

/* Alternative targeting for single posts */
.single-breadcrumb {
    margin-top: 24px !important; /* Increased spacing for single posts */
    padding-top: 12px !important;
}

.single-breadcrumb .py-4 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Hero breadcrumb styling for listing pages */
.hero-breadcrumb {
    margin: 0 !important;
    padding: 0 !important;
}

.hero-breadcrumb .breadcrumb-list,
.hero-breadcrumb #breadcrumbs {
    color: white !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-breadcrumb .breadcrumb-link {
    color: #ffffff !important; /* Bright white for maximum visibility */
    text-decoration: none !important;
    font-weight: 600 !important; /* Increased font weight */
    padding: 3px 8px !important; /* Slightly more padding for better clickability */
    border-radius: 6px !important; /* Slightly larger radius */
    transition: all 0.2s ease !important;
    background-color: rgba(255, 255, 255, 0.25) !important; /* Much more visible background */
    backdrop-filter: blur(10px) !important;
    font-size: 14px !important; /* Slightly larger font */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important; /* Text shadow for better readability */
    border: 1px solid rgba(255, 255, 255, 0.3) !important; /* Subtle border for definition */
}

.hero-breadcrumb .breadcrumb-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.4) !important; /* Much more visible on hover */
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important; /* Enhanced shadow on hover */
}

.hero-breadcrumb .breadcrumb-separator {
    color: #ffffff !important; /* Bright white separators */
    margin: 0 10px !important; /* Slightly more spacing */
    font-weight: 600 !important; /* Bolder separators */
    font-size: 14px !important; /* Larger separators */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important; /* Text shadow for separators */
}

.hero-breadcrumb .breadcrumb-current {
    color: #ffffff !important; /* Bright white current page */
    font-weight: 700 !important; /* Extra bold for current page */
    background-color: rgba(255, 255, 255, 0.35) !important; /* Much more visible background */
    padding: 3px 10px !important; /* More padding for current page */
    border-radius: 6px !important; /* Slightly larger radius */
    backdrop-filter: blur(10px) !important;
    font-size: 14px !important; /* Larger font */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important; /* Text shadow */
    border: 1px solid rgba(255, 255, 255, 0.4) !important; /* More visible border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important; /* Subtle shadow */
}

/* Ensure hero breadcrumbs are always visible */
.hero-breadcrumb {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-breadcrumb .breadcrumb-list,
.hero-breadcrumb #breadcrumbs {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* Hero section positioning to account for fixed header */
.relative.min-h-\[50vh\].mt-16 {
    margin-top: 64px !important; /* Ensure proper spacing below fixed header */
}

/* Ensure breadcrumbs are visible below fixed header */
.hero-breadcrumb {
    position: relative !important;
    z-index: 20 !important;
    margin-top: 0 !important;
    padding-top: 8px !important; /* Reduced from 16px to 8px for closer spacing */
}

/* Compact breadcrumb navigation */
.breadcrumb-nav {
    margin: 0;
    padding: 0;
}

/* Ensure breadcrumb text is properly sized and spaced */
.breadcrumb-list,
#breadcrumbs {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}
