.tm-cd7b8c68-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.tm-cd7b8c68-img-wrapper {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tm-cd7b8c68-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-sizing: border-box;
}

.tm-cd7b8c68-name {
    margin: 10px 0 5px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.tm-cd7b8c68-position {
    display: block;
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.tm-cd7b8c68-link-container {
    margin-top: 5px;
}

.tm-cd7b8c68-link {
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Modal CSS */
.tm-cd7b8c68-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.admin-bar .tm-cd7b8c68-modal {
    top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .tm-cd7b8c68-modal {
        top: 46px;
    }
}

.tm-cd7b8c68-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.tm-cd7b8c68-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.tm-cd7b8c68-modal-content {
    position: relative;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow-y: auto;
    z-index: 2;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    padding: 30px;
}

.tm-cd7b8c68-modal.is-active .tm-cd7b8c68-modal-content {
    transform: scale(1);
}

.tm-cd7b8c68-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
    z-index: 10;
}

.tm-cd7b8c68-modal-close:hover {
    color: #ff0000;
}

.tm-cd7b8c68-modal-body {
    display: flex;
    gap: 30px;
}

.tm-cd7b8c68-modal-left {
    flex: 0 0 250px;
}

.tm-cd7b8c68-modal-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.tm-cd7b8c68-modal-right {
    flex: 1;
}

.tm-cd7b8c68-modal-name {
    margin: 0 0 5px 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
}

.tm-cd7b8c68-modal-position {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.tm-cd7b8c68-modal-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* Prevent body scroll when modal is active */
body.tm-cd7b8c68-modal-open {
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .tm-cd7b8c68-modal-body {
        flex-direction: column;
        gap: 20px;
    }
    .tm-cd7b8c68-modal-left {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
    }
    .tm-cd7b8c68-modal-img {
        max-width: 200px;
    }
    .tm-cd7b8c68-modal-content {
        padding: 20px;
        width: 95%;
    }
}
