/* GERAL E LAYOUT */
.elementor-widget-team_members_card .tmc-wrapper {
    display: grid;
    gap: 30px;
    align-items: stretch;
}

/* CARD */
.elementor-widget-team_members_card .tmc-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}
.elementor-widget-team_members_card .tmc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/*
 * SOLUÇÃO DEFINITIVA PARA CENTRALIZAÇÃO DA IMAGEM DO CARD
*/
.elementor-widget-team_members_card .tmc-image-wrapper {
    display: block;
    width: 100%;
    text-align: center;
    padding: 25px 0 0;
    margin-bottom: 20px;
}
.elementor-widget-team_members_card .tmc-image-wrapper img {
    display: inline-block;
    object-fit: cover;
    max-width: 100%;
}
.elementor-widget-team_members_card.tmc-image-shape-square .tmc-image-wrapper img {
    border-radius: 12px;
}
.elementor-widget-team_members_card.tmc-image-shape-round .tmc-image-wrapper img {
    border-radius: 50%;
}


.elementor-widget-team_members_card .tmc-card-content {
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.elementor-widget-team_members_card .tmc-name {
    margin-bottom: 10px;
}
.elementor-widget-team_members_card .tmc-description {
    margin: 0 0 20px;
    line-height: 1.6;
    flex-grow: 1;
    color: #667085;
}

.elementor-widget-team_members_card .tmc-card-footer {
    padding: 20px 25px 25px;
    margin-top: auto;
}
.elementor-widget-team_members_card .tmc-button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    background-color: #0073aa;
    transition: background-color 0.3s;
    font-weight: 600;
    width: 100%;
}

/* ESTILOS DE ALINHAMENTO PARA TEXTO E BOTÃO */
.elementor-widget-team_members_card.tmc-align-center .tmc-card { text-align: center; }
.elementor-widget-team_members_card.tmc-align-left .tmc-card { text-align: left; }
.elementor-widget-team_members_card.tmc-align-right .tmc-card { text-align: right; }

/* Alinhamento para Tablet */
@media (max-width: 1024px) {
    .elementor-widget-team_members_card.tmc-align-tablet-center .tmc-card { text-align: center; }
    .elementor-widget-team_members_card.tmc-align-tablet-left .tmc-card { text-align: left; }
    .elementor-widget-team_members_card.tmc-align-tablet-right .tmc-card { text-align: right; }
}

/* Alinhamento para Celular */
@media (max-width: 767px) {
    .elementor-widget-team_members_card.tmc-align-mobile-center .tmc-card { text-align: center; }
    .elementor-widget-team_members_card.tmc-align-mobile-left .tmc-card { text-align: left; }
    .elementor-widget-team_members_card.tmc-align-mobile-right .tmc-card { text-align: right; }
}

/* ################################################### */
/* ## LAYOUT DO POPUP - VERSÃO "ULTRA PREMIUM"      ## */
/* ################################################### */

/* -- Fundo e Animação de Entrada -- */
.tmc-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
    z-index: 99999;
}
.tmc-popup.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

/* -- Overlay (Fundo Escurecido) -- */
.tmc-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

/* -- Conteúdo Principal do Popup -- */
.tmc-popup-content {
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 95%;
    position: relative;
    max-height: 90vh;
    display: flex;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;

    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s ease;
}
.tmc-popup.is-active .tmc-popup-content {
    transform: scale(1) translateY(0);
}

/* -- Novo Botão de Fechar (Ícone SVG) -- */
.tmc-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    font-size: 0;
    cursor: pointer;
    background-color: rgba(17, 24, 39, 0.5); 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    border: none;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.tmc-popup-close:hover {
    background-color: rgba(17, 24, 39, 0.75); 
    transform: rotate(90deg);
}

/* -- Corpo do Popup (Container Flex) -- */
.tmc-popup-body {
    display: flex;
    width: 100%;
    height: 100%;
    max-height: 90vh;
}

/* -- Barra Lateral (Sidebar) -- */
.tmc-popup-sidebar {
    width: 320px;
    background: #f8f9fa;
    padding: 40px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}
.tmc-popup-sidebar .tmc-popup-image img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid #fff;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.tmc-popup-sidebar .tmc-popup-name {
    font-size: 1.75em;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.tmc-popup-sidebar .tmc-popup-specialty {
    font-size: 1em;
    color: #0073aa;
    margin: 5px 0 20px 0;
}
.tmc-popup-social {
    text-align: center;
}
.tmc-popup-social a {
    display: inline-block;
    font-size: 24px;
    color: #6b7280;
    margin: 5px 10px;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}
.tmc-popup-social a:hover {
    color: #0073aa;
    transform: scale(1.2);
}

/* -- Conteúdo Principal (Direita) -- */
.tmc-popup-main {
    padding: 40px;
    overflow-y: auto;
    flex-grow: 1;
}
.tmc-popup-main .tmc-popup-name {
    display: none;
}
.tmc-popup-main .tmc-popup-description {
    font-size: 1.05em;
    line-height: 1.8;
    color: #4b5563;
}
.tmc-popup-main .tmc-popup-description p:first-of-type {
    margin-top: 0;
}

/* -- Barra de Rolagem Estilizada (Bônus Premium) -- */
.tmc-popup-main::-webkit-scrollbar,
.tmc-popup-sidebar::-webkit-scrollbar {
    width: 8px;
}
.tmc-popup-main::-webkit-scrollbar-track,
.tmc-popup-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.tmc-popup-main::-webkit-scrollbar-thumb,
.tmc-popup-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.tmc-popup-main::-webkit-scrollbar-thumb:hover,
.tmc-popup-sidebar::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* -- Responsivo para Mobile -- */
@media (max-width: 768px) {
    .tmc-popup-body {
        flex-direction: column;
    }
    .tmc-popup-sidebar {
        width: 100%;
        max-height: none;
        padding: 30px 20px;
        justify-content: flex-start;
    }
    .tmc-popup-sidebar .tmc-popup-image img {
        width: 120px;
        height: 120px;
    }
    .tmc-popup-main {
        padding: 30px 20px;
    }
    .tmc-popup-main .tmc-popup-name {
        display: block;
    }
    .tmc-popup-sidebar .tmc-popup-name,
    .tmc-popup-sidebar .tmc-popup-specialty {
         display: none;
    }
}