/* ===============================
   Scientific Posts – Modern UI
================================ */

.scientific-posts-carousel {
    width: 100%;
    padding: 40px 0 60px;
}

/* ---------- CARD ---------- */
.scientific-post-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
            0 10px 30px rgba(0,0,0,0.08);
    transition: transform .4s ease, box-shadow .4s ease;
}

.scientific-post-card:hover {
    transform: translateY(-6px);
    box-shadow:
            0 25px 60px rgba(0,0,0,0.12);
}


/* ---------- IMAGE ---------- */
.scientific-post-thumb {
    position: relative;
    width: 100%;
    height: 40vh;
    overflow: hidden;
}

.scientific-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

.scientific-post-card:hover img {
    transform: scale(1.08);
}

/* subtle gradient overlay */
.scientific-post-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(0,0,0,0) 40%,
            rgba(0,0,0,.35) 100%
    );
    opacity: .7;
}

/* ---------- CONTENT ---------- */
.scientific-post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.scientific-post-title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 14px;
    color: #111;
}

.scientific-post-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: #555;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* ---------- BUTTON ---------- */
.scientific-post-read-more {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #0073aa;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.scientific-post-read-more::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.scientific-post-read-more:hover::after {
    transform: scaleX(1);
}

/* ---------- SWIPER NAV ---------- */
.scientific-posts-carousel .swiper-button-next,
.scientific-posts-carousel .swiper-button-prev {
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    color: #111;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    transition: all .3s ease;
}

.scientific-posts-carousel .swiper-button-next:hover,
.scientific-posts-carousel .swiper-button-prev:hover {
    background: #111;
    color: #fff;
}

.scientific-posts-carousel .swiper-button-next:after,
.scientific-posts-carousel .swiper-button-prev:after {
    font-size: 18px;
}

/* ---------- PAGINATION ---------- */
.scientific-posts-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #bbb;
    opacity: 1;
    transition: all .3s ease;
}

.scientific-posts-carousel
.swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: #111;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .scientific-post-thumb {
        height: 220px;
    }

    .scientific-post-title {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .scientific-posts-carousel {
        padding: 20px 0 40px;
    }

    .scientific-post-thumb {
        height: 190px;
    }

    .scientific-post-content {
        padding: 18px;
    }

    .scientific-post-title {
        font-size: 16px;
    }

    .scientific-post-excerpt {
        font-size: 13px;
    }
}
