/* ==========================================================================
   BengalLiberty Native Ads
   ========================================================================== */

/* Sponsored label before post titles */
.bengalliberty-sponsored-label {
    display: inline-block;
    background: #f7f7f7c4;
    color: #838383;
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: .5px;
    line-height: 1.4;
    padding:1px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 6px;
}

/* In-article ad container */
.bengalliberty-native-ad {
    margin: 28px 0;
    padding: 18px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.bengalliberty-native-ad-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #888;
    margin-bottom: 10px;
}

.bengalliberty-native-ad-body {
    min-height: 40px;
}

.bengalliberty-native-ad-placeholder {
    color: #bbb;
    font-style: italic;
    font-size: 13px;
    text-align: center;
    padding: 12px 0;
}

/* Lazy-load skeleton */
.bl-na-lazy-skeleton {
    min-height: 280px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: bl-na-shimmer 1.6s infinite;
    border-radius: 4px;
}

@keyframes bl-na-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Ad-block fallback */
.bl-na-fallback {
    padding: 16px 20px;
    background: #f5f7fa;
    border-left: 3px solid #0066cc;
    border-radius: 4px;
}

.bl-na-fallback-cta {
    display: inline-block;
    padding: 8px 16px;
    background: #0066cc;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 767px) {
    .bengalliberty-native-ad {
        margin: 20px 0;
        padding: 14px 16px;
    }
    .bl-na-lazy-skeleton {
        min-height: 220px;
    }
}

/* ==========================================================================
   Sponsored badge on featured image
   ========================================================================== */

/* Wrapper around a themed featured image so the badge can overlay it.
   display:block kills the whitespace text-node that <img> inside <a> creates. */
.bl-na-thumb-wrap {
    display: block;
    /* position: relative; */
    line-height: 0;
}

.bl-na-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

/* The overlay variant of the sponsored label. */
.bengalliberty-sponsored-label--overlay {
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 2;
    margin-right: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    line-height: 1.4; /* restore line-height inside the wrapper */
}

/* Mobile — shrink and pull the badge in a touch. */
@media (max-width: 767px) {
    .bengalliberty-sponsored-label--overlay {
        top: 1px;
        left: 1px;
        font-size: 0.5rem;
        padding: 1px;
    }
}