/**
 * Blog Banner Styles (Frontend) - FORCE FIX
 * High specificity to override any dark theme remnants
 */
/* Force container reset */
body .blog-banner,
#main .blog-banner,
.wp-block-fifty-plus-blog-banner {
    position: relative;
    padding: 0;
    width: 100%;
    background: linear-gradient(90deg, #ffffff 55%, #f9fafb 55%);
    font-family: 'Inter', system-ui, sans-serif;
    overflow: visible !important;
    /* FIXED: Allow popup to go outside */
    color: #334155;
    box-sizing: border-box;
    text-align: left;
    border: none;
    box-shadow: none;
    /* z-index: 10; REMOVED to fix mobile menu overlap */
}
/* Force container layout */
body .blog-banner .banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 20px;
    flex-direction: row;
}
body .blog-banner .banner-left {
    flex: 0 0 65%;
    padding-right: 40px;
    z-index: 2;
    text-align: left;
}
/* Breadcrumbs Force */
body .blog-banner .banner-breadcrumbs {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #14b8a6;
    margin-bottom: 24px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
    /* Allow wrapping on mobile if needed */
}
body .blog-banner .breadcrumb-link {
    color: #94a3b8;
    text-decoration: none;
    white-space: nowrap;
    /* Keep links on one line */
}
body .blog-banner .breadcrumb-link.active {
    color: #14b8a6;
}
body .blog-banner .breadcrumb-separator {
    color: #cbd5e1;
}
/* Title Force */
body .blog-banner .banner-title {
    color: #0f172a !important;
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 32px 0;
    letter-spacing: -1px;
    text-shadow: none !important;
    text-align: left;
}
/* Pills Container */
body .blog-banner .banner-pills {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}
/* Pills Force */
body .blog-banner .meta-pill {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    text-decoration: none;
}
body .blog-banner .meta-pill i {
    color: #14b8a6;
    margin-right: 8px;
    font-size: 14px;
}
/* Author Pill */
body .blog-banner .author-trigger {
    padding-left: 6px;
    cursor: pointer;
    position: relative;
    background: #ffffff !important;
}
body .blog-banner .pill-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: none !important;
}
/* Popup Force */
body .blog-banner .author-popup {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 300px;
    background: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 1000;
    text-align: left;
    height: auto;
    font-weight: normal;
    color: #475569;
    box-sizing: border-box;
    white-space: normal !important;
    /* FIXED Wrapping */
    max-width: 300px;
    /* Ensure nice width */
}
body .blog-banner .author-trigger:hover .author-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
body .blog-banner .popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
body .blog-banner .popup-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    flex-shrink: 0;
}
body .blog-banner .popup-name {
    flex: 1;
    min-width: 0;
}
body .blog-banner .popup-name a {
    color: #0f172a !important;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body .blog-banner .popup-bio {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #475569;
    display: block;
    white-space: normal;
    overflow: visible;
    /* Ensure content is visible */
}
body .blog-banner .popup-link {
    font-size: 13px;
    font-weight: 600;
    color: #f97316 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
/* Responsive Force */
@media (max-width: 1024px) {
    body .blog-banner {
        background: #ffffff;
    }
    body .blog-banner .banner-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px;
    }
    body .blog-banner .banner-left {
        flex: 0 0 100%;
        padding-right: 0;
        width: 100%;
    }
    body .blog-banner .banner-title {
        font-size: 42px;
    }
}
@media (max-width: 768px) {
    body .blog-banner .banner-container {
        padding: 40px 20px;
    }
    body .blog-banner .banner-title {
        font-size: 32px;
        margin-bottom: 24px;
    }
    body .blog-banner .meta-pill {
        height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }
    /* Mobile Breadcrumb Optimization */
    body .blog-banner .banner-breadcrumbs {
        flex-wrap: nowrap;
        /* Force single line if possible, or wrap controlled */
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;
        /* Switch to block to allowing ellipsis */
        width: 100%;
    }
    body .blog-banner .breadcrumb-item {
        display: inline;
    }
    body .blog-banner .breadcrumb-item.active {
        /* Truncate the title part on mobile */
        display: inline-block;
        max-width: 120px;
        /* Small limit for title */
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
    }
    /* Mobile Popup Force */
    body .blog-banner .author-popup {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 320px !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        z-index: 99999 !important;
        margin: 0 !important;
    }
    body .blog-banner .author-popup.active {
        opacity: 1;
        visibility: visible;
    }
    body .blog-banner .author-popup.active::after {
        content: '';
        position: fixed;
        top: -100vh;
        left: -100vw;
        right: -100vw;
        bottom: -100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    body .blog-banner .popup-bio {
        padding-right: 5px;
    }
}