/* =============================================
   FEATURED POST BLOCK
   ============================================= */

.featured-post-block {
    display: flex;
    flex-direction: row;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    min-height: 500px;
}

/* ── Empty / editor placeholder ── */
.featured-post-block--empty {
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--wp--preset--color--secondary);
    color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
}

/* ── Content panel ── */
/* No background — cloud SVG provides the orange shape */
.featured-post__content-wrap {
    position: relative;
    display: flex;
    width: 100%;
    max-width: none;
    flex-direction: row;
    align-items: stretch;
    z-index: 1;
    background: var(--wp--preset--color--secondary);

}


/* ── Cloud shape SVG ── */
/* The cloud path's decorative right edge sits at ~94.5% of the viewBox width
   (x≈875 of 926). width: 53% (≈50%/0.945) places that edge at exactly 50%
   of the block. preserveAspectRatio="none" on the SVG element allows stretching. */
.featured-post__cloud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--wp--preset--color--secondary);
    pointer-events: none;
    z-index: 1;
}

.featured-post__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    background: url(../../assets/images/featured-story-cloud-orange.svg) no-repeat center;
    background-color: transparent;
    background-size: cover;
    background-position: center right;
    width: 55%;
    margin-right: -5%;
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--60);
    

    & > div {
        position: relative;
        z-index: 2;
        padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--70);
        padding-right: 120px;
        
    
    }
}

/* ── Label ── */
.featured-post__label {
    font-family: var(--wp--preset--font-family--bricolage-grotesque-condensed) !important;
    font-size: var(--wp--preset--font-size--xx-large);
    font-weight: 400;
    color: var(--wp--preset--color--dark-plum);
    margin-bottom: 0.5rem;
}

/* ── Title ── */
.featured-post__title {
    font-family: var(--wp--preset--font-family--bricolage-grotesque-condensed) !important;
    font-size: var(--wp--preset--font-size--gigantic);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

/* ── Excerpt ── */
.featured-post__excerpt {
    font-size: var(--wp--preset--font-size--large);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.75rem;
    max-width: 42ch;
}

/* ── Button ── */
.featured-post__btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--wp--preset--font-family--bricolage-grotesque-condensed) !important;
    font-size: var(--wp--custom--font-sizes--normal, 1rem);
    font-weight: 600;
    color: #ffffff;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: var(--wp--custom--border--radius--button, 12px);
    padding: 0.5em 1.4em;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
    z-index: 4;
}

.featured-post__btn:hover {
    background: #ffffff;
    color: var(--wp--preset--color--secondary);
    text-decoration: none;
}

/* ── Cover link — full-block click target ── */
.featured-post__cover-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

/* ── Image panel ── */
.featured-post__image-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    z-index: 0;
    margin-left: -15vw;
}

.featured-post__image {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: translateY(var(--fp-parallax, 0px));
    transition: none;
}


/* ── Mobile ── */
@media (max-width: 767px) {
    .featured-post-block {
        flex-direction: column;
        min-height: 0;
        border-radius: 8px;
        overflow: hidden;
    }

    /* Hide desktop cloud SVG on mobile */
    .featured-post__cloud {
        display: none;
    }

    /* Simple solid background for mobile */
    .featured-post__content-wrap {
        flex: 0 0 auto;
        flex-direction: column;
    }

    .featured-post__content {
         position: relative;
        z-index: 10;
        justify-content: flex-start;
        width: 100%;
        margin-bottom: -80px;
        padding-bottom: 80px;
        background-size: cover;
        background-image: url(../../assets/images/featured-story-cloud-orange-mobile.svg) !important;
        background-position: center bottom;
        & > div {
            padding: 0;
        }
        .wp-block-button {
            margin-bottom: var(--wp--preset--spacing--spacing-5);
            width: 100%;
            align-self: stretch;

            a {
                width: 100%;
                display: flex;
                justify-content: center;
            }
        }
    }

    .featured-post__image-wrap {
        min-height: 360px;
        flex: 0 0 60%;
    }

    .featured-post__title {
        font-size: clamp(1.5rem, 10vw, 3.25rem);
    }

    .featured-post__label {
        font-size: clamp(1rem, 8vw, 2.75rem);
    }
}
