/* ── Blog Hero ── */

/* Mobile-first base styles */
.blog-hero {
    background: var(--pm-primary-200);
    padding: 34px 0;
    margin-top: 135px;
}

.blog-hero__subheading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-hero__subheading--divider {
    width: 2rem;
    height: 1px;
    background: black;
}

.blog-hero__subheading span {
    color: black;
    font-size: 16px;
    font-style: normal;
    font-weight: var(--fw-light);
    line-height: normal;
    text-transform: uppercase;
}

.blog-hero__heading {
    font-family: var(--pm-font-secondary);
    font-size: 26px;
    font-style: italic;
    font-weight: var(--fw-medium);
    letter-spacing: 2px;
    color: #323232;
}

.blog-hero__description {
    color: #323232;
    font-size: 14px;
    line-height: 1.7;
}

.blog-hero__slider-wrap {
    position: relative;
    overflow: hidden;
}

.blog-hero__swiper {
    overflow: hidden;
    --blog-hero-featured-width: 82%;
    --blog-hero-compact-width: 82%;
}

.blog-hero__swiper .swiper-wrapper {
    align-items: stretch;
    gap: 0;
}

.blog-hero__slide {
    width: 82%;
    flex-shrink: 0;
    height: auto;
    cursor: pointer;
    min-width: 0;
}

.blog-hero-card {
    position: relative;
    min-height: 448px;
    height: 100%;
    background: #d8d8d8;
    overflow: hidden;
}

.blog-hero-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.blog-hero-card__media img,
.blog-hero-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.blog-hero-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.18) 0%,
            rgba(0, 0, 0, 0.65) 100%
    );
}

.blog-hero-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.5rem;
    z-index: 2;
    padding: 24px 18px 20px;
    opacity: 1;
    transform: translateY(0);
    transition:
            opacity 0.4s ease-out,
            transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.blog-hero-card__title {
    font-family: var(--pm-font-secondary);
    font-style: italic;
    font-weight: var(--fw-medium);
    line-height: 1.15;
    color: #fff;
    font-size: 20px;
    max-width: 100%;
    opacity: 0.9;
    transform: translateY(6px);
    transition:
            font-size 0.5s cubic-bezier(0.22, 1, 0.36, 1),
            line-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.45s ease-out,
            transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-hero-card__title-label {
    display: none;
}

.blog-hero-card__drawer {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition:
            opacity 0.45s ease-out,
            transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-hero-card__excerpt {
    display: block;
    flex: 1;
    min-width: 0;
    margin: 0;
}

.blog-hero-card__footer {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
}

.blog-hero-card__footer .arrow-circle {
    flex-shrink: 0;
}

.blog-hero-card__footer .arrow-circle__link {
    color: #fff;
}

.blog-hero-card__footer .arrow-circle__label {
    font-size: 14px;
    line-height: 1;
}


.blog-hero__controls {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 18px;
}

.blog-hero__nav.is-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.blog-hero__nav {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #323232;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

/* Desktop styles */
@media (min-width: 992px) {
    .blog-hero {
        padding: 40px 0;
        margin-top: 90px;
    }

    .blog-hero-card__footer {
        pointer-events: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .blog-hero-card {
        min-height: 420px;
    }

    .blog-hero-card__title {
        font-size: 24px;
        max-width: 80%;
        opacity: 1;
        transform: translateY(0);
    }

    .blog-hero__heading {
        font-size: 32px;
    }

    .blog-hero__swiper .swiper-wrapper {
        display: flex;
        align-items: stretch;
        gap: unset;
    }

    .blog-hero__slide {
        width: var(--blog-hero-compact-width) !important;
        flex: 0 0 var(--blog-hero-compact-width) !important;
        transition:
                width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                flex-basis 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.45s ease,
                opacity 0.35s ease;
        overflow: hidden;
    }

    .blog-hero__slide.is-featured {
        width: var(--blog-hero-featured-width) !important;
        flex-basis: var(--blog-hero-featured-width) !important;
    }

    .blog-hero__slide:not(.is-featured) .blog-hero-card__content {
        padding: 20px 14px 16px;
        transform: translateY(10px);
    }

    .blog-hero__slide.is-featured .blog-hero-card__content {
        padding: 32px 24px 24px;
        opacity: 1;
        transform: translateY(0);
    }

    .blog-hero__slide .blog-hero-card__title-label {
        display: block;
        font-family: var(--pm-font-secondary);
        font-style: italic;
        font-weight: var(--fw-medium);
        font-size: 16px;
        line-height: 1.25;
        color: #fff;
        opacity: 1;
        transform: translateY(0);
        transition:
                opacity 0.15s ease,
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .blog-hero__slide .blog-hero-card__drawer {
        position: absolute;
        left: 24px;
        right: 24px;
        bottom: 24px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        pointer-events: none;
        transition:
                opacity 0.42s ease,
                transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear 0.42s;
    }


    .blog-hero__slide .blog-hero-card__excerpt {
        display: block;
        width: auto;
        max-width: 100%;
        color: rgba(255, 255, 255, 0.88);
        font-size: 14px;
        line-height: 1.45;
    }



    .blog-hero__slide.is-featured .blog-hero-card__title-label {
        opacity: 0;
        transform: translateY(20px);
    }

    .blog-hero__slide.is-featured .blog-hero-card__drawer {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
        transition-delay: 0.36s;
    }

    .blog-hero__slide:not(.is-featured) .blog-hero-card__drawer {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(12px) !important;
        pointer-events: none !important;
        transition:
                opacity 0.16s ease,
                transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear 0.16s !important;
    }

    .blog-hero__slide:not(.is-featured) .blog-hero-card__title-label {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .blog-hero-card {
        min-height: 448px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-hero__slide,
    .blog-hero-card__content {
        transition: none !important;
    }
}
