.team-pro-widget-container {
    position: relative;
    width: 100%;
}

.team-pro-grid {
    display: grid;
    width: 100%;
    box-sizing: border-box;
}

.team-pro-grid-center {
    justify-content: center;
}

/* Card Styling */
.team-pro-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.team-pro-card-clickable {
    cursor: pointer;
}

.team-pro-card-clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.team-pro-img {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 280px;
}

.team-pro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top !important;
    display: block;
    transition: border-radius 0.3s ease;
}

.team-pro-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-pro-name {
    margin: 0 0 4px 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.team-pro-position {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 12px;
}

/* Social profiles list on card */
.team-pro-socials-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    z-index: 2;
}

.team-pro-card-social-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: #f5f5f5;
    color: #333;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.team-pro-card-social-item svg {
    width: 16px;
    height: 16px;
}

/* Swiper layout and fix for clipped shadows */
.team-pro-swiper-container {
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 15px 0 !important;
    margin: 0 !important;
}

.team-pro-swiper-container .swiper-wrapper {
    display: flex !important;
}

.team-pro-swiper-container .swiper-slide {
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* 10px padding on cards inside slider to prevent box-shadow clipping */
.team-pro-swiper-container .swiper-slide {
    padding: 10px 5px !important;
}

/* Let card max-width and styling control the size inside the swiper slide, no rigid overriding max-width */
.team-pro-swiper-container .swiper-slide .team-pro-card {
    height: 100%;
}

/* Pagination Placement Adjustment */
.team-pro-widget-container .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 25px;
}

/* Modal Popup Core */
.team-pro-modal-5647be61 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    box-sizing: border-box;
}

.team-pro-modal-5647be61.is-active {
    opacity: 1;
    pointer-events: auto;
}

.team-pro-modal-backdrop-5647be61 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.65);
}

.team-pro-modal-box-5647be61 {
    position: relative;
    background: #fff;
    border-radius: 6px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    box-shadow: 0 15px 45px rgba(0,0,0,0.2);
    transform: translateY(25px);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
}

.team-pro-modal-5647be61.is-active .team-pro-modal-box-5647be61 {
    transform: translateY(0);
}

/* Close button styling */
.team-pro-modal-close-5647be61 {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.team-pro-modal-close-5647be61:hover {
    transform: scale(1.1);
}

/* Popup Inner Layout */
.team-pro-modal-body-5647be61 {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

.team-pro-modal-body-5647be61 .popup-img {
    width: 35%;
    display: block;
    background: #fafafa;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.team-pro-modal-body-5647be61 .popup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.team-pro-modal-body-5647be61 .popup-content {
    width: 65%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.team-pro-modal-body-5647be61 .popup-title {
    margin: 0 0 4px 0;
    font-size: 1.85rem;
    font-weight: 700;
    color: #111;
}

.team-pro-modal-body-5647be61 .popup-subtitle {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #888;
    font-weight: normal;
}

.team-pro-modal-body-5647be61 .popup-divider {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin-bottom: 20px;
}

.team-pro-modal-body-5647be61 .popup-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 24px;
}

/* Contacts layout */
.popup-contact-list {
    display: flex;
    flex-direction: column;
}

.popup-contact-item {
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.popup-contact-item:last-child {
    border-bottom: none;
}

.popup-contact-item strong {
    width: 100px;
    color: #222;
    font-weight: 600;
}

.popup-contact-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.popup-contact-item a:hover {
    color: #0073aa;
}

/* Filters & Search UI */
.team-pro-search-box {
    margin-bottom: 24px;
}

.team-pro-search-input {
    width: 100%;
    max-width: 320px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

/* Swiper navigation custom colors / sizes */
.team-pro-prev-5647be61,
.team-pro-next-5647be61 {
    color: #333;
}

@media (max-width: 768px) {
    .team-pro-modal-box-5647be61 {
        flex-direction: column;
    }
    .team-pro-modal-body-5647be61 .popup-img {
        width: 100%;
        height: 250px;
    }
    .team-pro-modal-body-5647be61 .popup-content {
        width: 100%;
        padding: 24px;
    }
}
