.staff-carousel-widget-c588e97e {
    position: relative;
    width: 100%;
}

.staff-carousel-container {
    width: 100%;
    padding-bottom: 40px; /* Space for pagination */
    overflow: hidden;
}

.staff-carousel-item {
    position: relative;
    overflow: hidden;
    /* Default border radius, can be overridden by Elementor controls */
    border-radius: 8px; 
}

.staff-carousel-image-wrapper {
    position: relative;
    width: 100%;
    /* Default aspect ratio, can be overridden by Elementor controls */
    aspect-ratio: 1.25; 
    overflow: hidden;
    display: block; /* Important for <a> tags to behave properly */
    text-decoration: none; /* Remove underline if it's a link */
}

.staff-carousel-image-wrapper:hover {
    text-decoration: none;
}

.staff-carousel-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.staff-carousel-name {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.staff-carousel-profession {
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* Swiper Controls overrides */
.staff-carousel-container .swiper-button-next,
.staff-carousel-container .swiper-button-prev {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: calc(50% - 20px);
}

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

.staff-carousel-container .swiper-button-prev {
    left: 10px;
}

.staff-carousel-container .swiper-button-next {
    right: 10px;
}

.staff-carousel-container .swiper-pagination-bullet {
    background: #000;
    opacity: 0.5;
}

.staff-carousel-container .swiper-pagination-bullet-active {
    opacity: 1;
}

.staff-carousel-container .swiper-pagination {
    bottom: 0;
}