
.worker-list-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}
.worker-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    will-change: scroll-position;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.worker-list:active {
    cursor: grabbing;
}
.worker-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.worker-item {
    flex: 0 0 25%;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    min-width: 25%;
}
@media (max-width: 1024px) {
    .worker-item {
        flex: 0 0 33.33%;
        min-width: 33.33%;
    }
}
@media (max-width: 768px) {
    .worker-item {
        flex: 0 0 50%;
        min-width: 50%;
    }
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.carousel-nav-left {
    left: 10px;
}
.carousel-nav-right {
    right: 10px;
}
.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}
.carousel-dot.active {
    background-color: #0073aa;
}
.worker-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .worker-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .worker-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
.worker-grid-item {
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
}
.worker-details-button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    touch-action: manipulation; /* Prevent default touch behavior */
}
.worker-request-button {
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin: 10px;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
}
.worker-request-button:hover {
    background-color: #20b958;
}
.worker-pdf-link {
    background-color: #d81b60;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin: 10px;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}
.worker-pdf-link:hover {
    background-color: #c2185b;
}
.worker-full-picture {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
    margin: 15px auto;
    border-radius: 5px;
}
.worker-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.worker-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
}
.worker-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.worker-modal-close:hover,
.worker-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.worker-modal-content p {
    margin: 10px 0;
    font-size: 16px;
}
.worker-modal-inner {
    display: flex;
    gap: 20px;
}
.worker-details {
    flex: 1;
    order: 1;
}
.worker-picture {
    flex: 1;
    order: 2;
    text-align: center;
}
.worker-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .worker-modal-inner {
        flex-direction: column;
    }
    .worker-picture {
        order: 1;
        flex: none;
        text-align: center;
    }
    .worker-details {
        order: 2;
        flex: none;
    }
    .worker-buttons {
        flex-direction: column;
        align-items: center;
    }
}
