/* ==========================================================================
   Block: Featured Posts (reuses the .gsap-slider styles from featured-listings.css)
   ========================================================================== */

.block-featured-posts {
    padding: var(--wp--preset--spacing--80) 0;
}

.block-featured-posts__inner {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--50);
}

.gsap-slider.block-featured-posts__slider {
    align-items: stretch;
    padding: 0 var(--wp--style--root--padding-right) 0 var(--wp--style--root--padding-left);
}

/* Header — lives inside the slider root so the controls stay bound to the slider JS */
.block-featured-posts__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5em;
    width: 100%;
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

/* Right side of the header: optional link + slider controls, aligned with the title */
.block-featured-posts__head-right {
    display: flex;
    align-items: center;
    gap: 1.5em;
}

.block-featured-posts__supertitle {
    margin: 0 0 0.5em;
    font-size: var(--wp--preset--font-size--small);
    text-transform: uppercase;
    font-weight: var(--uppercase-font-weight);
    letter-spacing: var(--uppercase-letter-spacing);
    opacity: 0.6;
}

.block-featured-posts__title {
    margin: 0 !important;
}

.block-featured-posts__link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

/* Post card */
.featured-post__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.featured-post__image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 1em;
}

.featured-post__img,
.featured-post__img-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-post__img-placeholder {
    background: rgba(0, 0, 0, 0.08);
}

.featured-post__link:hover .featured-post__img {
    transform: none;
}

.featured-post__date {
    margin: 0 !important;
    font-size: var(--wp--preset--font-size--small);
    color: var(--color-current-60);
}

.featured-post__title {
    margin: 0.75em 0 !important;
    font-family: var(--wp--preset--font-family--switzer);
    font-size: var(--wp--preset--font-size--medium);
    line-height: 1.2;
}

.featured-post__more {
    font-weight: 500;
}
