 .ew-container {
    --ew-primary: #1e3a8a;
    --ew-accent: #3b82f6;
    --ew-text: #0f172a;
    --ew-text-muted: #64748b;
    --ew-success: #059669;
    --ew-border: #e2e8f0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 100px;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ew-text);
    line-height: 1.5;
    box-sizing: border-box;
}

.ew-container *,
.ew-container *::before,
.ew-container *::after {
    box-sizing: border-box;
}

.ew-header {
    text-align: center;
    margin-bottom: 48px;
}

    .ew-header h1 {
        font-size: clamp(29px, 4vw, 37px);
        font-weight: 700;
        color: var(--ew-primary);
        margin-bottom: 10px;
        letter-spacing: -0.03em;
    }

.ew-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--ew-accent), #60a5fa);
    margin: 0 auto 16px;
    border-radius: 4px;
}

.ew-header p {
    color: var(--ew-text-muted);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto;
}

.ew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.ew-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid var(--ew-border);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: ew-fadeIn 0.4s forwards;
}

    .ew-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 30px -8px rgba(30,58,138,0.12);
    }

@keyframes ew-fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ew-card-top {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    align-items: flex-start;
}
/* Avatar loader */
.ew-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.ew-avatar-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2.5px solid #dbeafe;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: ew-spin 0.7s linear infinite;
    z-index: 1;
}

.ew-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
    display: block;
}

    .ew-avatar.ew-loaded {
        opacity: 1;
    }

.ew-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2.5px solid white;
    background: #94a3b8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 2;
}

    .ew-status.ew-online {
        background: #10b981;
    }

.ew-card-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.ew-name {
    font-size: 18px;
    font-weight: 650;
    color: var(--ew-text);
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}

.ew-title {
    font-size: 13px;
    color: var(--ew-text-muted);
    margin-bottom: 8px;
}

.ew-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ew-writer-id {
    font-size: 12px;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

.ew-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    background: #ecfdf5;
    color: var(--ew-success);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #a7f3d0;
}

    .ew-verified svg {
        width: 12px;
        height: 12px;
    }

.ew-stats-row {
    display: flex;
    border: 1px solid var(--ew-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.ew-stat-item {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    background: #f8fafc;
}

    .ew-stat-item:not(:last-child) {
        border-right: 1px solid var(--ew-border);
    }

.ew-stat-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--ew-primary);
    line-height: 1.2;
}

.ew-stat-label {
    font-size: 11px;
    color: var(--ew-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.ew-section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ew-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.ew-qual-badge {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    margin-bottom: 14px;
}

.ew-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.ew-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.ew-bio {
    font-size: 14px;
    color: var(--ew-text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
}

.ew-hire-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 600;
    font-size: 15px;
    padding: 12px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

    .ew-hire-btn:hover {
        background: linear-gradient(135deg, #1e40af, #1d4ed8);
        transform: scale(1.02);
        color: white;
    }

/* ===== Load More Button ===== */
.ew-load-more-wrap {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.ew-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    color: var(--ew-primary);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 999px;
    border: 2px solid var(--ew-accent);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37,99,235,0.12);
}

    .ew-load-more-btn:hover {
        background: var(--ew-accent);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(37,99,235,0.25);
    }

    .ew-load-more-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.ew-loader {
    text-align: center;
    padding: 30px;
    color: var(--ew-text-muted);
    display: none;
}

    .ew-loader.ew-visible {
        display: block;
    }

.ew-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #dbeafe;
    border-top-color: var(--ew-accent);
    border-radius: 50%;
    animation: ew-spin 0.7s linear infinite;
    margin: 0 auto 10px;
}

@keyframes ew-spin {
    to {
        transform: rotate(360deg);
    }
}

.ew-end-message {
    text-align: center;
    padding: 24px;
    color: var(--ew-text-muted);
    font-size: 14px;
    display: none;
}

@media (max-width: 640px) {
    .ew-grid {
        grid-template-columns: 1fr;
    }
}

