.estqdamat-cards-wrap {
    --estq-bg: #f5f5f6;
    --estq-text: #1b1f2f;
    --estq-muted: #5f5f5f;
    --estq-btn: #ff6b00;
    --estq-radius: 22px;
    direction: rtl;
}

.estqdamat-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.estqdamat-filter-box select {
    width: 100%;
    border: 1px solid #d2d2d2;
    border-radius: 16px;
    min-height: 54px;
    font-size: 32px;
    background: #fff;
    color: #4a4a4a;
    padding: 0 16px;
}

.estqdamat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 28px;
}

.estqdamat-card {
    background: var(--estq-bg);
    border-radius: var(--estq-radius);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(12, 14, 28, 0.06);
}

.estqdamat-card-image-wrap {
    height: 300px;
    background: #efefef;
}

.estqdamat-card-image,
.estqdamat-card-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.estqdamat-card-body {
    padding: 24px;
}

.estqdamat-card h3 {
    margin: 0 0 14px;
    font-size: 52px;
    color: #12143c;
}

.estqdamat-card-line {
    margin-bottom: 8px;
    color: var(--estq-muted);
    font-size: 34px;
}

.estqdamat-card-line strong {
    color: #4e4e4e;
}

.estqdamat-open-detail {
    width: 100%;
    margin-top: 14px;
    border: none;
    color: #fff;
    background: var(--estq-btn);
    border-radius: 14px;
    min-height: 64px;
    font-size: 40px;
    cursor: pointer;
}

.estqdamat-detail-template {
    display: none;
}

.estqdamat-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.estqdamat-modal.is-open {
    display: block;
}

.estqdamat-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.estqdamat-modal-dialog {
    position: relative;
    max-width: 1200px;
    margin: 30px auto;
    max-height: calc(100vh - 60px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
}

.estqdamat-modal-close {
    position: sticky;
    top: 0;
    border: none;
    background: transparent;
    font-size: 36px;
    color: #666;
    cursor: pointer;
}

.estqdamat-detail-card {
    background: #f4f4f4;
    border-radius: 18px;
    padding: 24px;
    color: #252525;
}

.estqdamat-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.estqdamat-detail-title-block h2 {
    margin: 0;
    font-size: 56px;
    color: #11133d;
}

.estqdamat-detail-title-block p {
    margin: 8px 0 0;
    color: #666;
    font-size: 30px;
}

.estqdamat-detail-avatar {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
}

.estqdamat-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 60px;
    margin-bottom: 20px;
}

.estqdamat-detail-grid p,
.estqdamat-experience p,
.estqdamat-notes p {
    margin: 0 0 10px;
    font-size: 36px;
    color: #555;
}

.estqdamat-detail-grid strong,
.estqdamat-experience strong {
    color: #444;
}

.estqdamat-experience h3,
.estqdamat-skills h3,
.estqdamat-notes h3 {
    margin: 8px 0 16px;
    font-size: 58px;
    color: #131532;
}

.estqdamat-skill-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.estqdamat-skill-pill {
    background: #e8e8e8;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 32px;
    color: #545454;
}

.estqdamat-empty {
    text-align: center;
    padding: 24px;
    background: #fafafa;
    border-radius: 12px;
}

@media (max-width: 1024px) {
    .estqdamat-filters {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .estqdamat-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }

    .estqdamat-card h3 {
        font-size: 34px;
    }

    .estqdamat-card-line,
    .estqdamat-open-detail,
    .estqdamat-detail-grid p,
    .estqdamat-experience p,
    .estqdamat-notes p,
    .estqdamat-skill-pill,
    .estqdamat-filter-box select,
    .estqdamat-detail-title-block p {
        font-size: 20px;
    }

    .estqdamat-detail-title-block h2,
    .estqdamat-experience h3,
    .estqdamat-skills h3,
    .estqdamat-notes h3 {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .estqdamat-filters,
    .estqdamat-grid,
    .estqdamat-detail-grid {
        grid-template-columns: 1fr;
    }

    .estqdamat-detail-header {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
}
