/* ====== POSTS SLIDER SECTION ====== */

.posts-slider-section {
    padding: 120px 0;
    background: var(--rp-white);
    position: relative;
    overflow: hidden;
}

.posts-slider-section .heading-icon {
    left: 50%;
    top: -60px;
}

/* Section Header */
.posts-slider-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.posts-slider-section .section-title-wrapper {
    max-width: 824px;
    position: relative;
    z-index: 2;
}

.posts-slider-section .section-title {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: var(--heading-lg-size);
    line-height: var(--heading-lg-line);
    color: var(--rp-headlines);
    margin: 0 0 12px 0;
}

.posts-slider-section .section-subtitle {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    font-size: var(--paragraph-lg-size);
    line-height: var(--paragraph-lg-line);
    color: var(--rp-headlines);
    margin: 0;
}

/* Navigation */
.posts-slider-section .posts-nav {
    display: flex;
    gap: 12px;
}

/* Posts Slider */
.posts-slider-section .posts-slider-wrapper {
    margin-bottom: 60px;
}

.posts-slider .slick-slide {
    padding: 0 15px;
}

.posts-slider .slick-list {
    margin: 0 -15px;
    overflow: visible;
}

/* Post Card */
.posts-slider-section .post-card {
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Post Image */
.posts-slider-section .post-image {
    aspect-ratio: 480/269;
    display: block;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 27px;
}

.posts-slider-section .post-image a {
    display: block;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
}

.posts-slider-section .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1;
}

posts-slider-container {
    overflow: hidden;
}

.posts-slider-section .post-card:hover .post-image img {
    transform: scale(1.05);
}

/* Category Badge */
.posts-slider-section .post-category {
    /* position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2; */
}

.posts-slider-section .post-category span {
    display: inline-block;
    padding: 4px 12px;
    background: var(--rp-bright-red);
    color: var(--rp-white);
    font-family: var(--font-body);
    font-weight: var(--weight-bold);
    font-size: var(--paragraph-xs-size);
    line-height: var(--paragraph-xs-line);
    border-radius: 100px;
    text-transform: uppercase;
}

/* Post Content */
.posts-slider-section .post-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.posts-slider-section .post-meta {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-bottom: 14px;
    width: 100%;
}

.posts-slider-section .post-meta .arrow-right {
    margin-left: auto;
}

.posts-slider-section .post-date {
    display: inline-block;
    padding: 4px 12px;
    color: var(--rp-headlines);
    font-family: var(--font-body);
    font-weight: var(--weight-bold);
    font-size: var(--paragraph-xs-size);
    line-height: var(--paragraph-xs-line);
    border-radius: 100px;
    text-transform: uppercase;
}

.posts-slider-section .post-title {
    color: var(--rp-headlines);
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: var(--heading-sm-size);
    line-height: var(--heading-sm-line);
    margin: 0 0 14px 0;
}

.posts-slider-section .post-title a {
    color: var(--rp-headlines);
    text-decoration: none;
    transition: color 0.3s ease;
}

.posts-slider-section .post-title a:hover {
    color: var(--rp-bright-red);
}

.posts-slider-section .post-excerpt {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    font-size: var(--paragraph-sm-size);
    line-height: var(--paragraph-sm-line);
    color: var(--rp-black);
    margin: 0 0 24px 0;
    flex: 1;
}

/* Section CTA */
.posts-slider-section .section-cta {
    text-align: center;
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.posts-slider-section .cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.posts-slider-section .section-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    transition: all 0.3s ease;
}

.posts-slider-section .section-cta .btn svg {
    width: 24px;
    height: 24px;
    transition:all 0.3s ease;
}

.posts-slider-section .section-cta .btn:hover svg path {
    fill: var(--rp-logo-black)
}

/* Responsive */
@media (max-width: 991px) {
    .posts-slider-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .posts-slider-section .section-cta.cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 0px;
    }
    .posts-slider-section .section-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .posts-slider-section {
        padding: 60px 0;
    }

    .posts-slider-section .posts-slider-wrapper {
        position: relative;
    }

    .posts-slider-section .posts-nav {
        position: absolute;
        bottom: 0;
        right: 0;
        z-index: 2;
    }

    .posts-slider-section .section-title {
        font-size: var(--heading-mobile-lg-size);
        line-height: var(--heading-mobile-lg-line);
    }

    .posts-slider-section .heading-icon {
        left: 50%;
        top: -20px;
    }

    .posts-slider-section .section-subtitle {
        font-size: var(--paragraph-md-size);
        line-height: var(--paragraph-md-line);
    }
}
