/* Core layout */
.agaveweb-press-carousel {
    width: 100%;
    padding: 0;
    overflow-x: hidden;
}

.agaveweb-press-carousel-inner {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: stretch;
    max-width: 100%;
    box-sizing: border-box;
}

/* Left: images coverflow */
.agaveweb-press-carousel-images {
    flex: 0 0 30%;
    max-width: 340px;
    position: relative;
    box-sizing: border-box;
}

.agaveweb-press-carousel-image-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.agaveweb-press-carousel-image-wrap {
    width: 100%;
}

.agaveweb-press-carousel-image {
    width: 100%;
    height: auto;
    border-radius: 2px;
    object-fit: cover;
    display: block;
}

/* Right: text fade + pagination */
.agaveweb-press-carousel-text {
    flex: 1;
    max-width: 100%;
    box-sizing: border-box;
}

.agaveweb-press-carousel-text-slide {
    display: flex;
    align-items: center;
    height: 100%;
}

.agaveweb-press-carousel-content {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* Categories as "button" chips */
.agaveweb-press-carousel-categories {
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.agaveweb-press-carousel-category {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid #41a493;
    color: #41a493;
    background-color: rgba(65,164,147,0.08);
}

/* Title and excerpt */
.agaveweb-press-carousel-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    line-height: 1.3;
    font-family: Georgia, 'Times New Roman', serif
}

.agaveweb-press-carousel-title a {
    color: #222;
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.agaveweb-press-carousel-title a:hover {
    text-decoration: underline;
}

.agaveweb-press-carousel-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Swiper arrow controls on image swiper */
.agaveweb-press-carousel-images .swiper-button-prev, .agaveweb-press-carousel-images .swiper-button-next {
    color: #41a493;
    top: 50%;
    transform: translateY(-50%);
}

/* Pagination below TEXT swiper */
.agaveweb-press-carousel-text .swiper-pagination {
    position: absolute;
    bottom: 0;
    width: 100%;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 1.75rem 1.5rem 0;
}

.agaveweb-press-carousel-text .swiper-pagination-bullet {
    flex: 1 1 auto;
    margin: 0 5px;
    height: 15px;
    border-radius: 4px;
    background: rgba(0,0,0,0.05);
    opacity: 1;
    border: 1px solid #dadada
}

.agaveweb-press-carousel-text .swiper-pagination-bullet-active {
    background: #41a493;
}

/* Responsive */
@media (max-width: 900px) {
    .agaveweb-press-carousel-inner {
        flex-direction: column;
    }

    .agaveweb-press-carousel-images {
        max-width: 100%;
        flex: 0 0 auto;
    }
}

.agaveweb-press-carousel-image-wrap {
    cursor: grab;
}

@media (max-width: 980px) {
    .agaveweb-press-carousel {
        padding: 1.5rem 0;
    }

    .agaveweb-press-carousel-content {
        padding: 1.25rem 1rem;
    }

    .agaveweb-press-carousel-image-wrap {
        max-width: 100%;
        width: 480px;
        min-height: unset;
        height: auto;
    }

    .agaveweb-press-carousel-image-slide {
        min-height: unset;
    }
}

/* Soften 3D shadows a bit */
.agaveweb-press-carousel-images.swiper-3d .swiper-slide-shadow-left, .agaveweb-press-carousel-images.swiper-3d .swiper-slide-shadow-right {
    background-image: linear-gradient(to left, rgba(0,0,0,0.18), rgba(0,0,0,0));
}
