/* ═══════════════════════════════════════════════════════════
   ALL-WORKERS PAGE — sidebar filters + compact CV cards
   navy #0D1F2D · teal #0F8B88 · mint #5ed4d0 · gray #E8ECEF
   ═══════════════════════════════════════════════════════════ */
@keyframes wkWaPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes wkRing {
    to { transform: rotate(360deg); }
}
@keyframes wkShake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-12deg); }
    50% { transform: rotate(10deg); }
    75% { transform: rotate(-6deg); }
}
@keyframes wkCardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.workers-cv-section.wk {
    background: #f6f8f9;
    padding: 40px 0 80px !important;
}
.wk-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* ── sidebar ── */
.wk-side {
    position: sticky;
    top: calc(var(--site-header-h, 101px) + 16px);
}
.wk-filter {
    background: #fff;
    border: 1px solid #E8ECEF;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(13, 31, 45, 0.06);
    overflow: hidden;
}
.wk-filter__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #0D1F2D, #123544);
    color: #fff;
}
.wk-filter__head h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: #fff;
}
.wk-filter__head h3 i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(94, 212, 208, 0.18);
    color: #5ed4d0;
    font-size: 0.85rem;
}
.wk-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: "Tajawal", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}
.wk-clear:hover { background: #0F8B88; border-color: #0F8B88; }
.wk-clear i { transition: transform 0.4s ease; }
.wk-clear:hover i { transform: rotate(-180deg); }
.wk-filter__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.wk-group__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #6b7a83;
    letter-spacing: 0.02em;
}
.wk-group__title i { color: #0F8B88; font-size: 0.75rem; }
/* service type list (keeps .cv-service-tab for the page script) */
.wk-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.wk-types .cv-service-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 12px;
    border: 1.5px solid #E8ECEF;
    background: #f7f9fa;
    color: #0D1F2D;
    font-family: "Tajawal", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}
.wk-types .cv-service-tab i { color: #0F8B88; font-size: 0.8rem; transition: color 0.25s ease; }
.wk-types .cv-service-tab:hover { border-color: rgba(15, 139, 136, 0.45); background: #fff; }
.wk-types .cv-service-tab.is-active {
    background: #0F8B88;
    border-color: #0F8B88;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 139, 136, 0.3);
}
.wk-types .cv-service-tab.is-active i { color: #fff; }
/* fields */
.wk-field { display: flex; flex-direction: column; gap: 6px; }
.wk-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0D1F2D;
    display: flex;
    align-items: center;
    gap: 7px;
}
.wk-field label i { color: #0F8B88; font-size: 0.75rem; width: 14px; text-align: center; }
.wk-select {
    position: relative;
}
.wk-select select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 11px 14px;
    padding-inline-end: 38px;
    border-radius: 12px;
    border: 1.5px solid #E8ECEF;
    background: #f7f9fa;
    color: #0D1F2D;
    font-family: "Tajawal", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.wk-select::after {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-end: 16px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #0F8B88;
    border-bottom: 2px solid #0F8B88;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.wk-select select:focus {
    outline: none;
    background: #fff;
    border-color: #0F8B88;
    box-shadow: 0 0 0 4px rgba(15, 139, 136, 0.12);
}
.wk-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: 12px;
    background: #0F8B88;
    color: #fff;
    font-family: "Tajawal", sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 139, 136, 0.3);
    transition: all 0.3s ease;
}
.wk-submit:hover { background: #12a19d; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(15, 139, 136, 0.4); }
.wk-submit i { transition: transform 0.3s ease; }
.wk-submit:hover i { transform: scale(1.15); }
/* mobile toggle */
.wk-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 14px;
    border: 1px solid #E8ECEF;
    background: #fff;
    color: #0D1F2D;
    font-family: "Tajawal", sans-serif;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(13, 31, 45, 0.05);
}
.wk-toggle i:first-child { color: #0F8B88; margin-inline-end: 8px; }
.wk-toggle .wk-toggle__chev { transition: transform 0.3s ease; }
.wk-side.is-open .wk-toggle .wk-toggle__chev { transform: rotate(180deg); }

/* ── main ── */
.wk-main { min-width: 0; }
.wk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.wk-grid > .worker-service-card { animation: wkCardIn 0.5s ease both; }
.wk-grid > .worker-service-card:nth-child(2) { animation-delay: 0.05s; }
.wk-grid > .worker-service-card:nth-child(3) { animation-delay: 0.1s; }
.wk-grid > .worker-service-card:nth-child(4) { animation-delay: 0.15s; }
.wk-grid > .worker-service-card:nth-child(5) { animation-delay: 0.2s; }
.wk-grid > .worker-service-card:nth-child(6) { animation-delay: 0.25s; }

/* ── CV card ── */
.cvc {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px 16px 16px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #E8ECEF;
    box-shadow: 0 10px 26px rgba(13, 31, 45, 0.05);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.cvc::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 86px;
    background: linear-gradient(180deg, rgba(15, 139, 136, 0.09), rgba(15, 139, 136, 0));
    pointer-events: none;
}
.cvc:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 139, 136, 0.35);
    box-shadow: 0 24px 46px -18px rgba(15, 139, 136, 0.35);
}
.cvc__top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-height: 30px;
}
.cvc__code {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #E8ECEF;
    font-size: 0.7rem;
    font-weight: 800;
    color: #0D1F2D;
    direction: ltr;
}
.cvc__code i { color: #0F8B88; font-size: 0.6rem; }
.cvc__type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 139, 136, 0.12);
    color: #0c6f6c;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}
/* floating WhatsApp */
.cvc__wa {
    position: absolute;
    z-index: 3;
    top: 62px;
    inset-inline-end: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #fff !important;
    font-size: 1.25rem;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.4);
    animation: wkWaPulse 2.4s ease-out infinite;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}
.cvc__wa:hover { transform: scale(1.12) rotate(-8deg); background: #1fb457; animation: none; }
/* circular photo with a gradient ring */
.cvc__avatar {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 6px auto 10px;
}
.cvc__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #0F8B88, #5ed4d0, #0D1F2D, #0F8B88);
    animation: wkRing 10s linear infinite;
}
.cvc:hover .cvc__ring { animation-duration: 2.5s; }
.cvc__photo {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    padding: 3px;
    display: block;
}
.cvc__photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.cvc:hover .cvc__photo img { transform: scale(1.08); }
.cvc__photo::after {
    content: "\f00e";
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.1rem;
    background: rgba(13, 31, 45, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cvc__photo:hover::after { opacity: 1; }
.cvc__flag {
    position: absolute;
    bottom: 2px;
    inset-inline-start: 2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    background: #fff;
    box-shadow: 0 4px 10px rgba(13, 31, 45, 0.18);
}
.cvc__flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cvc__name {
    text-align: center;
    margin: 0 0 2px;
    font-size: 1.02rem;
    font-weight: 800;
    color: #0D1F2D;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.25s ease;
}
.cvc__name:hover { color: #0F8B88; }
.cvc__sub {
    text-align: center;
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0F8B88;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cvc__sub .dot { color: #c9d3d8; margin: 0 5px; }
.cvc__branch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: center;
    margin: -6px 0 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(13, 31, 45, 0.06);
    color: #0D1F2D;
    font-size: 0.72rem;
    font-weight: 700;
}
/* meta chips */
.cvc__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
}
.cvc__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 11px;
    background: #f5f8f9;
    min-width: 0;
}
.cvc__item--wide { grid-column: 1 / -1; }
.cvc__item i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #0F8B88;
    font-size: 0.68rem;
}
.cvc__item div { display: flex; flex-direction: column; min-width: 0; }
.cvc__item small { font-size: 0.66rem; color: #6b7a83; font-weight: 600; line-height: 1.2; }
.cvc__item b {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0D1F2D;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cvc__item--price { background: rgba(15, 139, 136, 0.1); }
.cvc__item--price b { color: #0c6f6c; font-size: 0.92rem; }
.cvc__note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    font-size: 0.68rem;
    color: #6b7a83;
    line-height: 1.5;
}
.cvc__note i { color: #0F8B88; font-size: 0.65rem; }
/* actions */
.cvc__actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cvc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 0;
    font-family: "Tajawal", sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.cvc-btn--main {
    flex: 1;
    background: #0D1F2D;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(13, 31, 45, 0.22);
}
.cvc-btn--main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-130%);
    transition: transform 0.6s ease;
}
.cvc-btn--main:hover { background: #0F8B88; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15, 139, 136, 0.4); }
.cvc-btn--main:hover::after { transform: translateX(130%); }
.cvc-btn--main i { transition: transform 0.3s ease; }
.cvc-btn--main:hover i { transform: scale(1.15); }
/* icon-only buttons with tooltips */
.cvc-ico {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1.5px solid #E8ECEF;
    background: #fff;
    color: #0D1F2D !important;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.cvc-ico:hover { transform: translateY(-3px); border-color: transparent; color: #fff !important; }
.cvc-ico--cv:hover { background: #0F8B88; box-shadow: 0 10px 20px rgba(15, 139, 136, 0.35); }
.cvc-ico--dl:hover { background: #0D1F2D; box-shadow: 0 10px 20px rgba(13, 31, 45, 0.3); }
.cvc-ico--vid:hover { background: #e0245e; box-shadow: 0 10px 20px rgba(224, 36, 94, 0.3); }
.cvc-ico:hover i { animation: wkShake 0.5s ease; }
.cvc-ico[data-tip]::before {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 5px 9px;
    border-radius: 7px;
    background: #0D1F2D;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.cvc-ico[data-tip]:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }

/* empty / loading */
.wk-empty {
    padding: 48px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed #d8e0e4;
    border-radius: 22px;
    color: #6b7a83;
}
.wk-empty i { font-size: 2rem; color: #0F8B88; margin-bottom: 12px; display: block; }
.wk-empty h3 { color: #0D1F2D; font-weight: 800; font-size: 1.1rem; margin: 0 0 6px; }
.wk-empty p { margin: 0; font-size: 0.9rem; }
#maids_list .cv-card { background: transparent; border: 0; box-shadow: none; }

/* pagination polish */
.workers-pagination-wrap { margin-top: 28px; }

/* ── responsive ── */
@media (max-width: 1199px) {
    .wk-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 20px; }
    .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .wk-layout { grid-template-columns: 1fr; }
    .wk-side { position: static; }
    .wk-toggle { display: flex; }
    .wk-filter { display: none; margin-top: 12px; }
    .wk-side.is-open .wk-filter { display: block; }
    .wk-filter__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
    .wk-group--types, .wk-submit { grid-column: 1 / -1; }
    .wk-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .workers-cv-section.wk { padding: 24px 0 56px !important; }
    .wk-filter__body { grid-template-columns: 1fr; }
    .wk-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wk-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .cvc__wa, .cvc__ring, .wk-grid > .worker-service-card { animation: none; }
}
