/* Team Flat Carousel Styles - Swiper */
.team-carousel-flat-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

.rawcut-team-carousel-flat {
    width: 100%;
    position: relative;
    overflow: visible !important;
}

.rawcut-team-carousel-flat .swiper-wrapper {
    align-items: stretch;
}

.team-member-flat-slide {
    padding: 0 10px;
    height: auto;
    display: flex;
    align-items: stretch;
}

.team-member-flat-card {
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-member-flat-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.team-member-flat-name-link {
    text-decoration: none;
    color: inherit;
}

.team-member-flat-image {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    aspect-ratio: 1/1;
    margin-bottom: 20px;
    background: #f5f5f5;
}

.team-member-flat-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    margin: 0 !important;
    transition: transform 0.4s ease;
}

.team-member-flat-image-link:hover .team-member-flat-image img {
    transform: scale(1.05);
}

.team-member-flat-info {
    text-align: center;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    min-height: 100px;
}

.team-member-flat-name {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 !important;
    color: #000;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    align-self: center;
}

.team-member-flat-name:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #000;
    transition: width 0.3s ease;
}

.team-member-flat-position {
    font-size: 14px;
    margin: 0;
    padding: 0;
    color: #666;
    font-weight: 400;
    min-height: 36px;
}

.team-member-flat-view-profile {
    display: inline-block;
    font-size: 16px;
    transition: color 0.3s ease;
    margin-top: auto;
    align-self: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    padding-bottom: 2px;
}

.team-member-flat-view-profile:after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #000;
    transition: width 0.3s ease;
}

.team-member-flat-name-link:hover .team-member-flat-name:after {
    width: 100%;
}

.team-member-flat-view-profile:hover:after {
    width: 100%;
}

/* Swiper Navigation */
.rawcut-team-carousel-flat .swiper-button-next,
.rawcut-team-carousel-flat .swiper-button-prev {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.rawcut-team-carousel-flat .swiper-button-next:after,
.rawcut-team-carousel-flat .swiper-button-prev:after {
    font-size: 20px;
    color: white;
    font-weight: bold;
}

.rawcut-team-carousel-flat .swiper-button-next:hover,
.rawcut-team-carousel-flat .swiper-button-prev:hover {
    background: #007bff;
    transform: scale(1.1);
}

/* Swiper Pagination */
.rawcut-team-carousel-flat .swiper-pagination {
    bottom: -50px;
}

.rawcut-team-carousel-flat .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 1;
}

.rawcut-team-carousel-flat .swiper-pagination-bullet-active {
    background: #333;
}

/* Responsive */
@media (max-width: 992px) {
    .team-carousel-flat-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .team-member-flat-name {
        font-size: 16px;
    }
    
    .team-member-flat-position {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .team-carousel-flat-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .team-member-flat-slide {
        padding: 0 10px;
    }
    
    .team-member-flat-name {
        font-size: 16px;
    }
    
    .team-member-flat-position {
        font-size: 12px;
    }
    
    .rawcut-team-carousel-flat .swiper-button-next,
    .rawcut-team-carousel-flat .swiper-button-prev {
        width: 40px;
        height: 40px;
        display: none !important;
    }
    
    .rawcut-team-carousel-flat .swiper-button-next:after,
    .rawcut-team-carousel-flat .swiper-button-prev:after {
        font-size: 16px;
    }
}
