/* Team slider */

.team-slider-custom .elementor-team-member-carousel {
    align-items: flex-start;
}

.team-slider-custom .team-member.team-style-4 {
    overflow: visible !important;
    border-radius: 0 !important;
}

.team-slider-custom .team-member figure {
    position: relative;
    margin: 0 !important;
    line-height: normal !important;
}

.team-slider-custom .team-member-image {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
    border-radius: 5px;
}

.team-slider-custom .team-member-image img {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    transition: filter 0.4s ease, transform 0.6s ease;
}

.team-slider-custom .team-member:hover .team-member-image img {
    filter: blur(3px) brightness(0.7);
    transform: scale(1.025);
}

.team-slider-custom .team-member-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.team-slider-custom .team-member:hover .team-member-image::after {
    opacity: 1;
    visibility: visible;
}

.team-slider-custom .team-member-image::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    display: block;
    width: calc(100% - 48px);
    max-width: 360px;
    box-sizing: border-box;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, calc(-50% + 15px));
    transition: opacity 0.65s cubic-bezier(.19, 1, .22, 1), transform 0.65s cubic-bezier(.19, 1, .22, 1), visibility 0.65s;
    pointer-events: none;
}

.team-slider-custom .team-member:hover .team-member-image::before {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.team-slider-custom .swiper-slide[data-swiper-slide-index="0"] .team-member-image::before {
    content: "Do you have any questions or concerns? Don't hesitate to contact me!";
}

.team-slider-custom .swiper-slide[data-swiper-slide-index="1"] .team-member-image::before {
    content: "With over 20 years of Duo-Thermo experience, I will work with you to solve even the most complex issues through a personalized study.";
}

.team-slider-custom .swiper-slide[data-swiper-slide-index="2"] .team-member-image::before {
    content: "Any innovative ideas or simply interested in working with Duo-Thermo? Contact me and let's create a successful partnership!";
}

.team-slider-custom .swiper-slide[data-swiper-slide-index="3"] .team-member-image::before {
    content: "If you need clarification or technical support, I will be at your disposal.";
}

.team-slider-custom .swiper-slide[data-swiper-slide-index="4"] .team-member-image::before {
    content: "Any questions about numbers and accounts? I'm the right contact!";
}

.team-slider-custom .swiper-slide[data-swiper-slide-index="5"] .team-member-image::before {
    content: "Facebook, Instagram, blogs and more? Give me a like and I’ll be grateful! ;)";
}

.team-slider-custom .swiper-slide[data-swiper-slide-index="6"] .team-member-image::before {
    content: "At your disposal for everything from advice and orders to after-sales support. I will be your direct partner in the Central Portugal and Alentejo regions.";
}

.team-slider-custom .swiper-slide[data-swiper-slide-index="7"] .team-member-image::before {
    content: "Responsible for spreading joy, boosting the workplace atmosphere, and making sure every team member gets at least one daily dose of cuddles and good vibes.";
}

.team-slider-custom .team-member-details {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    padding: 30px 10px !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    text-align: center;
    z-index: 3;
}

.team-slider-custom .team-member-name,
.team-slider-custom .team-member-designation {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    text-align: center;
}

.team-slider-custom .team-member-name {
    order: 1;
    margin: 0 !important;
    color: #232323 !important;
    font-size: 14px;
    line-height: 30px;
}

.team-slider-custom .team-member-designation {
    order: 2;
    color: #828282 !important;
    font-size: 13px;
    line-height: 22px;
}

@media (max-width: 767px) {
    .team-slider-custom .team-member-details {
        padding: 22px 8px !important;
    }

    .team-slider-custom .team-member-image::before {
        width: calc(100% - 32px);
        font-size: 12px;
        line-height: 1.5;
        letter-spacing: 0;
    }

    .team-slider-custom .team-member-details .social-icon {
        top: -50px !important;
    }
}
