/* ============================================
   Posts Carousel - Overlay Cards + Fluid Right
   ============================================ */

.posts-carousel-section {
    overflow: hidden;
}

/* Fluid right : demarre au container left, s'etend jusqu'au viewport right */
.posts-carousel-wrapper {
    width: calc(100% + ((100vw - 100%) / 2));
}

/* Swiper overrides */
.posts-carousel-swiper.swiper {
    overflow: visible;
}

/* Nav arrows */
.posts-carousel-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}
.posts-carousel-nav__btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #d0d0d0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--pbmit-heading-color);
    transition: all 0.3s ease;
}
.posts-carousel-nav__btn:hover {
    border-color: var(--pbmit-heading-color);
    background: var(--pbmit-heading-color);
    color: #fff;
}

/* Card overlay */
.post-card-overlay {
    position: relative;
    display: block;
    border-radius: 5px;
    overflow: hidden;
    height: 400px;
    text-decoration: none;
    color: #fff;
}

.post-card-overlay .post-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    transition: transform 0.6s ease;
}

.post-card-overlay:hover .post-card-bg {
    transform: scale(1.05);
}

/* Gradient overlay */
.post-card-overlay .post-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 100%);
    z-index: 1;
}

/* Text content */
.post-card-overlay .post-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
}

.post-card-overlay .post-card-category {
    display: inline-block;
    background-color: var(--pbmit-green-color, #80b927);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.post-card-overlay .post-card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    margin: 0;
    font-family: var(--pbmit-heading-typography-font-family, "Instrument Sans", serif);
}

/* Responsive */
@media (max-width: 1199px) {
    .post-card-overlay {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .post-card-overlay {
        height: 300px;
    }

    .post-card-overlay .post-card-content {
        padding: 24px;
    }

    .post-card-overlay .post-card-title {
        font-size: 18px;
    }
}
