/* Blog Related Posts - Shared styles for Recent & Featured blocks */

.blog-related-posts {
    max-width: 100%;
}

.blog-related-posts__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #111;
}

.blog-related-posts__card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
    width: 100%;
}

.blog-related-posts__image-link {
    display: block;
    border-radius: 16px;
    overflow: hidden;
}

.blog-related-posts__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    display: block;
}

.blog-related-posts__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}

.blog-related-posts__badge {
    display: inline-block;
    background-color: #F3CE72;
    color: #202C2E;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
}

.blog-related-posts__heading {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    color: #111;
}

.blog-related-posts__link {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: end;
    color: #202C2E;
}

.blog-related-posts__link:hover {
    text-decoration: underline;
}

/* Desktop: stack cards vertically, hide swiper controls */
@media (min-width: 1024px) {
    .blog-related-posts--swiper .brp-swiper {
        overflow: visible;
    }

    .blog-related-posts--swiper .swiper-wrapper {
        display: flex;
        flex-direction: column;
        gap: 16px;
        transform: none !important;
    }

    .blog-related-posts--swiper .swiper-slide {
        width: 100% !important;
    }

    .brp-swiper-controls {
        display: none;
    }
}

/* Mobile: swiper active */
@media (max-width: 1023px) {
    .blog-related-posts__heading {
        font-size: 16px;
    }

    .brp-swiper-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 16px;
    }

    .brp-swiper-controls .swiper-button-prev,
    .brp-swiper-controls .swiper-button-next {
        position: static;
        width: 32px;
        height: 32px;
        margin: 0;
    }

    .brp-swiper-controls .swiper-button-prev::after,
    .brp-swiper-controls .swiper-button-next::after {
        font-size: 14px;
    }

    .brp-swiper-controls .swiper-pagination {
        position: static;
        width: auto;
    }

    /* Hide controls for single slide */
    .brp-single-slide .brp-swiper-controls {
        display: none;
    }
}
