/* ============================================================
   PremierBlu Blog Hero Widget — v1.1.0
   Premium editorial hero for PremierBlu Realty blog articles
   ============================================================ */

/* ── Reset & wrapper ── */
.pblu-hero {
    position: relative;
    width: 100%;
    font-family: inherit;
    line-height: 1;
    background-color: #ffffff;
}

/* ══════════════════════════════════════════════════════════
   HERO IMAGE
══════════════════════════════════════════════════════════ */
.pblu-hero__image-wrap {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.pblu-hero__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Colour overlay — dark blue tint */
.pblu-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: #082B57;
    opacity: 0.30;
    pointer-events: none;
}

/* Bottom fade — image bleeds softly into white page */
.pblu-hero__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0)   0%,
        rgba(255, 255, 255, 0.55) 55%,
        rgba(255, 255, 255, 1)   100%
    );
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   CARD OUTER SHELL
══════════════════════════════════════════════════════════ */
.pblu-hero__card-outer {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

/* ══════════════════════════════════════════════════════════
   CARD
══════════════════════════════════════════════════════════ */
.pblu-hero__card {
    position: relative;
    width: 100%;
    max-width: 700px;
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 0;
    /* Refined soft shadow — depth without visual weight */
    box-shadow:
        0 2px 8px 0  rgba(8, 43, 87, 0.05),
        0 8px 32px 0 rgba(8, 43, 87, 0.07);
    margin-top: -95px;
    z-index: 10;
}

/* ══════════════════════════════════════════════════════════
   CARD INNER
══════════════════════════════════════════════════════════ */
.pblu-hero__card-inner {
    padding: 44px;
}

/* ══════════════════════════════════════════════════════════
   BRAND LABEL
   — Subtle branding, does not compete with title
══════════════════════════════════════════════════════════ */
.pblu-hero__brand-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #0D47A1;
    opacity: 0.80;
    margin: 0 0 12px;
    padding: 0;
    line-height: 1;
}

/* ══════════════════════════════════════════════════════════
   CATEGORY BADGE
══════════════════════════════════════════════════════════ */
.pblu-hero__category-wrap {
    /* Category → Title spacing */
    margin-bottom: 24px;
}

.pblu-hero__category {
    display: inline-block;
    background-color: #0D47A1;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 0;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   ARTICLE TITLE
══════════════════════════════════════════════════════════ */
.pblu-hero__title {
    font-size: clamp(28px, 3.8vw, 56px);
    font-weight: 700;
    /* Tight line-height keeps long titles compact */
    line-height: 1.12;
    color: #082B57;
    /* Title → Divider spacing */
    margin: 0 0 32px;
    padding: 0;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ══════════════════════════════════════════════════════════
   META ROW
══════════════════════════════════════════════════════════ */
.pblu-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* Divider → Meta spacing */
    padding-top: 28px;
    margin-top: 0;
    border-top: 1px solid #F0F2F5;
    gap: 24px;
    color: #4B5563;
    font-size: 13px;
    font-weight: 400;
}

/* Vertical rule between author block and date/time items */
.pblu-hero__meta-divider {
    width: 1px;
    height: 36px;
    background-color: #E5E7EB;
    flex-shrink: 0;
}

/* ── Author block ── */
.pblu-hero__author {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.pblu-hero__author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #E9ECF0;
}

.pblu-hero__author-avatar img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    display: block;
}

.pblu-hero__author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pblu-hero__author-name {
    font-size: 14px;
    font-weight: 600;
    color: #082B57;
    line-height: 1.2;
}

.pblu-hero__author-role {
    font-size: 11px;
    font-weight: 400;
    color: #6B7280;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

/* ── Date & reading time ── */
.pblu-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #4B5563;
    font-size: 13px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.pblu-hero__meta-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #9CA3AF;
    vertical-align: middle;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .pblu-hero__image-wrap {
        height: 500px;
    }

    .pblu-hero__title {
        font-size: clamp(24px, 4vw, 38px);
    }

    .pblu-hero__card-inner {
        padding: 36px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .pblu-hero__image-wrap {
        height: 300px;
    }

    /* On mobile the card drops flush below the image — no overlap */
    .pblu-hero__card {
        margin-top: 0;
        max-width: 100%;
        box-shadow: none;
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-top: 3px solid #0D47A1;
    }

    .pblu-hero__card-inner {
        padding: 28px 20px 32px;
    }

    .pblu-hero__title {
        font-size: 24px;
        line-height: 1.18;
        margin-bottom: 24px;
    }

    .pblu-hero__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-top: 20px;
    }

    .pblu-hero__meta-divider {
        display: none;
    }

    /* Fade shorter on mobile so it does not dominate the small image */
    .pblu-hero__fade {
        height: 120px;
    }
}

/* ══════════════════════════════════════════════════════════
   ELEMENTOR EDITOR CANVAS — keep card above canvas overlay
══════════════════════════════════════════════════════════ */
.elementor-editor-active .pblu-hero__card {
    position: relative;
    z-index: 10;
}