.employees-simple-grid {
    padding: 20px 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    column-gap: 15px;
    row-gap: 15px;
}

.employee-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    max-width: calc(20% - 12px);
}

.employee-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.employee-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.employee-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    font-size: 24px;
}

.employee-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;    
    word-break: break-word;
    hyphens: auto;
    height: 46px;
}

.employee-position {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.employee-arrow {
    display: flex;
    justify-content: center;
}

.arrow-icon {
    font-size: 20px;
    color: #007cba;
    font-weight: bold;
}

/* Popup Styles */
.employee-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.employee-popup {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 10000;
}

.popup-close:hover {
    color: #000;
}

.popup-content {
    display: flex;
    padding: 30px;
    gap: 30px;
}

.popup-left {
    flex: 0 0 200px;
}

.popup-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-right {
    flex: 1;
}

.popup-name {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.popup-position{    
    color: #007cba;
}
.popup-department{
    font-size: 0.8em;
    color: #858585;
    margin-bottom: 10px;
}

.popup-about {
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Responsive */
@media (max-width: 1200px) {
    .employee-card {
        max-width: calc(33% - 7.5px);
    }
}
@media (max-width: 768px) {
    .employees-simple-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 15px 0;
    }

    .employee-card {
        max-width: calc(50% - 7.5px);
    }

    .popup-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .popup-left {
        flex: none;
        align-self: center;
    }

    .popup-image {
        width: 150px;
        height: 150px;
    }
}
@media (max-width: 496px) {
    .employee-card {
        max-width: 100%;
    }
}